From c23f5bfec13948135f5f253e638194d02e26a12b Mon Sep 17 00:00:00 2001 From: Ying Zhong <0x00eeee@gmail.com> Date: Sun, 31 May 2026 22:21:06 +0800 Subject: [PATCH] Improve link rendering in QuickLook --- dist/lite/markedit-preview.js | 13 +- dist/markedit-preview.js | 453 ++++++++++---------- src/quicklook/{scroll.ts => interaction.ts} | 13 + src/quicklook/ui.ts | 11 +- styles/quicklook.css | 7 +- 5 files changed, 267 insertions(+), 230 deletions(-) rename src/quicklook/{scroll.ts => interaction.ts} (92%) diff --git a/dist/lite/markedit-preview.js b/dist/lite/markedit-preview.js index 59be630..c737f3b 100644 --- a/dist/lite/markedit-preview.js +++ b/dist/lite/markedit-preview.js @@ -1860,7 +1860,7 @@ ${e} } `,pn=document.body,Be=document.createElement("div"),I=document.createElement("div"),lr=Oe("* { cursor: col-resize }",!1),kt=Ot.Annotation.define();var Z=(e=>(e[e.edit=0]="edit",e[e.sideBySide=1]="sideBySide",e[e.preview=2]="preview",e))(Z||{});function Vl(){Oe(Gl),Oe(st()),Oe(dt());const e=document.createElement("div");e.className=he.dividerViewClass,Be.appendChild(e),Be.className=he.gutterViewClass,pn.appendChild(Be),I.className=he.previewPaneClass,pn.appendChild(I),document.addEventListener("keydown",r=>{if(!r.metaKey||r.key!=="a")return;const t=_.MarkEdit.editorView?.contentDOM??document.querySelector(".cm-content");document.activeElement!==t&&qt(I)}),new MutationObserver(sr).observe(I,{attributes:!0,attributeFilter:["style","class"]}),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{sr(),document.querySelector(".mermaid")!==null&&bn()}),typeof _.MarkEdit.getFileInfo=="function"&&typeof _.MarkEdit.openFile=="function"&&I.addEventListener("click",ns),I.addEventListener("click",us)}function Dn(e,n=!0){const u=H();ze.viewMode=e,e!==u&&localStorage.setItem(An.viewModeCacheKey,String(e));const r=_.MarkEdit.editorView;e===0?r.focus():e===2&&r.contentDOM.blur(),e===1?(pn.classList.add(he.containerClass),ze.splitter??=Ul({columnGutters:[{track:1,element:Be}],minSize:150,onDragStart:()=>lr.disabled=!1,onDragEnd:()=>lr.disabled=!0})):(pn.classList.remove(he.containerClass),ze.splitter?.destroy(),ze.splitter=void 0),e===2?I.classList.add("overlay"):I.classList.remove("overlay"),n&&bn()}function Zl(){const e=[0,...Zc.map(r=>{switch(r){case"side-by-side":return 1;case"preview":return 2;default:return}}).filter(r=>r!==void 0)],n=e.indexOf(H()),u=n===-1?0:(n+1)%e.length;Dn(e[u])}function Wl(){const e=localStorage.getItem(An.viewModeCacheKey);if(e===null)return;const n=Number(e);H()!==n&&Dn(n,!0)}function H(){return ze.viewMode}async function bn(){if(H()===0)return;const e=pt(await Fn());I.innerHTML=e,ft(()=>{eu(xt(),Qe(),!1);const n=localStorage.getItem(An.previewPageZoomKey);n!==null&&(I.style.zoom=n)})}function Yl(e){if(H()===0||H()===1&&_.MarkEdit.editorView.hasFocus||!e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;const n=Number(I.style.zoom)||1,u=r=>String(Math.min(Math.max(r,.5),3));switch(e.key){case"-":I.style.zoom=u(n-.1);break;case"=":I.style.zoom=u(n+.1);break;case"0":I.style.zoom="1";break;default:return}localStorage.setItem(An.previewPageZoomKey,I.style.zoom),e.preventDefault(),e.stopPropagation()}function Kl(){wt(!1)}function Jl(){wt(!0)}async function Xl(){const e=await Fn(!1);await navigator.clipboard.writeText(e)}async function Ql(){const e=await Fn(!1),n=new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([I.innerText],{type:"text/plain"})});await navigator.clipboard.write([n])}function xt(){return _.MarkEdit.editorView.scrollDOM}function Qe(){return I}async function yt(e){const n=await Fn(!1);return e?await ht(n):` ${n}`}async function es(e,n){const u=await yu(e,!1);return n?await ht(u):` -${u}`}async function Fn(e=!0){const n=_.MarkEdit.editorAPI.getText();return await yu(n,e)}function sr(){const e=getComputedStyle(I).backgroundColor;Be.style.background=`linear-gradient(to right, transparent 50%, ${e} 50%)`}async function wt(e){const n=await(async()=>{const r=await _.MarkEdit.getFileInfo();return r===void 0?`${F("untitled")}.html`:`${Nt(r.filePath)}.html`})(),u=await yt(e);_.MarkEdit.showSavePanel({fileName:n,string:u})}async function ns(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 _.MarkEdit.getFileInfo())?.parentPath;if(r!==void 0){e.preventDefault(),e.stopPropagation();try{const t=ye(r,decodeURIComponent(u));await _.MarkEdit.openFile(t)}catch(t){console.error("Failed to open file:",t)}}}function us(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=_.MarkEdit.editorAPI,t=r.getLineRange(_e(u).from),o=Pl(r.getText(t));if(o===null){n.checked=!n.checked,console.error("Failed to resolve task toggle");return}const a=t.from+o.offset;_.MarkEdit.editorView.dispatch({changes:{from:a,to:a+1,insert:o.replacement},annotations:kt.of(!0)})}const ze={viewMode:0,splitter:void 0};async function nu(){if(Pe==="never")return;const e=await vt();typeof e.tag_name=="string"&&e.name!=="1.7.1"&&(Et().has(e.name)||(Pe==="automatic"&&ou()?await Cu(e.tag_name):Pe==="quiet"?(uu.pendingRelease=e,Ct(e)):ts(e)))}async function rs(){const e=Date.now(),n=Number(localStorage.getItem(Me.lastCheckCacheKey)??"0");if(!(e-n<2592e5))try{await nu(),localStorage.setItem(Me.lastCheckCacheKey,String(e))}catch(u){console.error("Failed to check for updates:",u)}}async function vt(){return await(await fetch(Me.latestReleaseURL)).json()}async function Cu(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)}`,t=`${Me.rawBaseURL}${r}/dist/${u}markedit-preview.js`,o=await fetch(t);if(!o.ok)return console.error(`Failed to download the latest build from ${t}`),!1;const a=await o.text();return await _.MarkEdit.createFile({path:n,string:a,overwrites:!0})}catch(n){return console.error("Failed to download the latest build:",n),!1}}function Ct(e=uu.pendingRelease){if(e===void 0)return;const n=document.querySelector(`.${he.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=he.updatePillClass,u.textContent=F("update"),u.style.display=H()===Z.edit?"none":"",u.addEventListener("webkitmouseforcedown",r=>{r.preventDefault()}),u.addEventListener("click",()=>{const{title:r,actions:t}=_t(e,()=>{uu.pendingRelease=void 0,u.remove()}),[o,...a]=t,i=u.getBoundingClientRect(),l={x:i.left,y:i.bottom+10};_.MarkEdit.showContextMenu([{title:r},o,{separator:!0},...a],l)}),document.body.appendChild(u),u}async function ts(e){const{title:n,actions:u}=_t(e),r=await _.MarkEdit.showAlert({title:n,message:e.body,buttons:u.map(t=>t.title)});u[r]?.action?.()}function _t(e,n=()=>{}){const u=`MarkEdit-preview ${e.name} ${F("newVersionAvailable")}`,r=[...ou()?[{title:F("updateAndRelaunch"),action:async()=>{await Cu(e.tag_name)?_.MarkEdit.relaunchApp():_.MarkEdit.showAlert(F("failedToUpdate")),n()}}]:[],{title:F("viewReleasePage"),action:()=>{open(e.html_url),n()}},{title:F("remindMeLater"),action:n},{title:F("skipThisVersion"),action:()=>{const t=Et();t.add(e.name),localStorage.setItem(Me.skippedCacheKey,JSON.stringify([...t])),n()}}];return{title:u,actions:r}}function Et(){const e=localStorage.getItem(Me.skippedCacheKey);return new Set(JSON.parse(e??"[]"))}const Me={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"},uu={pendingRelease:void 0},ru="markedit-preview",dr=`${ru}.js`;function os(e){const{destExists:n,bundleInfo:u,currentVersion:r}=e,t=u?.version===r,o=u?.fullBuild===!1;return!(n&&t&&o)}async function is(){try{const e=_.MarkEdit.getDirectoryPath("documents"),n=_.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__:ye(e,`scripts/${dr}`);if(await _.MarkEdit.getFileInfo(u)===void 0){console.error(`Source file not found at ${u}`);return}const t=u.split("/").pop()??dr,o=ye(n,"Shared/scripts"),a=ye(o,t),i=await _.MarkEdit.getFileInfo(a)!==void 0,l=ye(n,"Shared/metadata.json"),d=await $t(l),h=d[ru];if(!os({destExists:i,bundleInfo:h,currentVersion:"1.7.1"}))return;const c=await _.MarkEdit.getFileContent(u);if(c===void 0){console.error(`Failed to read content from ${u}`);return}await _.MarkEdit.createFile({path:o,isDirectory:!0}),await _.MarkEdit.createFile({path:a,string:c,overwrites:!0}),await _.MarkEdit.createFile({path:l,string:JSON.stringify({...d,[ru]:{version:"1.7.1",fullBuild:!1}},null,2),overwrites:!0})}catch(e){console.error("Failed to copy the current file to shared container:",e)}}function as(){const e=fr(F("source")),n=fr(F("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 fr(e){const n=document.createElement("button");return n.textContent=e,n.type="button",n.className="quicklook-segment",n.setAttribute("role","tab"),n}function ke(){if(xe!==void 0)return xe;try{xe=localStorage.getItem(At)==="preview"?"preview":"source"}catch{console.error("Failed to read quick look mode from localStorage"),xe="source"}return xe}function hr(e){xe=e;try{localStorage.setItem(At,e)}catch{console.error("Failed to write quick look mode to localStorage")}}let xe;const At="ui.quicklook-mode";function cs(){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 ls(e,n){const u=window,r=u.pinchZoomTarget;u.pinchZoomTarget=()=>{if(e()!=="preview")return r?.()??null;const t=n.querySelector(".quicklook-content");return t!==null?{scroller:n,inner:t}:null}}function ss(e,n){let u;const r=window,t={start:r.startDragging,update:r.updateDragging,cancel:r.cancelDragging},o=()=>{const i=n.clientHeight,l=n.scrollHeight,d=l-i;if(d<=0||l<=0)return{clientHeight:i,scrollHeight:l,scrollbarHeight:i,scrollbarTop:0};const h=i*(i/l),f=n.scrollTop/d*(i-h);return{clientHeight:i,scrollHeight:l,scrollbarHeight:h,scrollbarTop:f}},a=(i,l,d="auto")=>{const{clientHeight:h,scrollHeight:c,scrollbarHeight:f}=o(),s=h-f;if(s>0){const p=(i-l)/s;n.scrollTo({top:p*(c-h),behavior:d})}};r.startDragging=i=>{if(e()!=="preview"){t.start?.(i);return}const{scrollbarTop:l,scrollbarHeight:d}=o(),h=pr(n,i);u=h-l,(hl+d)&&a(h,d*.5,"smooth")},r.updateDragging=i=>{if(e()!=="preview"){t.update?.(i);return}u!==void 0&&a(pr(n,i),u)},r.cancelDragging=()=>{if(e()!=="preview"){t.cancel?.();return}u=void 0}}function ds(e,n,u){u.addEventListener("wheel",r=>{const t=e()==="preview"?n:document.querySelector(".cm-scroller");t!==null&&(t.scrollTop+=r.deltaY,t.scrollLeft+=r.deltaX,r.preventDefault())},{passive:!1})}function fs(e,n,u){const r=document.querySelector(".cm-scroller"),t=()=>{const a=(e()==="preview"?n:r)?.scrollTop??0;u.classList.toggle("scrolled",a>0),u.classList.toggle("scrolled-far",a>20)};return n.addEventListener("scroll",t,{passive:!0}),r?.addEventListener("scroll",t,{passive:!0}),t}function pr(e,n){return n-e.getBoundingClientRect().top}const hs=`body { +${u}`}async function Fn(e=!0){const n=_.MarkEdit.editorAPI.getText();return await yu(n,e)}function sr(){const e=getComputedStyle(I).backgroundColor;Be.style.background=`linear-gradient(to right, transparent 50%, ${e} 50%)`}async function wt(e){const n=await(async()=>{const r=await _.MarkEdit.getFileInfo();return r===void 0?`${F("untitled")}.html`:`${Nt(r.filePath)}.html`})(),u=await yt(e);_.MarkEdit.showSavePanel({fileName:n,string:u})}async function ns(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 _.MarkEdit.getFileInfo())?.parentPath;if(r!==void 0){e.preventDefault(),e.stopPropagation();try{const t=ye(r,decodeURIComponent(u));await _.MarkEdit.openFile(t)}catch(t){console.error("Failed to open file:",t)}}}function us(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=_.MarkEdit.editorAPI,t=r.getLineRange(_e(u).from),o=Pl(r.getText(t));if(o===null){n.checked=!n.checked,console.error("Failed to resolve task toggle");return}const a=t.from+o.offset;_.MarkEdit.editorView.dispatch({changes:{from:a,to:a+1,insert:o.replacement},annotations:kt.of(!0)})}const ze={viewMode:0,splitter:void 0};async function nu(){if(Pe==="never")return;const e=await vt();typeof e.tag_name=="string"&&e.name!=="1.7.1"&&(Et().has(e.name)||(Pe==="automatic"&&ou()?await Cu(e.tag_name):Pe==="quiet"?(uu.pendingRelease=e,Ct(e)):ts(e)))}async function rs(){const e=Date.now(),n=Number(localStorage.getItem(Me.lastCheckCacheKey)??"0");if(!(e-n<2592e5))try{await nu(),localStorage.setItem(Me.lastCheckCacheKey,String(e))}catch(u){console.error("Failed to check for updates:",u)}}async function vt(){return await(await fetch(Me.latestReleaseURL)).json()}async function Cu(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)}`,t=`${Me.rawBaseURL}${r}/dist/${u}markedit-preview.js`,o=await fetch(t);if(!o.ok)return console.error(`Failed to download the latest build from ${t}`),!1;const a=await o.text();return await _.MarkEdit.createFile({path:n,string:a,overwrites:!0})}catch(n){return console.error("Failed to download the latest build:",n),!1}}function Ct(e=uu.pendingRelease){if(e===void 0)return;const n=document.querySelector(`.${he.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=he.updatePillClass,u.textContent=F("update"),u.style.display=H()===Z.edit?"none":"",u.addEventListener("webkitmouseforcedown",r=>{r.preventDefault()}),u.addEventListener("click",()=>{const{title:r,actions:t}=_t(e,()=>{uu.pendingRelease=void 0,u.remove()}),[o,...a]=t,i=u.getBoundingClientRect(),l={x:i.left,y:i.bottom+10};_.MarkEdit.showContextMenu([{title:r},o,{separator:!0},...a],l)}),document.body.appendChild(u),u}async function ts(e){const{title:n,actions:u}=_t(e),r=await _.MarkEdit.showAlert({title:n,message:e.body,buttons:u.map(t=>t.title)});u[r]?.action?.()}function _t(e,n=()=>{}){const u=`MarkEdit-preview ${e.name} ${F("newVersionAvailable")}`,r=[...ou()?[{title:F("updateAndRelaunch"),action:async()=>{await Cu(e.tag_name)?_.MarkEdit.relaunchApp():_.MarkEdit.showAlert(F("failedToUpdate")),n()}}]:[],{title:F("viewReleasePage"),action:()=>{open(e.html_url),n()}},{title:F("remindMeLater"),action:n},{title:F("skipThisVersion"),action:()=>{const t=Et();t.add(e.name),localStorage.setItem(Me.skippedCacheKey,JSON.stringify([...t])),n()}}];return{title:u,actions:r}}function Et(){const e=localStorage.getItem(Me.skippedCacheKey);return new Set(JSON.parse(e??"[]"))}const Me={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"},uu={pendingRelease:void 0},ru="markedit-preview",dr=`${ru}.js`;function os(e){const{destExists:n,bundleInfo:u,currentVersion:r}=e,t=u?.version===r,o=u?.fullBuild===!1;return!(n&&t&&o)}async function is(){try{const e=_.MarkEdit.getDirectoryPath("documents"),n=_.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__:ye(e,`scripts/${dr}`);if(await _.MarkEdit.getFileInfo(u)===void 0){console.error(`Source file not found at ${u}`);return}const t=u.split("/").pop()??dr,o=ye(n,"Shared/scripts"),a=ye(o,t),i=await _.MarkEdit.getFileInfo(a)!==void 0,l=ye(n,"Shared/metadata.json"),d=await $t(l),h=d[ru];if(!os({destExists:i,bundleInfo:h,currentVersion:"1.7.1"}))return;const c=await _.MarkEdit.getFileContent(u);if(c===void 0){console.error(`Failed to read content from ${u}`);return}await _.MarkEdit.createFile({path:o,isDirectory:!0}),await _.MarkEdit.createFile({path:a,string:c,overwrites:!0}),await _.MarkEdit.createFile({path:l,string:JSON.stringify({...d,[ru]:{version:"1.7.1",fullBuild:!1}},null,2),overwrites:!0})}catch(e){console.error("Failed to copy the current file to shared container:",e)}}function as(){const e=fr(F("source")),n=fr(F("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 fr(e){const n=document.createElement("button");return n.textContent=e,n.type="button",n.className="quicklook-segment",n.setAttribute("role","tab"),n}function ke(){if(xe!==void 0)return xe;try{xe=localStorage.getItem(At)==="preview"?"preview":"source"}catch{console.error("Failed to read quick look mode from localStorage"),xe="source"}return xe}function hr(e){xe=e;try{localStorage.setItem(At,e)}catch{console.error("Failed to write quick look mode to localStorage")}}let xe;const At="ui.quicklook-mode";function cs(){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 ls(){document.addEventListener("webkitmouseforcewillbegin",e=>{const n=e.target;n instanceof Element&&n.closest("a")!==null&&e.preventDefault()})}function ss(e,n){const u=window,r=u.pinchZoomTarget;u.pinchZoomTarget=()=>{if(e()!=="preview")return r?.()??null;const t=n.querySelector(".quicklook-content");return t!==null?{scroller:n,inner:t}:null}}function ds(e,n){let u;const r=window,t={start:r.startDragging,update:r.updateDragging,cancel:r.cancelDragging},o=()=>{const i=n.clientHeight,l=n.scrollHeight,d=l-i;if(d<=0||l<=0)return{clientHeight:i,scrollHeight:l,scrollbarHeight:i,scrollbarTop:0};const h=i*(i/l),f=n.scrollTop/d*(i-h);return{clientHeight:i,scrollHeight:l,scrollbarHeight:h,scrollbarTop:f}},a=(i,l,d="auto")=>{const{clientHeight:h,scrollHeight:c,scrollbarHeight:f}=o(),s=h-f;if(s>0){const p=(i-l)/s;n.scrollTo({top:p*(c-h),behavior:d})}};r.startDragging=i=>{if(e()!=="preview"){t.start?.(i);return}const{scrollbarTop:l,scrollbarHeight:d}=o(),h=pr(n,i);u=h-l,(hl+d)&&a(h,d*.5,"smooth")},r.updateDragging=i=>{if(e()!=="preview"){t.update?.(i);return}u!==void 0&&a(pr(n,i),u)},r.cancelDragging=()=>{if(e()!=="preview"){t.cancel?.();return}u=void 0}}function fs(e,n,u){u.addEventListener("wheel",r=>{const t=e()==="preview"?n:document.querySelector(".cm-scroller");t!==null&&(t.scrollTop+=r.deltaY,t.scrollLeft+=r.deltaX,r.preventDefault())},{passive:!1})}function hs(e,n,u){const r=document.querySelector(".cm-scroller"),t=()=>{const a=(e()==="preview"?n:r)?.scrollTop??0;u.classList.toggle("scrolled",a>0),u.classList.toggle("scrolled-far",a>20)};return n.addEventListener("scroll",t,{passive:!0}),r?.addEventListener("scroll",t,{passive:!0}),t}function pr(e,n){return n-e.getBoundingClientRect().top}const ps=`body { --editor-inset-top: 34px; } @@ -1877,9 +1877,14 @@ ${u}`}async function Fn(e=!0){const n=_.MarkEdit.editorAPI.getText();return awai /* Links are not interactive in quicklook */ .quicklook .markdown-body a, -.quicklook .markdown-body a:hover { +.quicklook .markdown-body a:hover, +.quicklook .markdown-body a:not([href]) { + color: var(--fgColor-accent); text-decoration: none; cursor: text; + user-select: text; + -webkit-user-select: text; + -webkit-touch-callout: none; } .quicklook .markdown-body.overlay { @@ -2053,5 +2058,5 @@ ${u}`}async function Fn(e=!0){const n=_.MarkEdit.editorAPI.getText();return awai box-shadow: 0 0 3px rgba(0, 0, 0, 0.45); } } -`;function ps(e){Oe(hs),document.body.classList.add("quicklook");const{toolbar:n,sourceButton:u,previewButton:r}=as();document.body.appendChild(n);const t=bs(e),o=fs(ke,e,n),a={previewPane:e,sourceButton:u,previewButton:r,refreshSeparator:o,ensureRendered:t.ensureRendered};u.addEventListener("click",()=>{hr("source"),Vn(a)}),r.addEventListener("click",()=>{hr("preview"),Vn(a)}),Vn(a),setTimeout(t.ensureRendered,0),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{e.querySelector(".mermaid")!==null&&(t.invalidate(),ke()==="preview"&&t.ensureRendered())}),ls(ke,e),ss(ke,e),ds(ke,e,n)}function Vn(e){const n=ke()==="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 bs(e){let n=!1,u;return{ensureRendered:()=>(n||u||(u=(async()=>{try{const o=pt(await yu(cs(),!1));e.innerHTML=`
${o}
`,ft(()=>{}),n=!0}catch(o){throw u=void 0,o}})()),u),invalidate:()=>{n=!1,u=void 0}}}var on={exports:{}};var ms=on.exports,br;function gs(){return br||(br=1,(function(e,n){(function(u,r){e.exports=r()})(ms,(function(){var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},r=function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")},t=(function(){function d(h,c){for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,d),this.ctx=h,this.iframes=c,this.exclude=f,this.iframesTimeout=s}return t(d,[{key:"getContexts",value:function(){var c=void 0,f=[];return typeof this.ctx>"u"||!this.ctx?c=[]:NodeList.prototype.isPrototypeOf(this.ctx)?c=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?c=this.ctx:typeof this.ctx=="string"?c=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):c=[this.ctx],c.forEach(function(s){var p=f.filter(function(b){return b.contains(s)}).length>0;f.indexOf(s)===-1&&!p&&f.push(s)}),f}},{key:"getIframeContents",value:function(c,f){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},p=void 0;try{var b=c.contentWindow;if(p=b.document,!b||!p)throw new Error("iframe inaccessible")}catch{s()}p&&f(p)}},{key:"isIframeBlank",value:function(c){var f="about:blank",s=c.getAttribute("src").trim(),p=c.contentWindow.location.href;return p===f&&s!==f&&s}},{key:"observeIframeLoad",value:function(c,f,s){var p=this,b=!1,m=null,k=function g(){if(!b){b=!0,clearTimeout(m);try{p.isIframeBlank(c)||(c.removeEventListener("load",g),p.getIframeContents(c,f,s))}catch{s()}}};c.addEventListener("load",k),m=setTimeout(k,this.iframesTimeout)}},{key:"onIframeReady",value:function(c,f,s){try{c.contentWindow.document.readyState==="complete"?this.isIframeBlank(c)?this.observeIframeLoad(c,f,s):this.getIframeContents(c,f,s):this.observeIframeLoad(c,f,s)}catch{s()}}},{key:"waitForIframes",value:function(c,f){var s=this,p=0;this.forEachIframe(c,function(){return!0},function(b){p++,s.waitForIframes(b.querySelector("html"),function(){--p||f()})},function(b){b||f()})}},{key:"forEachIframe",value:function(c,f,s){var p=this,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=c.querySelectorAll("iframe"),k=m.length,g=0;m=Array.prototype.slice.call(m);var x=function(){--k<=0&&b(g)};k||x(),m.forEach(function(y){d.matches(y,p.exclude)?x():p.onIframeReady(y,function(w){f(y)&&(g++,s(w)),x()},x)})}},{key:"createIterator",value:function(c,f,s){return document.createNodeIterator(c,f,s,!1)}},{key:"createInstanceOnIframe",value:function(c){return new d(c.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(c,f,s){var p=c.compareDocumentPosition(s),b=Node.DOCUMENT_POSITION_PRECEDING;if(p&b)if(f!==null){var m=f.compareDocumentPosition(s),k=Node.DOCUMENT_POSITION_FOLLOWING;if(m&k)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(c){var f=c.previousNode(),s=void 0;return f===null?s=c.nextNode():s=c.nextNode()&&c.nextNode(),{prevNode:f,node:s}}},{key:"checkIframeFilter",value:function(c,f,s,p){var b=!1,m=!1;return p.forEach(function(k,g){k.val===s&&(b=g,m=k.handled)}),this.compareNodeIframe(c,f,s)?(b===!1&&!m?p.push({val:s,handled:!0}):b!==!1&&!m&&(p[b].handled=!0),!0):(b===!1&&p.push({val:s,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(c,f,s,p){var b=this;c.forEach(function(m){m.handled||b.getIframeContents(m.val,function(k){b.createInstanceOnIframe(k).forEachNode(f,s,p)})})}},{key:"iterateThroughNodes",value:function(c,f,s,p,b){for(var m=this,k=this.createIterator(f,c,p),g=[],x=[],y=void 0,w=void 0,v=function(){var A=m.getIteratorNode(k);return w=A.prevNode,y=A.node,y};v();)this.iframes&&this.forEachIframe(f,function(E){return m.checkIframeFilter(y,w,E,g)},function(E){m.createInstanceOnIframe(E).forEachNode(c,function(A){return x.push(A)},p)}),x.push(y);x.forEach(function(E){s(E)}),this.iframes&&this.handleOpenIframes(g,c,s,p),b()}},{key:"forEachNode",value:function(c,f,s){var p=this,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=this.getContexts(),k=m.length;k||b(),m.forEach(function(g){var x=function(){p.iterateThroughNodes(c,g,f,s,function(){--k<=0&&b()})};p.iframes?p.waitForIframes(g,x):x()})}}],[{key:"matches",value:function(c,f){var s=typeof f=="string"?[f]:f,p=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector;if(p){var b=!1;return s.every(function(m){return p.call(c,m)?(b=!0,!1):!0}),b}else return!1}}]),d})(),i=(function(){function d(h){r(this,d),this.ctx=h,this.ie=!1;var c=window.navigator.userAgent;(c.indexOf("MSIE")>-1||c.indexOf("Trident")>-1)&&(this.ie=!0)}return t(d,[{key:"log",value:function(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",s=this.opt.log;this.opt.debug&&(typeof s>"u"?"undefined":u(s))==="object"&&typeof s[f]=="function"&&s[f]("mark.js: "+c)}},{key:"escapeStr",value:function(c){return c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(c){return this.opt.wildcards!=="disabled"&&(c=this.setupWildcardsRegExp(c)),c=this.escapeStr(c),Object.keys(this.opt.synonyms).length&&(c=this.createSynonymsRegExp(c)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),this.opt.diacritics&&(c=this.createDiacriticsRegExp(c)),c=this.createMergedBlanksRegExp(c),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.createJoinersRegExp(c)),this.opt.wildcards!=="disabled"&&(c=this.createWildcardsRegExp(c)),c=this.createAccuracyRegExp(c),c}},{key:"createSynonymsRegExp",value:function(c){var f=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",p=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var b in f)if(f.hasOwnProperty(b)){var m=f[b],k=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(b):this.escapeStr(b),g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m);k!==""&&g!==""&&(c=c.replace(new RegExp("("+this.escapeStr(k)+"|"+this.escapeStr(g)+")","gm"+s),p+("("+this.processSynomyms(k)+"|")+(this.processSynomyms(g)+")")+p))}return c}},{key:"processSynomyms",value:function(c){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),c}},{key:"setupWildcardsRegExp",value:function(c){return c=c.replace(/(?:\\)*\?/g,function(f){return f.charAt(0)==="\\"?"?":""}),c.replace(/(?:\\)*\*/g,function(f){return f.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(c){var f=this.opt.wildcards==="withSpaces";return c.replace(/\u0001/g,f?"[\\S\\s]?":"\\S?").replace(/\u0002/g,f?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(c){return c.replace(/[^(|)\\]/g,function(f,s,p){var b=p.charAt(s+1);return/[(|)\\]/.test(b)||b===""?f:f+"\0"})}},{key:"createJoinersRegExp",value:function(c){var f=[],s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&f.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&f.push("\\u00ad\\u200b\\u200c\\u200d"),f.length?c.split(/\u0000+/).join("["+f.join("")+"]*"):c}},{key:"createDiacriticsRegExp",value:function(c){var f=this.opt.caseSensitive?"":"i",s=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ŽŻŹ"],p=[];return c.split("").forEach(function(b){s.every(function(m){if(m.indexOf(b)!==-1){if(p.indexOf(m)>-1)return!1;c=c.replace(new RegExp("["+m+"]","gm"+f),"["+m+"]"),p.push(m)}return!0})}),c}},{key:"createMergedBlanksRegExp",value:function(c){return c.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(c){var f=this,s="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",p=this.opt.accuracy,b=typeof p=="string"?p:p.value,m=typeof p=="string"?[]:p.limiters,k="";switch(m.forEach(function(g){k+="|"+f.escapeStr(g)}),b){case"partially":default:return"()("+c+")";case"complementary":return k="\\s"+(k||this.escapeStr(s)),"()([^"+k+"]*"+c+"[^"+k+"]*)";case"exactly":return"(^|\\s"+k+")("+c+")(?=$|\\s"+k+")"}}},{key:"getSeparatedKeywords",value:function(c){var f=this,s=[];return c.forEach(function(p){f.opt.separateWordSearch?p.split(" ").forEach(function(b){b.trim()&&s.indexOf(b)===-1&&s.push(b)}):p.trim()&&s.indexOf(p)===-1&&s.push(p)}),{keywords:s.sort(function(p,b){return b.length-p.length}),length:s.length}}},{key:"isNumeric",value:function(c){return Number(parseFloat(c))==c}},{key:"checkRanges",value:function(c){var f=this;if(!Array.isArray(c)||Object.prototype.toString.call(c[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(c),[];var s=[],p=0;return c.sort(function(b,m){return b.start-m.start}).forEach(function(b){var m=f.callNoMatchOnInvalidRanges(b,p),k=m.start,g=m.end,x=m.valid;x&&(b.start=k,b.length=g-k,s.push(b),p=g)}),s}},{key:"callNoMatchOnInvalidRanges",value:function(c,f){var s=void 0,p=void 0,b=!1;return c&&typeof c.start<"u"?(s=parseInt(c.start,10),p=s+parseInt(c.length,10),this.isNumeric(c.start)&&this.isNumeric(c.length)&&p-f>0&&p-s>0?b=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(c))),this.opt.noMatch(c))):(this.log("Ignoring invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:s,end:p,valid:b}}},{key:"checkWhitespaceRanges",value:function(c,f,s){var p=void 0,b=!0,m=s.length,k=f-m,g=parseInt(c.start,10)-k;return g=g>m?m:g,p=g+parseInt(c.length,10),p>m&&(p=m,this.log("End range automatically set to the max value of "+m)),g<0||p-g<0||g>m||p>m?(b=!1,this.log("Invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)):s.substring(g,p).replace(/\s+/g,"")===""&&(b=!1,this.log("Skipping whitespace only range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:g,end:p,valid:b}}},{key:"getTextNodes",value:function(c){var f=this,s="",p=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(b){p.push({start:s.length,end:(s+=b.textContent).length,node:b})},function(b){return f.matchesExclude(b.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){c({value:s,nodes:p})})}},{key:"matchesExclude",value:function(c){return a.matches(c,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(c,f,s){var p=this.opt.element?this.opt.element:"mark",b=c.splitText(f),m=b.splitText(s-f),k=document.createElement(p);return k.setAttribute("data-markjs","true"),this.opt.className&&k.setAttribute("class",this.opt.className),k.textContent=b.textContent,b.parentNode.replaceChild(k,b),m}},{key:"wrapRangeInMappedTextNode",value:function(c,f,s,p,b){var m=this;c.nodes.every(function(k,g){var x=c.nodes[g+1];if(typeof x>"u"||x.start>f){if(!p(k.node))return!1;var y=f-k.start,w=(s>k.end?k.end:s)-k.start,v=c.value.substr(0,k.start),E=c.value.substr(w+k.start);if(k.node=m.wrapRangeInTextNode(k.node,y,w),c.value=v+E,c.nodes.forEach(function(A,L){L>=g&&(c.nodes[L].start>0&&L!==g&&(c.nodes[L].start-=w),c.nodes[L].end-=w)}),s-=w,b(k.node.previousSibling,k.start),s>k.end)f=k.end;else return!1}return!0})}},{key:"wrapMatches",value:function(c,f,s,p,b){var m=this,k=f===0?0:f+1;this.getTextNodes(function(g){g.nodes.forEach(function(x){x=x.node;for(var y=void 0;(y=c.exec(x.textContent))!==null&&y[k]!=="";)if(s(y[k],x)){var w=y.index;if(k!==0)for(var v=1;v{G=Array.from(e.querySelectorAll(`.${qe}`)),ne=G.length>0?Math.min(ne,G.length-1):0,Mt(),Le=!1};i.unmark({done:()=>{if(a)try{const d=r?"":"i";i.markRegExp(new RegExp(u,d),{className:qe,done:l})}catch{Le=!1,ne=0,G=[]}else i.mark(u,{className:qe,caseSensitive:r,diacritics:o,separateWordSearch:!1,accuracy:t?"exactly":"partially",done:l})}})}function Mt(){const e=H()!==Z.sideBySide;G.forEach((n,u)=>{n.classList.toggle(Ft,e&&u===ne)}),e&&G.length>0&&G[ne].scrollIntoView({behavior:"smooth",block:"center"})}function vs(e){je?.disconnect(),je=new MutationObserver(()=>{Le||Tt(e)}),je.observe(e,{childList:!0})}function Cs(){rn===null&&(rn=document.createElement("style"),document.head.appendChild(rn));const{light:e,dark:n}=mr[_n]??mr.github;rn.textContent=[`.${qe} { background: ${e} !important; color: inherit !important; }`,`.${Ft} { 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) {",` .${qe} { background: ${n} !important; }`,"}"].join(` -`)}window.__markeditPreviewInitialized__?console.error("MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior."):(Vl(),xu()?(typeof _.MarkEdit.onAppReady=="function"?_.MarkEdit.onAppReady(()=>{is(),setTimeout(()=>{nu()},2e3)}):setTimeout(()=>{rs()},4e3),(Pe==="automatic"||Pe==="quiet")&&setInterval(()=>{nu()},6048e5)):ps(Qe()),window.__markeditPreviewInitialized__=!0);window.MarkEditGetHtml??=yt;window.MarkEditRenderHtml??=es;window.__markeditPreviewSPI__={performSearch:xs,setSearchMatchIndex:ys,clearSearch:St,searchCounterInfo:ws};xu()&&(_.MarkEdit.addMainMenuItem({title:F("viewMode"),icon:Pt()?"eye":void 0,children:[{title:F("changeMode"),action:()=>{Zl(),tu()},key:or.key??"V",modifiers:or.modifiers??["Command"]},{separator:!0},Zn(F("editMode"),Z.edit),Zn(F("sideBySideMode"),Z.sideBySide),Zn(F("previewMode"),Z.preview),{separator:!0},..._s(),{separator:!0},{title:`${F("version")} 1.7.1`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.7.1")},{title:`${F("checkReleases")} (GitHub)`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest")},...ou()?[{title:F("updateAndRelaunch"),action:async()=>{const e=await vt();await Cu(e.tag_name)?_.MarkEdit.relaunchApp():_.MarkEdit.showAlert(F("failedToUpdate"))}}]:[]]}),_.MarkEdit.addExtension(Lt.EditorView.updateListener.of(e=>{e.docChanged&&(e.transactions.every(n=>n.annotation(kt))||(se.renderUpdater!==void 0&&clearTimeout(se.renderUpdater),se.renderUpdater=setTimeout(bn,500)))})),_.MarkEdit.onEditorReady(()=>{Vc&&Sl(_.MarkEdit.editorView.scrollDOM),Wl(),requestAnimationFrame(async()=>{document.visibilityState==="visible"&&H()===Z.preview&&typeof _.MarkEdit.getFileInfo=="function"&&(await _.MarkEdit.getFileInfo())?.filePath===void 0&&_.MarkEdit.editorAPI.getText().length===0&&Dn(Z.edit,!1)}),bn(),tu(),Ml(xt(),Qe()),se.keyDownListener!==void 0&&document.removeEventListener("keydown",se.keyDownListener),se.keyDownListener=e=>Yl(e),document.addEventListener("keydown",se.keyDownListener)}));function Zn(e,n){return{title:e,action:()=>{Dn(n),tu()},state:()=>({isSelected:H()===n})}}function _s(){const e=[{title:F("copyHtml"),action:Xl},{title:F("copyRichText"),action:Ql}];return typeof _.MarkEdit.showSavePanel>"u"?e:[{title:F("saveCleanHtml"),action:Kl},{title:F("saveStyledHtml"),action:Jl},...e]}function tu(){const e=Ct();e!==void 0&&(e.style.display=H()===Z.edit?"none":"")}const se={renderUpdater:void 0,keyDownListener:void 0}; +`;function bs(e){Oe(ps),document.body.classList.add("quicklook");const{toolbar:n,sourceButton:u,previewButton:r}=as();document.body.appendChild(n);const t=ms(e),o=hs(ke,e,n),a={previewPane:e,sourceButton:u,previewButton:r,refreshSeparator:o,ensureRendered:t.ensureRendered};u.addEventListener("click",()=>{hr("source"),Vn(a)}),r.addEventListener("click",()=>{hr("preview"),Vn(a)}),Vn(a),setTimeout(t.ensureRendered,0),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{e.querySelector(".mermaid")!==null&&(t.invalidate(),ke()==="preview"&&t.ensureRendered())}),ls(),ss(ke,e),ds(ke,e),fs(ke,e,n)}function Vn(e){const n=ke()==="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 ms(e){let n=!1,u;return{ensureRendered:()=>(n||u||(u=(async()=>{try{const o=pt(await yu(cs(),!1));e.innerHTML=`
${o}
`,e.querySelectorAll("a[href]").forEach(a=>{a.removeAttribute("href"),a.removeAttribute("target")}),ft(()=>{}),n=!0}catch(o){throw u=void 0,o}})()),u),invalidate:()=>{n=!1,u=void 0}}}var on={exports:{}};var gs=on.exports,br;function ks(){return br||(br=1,(function(e,n){(function(u,r){e.exports=r()})(gs,(function(){var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},r=function(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")},t=(function(){function d(h,c){for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:!0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,d),this.ctx=h,this.iframes=c,this.exclude=f,this.iframesTimeout=s}return t(d,[{key:"getContexts",value:function(){var c=void 0,f=[];return typeof this.ctx>"u"||!this.ctx?c=[]:NodeList.prototype.isPrototypeOf(this.ctx)?c=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?c=this.ctx:typeof this.ctx=="string"?c=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):c=[this.ctx],c.forEach(function(s){var p=f.filter(function(b){return b.contains(s)}).length>0;f.indexOf(s)===-1&&!p&&f.push(s)}),f}},{key:"getIframeContents",value:function(c,f){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},p=void 0;try{var b=c.contentWindow;if(p=b.document,!b||!p)throw new Error("iframe inaccessible")}catch{s()}p&&f(p)}},{key:"isIframeBlank",value:function(c){var f="about:blank",s=c.getAttribute("src").trim(),p=c.contentWindow.location.href;return p===f&&s!==f&&s}},{key:"observeIframeLoad",value:function(c,f,s){var p=this,b=!1,m=null,k=function g(){if(!b){b=!0,clearTimeout(m);try{p.isIframeBlank(c)||(c.removeEventListener("load",g),p.getIframeContents(c,f,s))}catch{s()}}};c.addEventListener("load",k),m=setTimeout(k,this.iframesTimeout)}},{key:"onIframeReady",value:function(c,f,s){try{c.contentWindow.document.readyState==="complete"?this.isIframeBlank(c)?this.observeIframeLoad(c,f,s):this.getIframeContents(c,f,s):this.observeIframeLoad(c,f,s)}catch{s()}}},{key:"waitForIframes",value:function(c,f){var s=this,p=0;this.forEachIframe(c,function(){return!0},function(b){p++,s.waitForIframes(b.querySelector("html"),function(){--p||f()})},function(b){b||f()})}},{key:"forEachIframe",value:function(c,f,s){var p=this,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=c.querySelectorAll("iframe"),k=m.length,g=0;m=Array.prototype.slice.call(m);var x=function(){--k<=0&&b(g)};k||x(),m.forEach(function(y){d.matches(y,p.exclude)?x():p.onIframeReady(y,function(w){f(y)&&(g++,s(w)),x()},x)})}},{key:"createIterator",value:function(c,f,s){return document.createNodeIterator(c,f,s,!1)}},{key:"createInstanceOnIframe",value:function(c){return new d(c.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(c,f,s){var p=c.compareDocumentPosition(s),b=Node.DOCUMENT_POSITION_PRECEDING;if(p&b)if(f!==null){var m=f.compareDocumentPosition(s),k=Node.DOCUMENT_POSITION_FOLLOWING;if(m&k)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(c){var f=c.previousNode(),s=void 0;return f===null?s=c.nextNode():s=c.nextNode()&&c.nextNode(),{prevNode:f,node:s}}},{key:"checkIframeFilter",value:function(c,f,s,p){var b=!1,m=!1;return p.forEach(function(k,g){k.val===s&&(b=g,m=k.handled)}),this.compareNodeIframe(c,f,s)?(b===!1&&!m?p.push({val:s,handled:!0}):b!==!1&&!m&&(p[b].handled=!0),!0):(b===!1&&p.push({val:s,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(c,f,s,p){var b=this;c.forEach(function(m){m.handled||b.getIframeContents(m.val,function(k){b.createInstanceOnIframe(k).forEachNode(f,s,p)})})}},{key:"iterateThroughNodes",value:function(c,f,s,p,b){for(var m=this,k=this.createIterator(f,c,p),g=[],x=[],y=void 0,w=void 0,v=function(){var A=m.getIteratorNode(k);return w=A.prevNode,y=A.node,y};v();)this.iframes&&this.forEachIframe(f,function(E){return m.checkIframeFilter(y,w,E,g)},function(E){m.createInstanceOnIframe(E).forEachNode(c,function(A){return x.push(A)},p)}),x.push(y);x.forEach(function(E){s(E)}),this.iframes&&this.handleOpenIframes(g,c,s,p),b()}},{key:"forEachNode",value:function(c,f,s){var p=this,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},m=this.getContexts(),k=m.length;k||b(),m.forEach(function(g){var x=function(){p.iterateThroughNodes(c,g,f,s,function(){--k<=0&&b()})};p.iframes?p.waitForIframes(g,x):x()})}}],[{key:"matches",value:function(c,f){var s=typeof f=="string"?[f]:f,p=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector;if(p){var b=!1;return s.every(function(m){return p.call(c,m)?(b=!0,!1):!0}),b}else return!1}}]),d})(),i=(function(){function d(h){r(this,d),this.ctx=h,this.ie=!1;var c=window.navigator.userAgent;(c.indexOf("MSIE")>-1||c.indexOf("Trident")>-1)&&(this.ie=!0)}return t(d,[{key:"log",value:function(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",s=this.opt.log;this.opt.debug&&(typeof s>"u"?"undefined":u(s))==="object"&&typeof s[f]=="function"&&s[f]("mark.js: "+c)}},{key:"escapeStr",value:function(c){return c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(c){return this.opt.wildcards!=="disabled"&&(c=this.setupWildcardsRegExp(c)),c=this.escapeStr(c),Object.keys(this.opt.synonyms).length&&(c=this.createSynonymsRegExp(c)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),this.opt.diacritics&&(c=this.createDiacriticsRegExp(c)),c=this.createMergedBlanksRegExp(c),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.createJoinersRegExp(c)),this.opt.wildcards!=="disabled"&&(c=this.createWildcardsRegExp(c)),c=this.createAccuracyRegExp(c),c}},{key:"createSynonymsRegExp",value:function(c){var f=this.opt.synonyms,s=this.opt.caseSensitive?"":"i",p=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var b in f)if(f.hasOwnProperty(b)){var m=f[b],k=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(b):this.escapeStr(b),g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m);k!==""&&g!==""&&(c=c.replace(new RegExp("("+this.escapeStr(k)+"|"+this.escapeStr(g)+")","gm"+s),p+("("+this.processSynomyms(k)+"|")+(this.processSynomyms(g)+")")+p))}return c}},{key:"processSynomyms",value:function(c){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(c=this.setupIgnoreJoinersRegExp(c)),c}},{key:"setupWildcardsRegExp",value:function(c){return c=c.replace(/(?:\\)*\?/g,function(f){return f.charAt(0)==="\\"?"?":""}),c.replace(/(?:\\)*\*/g,function(f){return f.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(c){var f=this.opt.wildcards==="withSpaces";return c.replace(/\u0001/g,f?"[\\S\\s]?":"\\S?").replace(/\u0002/g,f?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(c){return c.replace(/[^(|)\\]/g,function(f,s,p){var b=p.charAt(s+1);return/[(|)\\]/.test(b)||b===""?f:f+"\0"})}},{key:"createJoinersRegExp",value:function(c){var f=[],s=this.opt.ignorePunctuation;return Array.isArray(s)&&s.length&&f.push(this.escapeStr(s.join(""))),this.opt.ignoreJoiners&&f.push("\\u00ad\\u200b\\u200c\\u200d"),f.length?c.split(/\u0000+/).join("["+f.join("")+"]*"):c}},{key:"createDiacriticsRegExp",value:function(c){var f=this.opt.caseSensitive?"":"i",s=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ŽŻŹ"],p=[];return c.split("").forEach(function(b){s.every(function(m){if(m.indexOf(b)!==-1){if(p.indexOf(m)>-1)return!1;c=c.replace(new RegExp("["+m+"]","gm"+f),"["+m+"]"),p.push(m)}return!0})}),c}},{key:"createMergedBlanksRegExp",value:function(c){return c.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(c){var f=this,s="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",p=this.opt.accuracy,b=typeof p=="string"?p:p.value,m=typeof p=="string"?[]:p.limiters,k="";switch(m.forEach(function(g){k+="|"+f.escapeStr(g)}),b){case"partially":default:return"()("+c+")";case"complementary":return k="\\s"+(k||this.escapeStr(s)),"()([^"+k+"]*"+c+"[^"+k+"]*)";case"exactly":return"(^|\\s"+k+")("+c+")(?=$|\\s"+k+")"}}},{key:"getSeparatedKeywords",value:function(c){var f=this,s=[];return c.forEach(function(p){f.opt.separateWordSearch?p.split(" ").forEach(function(b){b.trim()&&s.indexOf(b)===-1&&s.push(b)}):p.trim()&&s.indexOf(p)===-1&&s.push(p)}),{keywords:s.sort(function(p,b){return b.length-p.length}),length:s.length}}},{key:"isNumeric",value:function(c){return Number(parseFloat(c))==c}},{key:"checkRanges",value:function(c){var f=this;if(!Array.isArray(c)||Object.prototype.toString.call(c[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(c),[];var s=[],p=0;return c.sort(function(b,m){return b.start-m.start}).forEach(function(b){var m=f.callNoMatchOnInvalidRanges(b,p),k=m.start,g=m.end,x=m.valid;x&&(b.start=k,b.length=g-k,s.push(b),p=g)}),s}},{key:"callNoMatchOnInvalidRanges",value:function(c,f){var s=void 0,p=void 0,b=!1;return c&&typeof c.start<"u"?(s=parseInt(c.start,10),p=s+parseInt(c.length,10),this.isNumeric(c.start)&&this.isNumeric(c.length)&&p-f>0&&p-s>0?b=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(c))),this.opt.noMatch(c))):(this.log("Ignoring invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:s,end:p,valid:b}}},{key:"checkWhitespaceRanges",value:function(c,f,s){var p=void 0,b=!0,m=s.length,k=f-m,g=parseInt(c.start,10)-k;return g=g>m?m:g,p=g+parseInt(c.length,10),p>m&&(p=m,this.log("End range automatically set to the max value of "+m)),g<0||p-g<0||g>m||p>m?(b=!1,this.log("Invalid range: "+JSON.stringify(c)),this.opt.noMatch(c)):s.substring(g,p).replace(/\s+/g,"")===""&&(b=!1,this.log("Skipping whitespace only range: "+JSON.stringify(c)),this.opt.noMatch(c)),{start:g,end:p,valid:b}}},{key:"getTextNodes",value:function(c){var f=this,s="",p=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(b){p.push({start:s.length,end:(s+=b.textContent).length,node:b})},function(b){return f.matchesExclude(b.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){c({value:s,nodes:p})})}},{key:"matchesExclude",value:function(c){return a.matches(c,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(c,f,s){var p=this.opt.element?this.opt.element:"mark",b=c.splitText(f),m=b.splitText(s-f),k=document.createElement(p);return k.setAttribute("data-markjs","true"),this.opt.className&&k.setAttribute("class",this.opt.className),k.textContent=b.textContent,b.parentNode.replaceChild(k,b),m}},{key:"wrapRangeInMappedTextNode",value:function(c,f,s,p,b){var m=this;c.nodes.every(function(k,g){var x=c.nodes[g+1];if(typeof x>"u"||x.start>f){if(!p(k.node))return!1;var y=f-k.start,w=(s>k.end?k.end:s)-k.start,v=c.value.substr(0,k.start),E=c.value.substr(w+k.start);if(k.node=m.wrapRangeInTextNode(k.node,y,w),c.value=v+E,c.nodes.forEach(function(A,L){L>=g&&(c.nodes[L].start>0&&L!==g&&(c.nodes[L].start-=w),c.nodes[L].end-=w)}),s-=w,b(k.node.previousSibling,k.start),s>k.end)f=k.end;else return!1}return!0})}},{key:"wrapMatches",value:function(c,f,s,p,b){var m=this,k=f===0?0:f+1;this.getTextNodes(function(g){g.nodes.forEach(function(x){x=x.node;for(var y=void 0;(y=c.exec(x.textContent))!==null&&y[k]!=="";)if(s(y[k],x)){var w=y.index;if(k!==0)for(var v=1;v{G=Array.from(e.querySelectorAll(`.${qe}`)),ne=G.length>0?Math.min(ne,G.length-1):0,Mt(),Le=!1};i.unmark({done:()=>{if(a)try{const d=r?"":"i";i.markRegExp(new RegExp(u,d),{className:qe,done:l})}catch{Le=!1,ne=0,G=[]}else i.mark(u,{className:qe,caseSensitive:r,diacritics:o,separateWordSearch:!1,accuracy:t?"exactly":"partially",done:l})}})}function Mt(){const e=H()!==Z.sideBySide;G.forEach((n,u)=>{n.classList.toggle(Ft,e&&u===ne)}),e&&G.length>0&&G[ne].scrollIntoView({behavior:"smooth",block:"center"})}function Cs(e){je?.disconnect(),je=new MutationObserver(()=>{Le||Tt(e)}),je.observe(e,{childList:!0})}function _s(){rn===null&&(rn=document.createElement("style"),document.head.appendChild(rn));const{light:e,dark:n}=mr[_n]??mr.github;rn.textContent=[`.${qe} { background: ${e} !important; color: inherit !important; }`,`.${Ft} { 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) {",` .${qe} { background: ${n} !important; }`,"}"].join(` +`)}window.__markeditPreviewInitialized__?console.error("MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior."):(Vl(),xu()?(typeof _.MarkEdit.onAppReady=="function"?_.MarkEdit.onAppReady(()=>{is(),setTimeout(()=>{nu()},2e3)}):setTimeout(()=>{rs()},4e3),(Pe==="automatic"||Pe==="quiet")&&setInterval(()=>{nu()},6048e5)):bs(Qe()),window.__markeditPreviewInitialized__=!0);window.MarkEditGetHtml??=yt;window.MarkEditRenderHtml??=es;window.__markeditPreviewSPI__={performSearch:ys,setSearchMatchIndex:ws,clearSearch:St,searchCounterInfo:vs};xu()&&(_.MarkEdit.addMainMenuItem({title:F("viewMode"),icon:Pt()?"eye":void 0,children:[{title:F("changeMode"),action:()=>{Zl(),tu()},key:or.key??"V",modifiers:or.modifiers??["Command"]},{separator:!0},Zn(F("editMode"),Z.edit),Zn(F("sideBySideMode"),Z.sideBySide),Zn(F("previewMode"),Z.preview),{separator:!0},...Es(),{separator:!0},{title:`${F("version")} 1.7.1`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.7.1")},{title:`${F("checkReleases")} (GitHub)`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest")},...ou()?[{title:F("updateAndRelaunch"),action:async()=>{const e=await vt();await Cu(e.tag_name)?_.MarkEdit.relaunchApp():_.MarkEdit.showAlert(F("failedToUpdate"))}}]:[]]}),_.MarkEdit.addExtension(Lt.EditorView.updateListener.of(e=>{e.docChanged&&(e.transactions.every(n=>n.annotation(kt))||(se.renderUpdater!==void 0&&clearTimeout(se.renderUpdater),se.renderUpdater=setTimeout(bn,500)))})),_.MarkEdit.onEditorReady(()=>{Vc&&Sl(_.MarkEdit.editorView.scrollDOM),Wl(),requestAnimationFrame(async()=>{document.visibilityState==="visible"&&H()===Z.preview&&typeof _.MarkEdit.getFileInfo=="function"&&(await _.MarkEdit.getFileInfo())?.filePath===void 0&&_.MarkEdit.editorAPI.getText().length===0&&Dn(Z.edit,!1)}),bn(),tu(),Ml(xt(),Qe()),se.keyDownListener!==void 0&&document.removeEventListener("keydown",se.keyDownListener),se.keyDownListener=e=>Yl(e),document.addEventListener("keydown",se.keyDownListener)}));function Zn(e,n){return{title:e,action:()=>{Dn(n),tu()},state:()=>({isSelected:H()===n})}}function Es(){const e=[{title:F("copyHtml"),action:Xl},{title:F("copyRichText"),action:Ql}];return typeof _.MarkEdit.showSavePanel>"u"?e:[{title:F("saveCleanHtml"),action:Kl},{title:F("saveStyledHtml"),action:Jl},...e]}function tu(){const e=Ct();e!==void 0&&(e.style.display=H()===Z.edit?"none":"")}const se={renderUpdater:void 0,keyDownListener:void 0}; diff --git a/dist/markedit-preview.js b/dist/markedit-preview.js index 0428a39..6ac9009 100644 --- a/dist/markedit-preview.js +++ b/dist/markedit-preview.js @@ -1990,7 +1990,7 @@ ${r.map(([a,i])=>`${e(a)}${NM(i,e)}`).joi ${e} @media (prefers-color-scheme: dark) { ${r} - }`);break}return n}const EMe={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 na(t){return TMe[t]}const SMe=["default","zh-CN","zh-TW"],TMe=EMe[(()=>{const t=navigator.language;return SMe.includes(t)?t:"default"})()];function gU(){return typeof Hr.MarkEdit.addExtension=="function"}async function mU(t,e=!0){return await pue,Di.render(t,{lineInfo:e})}async function xMe(t,e=!1){const r=Di.utils.escapeHtml(t.trim());return fue("mermaid",r,e)}async function CMe(t,e=!1){const n=(await Promise.resolve().then(()=>vFe)).default.renderToString(t.trim(),{displayMode:!0,throwOnError:!1});return fue("katex",n,e)}function due(t){Promise.resolve().then(()=>ret).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 hue(t){const e=n=>``,r=['',`
${t} @@ -2010,7 +2010,7 @@ ${t} mermaid.initialize({ theme: isDark ? "dark" : undefined }); } <\/script>`;r.push(a)}return r.join(` -`)}const fue=async(t,e,r)=>{await pue;const a=r?` data-line-from="0" data-line-to="${Hr.MarkEdit.editorView.state.doc.lines-1}"`:"";return`
${e}
`},Di=wl(VLe,{html:!0,breaks:!0,linkify:!0,...WLe}),IM=[];Di.use(MLe());Di.use(Nm);Di.use(A9e,{matcher:t=>!t.startsWith("#"),attrs:{target:"_blank",rel:"noopener"}});Di.use(B9e);Di.use(z9e,{enabled:gU(),label:!0});Di.use(G9e);IM.push(Promise.resolve().then(()=>Gnt).then(t=>{Di.use(t.default,{auto:qLe})})),IM.push(Promise.resolve().then(()=>zit).then(t=>{const e=JK?{delimiters:JK}:{};Di.use(t.default,e)}));const wMe=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"]),pue=Promise.all(IM).then(()=>{for(const t of wMe){const e=Di.renderer.rules[t];Di.renderer.rules[t]=(r,n,a,i,s)=>{const o=r[n];return i.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,a,i,s):s.renderToken(r,n,a)}}{const t=Di.renderer.rules.fence;Di.renderer.rules.fence=(e,r,n,a,i)=>{const s=e[r],o=s.content.trim(),l=s.info.trim();s.attrSet("data-code",o+` +`)}const fue=async(t,e,r)=>{await pue;const a=r?` data-line-from="0" data-line-to="${Hr.MarkEdit.editorView.state.doc.lines-1}"`:"";return`
${e}
`},Di=wl(VLe,{html:!0,breaks:!0,linkify:!0,...WLe}),IM=[];Di.use(MLe());Di.use(Nm);Di.use(A9e,{matcher:t=>!t.startsWith("#"),attrs:{target:"_blank",rel:"noopener"}});Di.use(B9e);Di.use(z9e,{enabled:gU(),label:!0});Di.use(G9e);IM.push(Promise.resolve().then(()=>qnt).then(t=>{Di.use(t.default,{auto:qLe})})),IM.push(Promise.resolve().then(()=>Uit).then(t=>{const e=JK?{delimiters:JK}:{};Di.use(t.default,e)}));const wMe=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"]),pue=Promise.all(IM).then(()=>{for(const t of wMe){const e=Di.renderer.rules[t];Di.renderer.rules[t]=(r,n,a,i,s)=>{const o=r[n];return i.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,a,i,s):s.renderToken(r,n,a)}}{const t=Di.renderer.rules.fence;Di.renderer.rules.fence=(e,r,n,a,i)=>{const s=e[r],o=s.content.trim(),l=s.info.trim();s.attrSet("data-code",o+` `);const u=i.renderAttrs(s),d=Di.utils.escapeHtml(o);return l==="mermaid"?`
${d}
`:t!==void 0?t(e,r,n,a,i):`
${Di.utils.escapeHtml(o)}
`}}for(const t of["fence","code_block"]){const e=Di.renderer.rules[t];Di.renderer.rules[t]=(r,n,a,i,s)=>`
${e===void 0?s.renderToken(r,n,a):e(r,n,a,i,s)} @@ -2111,7 +2111,7 @@ ${t} display: none !important; }`);const t=document.createElement("div");t.className=yp.dividerViewClass,JE.appendChild(t),JE.className=yp.gutterViewClass,kC.appendChild(JE),Li.className=yp.previewPaneClass,kC.appendChild(Li),document.addEventListener("keydown",n=>{if(!n.metaKey||n.key!=="a")return;const a=Hr.MarkEdit.editorView?.contentDOM??document.querySelector(".cm-content");document.activeElement!==a&&BNe(Li)}),new MutationObserver(iX).observe(Li,{attributes:!0,attributeFilter:["style","class"]}),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{iX(),document.querySelector(".mermaid")!==null&&AC()}),typeof Hr.MarkEdit.getFileInfo=="function"&&typeof Hr.MarkEdit.openFile=="function"&&Li.addEventListener("click",tPe),Li.addEventListener("click",rPe)}function pk(t,e=!0){const r=Al();mE.viewMode=t,t!==r&&localStorage.setItem(fk.viewModeCacheKey,String(t));const n=Hr.MarkEdit.editorView;t===0?n.focus():t===2&&n.contentDOM.blur(),t===1?(kC.classList.add(yp.containerClass),mE.splitter??=YMe({columnGutters:[{track:1,element:JE}],minSize:150,onDragStart:()=>aX.disabled=!1,onDragEnd:()=>aX.disabled=!0})):(kC.classList.remove(yp.containerClass),mE.splitter?.destroy(),mE.splitter=void 0),t===2?Li.classList.add("overlay"):Li.classList.remove("overlay"),e&&AC()}function WMe(){const t=[0,...HLe.map(n=>{switch(n){case"side-by-side":return 1;case"preview":return 2;default:return}}).filter(n=>n!==void 0)],e=t.indexOf(Al()),r=e===-1?0:(e+1)%t.length;pk(t[r])}function KMe(){const t=localStorage.getItem(fk.viewModeCacheKey);if(t===null)return;const e=Number(t);Al()!==e&&pk(e,!0)}function Al(){return mE.viewMode}async function AC(){if(Al()===0)return;const t=gue(await gk());Li.innerHTML=t,due(()=>{OM(bue(),cT(),!1);const e=localStorage.getItem(fk.previewPageZoomKey);e!==null&&(Li.style.zoom=e)})}function XMe(t){if(Al()===0||Al()===1&&Hr.MarkEdit.editorView.hasFocus||!t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)return;const e=Number(Li.style.zoom)||1,r=n=>String(Math.min(Math.max(n,.5),3));switch(t.key){case"-":Li.style.zoom=r(e-.1);break;case"=":Li.style.zoom=r(e+.1);break;case"0":Li.style.zoom="1";break;default:return}localStorage.setItem(fk.previewPageZoomKey,Li.style.zoom),t.preventDefault(),t.stopPropagation()}function jMe(){Sue(!1)}function QMe(){Sue(!0)}async function ZMe(){const t=await gk(!1);await navigator.clipboard.writeText(t)}async function JMe(){const t=await gk(!1),e=new ClipboardItem({"text/html":new Blob([t],{type:"text/html"}),"text/plain":new Blob([Li.innerText],{type:"text/plain"})});await navigator.clipboard.write([e])}function bue(){return Hr.MarkEdit.editorView.scrollDOM}function cT(){return Li}async function Eue(t){const e=await gk(!1);return t?await hue(e):` ${e}`}async function ePe(t,e){const r=await mU(t,!1);return e?await hue(r):` -${r}`}async function gk(t=!0){const e=Hr.MarkEdit.editorAPI.getText();{const r=await(async()=>{if(typeof Hr.MarkEdit.getFileInfo!="function")return;const n=await Hr.MarkEdit.getFileInfo();return MNe(n?.filePath)})();if(r===".mmd"||r===".mermaid")return await xMe(e,t);if(r===".tex")return await CMe(e,t)}return await mU(e,t)}function iX(){const t=getComputedStyle(Li).backgroundColor;JE.style.background=`linear-gradient(to right, transparent 50%, ${t} 50%)`}async function Sue(t){const e=await(async()=>{const n=await Hr.MarkEdit.getFileInfo();return n===void 0?`${na("untitled")}.html`:`${LNe(n.filePath)}.html`})(),r=await Eue(t);Hr.MarkEdit.showSavePanel({fileName:e,string:r})}async function tPe(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 Hr.MarkEdit.getFileInfo())?.parentPath;if(n!==void 0){t.preventDefault(),t.stopPropagation();try{const a=Rm(n,decodeURIComponent(r));await Hr.MarkEdit.openFile(a)}catch(a){console.error("Failed to open file:",a)}}}function rPe(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=Hr.MarkEdit.editorAPI,a=n.getLineRange(Qm(r).from),i=BMe(n.getText(a));if(i===null){e.checked=!e.checked,console.error("Failed to resolve task toggle");return}const s=a.from+i.offset;Hr.MarkEdit.editorView.dispatch({changes:{from:s,to:s+1,insert:i.replacement},annotations:_ue.of(!0)})}const mE={viewMode:0,splitter:void 0};async function DM(){if(QE==="never")return;const t=await Tue();typeof t.tag_name=="string"&&t.name!=="1.7.1"&&(wue().has(t.name)||(QE==="automatic"&&tU()?await _U(t.tag_name):QE==="quiet"?(LM.pendingRelease=t,xue(t)):aPe(t)))}async function nPe(){const t=Date.now(),e=Number(localStorage.getItem(Z_.lastCheckCacheKey)??"0");if(!(t-e<2592e5))try{await DM(),localStorage.setItem(Z_.lastCheckCacheKey,String(t))}catch(r){console.error("Failed to check for updates:",r)}}async function Tue(){return await(await fetch(Z_.latestReleaseURL)).json()}async function _U(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)}`,a=`${Z_.rawBaseURL}${n}/dist/${r}markedit-preview.js`,i=await fetch(a);if(!i.ok)return console.error(`Failed to download the latest build from ${a}`),!1;const s=await i.text();return await Hr.MarkEdit.createFile({path:e,string:s,overwrites:!0})}catch(e){return console.error("Failed to download the latest build:",e),!1}}function xue(t=LM.pendingRelease){if(t===void 0)return;const e=document.querySelector(`.${yp.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=yp.updatePillClass,r.textContent=na("update"),r.style.display=Al()===Yc.edit?"none":"",r.addEventListener("webkitmouseforcedown",n=>{n.preventDefault()}),r.addEventListener("click",()=>{const{title:n,actions:a}=Cue(t,()=>{LM.pendingRelease=void 0,r.remove()}),[i,...s]=a,o=r.getBoundingClientRect(),l={x:o.left,y:o.bottom+10};Hr.MarkEdit.showContextMenu([{title:n},i,{separator:!0},...s],l)}),document.body.appendChild(r),r}async function aPe(t){const{title:e,actions:r}=Cue(t),n=await Hr.MarkEdit.showAlert({title:e,message:t.body,buttons:r.map(a=>a.title)});r[n]?.action?.()}function Cue(t,e=()=>{}){const r=`MarkEdit-preview ${t.name} ${na("newVersionAvailable")}`,n=[...tU()?[{title:na("updateAndRelaunch"),action:async()=>{await _U(t.tag_name)?Hr.MarkEdit.relaunchApp():Hr.MarkEdit.showAlert(na("failedToUpdate")),e()}}]:[],{title:na("viewReleasePage"),action:()=>{open(t.html_url),e()}},{title:na("remindMeLater"),action:e},{title:na("skipThisVersion"),action:()=>{const a=wue();a.add(t.name),localStorage.setItem(Z_.skippedCacheKey,JSON.stringify([...a])),e()}}];return{title:r,actions:n}}function wue(){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"},LM={pendingRelease:void 0},MM="markedit-preview",sX=`${MM}.js`;function iPe(t){const{destExists:e,bundleInfo:r,currentVersion:n}=t,a=r?.version===n,i=r?.fullBuild===!0;return!(e&&a&&i)}async function sPe(){try{const t=Hr.MarkEdit.getDirectoryPath("documents"),e=Hr.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__:Rm(t,`scripts/${sX}`);if(await Hr.MarkEdit.getFileInfo(r)===void 0){console.error(`Source file not found at ${r}`);return}const a=r.split("/").pop()??sX,i=Rm(e,"Shared/scripts"),s=Rm(i,a),o=await Hr.MarkEdit.getFileInfo(s)!==void 0,l=Rm(e,"Shared/metadata.json"),u=await $Ne(l),d=u[MM];if(!iPe({destExists:o,bundleInfo:d,currentVersion:"1.7.1"}))return;const h=await Hr.MarkEdit.getFileContent(r);if(h===void 0){console.error(`Failed to read content from ${r}`);return}await Hr.MarkEdit.createFile({path:i,isDirectory:!0}),await Hr.MarkEdit.createFile({path:s,string:h,overwrites:!0}),await Hr.MarkEdit.createFile({path:l,string:JSON.stringify({...u,[MM]:{version:"1.7.1",fullBuild:!0}},null,2),overwrites:!0})}catch(t){console.error("Failed to copy the current file to shared container:",t)}}function oPe(){const t=oX(na("source")),e=oX(na("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 oX(t){const e=document.createElement("button");return e.textContent=t,e.type="button",e.className="quicklook-segment",e.setAttribute("role","tab"),e}function cm(){if(um!==void 0)return um;try{um=localStorage.getItem(kue)==="preview"?"preview":"source"}catch{console.error("Failed to read quick look mode from localStorage"),um="source"}return um}function lX(t){um=t;try{localStorage.setItem(kue,t)}catch{console.error("Failed to write quick look mode to localStorage")}}let um;const kue="ui.quicklook-mode";function lPe(){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 cPe(t,e){const r=window,n=r.pinchZoomTarget;r.pinchZoomTarget=()=>{if(t()!=="preview")return n?.()??null;const a=e.querySelector(".quicklook-content");return a!==null?{scroller:e,inner:a}:null}}function uPe(t,e){let r;const n=window,a={start:n.startDragging,update:n.updateDragging,cancel:n.cancelDragging},i=()=>{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}=i(),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"){a.start?.(o);return}const{scrollbarTop:l,scrollbarHeight:u}=i(),d=cX(e,o);r=d-l,(dl+u)&&s(d,u*.5,"smooth")},n.updateDragging=o=>{if(t()!=="preview"){a.update?.(o);return}r!==void 0&&s(cX(e,o),r)},n.cancelDragging=()=>{if(t()!=="preview"){a.cancel?.();return}r=void 0}}function dPe(t,e,r){r.addEventListener("wheel",n=>{const a=t()==="preview"?e:document.querySelector(".cm-scroller");a!==null&&(a.scrollTop+=n.deltaY,a.scrollLeft+=n.deltaX,n.preventDefault())},{passive:!1})}function hPe(t,e,r){const n=document.querySelector(".cm-scroller"),a=()=>{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",a,{passive:!0}),n?.addEventListener("scroll",a,{passive:!0}),a}function cX(t,e){return e-t.getBoundingClientRect().top}const fPe=`body { +${r}`}async function gk(t=!0){const e=Hr.MarkEdit.editorAPI.getText();{const r=await(async()=>{if(typeof Hr.MarkEdit.getFileInfo!="function")return;const n=await Hr.MarkEdit.getFileInfo();return MNe(n?.filePath)})();if(r===".mmd"||r===".mermaid")return await xMe(e,t);if(r===".tex")return await CMe(e,t)}return await mU(e,t)}function iX(){const t=getComputedStyle(Li).backgroundColor;JE.style.background=`linear-gradient(to right, transparent 50%, ${t} 50%)`}async function Sue(t){const e=await(async()=>{const n=await Hr.MarkEdit.getFileInfo();return n===void 0?`${na("untitled")}.html`:`${LNe(n.filePath)}.html`})(),r=await Eue(t);Hr.MarkEdit.showSavePanel({fileName:e,string:r})}async function tPe(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 Hr.MarkEdit.getFileInfo())?.parentPath;if(n!==void 0){t.preventDefault(),t.stopPropagation();try{const a=Rm(n,decodeURIComponent(r));await Hr.MarkEdit.openFile(a)}catch(a){console.error("Failed to open file:",a)}}}function rPe(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=Hr.MarkEdit.editorAPI,a=n.getLineRange(Qm(r).from),i=BMe(n.getText(a));if(i===null){e.checked=!e.checked,console.error("Failed to resolve task toggle");return}const s=a.from+i.offset;Hr.MarkEdit.editorView.dispatch({changes:{from:s,to:s+1,insert:i.replacement},annotations:_ue.of(!0)})}const mE={viewMode:0,splitter:void 0};async function DM(){if(QE==="never")return;const t=await Tue();typeof t.tag_name=="string"&&t.name!=="1.7.1"&&(wue().has(t.name)||(QE==="automatic"&&tU()?await _U(t.tag_name):QE==="quiet"?(LM.pendingRelease=t,xue(t)):aPe(t)))}async function nPe(){const t=Date.now(),e=Number(localStorage.getItem(Z_.lastCheckCacheKey)??"0");if(!(t-e<2592e5))try{await DM(),localStorage.setItem(Z_.lastCheckCacheKey,String(t))}catch(r){console.error("Failed to check for updates:",r)}}async function Tue(){return await(await fetch(Z_.latestReleaseURL)).json()}async function _U(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)}`,a=`${Z_.rawBaseURL}${n}/dist/${r}markedit-preview.js`,i=await fetch(a);if(!i.ok)return console.error(`Failed to download the latest build from ${a}`),!1;const s=await i.text();return await Hr.MarkEdit.createFile({path:e,string:s,overwrites:!0})}catch(e){return console.error("Failed to download the latest build:",e),!1}}function xue(t=LM.pendingRelease){if(t===void 0)return;const e=document.querySelector(`.${yp.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=yp.updatePillClass,r.textContent=na("update"),r.style.display=Al()===Yc.edit?"none":"",r.addEventListener("webkitmouseforcedown",n=>{n.preventDefault()}),r.addEventListener("click",()=>{const{title:n,actions:a}=Cue(t,()=>{LM.pendingRelease=void 0,r.remove()}),[i,...s]=a,o=r.getBoundingClientRect(),l={x:o.left,y:o.bottom+10};Hr.MarkEdit.showContextMenu([{title:n},i,{separator:!0},...s],l)}),document.body.appendChild(r),r}async function aPe(t){const{title:e,actions:r}=Cue(t),n=await Hr.MarkEdit.showAlert({title:e,message:t.body,buttons:r.map(a=>a.title)});r[n]?.action?.()}function Cue(t,e=()=>{}){const r=`MarkEdit-preview ${t.name} ${na("newVersionAvailable")}`,n=[...tU()?[{title:na("updateAndRelaunch"),action:async()=>{await _U(t.tag_name)?Hr.MarkEdit.relaunchApp():Hr.MarkEdit.showAlert(na("failedToUpdate")),e()}}]:[],{title:na("viewReleasePage"),action:()=>{open(t.html_url),e()}},{title:na("remindMeLater"),action:e},{title:na("skipThisVersion"),action:()=>{const a=wue();a.add(t.name),localStorage.setItem(Z_.skippedCacheKey,JSON.stringify([...a])),e()}}];return{title:r,actions:n}}function wue(){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"},LM={pendingRelease:void 0},MM="markedit-preview",sX=`${MM}.js`;function iPe(t){const{destExists:e,bundleInfo:r,currentVersion:n}=t,a=r?.version===n,i=r?.fullBuild===!0;return!(e&&a&&i)}async function sPe(){try{const t=Hr.MarkEdit.getDirectoryPath("documents"),e=Hr.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__:Rm(t,`scripts/${sX}`);if(await Hr.MarkEdit.getFileInfo(r)===void 0){console.error(`Source file not found at ${r}`);return}const a=r.split("/").pop()??sX,i=Rm(e,"Shared/scripts"),s=Rm(i,a),o=await Hr.MarkEdit.getFileInfo(s)!==void 0,l=Rm(e,"Shared/metadata.json"),u=await $Ne(l),d=u[MM];if(!iPe({destExists:o,bundleInfo:d,currentVersion:"1.7.1"}))return;const h=await Hr.MarkEdit.getFileContent(r);if(h===void 0){console.error(`Failed to read content from ${r}`);return}await Hr.MarkEdit.createFile({path:i,isDirectory:!0}),await Hr.MarkEdit.createFile({path:s,string:h,overwrites:!0}),await Hr.MarkEdit.createFile({path:l,string:JSON.stringify({...u,[MM]:{version:"1.7.1",fullBuild:!0}},null,2),overwrites:!0})}catch(t){console.error("Failed to copy the current file to shared container:",t)}}function oPe(){const t=oX(na("source")),e=oX(na("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 oX(t){const e=document.createElement("button");return e.textContent=t,e.type="button",e.className="quicklook-segment",e.setAttribute("role","tab"),e}function cm(){if(um!==void 0)return um;try{um=localStorage.getItem(kue)==="preview"?"preview":"source"}catch{console.error("Failed to read quick look mode from localStorage"),um="source"}return um}function lX(t){um=t;try{localStorage.setItem(kue,t)}catch{console.error("Failed to write quick look mode to localStorage")}}let um;const kue="ui.quicklook-mode";function lPe(){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 cPe(){document.addEventListener("webkitmouseforcewillbegin",t=>{const e=t.target;e instanceof Element&&e.closest("a")!==null&&t.preventDefault()})}function uPe(t,e){const r=window,n=r.pinchZoomTarget;r.pinchZoomTarget=()=>{if(t()!=="preview")return n?.()??null;const a=e.querySelector(".quicklook-content");return a!==null?{scroller:e,inner:a}:null}}function dPe(t,e){let r;const n=window,a={start:n.startDragging,update:n.updateDragging,cancel:n.cancelDragging},i=()=>{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}=i(),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"){a.start?.(o);return}const{scrollbarTop:l,scrollbarHeight:u}=i(),d=cX(e,o);r=d-l,(dl+u)&&s(d,u*.5,"smooth")},n.updateDragging=o=>{if(t()!=="preview"){a.update?.(o);return}r!==void 0&&s(cX(e,o),r)},n.cancelDragging=()=>{if(t()!=="preview"){a.cancel?.();return}r=void 0}}function hPe(t,e,r){r.addEventListener("wheel",n=>{const a=t()==="preview"?e:document.querySelector(".cm-scroller");a!==null&&(a.scrollTop+=n.deltaY,a.scrollLeft+=n.deltaX,n.preventDefault())},{passive:!1})}function fPe(t,e,r){const n=document.querySelector(".cm-scroller"),a=()=>{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",a,{passive:!0}),n?.addEventListener("scroll",a,{passive:!0}),a}function cX(t,e){return e-t.getBoundingClientRect().top}const pPe=`body { --editor-inset-top: 34px; } @@ -2128,9 +2128,14 @@ ${r}`}async function gk(t=!0){const e=Hr.MarkEdit.editorAPI.getText();{const r=a /* Links are not interactive in quicklook */ .quicklook .markdown-body a, -.quicklook .markdown-body a:hover { +.quicklook .markdown-body a:hover, +.quicklook .markdown-body a:not([href]) { + color: var(--fgColor-accent); text-decoration: none; cursor: text; + user-select: text; + -webkit-user-select: text; + -webkit-touch-callout: none; } .quicklook .markdown-body.overlay { @@ -2304,8 +2309,8 @@ ${r}`}async function gk(t=!0){const e=Hr.MarkEdit.editorAPI.getText();{const r=a box-shadow: 0 0 3px rgba(0, 0, 0, 0.45); } } -`;function pPe(t){wd(fPe),document.body.classList.add("quicklook");const{toolbar:e,sourceButton:r,previewButton:n}=oPe();document.body.appendChild(e);const a=gPe(t),i=hPe(cm,t,e),s={previewPane:t,sourceButton:r,previewButton:n,refreshSeparator:i,ensureRendered:a.ensureRendered};r.addEventListener("click",()=>{lX("source"),X8(s)}),n.addEventListener("click",()=>{lX("preview"),X8(s)}),X8(s),setTimeout(a.ensureRendered,0),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{t.querySelector(".mermaid")!==null&&(a.invalidate(),cm()==="preview"&&a.ensureRendered())}),cPe(cm,t),uPe(cm,t),dPe(cm,t,e)}function X8(t){const e=cm()==="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 gPe(t){let e=!1,r;return{ensureRendered:()=>(e||r||(r=(async()=>{try{const i=gue(await mU(lPe(),!1));t.innerHTML=`
${i}
`,due(()=>{}),e=!0}catch(i){throw r=void 0,i}})()),r),invalidate:()=>{e=!1,r=void 0}}}var X3={exports:{}};var mPe=X3.exports,uX;function vPe(){return uX||(uX=1,(function(t,e){(function(r,n){t.exports=n()})(mPe,(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")},a=(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 a(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,v=null,y=function b(){if(!m){m=!0,clearTimeout(v);try{g.isIframeBlank(h)||(h.removeEventListener("load",b),g.getIframeContents(h,f,p))}catch{p()}}};h.addEventListener("load",y),v=setTimeout(y,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(){},v=h.querySelectorAll("iframe"),y=v.length,b=0;v=Array.prototype.slice.call(v);var _=function(){--y<=0&&m(b)};y||_(),v.forEach(function(S){u.matches(S,g.exclude)?_():g.onIframeReady(S,function(x){f(S)&&(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 v=f.compareDocumentPosition(p),y=Node.DOCUMENT_POSITION_FOLLOWING;if(v&y)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,v=!1;return g.forEach(function(y,b){y.val===p&&(m=b,v=y.handled)}),this.compareNodeIframe(h,f,p)?(m===!1&&!v?g.push({val:p,handled:!0}):m!==!1&&!v&&(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(v){v.handled||m.getIframeContents(v.val,function(y){m.createInstanceOnIframe(y).forEachNode(f,p,g)})})}},{key:"iterateThroughNodes",value:function(h,f,p,g,m){for(var v=this,y=this.createIterator(f,h,g),b=[],_=[],S=void 0,x=void 0,C=function(){var w=v.getIteratorNode(y);return x=w.prevNode,S=w.node,S};C();)this.iframes&&this.forEachIframe(f,function(T){return v.checkIframeFilter(S,x,T,b)},function(T){v.createInstanceOnIframe(T).forEachNode(h,function(w){return _.push(w)},g)}),_.push(S);_.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(){},v=this.getContexts(),y=v.length;y||m(),v.forEach(function(b){var _=function(){g.iterateThroughNodes(h,b,f,p,function(){--y<=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(v){return g.call(h,v)?(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 a(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 v=f[m],y=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m),b=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(v):this.escapeStr(v);y!==""&&b!==""&&(h=h.replace(new RegExp("("+this.escapeStr(y)+"|"+this.escapeStr(b)+")","gm"+p),g+("("+this.processSynomyms(y)+"|")+(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(v){if(v.indexOf(m)!==-1){if(g.indexOf(v)>-1)return!1;h=h.replace(new RegExp("["+v+"]","gm"+f),"["+v+"]"),g.push(v)}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,v=typeof g=="string"?[]:g.limiters,y="";switch(v.forEach(function(b){y+="|"+f.escapeStr(b)}),m){case"partially":default:return"()("+h+")";case"complementary":return y="\\s"+(y||this.escapeStr(p)),"()([^"+y+"]*"+h+"[^"+y+"]*)";case"exactly":return"(^|\\s"+y+")("+h+")(?=$|\\s"+y+")"}}},{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,v){return m.start-v.start}).forEach(function(m){var v=f.callNoMatchOnInvalidRanges(m,g),y=v.start,b=v.end,_=v.valid;_&&(m.start=y,m.length=b-y,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,v=p.length,y=f-v,b=parseInt(h.start,10)-y;return b=b>v?v:b,g=b+parseInt(h.length,10),g>v&&(g=v,this.log("End range automatically set to the max value of "+v)),b<0||g-b<0||b>v||g>v?(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),v=m.splitText(p-f),y=document.createElement(g);return y.setAttribute("data-markjs","true"),this.opt.className&&y.setAttribute("class",this.opt.className),y.textContent=m.textContent,m.parentNode.replaceChild(y,m),v}},{key:"wrapRangeInMappedTextNode",value:function(h,f,p,g,m){var v=this;h.nodes.every(function(y,b){var _=h.nodes[b+1];if(typeof _>"u"||_.start>f){if(!g(y.node))return!1;var S=f-y.start,x=(p>y.end?y.end:p)-y.start,C=h.value.substr(0,y.start),T=h.value.substr(x+y.start);if(y.node=v.wrapRangeInTextNode(y.node,S,x),h.value=C+T,h.nodes.forEach(function(w,R){R>=b&&(h.nodes[R].start>0&&R!==b&&(h.nodes[R].start-=x),h.nodes[R].end-=x)}),p-=x,m(y.node.previousSibling,y.start),p>y.end)f=y.end;else return!1}return!0})}},{key:"wrapMatches",value:function(h,f,p,g,m){var v=this,y=f===0?0:f+1;this.getTextNodes(function(b){b.nodes.forEach(function(_){_=_.node;for(var S=void 0;(S=h.exec(_.textContent))!==null&&S[y]!=="";)if(p(S[y],_)){var x=S.index;if(y!==0)for(var C=1;C{Jl=Array.from(t.querySelectorAll(`.${eS}`)),y0=Jl.length>0?Math.min(y0,Jl.length-1):0,Oue(),vE=!1};o.unmark({done:()=>{if(s)try{const u=n?"":"i";o.markRegExp(new RegExp(r,u),{className:eS,done:l})}catch{vE=!1,y0=0,Jl=[]}else o.mark(r,{className:eS,caseSensitive:n,diacritics:i,separateWordSearch:!1,accuracy:a?"exactly":"partially",done:l})}})}function Oue(){const t=Al()!==Yc.sideBySide;Jl.forEach((e,r)=>{e.classList.toggle(Rue,t&&r===y0)}),t&&Jl.length>0&&Jl[y0].scrollIntoView({behavior:"smooth",block:"center"})}function SPe(t){tS?.disconnect(),tS=new MutationObserver(()=>{vE||Iue(t)}),tS.observe(t,{childList:!0})}function TPe(){bx===null&&(bx=document.createElement("style"),document.head.appendChild(bx));const{light:t,dark:e}=dX[hk]??dX.github;bx.textContent=[`.${eS} { 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) {",` .${eS} { background: ${e} !important; }`,"}"].join(` -`)}window.__markeditPreviewInitialized__?console.error("MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior."):(VMe(),gU()?(typeof Hr.MarkEdit.onAppReady=="function"?Hr.MarkEdit.onAppReady(()=>{sPe(),setTimeout(()=>{DM()},2e3)}):setTimeout(()=>{nPe()},4e3),(QE==="automatic"||QE==="quiet")&&setInterval(()=>{DM()},6048e5)):pPe(cT()),window.__markeditPreviewInitialized__=!0);window.MarkEditGetHtml??=Eue;window.MarkEditRenderHtml??=ePe;window.__markeditPreviewSPI__={performSearch:_Pe,setSearchMatchIndex:bPe,clearSearch:Nue,searchCounterInfo:EPe};gU()&&(Hr.MarkEdit.addMainMenuItem({title:na("viewMode"),icon:DNe()?"eye":void 0,children:[{title:na("changeMode"),action:()=>{WMe(),PM()},key:eX.key??"V",modifiers:eX.modifiers??["Command"]},{separator:!0},j8(na("editMode"),Yc.edit),j8(na("sideBySideMode"),Yc.sideBySide),j8(na("previewMode"),Yc.preview),{separator:!0},...xPe(),{separator:!0},{title:`${na("version")} 1.7.1`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.7.1")},{title:`${na("checkReleases")} (GitHub)`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest")},...tU()?[{title:na("updateAndRelaunch"),action:async()=>{const t=await Tue();await _U(t.tag_name)?Hr.MarkEdit.relaunchApp():Hr.MarkEdit.showAlert(na("failedToUpdate"))}}]:[]]}),Hr.MarkEdit.addExtension(NNe.EditorView.updateListener.of(t=>{t.docChanged&&(t.transactions.every(e=>e.annotation(_ue))||(sf.renderUpdater!==void 0&&clearTimeout(sf.renderUpdater),sf.renderUpdater=setTimeout(AC,500)))})),Hr.MarkEdit.onEditorReady(()=>{YLe&&RMe(Hr.MarkEdit.editorView.scrollDOM),KMe(),requestAnimationFrame(async()=>{document.visibilityState==="visible"&&Al()===Yc.preview&&typeof Hr.MarkEdit.getFileInfo=="function"&&(await Hr.MarkEdit.getFileInfo())?.filePath===void 0&&Hr.MarkEdit.editorAPI.getText().length===0&&pk(Yc.edit,!1)}),AC(),PM(),IMe(bue(),cT()),sf.keyDownListener!==void 0&&document.removeEventListener("keydown",sf.keyDownListener),sf.keyDownListener=t=>XMe(t),document.addEventListener("keydown",sf.keyDownListener)}));function j8(t,e){return{title:t,action:()=>{pk(e),PM()},state:()=>({isSelected:Al()===e})}}function xPe(){const t=[{title:na("copyHtml"),action:ZMe},{title:na("copyRichText"),action:JMe}];return typeof Hr.MarkEdit.showSavePanel>"u"?t:[{title:na("saveCleanHtml"),action:jMe},{title:na("saveStyledHtml"),action:QMe},...t]}function PM(){const t=xue();t!==void 0&&(t.style.display=Al()===Yc.edit?"none":"")}const sf={renderUpdater:void 0,keyDownListener:void 0};let Vt=class Due extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15t.replace(CPe,"-$1").toLowerCase(),kPe={"&":"&",">":">","<":"<",'"':""","'":"'"},APe=/[&><"']/g,us=t=>String(t).replace(APe,e=>kPe[e]),j3=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?j3(t.body[0]):t:t.type==="font"?j3(t.body):t,RPe=new Set(["mathord","textord","atom"]),H0=t=>RPe.has(j3(t).type),NPe=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"},RC={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 IPe(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 OPe(t){if(t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return IPe(e)}function DPe(t,e,r,n){var a=r[e];t[e]=a!==void 0?n.processor?n.processor(a):a:OPe(n)}let EU=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(RC)){var n=RC[r];n&&DPe(this,r,e,n)}}reportNonstrict(e,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Vt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);a==="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 '"+a+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var a=this.strict;if(typeof a=="function")try{a=a(e,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="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 '"+a+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=NPe(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},md=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 zc[LPe[this.id]]}sub(){return zc[MPe[this.id]]}fracNum(){return zc[PPe[this.id]]}fracDen(){return zc[BPe[this.id]]}cramp(){return zc[FPe[this.id]]}text(){return zc[$Pe[this.id]]}isTight(){return this.size>=2}};var SU=0,NC=1,Jm=2,_0=3,GS=4,_l=5,J_=6,Ms=7,zc=[new md(SU,0,!1),new md(NC,0,!0),new md(Jm,1,!1),new md(_0,1,!0),new md(GS,2,!1),new md(_l,2,!0),new md(J_,3,!1),new md(Ms,3,!0)],LPe=[GS,_l,GS,_l,J_,Ms,J_,Ms],MPe=[_l,_l,_l,_l,Ms,Ms,Ms,Ms],PPe=[Jm,_0,GS,_l,J_,Ms,J_,Ms],BPe=[_0,_0,_l,_l,Ms,Ms,Ms,Ms],FPe=[NC,NC,_0,_0,_l,_l,Ms,Ms],$Pe=[SU,NC,Jm,_0,Jm,_0,Jm,_0],jr={DISPLAY:zc[SU],TEXT:zc[Jm],SCRIPT:zc[GS],SCRIPTSCRIPT:zc[J_]},BM=[{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 zPe(t){for(var e=0;e=a[0]&&t<=a[1])return r.name}return null}var Q3=[];BM.forEach(t=>t.blocks.forEach(e=>Q3.push(...e)));function Lue(t){for(var e=0;e=Q3[e]&&t<=Q3[e+1])return!0;return!1}var yi=t=>t+" "+t,Ug=80,UPe=function(e,r){return"M95,"+(622+e+r)+` +`;function gPe(t){wd(pPe),document.body.classList.add("quicklook");const{toolbar:e,sourceButton:r,previewButton:n}=oPe();document.body.appendChild(e);const a=mPe(t),i=fPe(cm,t,e),s={previewPane:t,sourceButton:r,previewButton:n,refreshSeparator:i,ensureRendered:a.ensureRendered};r.addEventListener("click",()=>{lX("source"),X8(s)}),n.addEventListener("click",()=>{lX("preview"),X8(s)}),X8(s),setTimeout(a.ensureRendered,0),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{t.querySelector(".mermaid")!==null&&(a.invalidate(),cm()==="preview"&&a.ensureRendered())}),cPe(),uPe(cm,t),dPe(cm,t),hPe(cm,t,e)}function X8(t){const e=cm()==="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 mPe(t){let e=!1,r;return{ensureRendered:()=>(e||r||(r=(async()=>{try{const i=gue(await mU(lPe(),!1));t.innerHTML=`
${i}
`,t.querySelectorAll("a[href]").forEach(s=>{s.removeAttribute("href"),s.removeAttribute("target")}),due(()=>{}),e=!0}catch(i){throw r=void 0,i}})()),r),invalidate:()=>{e=!1,r=void 0}}}var X3={exports:{}};var vPe=X3.exports,uX;function yPe(){return uX||(uX=1,(function(t,e){(function(r,n){t.exports=n()})(vPe,(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")},a=(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 a(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,v=null,y=function b(){if(!m){m=!0,clearTimeout(v);try{g.isIframeBlank(h)||(h.removeEventListener("load",b),g.getIframeContents(h,f,p))}catch{p()}}};h.addEventListener("load",y),v=setTimeout(y,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(){},v=h.querySelectorAll("iframe"),y=v.length,b=0;v=Array.prototype.slice.call(v);var _=function(){--y<=0&&m(b)};y||_(),v.forEach(function(S){u.matches(S,g.exclude)?_():g.onIframeReady(S,function(x){f(S)&&(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 v=f.compareDocumentPosition(p),y=Node.DOCUMENT_POSITION_FOLLOWING;if(v&y)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,v=!1;return g.forEach(function(y,b){y.val===p&&(m=b,v=y.handled)}),this.compareNodeIframe(h,f,p)?(m===!1&&!v?g.push({val:p,handled:!0}):m!==!1&&!v&&(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(v){v.handled||m.getIframeContents(v.val,function(y){m.createInstanceOnIframe(y).forEachNode(f,p,g)})})}},{key:"iterateThroughNodes",value:function(h,f,p,g,m){for(var v=this,y=this.createIterator(f,h,g),b=[],_=[],S=void 0,x=void 0,C=function(){var w=v.getIteratorNode(y);return x=w.prevNode,S=w.node,S};C();)this.iframes&&this.forEachIframe(f,function(T){return v.checkIframeFilter(S,x,T,b)},function(T){v.createInstanceOnIframe(T).forEachNode(h,function(w){return _.push(w)},g)}),_.push(S);_.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(){},v=this.getContexts(),y=v.length;y||m(),v.forEach(function(b){var _=function(){g.iterateThroughNodes(h,b,f,p,function(){--y<=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(v){return g.call(h,v)?(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 a(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 v=f[m],y=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(m):this.escapeStr(m),b=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(v):this.escapeStr(v);y!==""&&b!==""&&(h=h.replace(new RegExp("("+this.escapeStr(y)+"|"+this.escapeStr(b)+")","gm"+p),g+("("+this.processSynomyms(y)+"|")+(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(v){if(v.indexOf(m)!==-1){if(g.indexOf(v)>-1)return!1;h=h.replace(new RegExp("["+v+"]","gm"+f),"["+v+"]"),g.push(v)}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,v=typeof g=="string"?[]:g.limiters,y="";switch(v.forEach(function(b){y+="|"+f.escapeStr(b)}),m){case"partially":default:return"()("+h+")";case"complementary":return y="\\s"+(y||this.escapeStr(p)),"()([^"+y+"]*"+h+"[^"+y+"]*)";case"exactly":return"(^|\\s"+y+")("+h+")(?=$|\\s"+y+")"}}},{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,v){return m.start-v.start}).forEach(function(m){var v=f.callNoMatchOnInvalidRanges(m,g),y=v.start,b=v.end,_=v.valid;_&&(m.start=y,m.length=b-y,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,v=p.length,y=f-v,b=parseInt(h.start,10)-y;return b=b>v?v:b,g=b+parseInt(h.length,10),g>v&&(g=v,this.log("End range automatically set to the max value of "+v)),b<0||g-b<0||b>v||g>v?(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),v=m.splitText(p-f),y=document.createElement(g);return y.setAttribute("data-markjs","true"),this.opt.className&&y.setAttribute("class",this.opt.className),y.textContent=m.textContent,m.parentNode.replaceChild(y,m),v}},{key:"wrapRangeInMappedTextNode",value:function(h,f,p,g,m){var v=this;h.nodes.every(function(y,b){var _=h.nodes[b+1];if(typeof _>"u"||_.start>f){if(!g(y.node))return!1;var S=f-y.start,x=(p>y.end?y.end:p)-y.start,C=h.value.substr(0,y.start),T=h.value.substr(x+y.start);if(y.node=v.wrapRangeInTextNode(y.node,S,x),h.value=C+T,h.nodes.forEach(function(w,R){R>=b&&(h.nodes[R].start>0&&R!==b&&(h.nodes[R].start-=x),h.nodes[R].end-=x)}),p-=x,m(y.node.previousSibling,y.start),p>y.end)f=y.end;else return!1}return!0})}},{key:"wrapMatches",value:function(h,f,p,g,m){var v=this,y=f===0?0:f+1;this.getTextNodes(function(b){b.nodes.forEach(function(_){_=_.node;for(var S=void 0;(S=h.exec(_.textContent))!==null&&S[y]!=="";)if(p(S[y],_)){var x=S.index;if(y!==0)for(var C=1;C{Jl=Array.from(t.querySelectorAll(`.${eS}`)),y0=Jl.length>0?Math.min(y0,Jl.length-1):0,Oue(),vE=!1};o.unmark({done:()=>{if(s)try{const u=n?"":"i";o.markRegExp(new RegExp(r,u),{className:eS,done:l})}catch{vE=!1,y0=0,Jl=[]}else o.mark(r,{className:eS,caseSensitive:n,diacritics:i,separateWordSearch:!1,accuracy:a?"exactly":"partially",done:l})}})}function Oue(){const t=Al()!==Yc.sideBySide;Jl.forEach((e,r)=>{e.classList.toggle(Rue,t&&r===y0)}),t&&Jl.length>0&&Jl[y0].scrollIntoView({behavior:"smooth",block:"center"})}function TPe(t){tS?.disconnect(),tS=new MutationObserver(()=>{vE||Iue(t)}),tS.observe(t,{childList:!0})}function xPe(){bx===null&&(bx=document.createElement("style"),document.head.appendChild(bx));const{light:t,dark:e}=dX[hk]??dX.github;bx.textContent=[`.${eS} { 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) {",` .${eS} { background: ${e} !important; }`,"}"].join(` +`)}window.__markeditPreviewInitialized__?console.error("MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior."):(VMe(),gU()?(typeof Hr.MarkEdit.onAppReady=="function"?Hr.MarkEdit.onAppReady(()=>{sPe(),setTimeout(()=>{DM()},2e3)}):setTimeout(()=>{nPe()},4e3),(QE==="automatic"||QE==="quiet")&&setInterval(()=>{DM()},6048e5)):gPe(cT()),window.__markeditPreviewInitialized__=!0);window.MarkEditGetHtml??=Eue;window.MarkEditRenderHtml??=ePe;window.__markeditPreviewSPI__={performSearch:bPe,setSearchMatchIndex:EPe,clearSearch:Nue,searchCounterInfo:SPe};gU()&&(Hr.MarkEdit.addMainMenuItem({title:na("viewMode"),icon:DNe()?"eye":void 0,children:[{title:na("changeMode"),action:()=>{WMe(),PM()},key:eX.key??"V",modifiers:eX.modifiers??["Command"]},{separator:!0},j8(na("editMode"),Yc.edit),j8(na("sideBySideMode"),Yc.sideBySide),j8(na("previewMode"),Yc.preview),{separator:!0},...CPe(),{separator:!0},{title:`${na("version")} 1.7.1`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.7.1")},{title:`${na("checkReleases")} (GitHub)`,action:()=>open("https://github.com/MarkEdit-app/MarkEdit-preview/releases/latest")},...tU()?[{title:na("updateAndRelaunch"),action:async()=>{const t=await Tue();await _U(t.tag_name)?Hr.MarkEdit.relaunchApp():Hr.MarkEdit.showAlert(na("failedToUpdate"))}}]:[]]}),Hr.MarkEdit.addExtension(NNe.EditorView.updateListener.of(t=>{t.docChanged&&(t.transactions.every(e=>e.annotation(_ue))||(sf.renderUpdater!==void 0&&clearTimeout(sf.renderUpdater),sf.renderUpdater=setTimeout(AC,500)))})),Hr.MarkEdit.onEditorReady(()=>{YLe&&RMe(Hr.MarkEdit.editorView.scrollDOM),KMe(),requestAnimationFrame(async()=>{document.visibilityState==="visible"&&Al()===Yc.preview&&typeof Hr.MarkEdit.getFileInfo=="function"&&(await Hr.MarkEdit.getFileInfo())?.filePath===void 0&&Hr.MarkEdit.editorAPI.getText().length===0&&pk(Yc.edit,!1)}),AC(),PM(),IMe(bue(),cT()),sf.keyDownListener!==void 0&&document.removeEventListener("keydown",sf.keyDownListener),sf.keyDownListener=t=>XMe(t),document.addEventListener("keydown",sf.keyDownListener)}));function j8(t,e){return{title:t,action:()=>{pk(e),PM()},state:()=>({isSelected:Al()===e})}}function CPe(){const t=[{title:na("copyHtml"),action:ZMe},{title:na("copyRichText"),action:JMe}];return typeof Hr.MarkEdit.showSavePanel>"u"?t:[{title:na("saveCleanHtml"),action:jMe},{title:na("saveStyledHtml"),action:QMe},...t]}function PM(){const t=xue();t!==void 0&&(t.style.display=Al()===Yc.edit?"none":"")}const sf={renderUpdater:void 0,keyDownListener:void 0};let Vt=class Due extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15t.replace(wPe,"-$1").toLowerCase(),APe={"&":"&",">":">","<":"<",'"':""","'":"'"},RPe=/[&><"']/g,us=t=>String(t).replace(RPe,e=>APe[e]),j3=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?j3(t.body[0]):t:t.type==="font"?j3(t.body):t,NPe=new Set(["mathord","textord","atom"]),H0=t=>NPe.has(j3(t).type),IPe=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"},RC={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 OPe(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 DPe(t){if(t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return OPe(e)}function LPe(t,e,r,n){var a=r[e];t[e]=a!==void 0?n.processor?n.processor(a):a:DPe(n)}let EU=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(RC)){var n=RC[r];n&&LPe(this,r,e,n)}}reportNonstrict(e,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Vt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);a==="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 '"+a+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var a=this.strict;if(typeof a=="function")try{a=a(e,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="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 '"+a+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=IPe(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},md=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 zc[MPe[this.id]]}sub(){return zc[PPe[this.id]]}fracNum(){return zc[BPe[this.id]]}fracDen(){return zc[FPe[this.id]]}cramp(){return zc[$Pe[this.id]]}text(){return zc[zPe[this.id]]}isTight(){return this.size>=2}};var SU=0,NC=1,Jm=2,_0=3,GS=4,_l=5,J_=6,Ms=7,zc=[new md(SU,0,!1),new md(NC,0,!0),new md(Jm,1,!1),new md(_0,1,!0),new md(GS,2,!1),new md(_l,2,!0),new md(J_,3,!1),new md(Ms,3,!0)],MPe=[GS,_l,GS,_l,J_,Ms,J_,Ms],PPe=[_l,_l,_l,_l,Ms,Ms,Ms,Ms],BPe=[Jm,_0,GS,_l,J_,Ms,J_,Ms],FPe=[_0,_0,_l,_l,Ms,Ms,Ms,Ms],$Pe=[NC,NC,_0,_0,_l,_l,Ms,Ms],zPe=[SU,NC,Jm,_0,Jm,_0,Jm,_0],jr={DISPLAY:zc[SU],TEXT:zc[Jm],SCRIPT:zc[GS],SCRIPTSCRIPT:zc[J_]},BM=[{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 UPe(t){for(var e=0;e=a[0]&&t<=a[1])return r.name}return null}var Q3=[];BM.forEach(t=>t.blocks.forEach(e=>Q3.push(...e)));function Lue(t){for(var e=0;e=Q3[e]&&t<=Q3[e+1])return!0;return!1}var yi=t=>t+" "+t,Ug=80,GPe=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 @@ -2316,7 +2321,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"},GPe=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"},qPe=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+` @@ -2326,7 +2331,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"},qPe=function(e,r){return"M983 "+(10+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},YPe=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 @@ -2335,7 +2340,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"},YPe=function(e,r){return"M424,"+(2398+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},HPe=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 @@ -2345,18 +2350,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"},HPe=function(e,r){return"M473,"+(2713+e+r)+` +h400000v`+(40+e)+"h-400000z"},VPe=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"},VPe=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},WPe=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` +606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},WPe=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},KPe=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` H742v`+a+`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"},KPe=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=UPe(r,Ug);break;case"sqrtSize1":a=GPe(r,Ug);break;case"sqrtSize2":a=qPe(r,Ug);break;case"sqrtSize3":a=YPe(r,Ug);break;case"sqrtSize4":a=HPe(r,Ug);break;case"sqrtTall":a=WPe(r,Ug,n)}return a},XPe=function(e,r){switch(e){case"⎜":return yi("M291 0 H417 V"+r+" H291z");case"∣":return yi("M145 0 H188 V"+r+" H145z");case"∥":return yi("M145 0 H188 V"+r+" H145z")+yi("M367 0 H410 V"+r+" H367z");case"⎟":return yi("M457 0 H583 V"+r+" H457z");case"⎢":return yi("M319 0 H403 V"+r+" H319z");case"⎥":return yi("M263 0 H347 V"+r+" H263z");case"⎪":return yi("M384 0 H504 V"+r+" H384z");case"⏐":return yi("M312 0 H355 V"+r+" H312z");case"‖":return yi("M257 0 H300 V"+r+" H257z")+yi("M478 0 H521 V"+r+" H478z");default:return""}},hX={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},XPe=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=GPe(r,Ug);break;case"sqrtSize1":a=qPe(r,Ug);break;case"sqrtSize2":a=YPe(r,Ug);break;case"sqrtSize3":a=HPe(r,Ug);break;case"sqrtSize4":a=VPe(r,Ug);break;case"sqrtTall":a=KPe(r,Ug,n)}return a},jPe=function(e,r){switch(e){case"⎜":return yi("M291 0 H417 V"+r+" H291z");case"∣":return yi("M145 0 H188 V"+r+" H145z");case"∥":return yi("M145 0 H188 V"+r+" H145z")+yi("M367 0 H410 V"+r+" H367z");case"⎟":return yi("M457 0 H583 V"+r+" H457z");case"⎢":return yi("M319 0 H403 V"+r+" H319z");case"⎥":return yi("M263 0 H347 V"+r+" H263z");case"⎪":return yi("M384 0 H504 V"+r+" H384z");case"⏐":return yi("M312 0 H355 V"+r+" H312z");case"‖":return yi("M257 0 H300 V"+r+" H257z")+yi("M478 0 H521 V"+r+" H478z");default:return""}},hX={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 @@ -2527,7 +2532,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`},jPe=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`},QPe=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 @@ -2555,16 +2560,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 QPe(t){return"toText"in t}let Wb=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(QPe(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}};var FM={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},ZPe={ex:!0,em:!0,mu:!0},Mue=function(e){return typeof e!="string"&&(e=e.unit),e in FM||e in ZPe||e==="ex"},wa=function(e,r){var n;if(e.unit in FM)n=FM[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new Vt("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},Jt=function(e){return+e.toFixed(4)+"em"},sh=function(e){return e.filter(r=>r).join(" ")},TU=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=wPe(n)+":"+a+";")}return r},Pue=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 a=r.getColor();a&&(this.style.color=a)}},Bue=function(e){var r=document.createElement(e);r.className=sh(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a/=\x00-\x1f]/,Fue=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+us(sh(this.classes))+'"');var n=TU(this.style);n&&(r+=' style="'+us(n)+'"');for(var a of Object.keys(this.attributes)){if(JPe.test(a))throw new Vt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+us(this.attributes[a])+'"'}r+=">";for(var i=0;i",r};let Kb=class{constructor(e,r,n,a){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,Pue.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Bue.call(this,"span")}toMarkup(){return Fue.call(this,"span")}},mk=class{constructor(e,r,n,a){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,Pue.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Bue.call(this,"a")}toMarkup(){return Fue.call(this,"a")}},eBe=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=''+us(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=Jt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=sh(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+=TU(this.style),n&&(e=!0,r+=' style="'+us(n)+'"');var a=us(this.text);return e?(r+=">",r+=a,r+="",r):a}},C0=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 a=0;a':''}},$M=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 aBe=t=>t instanceof Kb||t instanceof mk||t instanceof Wb,Kc={"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]}},Ex={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]},fX={Å:"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 $ue(t,e){Kc[t]=e}function xU(t,e,r){if(!Kc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Kc[e][n];if(!a&&t[0]in fX&&(n=fX[t[0]].charCodeAt(0),a=Kc[e][n]),!a&&r==="text"&&Lue(n)&&(a=Kc[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Q8={};function iBe(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Q8[e]){var r=Q8[e]={cssEmPerMu:Ex.quad[e]/18};for(var n in Ex)Ex.hasOwnProperty(n)&&(r[n]=Ex[n][e])}return Q8[e]}var da={math:{},text:{}};function H(t,e,r,n,a,i){da[t][a]={font:e,group:r,replace:n},i&&n&&(da[t][n]=da[t][a])}var Q="math",Pt="text",ue="main",Ue="ams",ma="accent-token",cr="bin",Zs="close",Xb="inner",Rr="mathord",ui="op-token",Vo="open",uT="punct",We="rel",V0="spacing",Je="textord";H(Q,ue,We,"≡","\\equiv",!0);H(Q,ue,We,"≺","\\prec",!0);H(Q,ue,We,"≻","\\succ",!0);H(Q,ue,We,"∼","\\sim",!0);H(Q,ue,We,"⊥","\\perp");H(Q,ue,We,"⪯","\\preceq",!0);H(Q,ue,We,"⪰","\\succeq",!0);H(Q,ue,We,"≃","\\simeq",!0);H(Q,ue,We,"∣","\\mid",!0);H(Q,ue,We,"≪","\\ll",!0);H(Q,ue,We,"≫","\\gg",!0);H(Q,ue,We,"≍","\\asymp",!0);H(Q,ue,We,"∥","\\parallel");H(Q,ue,We,"⋈","\\bowtie",!0);H(Q,ue,We,"⌣","\\smile",!0);H(Q,ue,We,"⊑","\\sqsubseteq",!0);H(Q,ue,We,"⊒","\\sqsupseteq",!0);H(Q,ue,We,"≐","\\doteq",!0);H(Q,ue,We,"⌢","\\frown",!0);H(Q,ue,We,"∋","\\ni",!0);H(Q,ue,We,"∝","\\propto",!0);H(Q,ue,We,"⊢","\\vdash",!0);H(Q,ue,We,"⊣","\\dashv",!0);H(Q,ue,We,"∋","\\owns");H(Q,ue,uT,".","\\ldotp");H(Q,ue,uT,"⋅","\\cdotp");H(Q,ue,uT,"⋅","·");H(Pt,ue,Je,"⋅","·");H(Q,ue,Je,"#","\\#");H(Pt,ue,Je,"#","\\#");H(Q,ue,Je,"&","\\&");H(Pt,ue,Je,"&","\\&");H(Q,ue,Je,"ℵ","\\aleph",!0);H(Q,ue,Je,"∀","\\forall",!0);H(Q,ue,Je,"ℏ","\\hbar",!0);H(Q,ue,Je,"∃","\\exists",!0);H(Q,ue,Je,"∇","\\nabla",!0);H(Q,ue,Je,"♭","\\flat",!0);H(Q,ue,Je,"ℓ","\\ell",!0);H(Q,ue,Je,"♮","\\natural",!0);H(Q,ue,Je,"♣","\\clubsuit",!0);H(Q,ue,Je,"℘","\\wp",!0);H(Q,ue,Je,"♯","\\sharp",!0);H(Q,ue,Je,"♢","\\diamondsuit",!0);H(Q,ue,Je,"ℜ","\\Re",!0);H(Q,ue,Je,"♡","\\heartsuit",!0);H(Q,ue,Je,"ℑ","\\Im",!0);H(Q,ue,Je,"♠","\\spadesuit",!0);H(Q,ue,Je,"§","\\S",!0);H(Pt,ue,Je,"§","\\S");H(Q,ue,Je,"¶","\\P",!0);H(Pt,ue,Je,"¶","\\P");H(Q,ue,Je,"†","\\dag");H(Pt,ue,Je,"†","\\dag");H(Pt,ue,Je,"†","\\textdagger");H(Q,ue,Je,"‡","\\ddag");H(Pt,ue,Je,"‡","\\ddag");H(Pt,ue,Je,"‡","\\textdaggerdbl");H(Q,ue,Zs,"⎱","\\rmoustache",!0);H(Q,ue,Vo,"⎰","\\lmoustache",!0);H(Q,ue,Zs,"⟯","\\rgroup",!0);H(Q,ue,Vo,"⟮","\\lgroup",!0);H(Q,ue,cr,"∓","\\mp",!0);H(Q,ue,cr,"⊖","\\ominus",!0);H(Q,ue,cr,"⊎","\\uplus",!0);H(Q,ue,cr,"⊓","\\sqcap",!0);H(Q,ue,cr,"∗","\\ast");H(Q,ue,cr,"⊔","\\sqcup",!0);H(Q,ue,cr,"◯","\\bigcirc",!0);H(Q,ue,cr,"∙","\\bullet",!0);H(Q,ue,cr,"‡","\\ddagger");H(Q,ue,cr,"≀","\\wr",!0);H(Q,ue,cr,"⨿","\\amalg");H(Q,ue,cr,"&","\\And");H(Q,ue,We,"⟵","\\longleftarrow",!0);H(Q,ue,We,"⇐","\\Leftarrow",!0);H(Q,ue,We,"⟸","\\Longleftarrow",!0);H(Q,ue,We,"⟶","\\longrightarrow",!0);H(Q,ue,We,"⇒","\\Rightarrow",!0);H(Q,ue,We,"⟹","\\Longrightarrow",!0);H(Q,ue,We,"↔","\\leftrightarrow",!0);H(Q,ue,We,"⟷","\\longleftrightarrow",!0);H(Q,ue,We,"⇔","\\Leftrightarrow",!0);H(Q,ue,We,"⟺","\\Longleftrightarrow",!0);H(Q,ue,We,"↦","\\mapsto",!0);H(Q,ue,We,"⟼","\\longmapsto",!0);H(Q,ue,We,"↗","\\nearrow",!0);H(Q,ue,We,"↩","\\hookleftarrow",!0);H(Q,ue,We,"↪","\\hookrightarrow",!0);H(Q,ue,We,"↘","\\searrow",!0);H(Q,ue,We,"↼","\\leftharpoonup",!0);H(Q,ue,We,"⇀","\\rightharpoonup",!0);H(Q,ue,We,"↙","\\swarrow",!0);H(Q,ue,We,"↽","\\leftharpoondown",!0);H(Q,ue,We,"⇁","\\rightharpoondown",!0);H(Q,ue,We,"↖","\\nwarrow",!0);H(Q,ue,We,"⇌","\\rightleftharpoons",!0);H(Q,Ue,We,"≮","\\nless",!0);H(Q,Ue,We,"","\\@nleqslant");H(Q,Ue,We,"","\\@nleqq");H(Q,Ue,We,"⪇","\\lneq",!0);H(Q,Ue,We,"≨","\\lneqq",!0);H(Q,Ue,We,"","\\@lvertneqq");H(Q,Ue,We,"⋦","\\lnsim",!0);H(Q,Ue,We,"⪉","\\lnapprox",!0);H(Q,Ue,We,"⊀","\\nprec",!0);H(Q,Ue,We,"⋠","\\npreceq",!0);H(Q,Ue,We,"⋨","\\precnsim",!0);H(Q,Ue,We,"⪹","\\precnapprox",!0);H(Q,Ue,We,"≁","\\nsim",!0);H(Q,Ue,We,"","\\@nshortmid");H(Q,Ue,We,"∤","\\nmid",!0);H(Q,Ue,We,"⊬","\\nvdash",!0);H(Q,Ue,We,"⊭","\\nvDash",!0);H(Q,Ue,We,"⋪","\\ntriangleleft");H(Q,Ue,We,"⋬","\\ntrianglelefteq",!0);H(Q,Ue,We,"⊊","\\subsetneq",!0);H(Q,Ue,We,"","\\@varsubsetneq");H(Q,Ue,We,"⫋","\\subsetneqq",!0);H(Q,Ue,We,"","\\@varsubsetneqq");H(Q,Ue,We,"≯","\\ngtr",!0);H(Q,Ue,We,"","\\@ngeqslant");H(Q,Ue,We,"","\\@ngeqq");H(Q,Ue,We,"⪈","\\gneq",!0);H(Q,Ue,We,"≩","\\gneqq",!0);H(Q,Ue,We,"","\\@gvertneqq");H(Q,Ue,We,"⋧","\\gnsim",!0);H(Q,Ue,We,"⪊","\\gnapprox",!0);H(Q,Ue,We,"⊁","\\nsucc",!0);H(Q,Ue,We,"⋡","\\nsucceq",!0);H(Q,Ue,We,"⋩","\\succnsim",!0);H(Q,Ue,We,"⪺","\\succnapprox",!0);H(Q,Ue,We,"≆","\\ncong",!0);H(Q,Ue,We,"","\\@nshortparallel");H(Q,Ue,We,"∦","\\nparallel",!0);H(Q,Ue,We,"⊯","\\nVDash",!0);H(Q,Ue,We,"⋫","\\ntriangleright");H(Q,Ue,We,"⋭","\\ntrianglerighteq",!0);H(Q,Ue,We,"","\\@nsupseteqq");H(Q,Ue,We,"⊋","\\supsetneq",!0);H(Q,Ue,We,"","\\@varsupsetneq");H(Q,Ue,We,"⫌","\\supsetneqq",!0);H(Q,Ue,We,"","\\@varsupsetneqq");H(Q,Ue,We,"⊮","\\nVdash",!0);H(Q,Ue,We,"⪵","\\precneqq",!0);H(Q,Ue,We,"⪶","\\succneqq",!0);H(Q,Ue,We,"","\\@nsubseteqq");H(Q,Ue,cr,"⊴","\\unlhd");H(Q,Ue,cr,"⊵","\\unrhd");H(Q,Ue,We,"↚","\\nleftarrow",!0);H(Q,Ue,We,"↛","\\nrightarrow",!0);H(Q,Ue,We,"⇍","\\nLeftarrow",!0);H(Q,Ue,We,"⇏","\\nRightarrow",!0);H(Q,Ue,We,"↮","\\nleftrightarrow",!0);H(Q,Ue,We,"⇎","\\nLeftrightarrow",!0);H(Q,Ue,We,"△","\\vartriangle");H(Q,Ue,Je,"ℏ","\\hslash");H(Q,Ue,Je,"▽","\\triangledown");H(Q,Ue,Je,"◊","\\lozenge");H(Q,Ue,Je,"Ⓢ","\\circledS");H(Q,Ue,Je,"®","\\circledR");H(Pt,Ue,Je,"®","\\circledR");H(Q,Ue,Je,"∡","\\measuredangle",!0);H(Q,Ue,Je,"∄","\\nexists");H(Q,Ue,Je,"℧","\\mho");H(Q,Ue,Je,"Ⅎ","\\Finv",!0);H(Q,Ue,Je,"⅁","\\Game",!0);H(Q,Ue,Je,"‵","\\backprime");H(Q,Ue,Je,"▲","\\blacktriangle");H(Q,Ue,Je,"▼","\\blacktriangledown");H(Q,Ue,Je,"■","\\blacksquare");H(Q,Ue,Je,"⧫","\\blacklozenge");H(Q,Ue,Je,"★","\\bigstar");H(Q,Ue,Je,"∢","\\sphericalangle",!0);H(Q,Ue,Je,"∁","\\complement",!0);H(Q,Ue,Je,"ð","\\eth",!0);H(Pt,ue,Je,"ð","ð");H(Q,Ue,Je,"╱","\\diagup");H(Q,Ue,Je,"╲","\\diagdown");H(Q,Ue,Je,"□","\\square");H(Q,Ue,Je,"□","\\Box");H(Q,Ue,Je,"◊","\\Diamond");H(Q,Ue,Je,"¥","\\yen",!0);H(Pt,Ue,Je,"¥","\\yen",!0);H(Q,Ue,Je,"✓","\\checkmark",!0);H(Pt,Ue,Je,"✓","\\checkmark");H(Q,Ue,Je,"ℶ","\\beth",!0);H(Q,Ue,Je,"ℸ","\\daleth",!0);H(Q,Ue,Je,"ℷ","\\gimel",!0);H(Q,Ue,Je,"ϝ","\\digamma",!0);H(Q,Ue,Je,"ϰ","\\varkappa");H(Q,Ue,Vo,"┌","\\@ulcorner",!0);H(Q,Ue,Zs,"┐","\\@urcorner",!0);H(Q,Ue,Vo,"└","\\@llcorner",!0);H(Q,Ue,Zs,"┘","\\@lrcorner",!0);H(Q,Ue,We,"≦","\\leqq",!0);H(Q,Ue,We,"⩽","\\leqslant",!0);H(Q,Ue,We,"⪕","\\eqslantless",!0);H(Q,Ue,We,"≲","\\lesssim",!0);H(Q,Ue,We,"⪅","\\lessapprox",!0);H(Q,Ue,We,"≊","\\approxeq",!0);H(Q,Ue,cr,"⋖","\\lessdot");H(Q,Ue,We,"⋘","\\lll",!0);H(Q,Ue,We,"≶","\\lessgtr",!0);H(Q,Ue,We,"⋚","\\lesseqgtr",!0);H(Q,Ue,We,"⪋","\\lesseqqgtr",!0);H(Q,Ue,We,"≑","\\doteqdot");H(Q,Ue,We,"≓","\\risingdotseq",!0);H(Q,Ue,We,"≒","\\fallingdotseq",!0);H(Q,Ue,We,"∽","\\backsim",!0);H(Q,Ue,We,"⋍","\\backsimeq",!0);H(Q,Ue,We,"⫅","\\subseteqq",!0);H(Q,Ue,We,"⋐","\\Subset",!0);H(Q,Ue,We,"⊏","\\sqsubset",!0);H(Q,Ue,We,"≼","\\preccurlyeq",!0);H(Q,Ue,We,"⋞","\\curlyeqprec",!0);H(Q,Ue,We,"≾","\\precsim",!0);H(Q,Ue,We,"⪷","\\precapprox",!0);H(Q,Ue,We,"⊲","\\vartriangleleft");H(Q,Ue,We,"⊴","\\trianglelefteq");H(Q,Ue,We,"⊨","\\vDash",!0);H(Q,Ue,We,"⊪","\\Vvdash",!0);H(Q,Ue,We,"⌣","\\smallsmile");H(Q,Ue,We,"⌢","\\smallfrown");H(Q,Ue,We,"≏","\\bumpeq",!0);H(Q,Ue,We,"≎","\\Bumpeq",!0);H(Q,Ue,We,"≧","\\geqq",!0);H(Q,Ue,We,"⩾","\\geqslant",!0);H(Q,Ue,We,"⪖","\\eqslantgtr",!0);H(Q,Ue,We,"≳","\\gtrsim",!0);H(Q,Ue,We,"⪆","\\gtrapprox",!0);H(Q,Ue,cr,"⋗","\\gtrdot");H(Q,Ue,We,"⋙","\\ggg",!0);H(Q,Ue,We,"≷","\\gtrless",!0);H(Q,Ue,We,"⋛","\\gtreqless",!0);H(Q,Ue,We,"⪌","\\gtreqqless",!0);H(Q,Ue,We,"≖","\\eqcirc",!0);H(Q,Ue,We,"≗","\\circeq",!0);H(Q,Ue,We,"≜","\\triangleq",!0);H(Q,Ue,We,"∼","\\thicksim");H(Q,Ue,We,"≈","\\thickapprox");H(Q,Ue,We,"⫆","\\supseteqq",!0);H(Q,Ue,We,"⋑","\\Supset",!0);H(Q,Ue,We,"⊐","\\sqsupset",!0);H(Q,Ue,We,"≽","\\succcurlyeq",!0);H(Q,Ue,We,"⋟","\\curlyeqsucc",!0);H(Q,Ue,We,"≿","\\succsim",!0);H(Q,Ue,We,"⪸","\\succapprox",!0);H(Q,Ue,We,"⊳","\\vartriangleright");H(Q,Ue,We,"⊵","\\trianglerighteq");H(Q,Ue,We,"⊩","\\Vdash",!0);H(Q,Ue,We,"∣","\\shortmid");H(Q,Ue,We,"∥","\\shortparallel");H(Q,Ue,We,"≬","\\between",!0);H(Q,Ue,We,"⋔","\\pitchfork",!0);H(Q,Ue,We,"∝","\\varpropto");H(Q,Ue,We,"◀","\\blacktriangleleft");H(Q,Ue,We,"∴","\\therefore",!0);H(Q,Ue,We,"∍","\\backepsilon");H(Q,Ue,We,"▶","\\blacktriangleright");H(Q,Ue,We,"∵","\\because",!0);H(Q,Ue,We,"⋘","\\llless");H(Q,Ue,We,"⋙","\\gggtr");H(Q,Ue,cr,"⊲","\\lhd");H(Q,Ue,cr,"⊳","\\rhd");H(Q,Ue,We,"≂","\\eqsim",!0);H(Q,ue,We,"⋈","\\Join");H(Q,Ue,We,"≑","\\Doteq",!0);H(Q,Ue,cr,"∔","\\dotplus",!0);H(Q,Ue,cr,"∖","\\smallsetminus");H(Q,Ue,cr,"⋒","\\Cap",!0);H(Q,Ue,cr,"⋓","\\Cup",!0);H(Q,Ue,cr,"⩞","\\doublebarwedge",!0);H(Q,Ue,cr,"⊟","\\boxminus",!0);H(Q,Ue,cr,"⊞","\\boxplus",!0);H(Q,Ue,cr,"⋇","\\divideontimes",!0);H(Q,Ue,cr,"⋉","\\ltimes",!0);H(Q,Ue,cr,"⋊","\\rtimes",!0);H(Q,Ue,cr,"⋋","\\leftthreetimes",!0);H(Q,Ue,cr,"⋌","\\rightthreetimes",!0);H(Q,Ue,cr,"⋏","\\curlywedge",!0);H(Q,Ue,cr,"⋎","\\curlyvee",!0);H(Q,Ue,cr,"⊝","\\circleddash",!0);H(Q,Ue,cr,"⊛","\\circledast",!0);H(Q,Ue,cr,"⋅","\\centerdot");H(Q,Ue,cr,"⊺","\\intercal",!0);H(Q,Ue,cr,"⋒","\\doublecap");H(Q,Ue,cr,"⋓","\\doublecup");H(Q,Ue,cr,"⊠","\\boxtimes",!0);H(Q,Ue,We,"⇢","\\dashrightarrow",!0);H(Q,Ue,We,"⇠","\\dashleftarrow",!0);H(Q,Ue,We,"⇇","\\leftleftarrows",!0);H(Q,Ue,We,"⇆","\\leftrightarrows",!0);H(Q,Ue,We,"⇚","\\Lleftarrow",!0);H(Q,Ue,We,"↞","\\twoheadleftarrow",!0);H(Q,Ue,We,"↢","\\leftarrowtail",!0);H(Q,Ue,We,"↫","\\looparrowleft",!0);H(Q,Ue,We,"⇋","\\leftrightharpoons",!0);H(Q,Ue,We,"↶","\\curvearrowleft",!0);H(Q,Ue,We,"↺","\\circlearrowleft",!0);H(Q,Ue,We,"↰","\\Lsh",!0);H(Q,Ue,We,"⇈","\\upuparrows",!0);H(Q,Ue,We,"↿","\\upharpoonleft",!0);H(Q,Ue,We,"⇃","\\downharpoonleft",!0);H(Q,ue,We,"⊶","\\origof",!0);H(Q,ue,We,"⊷","\\imageof",!0);H(Q,Ue,We,"⊸","\\multimap",!0);H(Q,Ue,We,"↭","\\leftrightsquigarrow",!0);H(Q,Ue,We,"⇉","\\rightrightarrows",!0);H(Q,Ue,We,"⇄","\\rightleftarrows",!0);H(Q,Ue,We,"↠","\\twoheadrightarrow",!0);H(Q,Ue,We,"↣","\\rightarrowtail",!0);H(Q,Ue,We,"↬","\\looparrowright",!0);H(Q,Ue,We,"↷","\\curvearrowright",!0);H(Q,Ue,We,"↻","\\circlearrowright",!0);H(Q,Ue,We,"↱","\\Rsh",!0);H(Q,Ue,We,"⇊","\\downdownarrows",!0);H(Q,Ue,We,"↾","\\upharpoonright",!0);H(Q,Ue,We,"⇂","\\downharpoonright",!0);H(Q,Ue,We,"⇝","\\rightsquigarrow",!0);H(Q,Ue,We,"⇝","\\leadsto");H(Q,Ue,We,"⇛","\\Rrightarrow",!0);H(Q,Ue,We,"↾","\\restriction");H(Q,ue,Je,"‘","`");H(Q,ue,Je,"$","\\$");H(Pt,ue,Je,"$","\\$");H(Pt,ue,Je,"$","\\textdollar");H(Q,ue,Je,"%","\\%");H(Pt,ue,Je,"%","\\%");H(Q,ue,Je,"_","\\_");H(Pt,ue,Je,"_","\\_");H(Pt,ue,Je,"_","\\textunderscore");H(Q,ue,Je,"∠","\\angle",!0);H(Q,ue,Je,"∞","\\infty",!0);H(Q,ue,Je,"′","\\prime");H(Q,ue,Je,"△","\\triangle");H(Q,ue,Je,"Γ","\\Gamma",!0);H(Q,ue,Je,"Δ","\\Delta",!0);H(Q,ue,Je,"Θ","\\Theta",!0);H(Q,ue,Je,"Λ","\\Lambda",!0);H(Q,ue,Je,"Ξ","\\Xi",!0);H(Q,ue,Je,"Π","\\Pi",!0);H(Q,ue,Je,"Σ","\\Sigma",!0);H(Q,ue,Je,"Υ","\\Upsilon",!0);H(Q,ue,Je,"Φ","\\Phi",!0);H(Q,ue,Je,"Ψ","\\Psi",!0);H(Q,ue,Je,"Ω","\\Omega",!0);H(Q,ue,Je,"A","Α");H(Q,ue,Je,"B","Β");H(Q,ue,Je,"E","Ε");H(Q,ue,Je,"Z","Ζ");H(Q,ue,Je,"H","Η");H(Q,ue,Je,"I","Ι");H(Q,ue,Je,"K","Κ");H(Q,ue,Je,"M","Μ");H(Q,ue,Je,"N","Ν");H(Q,ue,Je,"O","Ο");H(Q,ue,Je,"P","Ρ");H(Q,ue,Je,"T","Τ");H(Q,ue,Je,"X","Χ");H(Q,ue,Je,"¬","\\neg",!0);H(Q,ue,Je,"¬","\\lnot");H(Q,ue,Je,"⊤","\\top");H(Q,ue,Je,"⊥","\\bot");H(Q,ue,Je,"∅","\\emptyset");H(Q,Ue,Je,"∅","\\varnothing");H(Q,ue,Rr,"α","\\alpha",!0);H(Q,ue,Rr,"β","\\beta",!0);H(Q,ue,Rr,"γ","\\gamma",!0);H(Q,ue,Rr,"δ","\\delta",!0);H(Q,ue,Rr,"ϵ","\\epsilon",!0);H(Q,ue,Rr,"ζ","\\zeta",!0);H(Q,ue,Rr,"η","\\eta",!0);H(Q,ue,Rr,"θ","\\theta",!0);H(Q,ue,Rr,"ι","\\iota",!0);H(Q,ue,Rr,"κ","\\kappa",!0);H(Q,ue,Rr,"λ","\\lambda",!0);H(Q,ue,Rr,"μ","\\mu",!0);H(Q,ue,Rr,"ν","\\nu",!0);H(Q,ue,Rr,"ξ","\\xi",!0);H(Q,ue,Rr,"ο","\\omicron",!0);H(Q,ue,Rr,"π","\\pi",!0);H(Q,ue,Rr,"ρ","\\rho",!0);H(Q,ue,Rr,"σ","\\sigma",!0);H(Q,ue,Rr,"τ","\\tau",!0);H(Q,ue,Rr,"υ","\\upsilon",!0);H(Q,ue,Rr,"ϕ","\\phi",!0);H(Q,ue,Rr,"χ","\\chi",!0);H(Q,ue,Rr,"ψ","\\psi",!0);H(Q,ue,Rr,"ω","\\omega",!0);H(Q,ue,Rr,"ε","\\varepsilon",!0);H(Q,ue,Rr,"ϑ","\\vartheta",!0);H(Q,ue,Rr,"ϖ","\\varpi",!0);H(Q,ue,Rr,"ϱ","\\varrho",!0);H(Q,ue,Rr,"ς","\\varsigma",!0);H(Q,ue,Rr,"φ","\\varphi",!0);H(Q,ue,cr,"∗","*",!0);H(Q,ue,cr,"+","+");H(Q,ue,cr,"−","-",!0);H(Q,ue,cr,"⋅","\\cdot",!0);H(Q,ue,cr,"∘","\\circ",!0);H(Q,ue,cr,"÷","\\div",!0);H(Q,ue,cr,"±","\\pm",!0);H(Q,ue,cr,"×","\\times",!0);H(Q,ue,cr,"∩","\\cap",!0);H(Q,ue,cr,"∪","\\cup",!0);H(Q,ue,cr,"∖","\\setminus",!0);H(Q,ue,cr,"∧","\\land");H(Q,ue,cr,"∨","\\lor");H(Q,ue,cr,"∧","\\wedge",!0);H(Q,ue,cr,"∨","\\vee",!0);H(Q,ue,Je,"√","\\surd");H(Q,ue,Vo,"⟨","\\langle",!0);H(Q,ue,Vo,"∣","\\lvert");H(Q,ue,Vo,"∥","\\lVert");H(Q,ue,Zs,"?","?");H(Q,ue,Zs,"!","!");H(Q,ue,Zs,"⟩","\\rangle",!0);H(Q,ue,Zs,"∣","\\rvert");H(Q,ue,Zs,"∥","\\rVert");H(Q,ue,We,"=","=");H(Q,ue,We,":",":");H(Q,ue,We,"≈","\\approx",!0);H(Q,ue,We,"≅","\\cong",!0);H(Q,ue,We,"≥","\\ge");H(Q,ue,We,"≥","\\geq",!0);H(Q,ue,We,"←","\\gets");H(Q,ue,We,">","\\gt",!0);H(Q,ue,We,"∈","\\in",!0);H(Q,ue,We,"","\\@not");H(Q,ue,We,"⊂","\\subset",!0);H(Q,ue,We,"⊃","\\supset",!0);H(Q,ue,We,"⊆","\\subseteq",!0);H(Q,ue,We,"⊇","\\supseteq",!0);H(Q,Ue,We,"⊈","\\nsubseteq",!0);H(Q,Ue,We,"⊉","\\nsupseteq",!0);H(Q,ue,We,"⊨","\\models");H(Q,ue,We,"←","\\leftarrow",!0);H(Q,ue,We,"≤","\\le");H(Q,ue,We,"≤","\\leq",!0);H(Q,ue,We,"<","\\lt",!0);H(Q,ue,We,"→","\\rightarrow",!0);H(Q,ue,We,"→","\\to");H(Q,Ue,We,"≱","\\ngeq",!0);H(Q,Ue,We,"≰","\\nleq",!0);H(Q,ue,V0," ","\\ ");H(Q,ue,V0," ","\\space");H(Q,ue,V0," ","\\nobreakspace");H(Pt,ue,V0," ","\\ ");H(Pt,ue,V0," "," ");H(Pt,ue,V0," ","\\space");H(Pt,ue,V0," ","\\nobreakspace");H(Q,ue,V0,"","\\nobreak");H(Q,ue,V0,"","\\allowbreak");H(Q,ue,uT,",",",");H(Q,ue,uT,";",";");H(Q,Ue,cr,"⊼","\\barwedge",!0);H(Q,Ue,cr,"⊻","\\veebar",!0);H(Q,ue,cr,"⊙","\\odot",!0);H(Q,ue,cr,"⊕","\\oplus",!0);H(Q,ue,cr,"⊗","\\otimes",!0);H(Q,ue,Je,"∂","\\partial",!0);H(Q,ue,cr,"⊘","\\oslash",!0);H(Q,Ue,cr,"⊚","\\circledcirc",!0);H(Q,Ue,cr,"⊡","\\boxdot",!0);H(Q,ue,cr,"△","\\bigtriangleup");H(Q,ue,cr,"▽","\\bigtriangledown");H(Q,ue,cr,"†","\\dagger");H(Q,ue,cr,"⋄","\\diamond");H(Q,ue,cr,"⋆","\\star");H(Q,ue,cr,"◃","\\triangleleft");H(Q,ue,cr,"▹","\\triangleright");H(Q,ue,Vo,"{","\\{");H(Pt,ue,Je,"{","\\{");H(Pt,ue,Je,"{","\\textbraceleft");H(Q,ue,Zs,"}","\\}");H(Pt,ue,Je,"}","\\}");H(Pt,ue,Je,"}","\\textbraceright");H(Q,ue,Vo,"{","\\lbrace");H(Q,ue,Zs,"}","\\rbrace");H(Q,ue,Vo,"[","\\lbrack",!0);H(Pt,ue,Je,"[","\\lbrack",!0);H(Q,ue,Zs,"]","\\rbrack",!0);H(Pt,ue,Je,"]","\\rbrack",!0);H(Q,ue,Vo,"(","\\lparen",!0);H(Q,ue,Zs,")","\\rparen",!0);H(Pt,ue,Je,"<","\\textless",!0);H(Pt,ue,Je,">","\\textgreater",!0);H(Q,ue,Vo,"⌊","\\lfloor",!0);H(Q,ue,Zs,"⌋","\\rfloor",!0);H(Q,ue,Vo,"⌈","\\lceil",!0);H(Q,ue,Zs,"⌉","\\rceil",!0);H(Q,ue,Je,"\\","\\backslash");H(Q,ue,Je,"∣","|");H(Q,ue,Je,"∣","\\vert");H(Pt,ue,Je,"|","\\textbar",!0);H(Q,ue,Je,"∥","\\|");H(Q,ue,Je,"∥","\\Vert");H(Pt,ue,Je,"∥","\\textbardbl");H(Pt,ue,Je,"~","\\textasciitilde");H(Pt,ue,Je,"\\","\\textbackslash");H(Pt,ue,Je,"^","\\textasciicircum");H(Q,ue,We,"↑","\\uparrow",!0);H(Q,ue,We,"⇑","\\Uparrow",!0);H(Q,ue,We,"↓","\\downarrow",!0);H(Q,ue,We,"⇓","\\Downarrow",!0);H(Q,ue,We,"↕","\\updownarrow",!0);H(Q,ue,We,"⇕","\\Updownarrow",!0);H(Q,ue,ui,"∐","\\coprod");H(Q,ue,ui,"⋁","\\bigvee");H(Q,ue,ui,"⋀","\\bigwedge");H(Q,ue,ui,"⨄","\\biguplus");H(Q,ue,ui,"⋂","\\bigcap");H(Q,ue,ui,"⋃","\\bigcup");H(Q,ue,ui,"∫","\\int");H(Q,ue,ui,"∫","\\intop");H(Q,ue,ui,"∬","\\iint");H(Q,ue,ui,"∭","\\iiint");H(Q,ue,ui,"∏","\\prod");H(Q,ue,ui,"∑","\\sum");H(Q,ue,ui,"⨂","\\bigotimes");H(Q,ue,ui,"⨁","\\bigoplus");H(Q,ue,ui,"⨀","\\bigodot");H(Q,ue,ui,"∮","\\oint");H(Q,ue,ui,"∯","\\oiint");H(Q,ue,ui,"∰","\\oiiint");H(Q,ue,ui,"⨆","\\bigsqcup");H(Q,ue,ui,"∫","\\smallint");H(Pt,ue,Xb,"…","\\textellipsis");H(Q,ue,Xb,"…","\\mathellipsis");H(Pt,ue,Xb,"…","\\ldots",!0);H(Q,ue,Xb,"…","\\ldots",!0);H(Q,ue,Xb,"⋯","\\@cdots",!0);H(Q,ue,Xb,"⋱","\\ddots",!0);H(Q,ue,Je,"⋮","\\varvdots");H(Pt,ue,Je,"⋮","\\varvdots");H(Q,ue,ma,"ˊ","\\acute");H(Q,ue,ma,"ˋ","\\grave");H(Q,ue,ma,"¨","\\ddot");H(Q,ue,ma,"~","\\tilde");H(Q,ue,ma,"ˉ","\\bar");H(Q,ue,ma,"˘","\\breve");H(Q,ue,ma,"ˇ","\\check");H(Q,ue,ma,"^","\\hat");H(Q,ue,ma,"⃗","\\vec");H(Q,ue,ma,"˙","\\dot");H(Q,ue,ma,"˚","\\mathring");H(Q,ue,Rr,"","\\@imath");H(Q,ue,Rr,"","\\@jmath");H(Q,ue,Je,"ı","ı");H(Q,ue,Je,"ȷ","ȷ");H(Pt,ue,Je,"ı","\\i",!0);H(Pt,ue,Je,"ȷ","\\j",!0);H(Pt,ue,Je,"ß","\\ss",!0);H(Pt,ue,Je,"æ","\\ae",!0);H(Pt,ue,Je,"œ","\\oe",!0);H(Pt,ue,Je,"ø","\\o",!0);H(Pt,ue,Je,"Æ","\\AE",!0);H(Pt,ue,Je,"Œ","\\OE",!0);H(Pt,ue,Je,"Ø","\\O",!0);H(Pt,ue,ma,"ˊ","\\'");H(Pt,ue,ma,"ˋ","\\`");H(Pt,ue,ma,"ˆ","\\^");H(Pt,ue,ma,"˜","\\~");H(Pt,ue,ma,"ˉ","\\=");H(Pt,ue,ma,"˘","\\u");H(Pt,ue,ma,"˙","\\.");H(Pt,ue,ma,"¸","\\c");H(Pt,ue,ma,"˚","\\r");H(Pt,ue,ma,"ˇ","\\v");H(Pt,ue,ma,"¨",'\\"');H(Pt,ue,ma,"˝","\\H");H(Pt,ue,ma,"◯","\\textcircled");var zue={"--":!0,"---":!0,"``":!0,"''":!0};H(Pt,ue,Je,"–","--",!0);H(Pt,ue,Je,"–","\\textendash");H(Pt,ue,Je,"—","---",!0);H(Pt,ue,Je,"—","\\textemdash");H(Pt,ue,Je,"‘","`",!0);H(Pt,ue,Je,"‘","\\textquoteleft");H(Pt,ue,Je,"’","'",!0);H(Pt,ue,Je,"’","\\textquoteright");H(Pt,ue,Je,"“","``",!0);H(Pt,ue,Je,"“","\\textquotedblleft");H(Pt,ue,Je,"”","''",!0);H(Pt,ue,Je,"”","\\textquotedblright");H(Q,ue,Je,"°","\\degree",!0);H(Pt,ue,Je,"°","\\degree");H(Pt,ue,Je,"°","\\textdegree",!0);H(Q,ue,Je,"£","\\pounds");H(Q,ue,Je,"£","\\mathsterling",!0);H(Pt,ue,Je,"£","\\pounds");H(Pt,ue,Je,"£","\\textsterling",!0);H(Q,Ue,Je,"✠","\\maltese");H(Pt,Ue,Je,"✠","\\maltese");var pX='0123456789/@."';for(var Z8=0;Z8{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return xX[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return oBe[i]}else{if(n===120485||n===120486)return xX[0];if(120486{if(sh(t.classes)!==sh(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 a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},Uue=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},zt=function(e,r,n,a){var i=new Kb(e,r,n,a);return wU(i),i},lh=(t,e,r,n)=>new Kb(t,e,r,n),eb=function(e,r,n){var a=zt([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=Jt(a.height),a.maxFontSize=1,a},dBe=function(e,r,n,a){var i=new mk(e,r,n,a);return wU(i),i},W0=function(e){var r=new Wb(e);return wU(r),r},tb=function(e,r){return e instanceof Wb?zt([],[e],r):e},hBe=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s{var r=zt(["mspace"],[],e),n=wa(t,e);return r.style.marginRight=Jt(n),r},xx=(t,e,r)=>{var n,a;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"?a="BoldItalic":e==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},HM={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"}},que={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,a,i]=que[e],s=new oh(n),o=new C0([s],{width:Jt(a),height:Jt(i),style:"width:"+Jt(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=lh(["overlay"],[o],r);return l.height=i,l.style.height=Jt(i),l.style.width=Jt(a),l},Ta={number:3,unit:"mu"},lf={number:4,unit:"mu"},$u={number:5,unit:"mu"},fBe={mord:{mop:Ta,mbin:lf,mrel:$u,minner:Ta},mop:{mord:Ta,mop:Ta,mrel:$u,minner:Ta},mbin:{mord:lf,mop:lf,mopen:lf,minner:lf},mrel:{mord:$u,mop:$u,mopen:$u,minner:$u},mopen:{},mclose:{mop:Ta,mbin:lf,mrel:$u,minner:Ta},mpunct:{mord:Ta,mop:Ta,mrel:$u,mopen:Ta,mclose:Ta,mpunct:Ta,minner:Ta},minner:{mord:Ta,mop:Ta,mbin:lf,mrel:$u,mopen:Ta,mpunct:Ta,minner:Ta}},pBe={mord:{mop:Ta},mop:{mord:Ta,mop:Ta},mbin:{},mrel:{},mopen:{},mclose:{mop:Ta},mpunct:{},minner:{mop:Ta}},Hue={},OC={},DC={};function ir(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,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:a},l=0;l{var v=m.classes[0],y=g.classes[0];v==="mbin"&&mBe.has(y)?m.classes[0]="mord":y==="mbin"&&gBe.has(v)&&(g.classes[0]="mord")},{node:h},f,p),VM(i,(g,m)=>{var v,y,b=KM(m),_=KM(g),S=b&&_?g.hasClass("mtight")?(v=pBe[b])==null?void 0:v[_]:(y=fBe[b])==null?void 0:y[_]:null;if(S)return Gue(S,u)},{node:h},f,p),i},VM=function(e,r,n,a,i){a&&e.push(a);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}a&&e.pop()},Vue=function(e){return e instanceof Wb||e instanceof mk||e instanceof Kb&&e.hasClass("enclosing")?e:null},WM=function(e,r){var n=Vue(e);if(n){var a=n.children;if(a.length){if(r==="right")return WM(a[a.length-1],"right");if(r==="left")return WM(a[0],"left")}}return e},KM=function(e,r){if(!e)return null;r&&(e=WM(e,r));var n=e.classes[0];return yBe[n]||null},qS=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return zt(r.concat(n))},Rn=function(e,r,n){if(!e)return zt();if(OC[e.type]){var a=OC[e.type](e,r);if(n&&r.size!==n.size){a=zt(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new Vt("Got group of unknown type: '"+e.type+"'")};function Cx(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 XM(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Ci(t,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o0&&(i.push(Cx(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(Cx(s,e));var u;r?(u=Cx(Ci(r,e,!0),e),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=zt(["katex-html"],i);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 Wue(t){return new Wb(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=sh(this.classes));for(var n=0;n0&&(e+=' class ="'+us(sh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ni=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return us(this.toText())}toText(){return this.text}},Kue=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 _Be=new Set(["\\imath","\\jmath"]),bBe=new Set(["mrow","mtable"]),Rl=function(e,r,n){return da[r][e]&&da[r][e].replace&&e.charCodeAt(0)!==55349&&!(zue.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=da[r][e].replace),new ni(e)},kU=function(e){return e.length===1?e[0]:new Ht("mrow",e)},EBe={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"},AU=(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,a=EBe[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(_Be.has(i))return null;if(da[n][i]){var s=da[n][i].replace;s&&(i=s)}var o=HM[r].fontName;return xU(i,o,n)?HM[r].variant:null};function rR(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ni&&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 ni&&r.text===","}else return!1}var Wo=function(e,r,n){if(e.length===1){var a=zn(e[0],r);return n&&a instanceof Ht&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o=1&&(s.type==="mn"||rR(s))){var u=l.children[0];u instanceof Ht&&u.type==="mn"&&(u.children=[...s.children,...u.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ni&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof ni&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(l),s=l}return i},ch=function(e,r,n){return kU(Wo(e,r,n))},zn=function(e,r){if(!e)return new Ht("mrow");if(DC[e.type])return DC[e.type](e,r);throw new Vt("Got group of unknown type: '"+e.type+"'")};function CX(t,e,r,n,a){var i=Wo(t,r),s;i.length===1&&i[0]instanceof Ht&&bBe.has(i[0].type)?s=i[0]:s=new Ht("mrow",i);var o=new Ht("annotation",[new ni(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=a?"katex":"katex-mathml";return zt([d],[u])}var SBe=[[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]],wX=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],kX=function(e,r){return r.size<2?e:SBe[e-1][r.size-1]};let Xue=class wf{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||wf.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=wX[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 wf(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:kX(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:wX[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=kX(wf.BASESIZE,e);return this.size===r&&this.textSize===wf.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!==wf.BASESIZE?["sizing","reset-size"+this.size,"size"+wf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=iBe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Xue.BASESIZE=6;var jue=function(e){return new Xue({style:e.displayMode?jr.DISPLAY:jr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Que=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},TBe=function(e,r,n){var a=jue(n),i;if(n.output==="mathml")return CX(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=XM(e,a);i=zt(["katex"],[s])}else{var o=CX(e,r,a,n.displayMode,!1),l=XM(e,a);i=zt(["katex"],[o,l])}return Que(i,n)},xBe=function(e,r,n){var a=jue(n),i=XM(e,a),s=zt(["katex"],[i]);return Que(s,n)},CBe={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":"="},_k=function(e){var r=new Ht("mo",[new ni(CBe[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},wBe={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]},kBe=new Set(["widehat","widecheck","widetilde","utilde"]),bk=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(kBe.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 oh(h),m=new C0([g],{width:"100%",height:Jt(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:lh([],[m],r),minWidth:0,height:f}}else{var v=[],y=wBe[l];if(!y)throw new Error('No SVG data for "'+l+'".');var[b,_,S]=y,x=S/1e3,C=b.length,T,w;if(C===1){if(y.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+l+'".');T=["hide-tail"],w=[y[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 R=0;R0&&(a.style.minWidth=Jt(i)),a},ABe=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=zt(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new $M({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new $M({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new C0(u,{width:"100%",height:Jt(o)});s=lh([],[d],i)}return s.height=o,s.style.height=Jt(o),s},RBe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},NBe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function IBe(t){return t in RBe}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 Ek(t){var e=Sk(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 Sk(t){return t&&(t.type==="atom"||NBe.hasOwnProperty(t.type))?t:null}var Zue=t=>{if(t instanceof $o)return t;if(aBe(t)&&t.children.length===1)return Zue(t.children[0])},RU=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=en(t.base,"accent"),r=n.base,t.base=r,a=nBe(Rn(t,e)),t.base=n):(n=en(t,"accent"),r=n.base);var i=Rn(r,e.havingCrampedStyle()),s=n.isShifty&&H0(r),o=0;if(s){var l,u;o=(l=(u=Zue(i))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=bk(n,e),f=wn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{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=que.vec[1]):(p=yk({mode:n.mode,text:n.label},e,"textord"),p=rBe(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=i.height);var v=o;m||(v-=g/2),f.style.left=Jt(v),n.label==="\\textcircled"&&(f.style.top=".2em"),f=wn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:f}]})}var y=zt(["mord","accent"],[f],e);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},Jue=(t,e)=>{var r=t.isStretchy?_k(t.label):new Ht("mo",[Rl(t.label,t.mode)]),n=new Ht("mover",[zn(t.base,e),r]);return n.setAttribute("accent","true"),n},OBe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));ir({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=LC(e[0]),n=!OBe.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:RU,mathmlBuilder:Jue});ir({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:RU,mathmlBuilder:Jue});ir({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=Rn(t.base,e),n=bk(t,e),a=t.label==="\\utilde"?.12:0,i=wn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return zt(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=_k(t.label),n=new Ht("munder",[zn(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var wx=t=>{var e=new Ht("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};ir({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:a}=t;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=tb(Rn(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=tb(Rn(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=bk(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=wn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:h}]})}else d=wn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]}]});return zt(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=_k(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=wx(zn(t.body,e));if(t.below){var i=wx(zn(t.below,e));n=new Ht("munderover",[r,i,a])}else n=new Ht("mover",[r,a])}else if(t.below){var s=wx(zn(t.below,e));n=new Ht("munder",[r,s])}else n=wx(),n=new Ht("mover",[r,n]);return n}});function e0e(t,e){var r=Ci(t.body,e,!0);return zt([t.mclass],r,e)}function t0e(t,e){var r,n=Wo(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"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ir({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ri(a),isCharacterBox:H0(a)}},htmlBuilder:e0e,mathmlBuilder:t0e});var Tk=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"};ir({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:Tk(e[0]),body:ri(e[1]),isCharacterBox:H0(e[1])}}});ir({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,a=e[1],i=e[0],s;n!=="\\stackrel"?s=Tk(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ri(a)},l={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:H0(l)}},htmlBuilder:e0e,mathmlBuilder:t0e});ir({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:Tk(e[0]),body:ri(e[0])}},htmlBuilder(t,e){var r=Ci(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=Wo(t.body,e),n=new Ht("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var DBe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},AX=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),RX=t=>t.type==="textord"&&t.text==="@",LBe=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function MBe(t,e,r){var n=DBe[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,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 PBe(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=[],a=[n],i=0;iAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=MBe(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display",resetFont:!0};n.push(m),o=AX()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var v=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}ir({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=tb(Rn(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",[zn(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}});ir({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=tb(Rn(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Ht("mrow",[zn(t.fragment,e)])}});ir({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=en(e[0],"ordgroup"),a=n.body,i="",s=0;s=1114111)throw new Vt("\\@char with invalid code point "+i);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 r0e=(t,e)=>{var r=Ci(t.body,e.withColor(t.color),!1);return W0(r)},n0e=(t,e)=>{var r=Wo(t.body,e.withColor(t.color)),n=new Ht("mstyle",r);return n.setAttribute("mathcolor",t.color),n};ir({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,a=e[1];return{type:"color",mode:r.mode,color:n,body:ri(a)}},htmlBuilder:r0e,mathmlBuilder:n0e});ir({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,a=en(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:r0e,mathmlBuilder:n0e});ir({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&en(a,"size").value}},htmlBuilder(t,e){var r=zt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=Jt(wa(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(wa(t.size,e)))),r}});var jM={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},a0e=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Vt("Expected a control sequence",t);return e},BBe=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},i0e=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,n)};ir({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(jM[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=jM[n.text]),en(e.parseFunction(),"internal");throw new Vt("Invalid token after macro prefix",n)}});ir({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(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Vt("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Vt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new Vt('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new Vt("Expected a macro definition");o[i].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(a,{tokens:l,numArgs:i,delimiters:o},r===jM[r]),{type:"internal",mode:e.mode}}});ir({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=a0e(e.gullet.popToken());e.gullet.consumeSpaces();var a=BBe(e);return i0e(e,n,a,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});ir({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=a0e(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return i0e(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var yE=function(e,r,n){var a=da.math[e]&&da.math[e].replace,i=xU(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},NU=function(e,r,n,a){var i=n.havingBaseStyle(r),s=zt(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},s0e=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Jt(i),e.height-=i,e.depth+=i},FBe=function(e,r,n,a,i,s){var o=Rs(e,"Main-Regular",i,a),l=NU(o,r,a,s);return s0e(l,a,r),l},$Be=function(e,r,n,a){return Rs(e,"Size"+r+"-Regular",n,a)},o0e=function(e,r,n,a,i,s){var o=$Be(e,r,i,a),l=NU(zt(["delimsizing","size"+r],[o],a),jr.TEXT,a,s);return n&&s0e(l,a,jr.TEXT),l},nR=function(e,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=zt(["delimsizinginner",a],[zt([],[Rs(e,r,n)])]);return{type:"elem",elem:i}},aR=function(e,r,n){var a=Kc["Size4-Regular"][e.charCodeAt(0)]?Kc["Size4-Regular"][e.charCodeAt(0)][4]:Kc["Size1-Regular"][e.charCodeAt(0)][4],i=new oh("inner",XPe(e,Math.round(1e3*r))),s=new C0([i],{width:Jt(a),height:Jt(r),style:"width:"+Jt(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=lh([],[s],n);return o.height=r,o.style.height=Jt(r),o.style.width=Jt(a),{type:"elem",elem:o}},QM=.008,kx={type:"kern",size:-1*QM},zBe=new Set(["|","\\lvert","\\rvert","\\vert"]),UBe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),l0e=function(e,r,n,a,i,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"):zBe.has(e)?(u="∣",h="vert",f=333):UBe.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=yE(o,p,i),m=g.height+g.depth,v=yE(u,p,i),y=v.height+v.depth,b=yE(d,p,i),_=b.height+b.depth,S=0,x=1;if(l!==null){var C=yE(l,p,i);S=C.height+C.depth,x=2}var T=m+_+S,w=Math.max(0,Math.ceil((r-T)/(x*y))),R=T+w*x*y,O=a.fontMetrics().axisHeight;n&&(O*=a.sizeMultiplier);var M=R/2-O,$=[];if(h.length>0){var F=R-m-_,A=Math.round(R*1e3),I=jPe(h,Math.round(F*1e3)),D=new oh(h,I),L=Jt(f/1e3),N=Jt(A/1e3),P=new C0([D],{width:L,height:N,viewBox:"0 0 "+f+" "+A}),z=lh([],[P],a);z.height=A/1e3,z.style.width=L,z.style.height=N,$.push({type:"elem",elem:z})}else{if($.push(nR(d,p,i)),$.push(kx),l===null){var B=R-m-_+2*QM;$.push(aR(u,B,a))}else{var U=(R-m-_-S)/2+2*QM;$.push(aR(u,U,a)),$.push(kx),$.push(nR(l,p,i)),$.push(kx),$.push(aR(u,U,a))}$.push(kx),$.push(nR(o,p,i))}var G=a.havingBaseStyle(jr.TEXT),K=wn({positionType:"bottom",positionData:M,children:$});return NU(zt(["delimsizing","mult"],[K],G),jr.TEXT,a,s)},iR=80,sR=.08,oR=function(e,r,n,a,i){var s=KPe(e,a,n),o=new oh(e,s),l=new C0([o],{width:"400em",height:Jt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return lh(["hide-tail"],[l],i)},GBe=function(e,r){var n=r.havingBaseSizing(),a=f0e("\\surd",e*n.sizeMultiplier,h0e,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l,u,d,h;return a.type==="small"?(d=1e3+1e3*s+iR,e<1?i=1:e<1.4&&(i=.7),l=(1+s+sR)/i,u=(1+s)/i,o=oR("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/i):a.type==="large"?(d=(1e3+iR)*rS[a.size],u=(rS[a.size]+s)/i,l=(rS[a.size]+s+sR)/i,o=oR("sqrtSize"+a.size,l,d,s,r),o.style.minWidth="1.02em",h=1/i):(l=e+s+sR,u=e+s,d=Math.floor(1e3*e+s)+iR,o=oR("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)*i}},c0e=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),qBe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),u0e=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),rS=[0,1.2,1.8,2.4,3],d0e=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),c0e.has(e)||u0e.has(e))return o0e(e,r,!1,n,a,i);if(qBe.has(e))return l0e(e,rS[r],!1,n,a,i);throw new Vt("Illegal delimiter: '"+e+"'")},YBe=[{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}],HBe=[{type:"small",style:jr.SCRIPTSCRIPT},{type:"small",style:jr.SCRIPT},{type:"small",style:jr.TEXT},{type:"stack"}],h0e=[{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"}],VBe=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.")},f0e=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;sr)return o}return n[n.length-1]},ZM=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;u0e.has(e)?o=YBe:c0e.has(e)?o=h0e:o=HBe;var l=f0e(e,r,o,a);return l.type==="small"?FBe(e,l.style,n,a,i,s):l.type==="large"?o0e(e,l.size,n,a,i,s):l0e(e,r,n,a,i,s)},lR=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return ZM(e,h,!0,a,i,s)},NX={"\\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}},WBe=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 IX(t){return"isMiddle"in t}function xk(t,e){var r=Sk(t);if(r&&WBe.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)}ir({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=xk(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:NX[t.funcName].size,mclass:NX[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?zt([t.mclass]):d0e(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Rl(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(rS[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function OX(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ir({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 Vt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:xk(e[0],t).text,color:r}}});ir({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=xk(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=en(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{OX(t);for(var r=Ci(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s{OX(t);var r=Wo(t.body,e);if(t.left!=="."){var n=new Ht("mo",[Rl(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new Ht("mo",[Rl(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return kU(r)}});ir({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=xk(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=qS(e,[]):(r=d0e(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Rl("|","text"):Rl(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 Ck=(t,e)=>{var r=tb(Rn(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=H0(t.body);if(n==="sout")i=zt(["stretchy","sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=wa({number:.6,unit:"pt"},e),u=wa({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=Jt(h/2+l);var f=Math.floor(1e3*h*a),p=VPe(f),g=new C0([new oh("phase",p)],{width:"400em",height:Jt(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=lh(["hide-tail"],[g],e),i.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,v,y=0;/box/.test(n)?(y=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:y),v=m):n==="angl"?(y=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*y,v=Math.max(0,.25-r.depth)):(m=o?.2:0,v=m),i=ABe(r,n,m,v,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=Jt(y)):n==="angl"&&y!==.049&&(i.style.borderTopWidth=Jt(y),i.style.borderRightWidth=Jt(y)),s=r.depth+v,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=wn({positionType:"individualShift",children:[{type:"elem",elem:i,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:i,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)},wk=(t,e)=>{var r,n=new Ht(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 a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+Jt(a)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};ir({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(t,e,r){var{parser:n,funcName:a}=t,i=en(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Ck,mathmlBuilder:wk});ir({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(t,e,r){var{parser:n,funcName:a}=t,i=en(e[0],"color-token").color,s=en(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:Ck,mathmlBuilder:wk});ir({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]}}});ir({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Ck,mathmlBuilder:wk});ir({type:"enclose",names:["\\sout"],props:{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 a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Ck,mathmlBuilder:wk});ir({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 p0e={};function gu(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new Vt("{"+t.envName+"} can be used only in display mode.")},KBe=new Set(["gather","gather*"]);function IU(t){if(!t.includes("ed"))return!t.includes("*")}function Ph(t,e,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,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],v=[],y=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function S(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new tc("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),y.push(DX(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"){S(),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(),y.length0&&(_+=.25),u.push({pos:_,isDashed:it[ke]})}for(S(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var te=void 0;if(a>0||e.hskipBeforeAndAfter){var ne,ae;te=(ne=(ae=G)==null?void 0:ae.pregap)!=null?ne:f,te!==0&&(I=zt(["arraycolsep"],[]),I.style.width=Jt(te),A.push(I))}var re=[];for(n=0;n0){for(var Ce=eb("hline",r,d),ut=eb("hdashline",r,d),Ae=[{type:"elem",elem:$e,shift:0}];u.length>0;){var je=u.pop(),ot=je.pos-$;je.isDashed?Ae.push({type:"elem",elem:ut,shift:ot}):Ae.push({type:"elem",elem:Ce,shift:ot})}$e=wn({positionType:"individualShift",children:Ae})}if(L.length===0)return zt(["mord"],[$e],r);var lt=wn({positionType:"individualShift",children:L}),ct=zt(["tag"],[lt],r);return W0([$e,ct])},XBe={c:"center ",l:"left ",r:"right "},vu=function(e,r){for(var n=[],a=new Ht("mtd",[],["mtr-glue"]),i=new Ht("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",v=!1,y=0,b=g.length;g[0].type==="separator"&&(f+="top ",y=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=y;_0?"left ":"",f+=R[R.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(v=1),n[g]={type:"align",align:m,pregap:v,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};gu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Sk(e[0]),n=r?[e[0]]:en(e[0],"ordgroup").body,a=n.map(function(s){var o=Ek(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)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Ph(t.parser,i,OU(t.envName))},htmlBuilder:mu,mathmlBuilder:vu});gu({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 a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new Vt("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=Ph(t.parser,n,OU(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Ph(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Sk(e[0]),n=r?[e[0]]:en(e[0],"ordgroup").body,a=n.map(function(o){var l=Ek(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Vt("Unknown column alignment: "+u,o)});if(a.length>1)throw new Vt("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=Ph(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new Vt("{subarray} can contain only one column");return s},htmlBuilder:mu,mathmlBuilder:vu});gu({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=Ph(t.parser,e,OU(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:y0e,htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){KBe.has(t.envName)&&kk(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:IU(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Ph(t.parser,e,"display")},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:y0e,htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){kk(t);var e={autoTag:IU(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Ph(t.parser,e,"display")},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return kk(t),PBe(t.parser)},htmlBuilder:mu,mathmlBuilder:vu});be("\\nonumber","\\gdef\\@eqnsw{0}");be("\\notag","\\nonumber");ir({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new Vt(t.funcName+" valid only within array environment")}});var LX=p0e;ir({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];if(a.type!=="ordgroup")throw new Vt("Invalid environment name",a);for(var i="",s=0;s{var r=t.font,n=e.withFont(r);return Rn(t.body,n)},b0e=(t,e)=>{var r=t.font,n=e.withFont(r);return zn(t.body,n)},MX={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};ir({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,a=LC(e[0]),i=n;return i in MX&&(i=MX[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:_0e,mathmlBuilder:b0e});ir({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:Tk(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:H0(n)}}});ir({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:a}=t,{mode:i}=r,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:_0e,mathmlBuilder:b0e});var jBe=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=Rn(t.numer,i,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 v;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Ht("mfrac",[zn(t.numer,e),zn(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=wa(t.barSize,e);r.setAttribute("linethickness",Jt(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new Ht("mo",[new ni(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new Ht("mo",[new ni(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return kU(a)}return r},E0e=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};ir({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,a=e[0],i=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"),E0e({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:jBe,mathmlBuilder:QBe});ir({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var PX=["display","text","script","scriptscript"],BX=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};ir({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],a=e[5],i=LC(e[0]),s=i.type==="atom"&&i.family==="open"?BX(i.text):null,o=LC(e[1]),l=o.type==="atom"&&o.family==="close"?BX(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=PX[Number(g.text)]}}else p=en(p,"textord"),f=PX[Number(p.text)];return E0e({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});ir({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:a}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:en(e[0],"size").value,token:a}}});ir({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0],i=en(e[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var s=e[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var S0e=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?Rn(t.sup,e.havingStyle(r.sup()),e):Rn(t.sub,e.havingStyle(r.sub()),e),a=en(t.base,"horizBrace")):a=en(t,"horizBrace");var i=Rn(a.base,e.havingBaseStyle(jr.DISPLAY)),s=bk(a,e),o;if(a.isOver?o=wn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=wn({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var l=zt(["minner",a.isOver?"mover":"munder"],[o],e);a.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 zt(["minner",a.isOver?"mover":"munder"],[o],e)},ZBe=(t,e)=>{var r=_k(t.label);return new Ht(t.isOver?"mover":"munder",[zn(t.base,e),r])};ir({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{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:S0e,mathmlBuilder:ZBe});ir({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],a=en(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:ri(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Ci(t.body,e,!1);return dBe(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=ch(t.body,e);return r instanceof Ht||(r=new Ht("mrow",[r])),r.setAttribute("href",t.href),r}});ir({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 a=[],i=0;i{var{parser:r,funcName:n,token:a}=t,i=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=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d{var r=Ci(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=zt(n,r,e);for(var i in t.attributes)i!=="class"&&t.attributes.hasOwnProperty(i)&&a.setAttribute(i,t.attributes[i]);return a},mathmlBuilder:(t,e)=>ch(t.body,e)});ir({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:ri(e[0]),mathml:ri(e[1])}},htmlBuilder:(t,e)=>{var r=Ci(t.html,e,!1);return W0(r)},mathmlBuilder:(t,e)=>ch(t.mathml,e)});var cR=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(!Mue(n))throw new Vt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ir({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,a={number:0,unit:"em"},i={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=wa(t.height,e),n=0;t.totalheight.number>0&&(n=wa(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=wa(t.width,e));var i={height:Jt(r+n)};a>0&&(i.width=Jt(a)),n>0&&(i.verticalAlign=Jt(-n));var s=new eBe(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Ht("mglyph",[]);r.setAttribute("alt",t.alt);var n=wa(t.height,e),a=0;if(t.totalheight.number>0&&(a=wa(t.totalheight,e)-n,r.setAttribute("valign",Jt(-a))),r.setAttribute("height",Jt(n+a)),t.width.number>0){var i=wa(t.width,e);r.setAttribute("width",Jt(i))}return r.setAttribute("src",t.src),r}});ir({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,a=en(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.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:a.value}},htmlBuilder(t,e){return Gue(t.dimension,e)},mathmlBuilder(t,e){var r=wa(t.dimension,e);return new Kue(r)}});ir({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=zt([],[Rn(t.body,e)]),r=zt(["inner"],[r],e)):r=zt(["inner"],[Rn(t.body,e)]);var n=zt(["fix"],[]),a=zt([t.alignment],[r,n],e),i=zt(["strut"]);return i.style.height=Jt(a.height+a.depth),a.depth&&(i.style.verticalAlign=Jt(-a.depth)),a.children.unshift(i),a=zt(["thinbox"],[a],e),zt(["mord","vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new Ht("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}});ir({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});ir({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new Vt("Mismatched "+t.funcName)}});var FX=(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}};ir({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:ri(e[0]),text:ri(e[1]),script:ri(e[2]),scriptscript:ri(e[3])}},htmlBuilder:(t,e)=>{var r=FX(t,e),n=Ci(r,e,!1);return W0(n)},mathmlBuilder:(t,e)=>{var r=FX(t,e);return ch(r,e)}});var T0e=(t,e,r,n,a,i,s)=>{t=zt([],[t]);var o=r&&H0(r),l,u;if(e){var d=Rn(e,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Rn(r,n.havingStyle(a.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:Jt(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(i)},{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:Jt(-i)},{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:Jt(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var v=[f];if(l&&i!==0&&!o){var y=zt(["mspace"],[],n);y.style.marginRight=Jt(i),v.unshift(y)}return zt(["mop","op-limits"],v,n)},x0e=new Set(["\\smallint"]),jb=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=en(t.base,"op"),a=!0):i=en(t,"op");var s=e.style,o=!1;s.size===jr.DISPLAY.size&&i.symbol&&!x0e.has(i.name)&&(o=!0);var l,u;if(i.symbol){var d=o?"Size2-Regular":"Size1-Regular",h="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(h=i.name.slice(1),i.name=h==="oiint"?"\\iint":"\\iiint"),l=Rs(i.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=wn({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),i.name="\\"+h,l.classes.unshift("mop"),l.italic=u}}else if(i.body){var p=Ci(i.body,e,!0);p.length===1&&p[0]instanceof $o?(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",[Rl(t.name,t.mode)]),x0e.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Ht("mo",Wo(t.body,e));else{r=new Ht("mi",[new ni(t.name.slice(1))]);var n=new Ht("mo",[Rl("⁡","text")]);t.parentIsSupSub?r=new Ht("mrow",[r,n]):r=Wue([r,n])}return r},JBe={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ir({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,a=n;return a.length===1&&(a=JBe[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:jb,mathmlBuilder:dT});ir({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:ri(n)}},htmlBuilder:jb,mathmlBuilder:dT});var eFe={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ir({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:jb,mathmlBuilder:dT});ir({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:jb,mathmlBuilder:dT});ir({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=eFe[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:jb,mathmlBuilder:dT});var C0e=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=en(t.base,"operatorname"),a=!0):i=en(t,"operatorname");var s;if(i.body.length>0){for(var o=i.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=Ci(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Wo(t.body,e.withFont("mathrm")),n=!0,a=0;ad.toText()).join("");r=[new ni(o)]}var l=new Ht("mi",r);l.setAttribute("mathvariant","normal");var u=new Ht("mo",[Rl("⁡","text")]);return t.parentIsSupSub?new Ht("mrow",[l,u]):Wue([l,u])};ir({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"operatorname",mode:r.mode,body:ri(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:C0e,mathmlBuilder:tFe});be("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Jp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?W0(Ci(t.body,e,!1)):zt(["mord"],Ci(t.body,e,!0),e)},mathmlBuilder(t,e){return ch(t.body,e,!0)}});ir({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=eb("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=wn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return zt(["mord","overline"],[i],e)},mathmlBuilder(t,e){var r=new Ht("mo",[new ni("‾")]);r.setAttribute("stretchy","true");var n=new Ht("mover",[zn(t.body,e),r]);return n.setAttribute("accent","true"),n}});ir({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:ri(n)}},htmlBuilder:(t,e)=>{var r=Ci(t.body,e.withPhantom(),!1);return W0(r)},mathmlBuilder:(t,e)=>{var r=Wo(t.body,e);return new Ht("mphantom",r)}});be("\\hphantom","\\smash{\\phantom{#1}}");ir({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=zt(["inner"],[Rn(t.body,e.withPhantom())]),n=zt(["fix"],[]);return zt(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Wo(ri(t.body),e),n=new Ht("mphantom",r),a=new Ht("mpadded",[n]);return a.setAttribute("width","0px"),a}});ir({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,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=Rn(t.body,e),n=wa(t.dy,e);return wn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Ht("mpadded",[zn(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});ir({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});ir({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,a=r[0],i=en(e[0],"size"),s=en(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&en(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=zt(["mord","rule"],[],e),n=wa(t.width,e),a=wa(t.height,e),i=t.shift?wa(t.shift,e):0;return r.style.borderRightWidth=Jt(n),r.style.borderTopWidth=Jt(a),r.style.bottom=Jt(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=wa(t.width,e),n=wa(t.height,e),a=t.shift?wa(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new Ht("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",Jt(r)),s.setAttribute("height",Jt(n));var o=new Ht("mpadded",[s]);return a>=0?o.setAttribute("height",Jt(a)):(o.setAttribute("height",Jt(a)),o.setAttribute("depth",Jt(-a))),o.setAttribute("voffset",Jt(a)),o}});function w0e(t,e,r){for(var n=Ci(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i{var r=e.havingSize(t.size);return w0e(t.body,r,e)};ir({type:"sizing",names:$X,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:a}=t,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:$X.indexOf(n)+1,body:i}},htmlBuilder:rFe,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Wo(t.body,r),a=new Ht("mstyle",n);return a.setAttribute("mathsize",Jt(r.sizeMultiplier)),a}});ir({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,a=!1,i=!1,s=r[0]&&en(r[0],"ordgroup");if(s)for(var o,l=0;l{var r=zt([],[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 zt(["mord","smash"],[r],e);if(r.children)for(var n=0;n{var r=new Ht("mpadded",[zn(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});ir({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=Rn(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=tb(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;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=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=Rn(t.index,g,e),v=.6*(p.height-p.depth),y=wn({positionType:"shift",positionData:-v,children:[{type:"elem",elem:m}]}),b=zt(["root"],[y]);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",[zn(r,e),zn(n,e)]):new Ht("msqrt",[zn(r,e)])}});var JM={display:jr.DISPLAY,text:jr.TEXT,script:jr.SCRIPT,scriptscript:jr.SCRIPTSCRIPT};function nFe(t){return t in JM}ir({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:a}=t,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!nFe(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=JM[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),w0e(t.body,n,e)},mathmlBuilder(t,e){var r=JM[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var a=Wo(t.body,n),i=new Ht("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var aFe=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===jr.DISPLAY.size||n.alwaysHandleSupSub);return a?jb:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===jr.DISPLAY.size||n.limits);return i?C0e:null}else{if(n.type==="accent")return H0(n.base)?RU:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?S0e:null}else return null}else return null};Jp({type:"supsub",htmlBuilder(t,e){var r=aFe(t,e);if(r)return r(t,e);var{base:n,sup:a,sub:i}=t,s=Rn(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&H0(n);if(a){var p=e.havingStyle(e.style.sup());o=Rn(a,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(i){var g=e.havingStyle(e.style.sub());l=Rn(i,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 v=e.sizeMultiplier,y=Jt(.5/u.ptPerEm/v),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 $o||_){var S;b=Jt(-((S=s.italic)!=null?S: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 R=[{type:"elem",elem:l,shift:h,marginRight:y,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:y}];x=wn({positionType:"individualShift",children:R})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var O=[{type:"elem",elem:l,marginLeft:b,marginRight:y}];x=wn({positionType:"shift",positionData:h,children:O})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),x=wn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var M=KM(s,"right")||"mord";return zt([M],[s,zt(["msupsub"],[x])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[zn(t.base,e)];t.sub&&i.push(zn(t.sub,e)),t.sup&&i.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 Ht(s,i)}});Jp({type:"atom",htmlBuilder(t,e){return CU(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Ht("mo",[Rl(t.text,t.mode)]);if(t.family==="bin"){var n=AU(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 k0e={mi:"italic",mn:"normal",mtext:"normal"};Jp({type:"mathord",htmlBuilder(t,e){return yk(t,e,"mathord")},mathmlBuilder(t,e){var r=new Ht("mi",[Rl(t.text,t.mode,e)]),n=AU(t,e)||"italic";return n!==k0e[r.type]&&r.setAttribute("mathvariant",n),r}});Jp({type:"textord",htmlBuilder(t,e){return yk(t,e,"textord")},mathmlBuilder(t,e){var r=Rl(t.text,t.mode,e),n=AU(t,e)||"normal",a;return t.mode==="text"?a=new Ht("mtext",[r]):/[0-9]/.test(t.text)?a=new Ht("mn",[r]):t.text==="\\prime"?a=new Ht("mo",[r]):a=new Ht("mi",[r]),n!==k0e[a.type]&&a.setAttribute("mathvariant",n),a}});var uR={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},dR={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Jp({type:"spacing",htmlBuilder(t,e){if(dR.hasOwnProperty(t.text)){var r=dR[t.text].className||"";if(t.mode==="text"){var n=yk(t,e,"textord");return n.classes.push(r),n}else return zt(["mspace",r],[CU(t.text,t.mode,e)],e)}else{if(uR.hasOwnProperty(t.text))return zt(["mspace",uR[t.text]],[],e);throw new Vt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(dR.hasOwnProperty(t.text))r=new Ht("mtext",[new ni(" ")]);else{if(uR.hasOwnProperty(t.text))return new Ht("mspace");throw new Vt('Unknown type of space "'+t.text+'"')}return r}});var zX=()=>{var t=new Ht("mtd",[]);return t.setAttribute("width","50%"),t};Jp({type:"tag",mathmlBuilder(t,e){var r=new Ht("mtable",[new Ht("mtr",[zX(),new Ht("mtd",[ch(t.body,e)]),zX(),new Ht("mtd",[ch(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var UX={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},GX={"\\textbf":"textbf","\\textmd":"textmd"},iFe={"\\textit":"textit","\\textup":"textup"},qX=(t,e)=>{var r=t.font;if(r){if(UX[r])return e.withTextFontFamily(UX[r]);if(GX[r])return e.withTextFontWeight(GX[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(iFe[r])};ir({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,a=e[0];return{type:"text",mode:r.mode,body:ri(a),font:n}},htmlBuilder(t,e){var r=qX(t,e),n=Ci(t.body,r,!0);return zt(["mord","text"],n,r)},mathmlBuilder(t,e){var r=qX(t,e);return ch(t.body,r)}});ir({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=eb("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=wn({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return zt(["mord","underline"],[i],e)},mathmlBuilder(t,e){var r=new Ht("mo",[new ni("‾")]);r.setAttribute("stretchy","true");var n=new Ht("munder",[zn(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});ir({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,a=.5*(r.height-n-(r.depth+n));return wn({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Ht("mpadded",[zn(t.body,e)],["vcenter"]);return new Ht("mrow",[r])}});ir({type:"verb",names:["\\verb"],props:{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=YX(t),n=[],a=e.havingStyle(e.style.text()),i=0;it.body.replace(/ /g,t.star?"␣":" "),zd=Hue,A0e=`[ \r - ]`,sFe="\\\\[a-zA-Z@]+",oFe="\\\\[^\uD800-\uDFFF]",lFe="("+sFe+")"+A0e+"*",cFe=`\\\\( +-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 ZPe(t){return"toText"in t}let Wb=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(ZPe(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}};var FM={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},JPe={ex:!0,em:!0,mu:!0},Mue=function(e){return typeof e!="string"&&(e=e.unit),e in FM||e in JPe||e==="ex"},wa=function(e,r){var n;if(e.unit in FM)n=FM[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new Vt("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},Jt=function(e){return+e.toFixed(4)+"em"},sh=function(e){return e.filter(r=>r).join(" ")},TU=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=kPe(n)+":"+a+";")}return r},Pue=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 a=r.getColor();a&&(this.style.color=a)}},Bue=function(e){var r=document.createElement(e);r.className=sh(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a/=\x00-\x1f]/,Fue=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+us(sh(this.classes))+'"');var n=TU(this.style);n&&(r+=' style="'+us(n)+'"');for(var a of Object.keys(this.attributes)){if(eBe.test(a))throw new Vt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+us(this.attributes[a])+'"'}r+=">";for(var i=0;i",r};let Kb=class{constructor(e,r,n,a){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,Pue.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Bue.call(this,"span")}toMarkup(){return Fue.call(this,"span")}},mk=class{constructor(e,r,n,a){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,Pue.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Bue.call(this,"a")}toMarkup(){return Fue.call(this,"a")}},tBe=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=''+us(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=Jt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=sh(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+=TU(this.style),n&&(e=!0,r+=' style="'+us(n)+'"');var a=us(this.text);return e?(r+=">",r+=a,r+="",r):a}},C0=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 a=0;a':''}},$M=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 iBe=t=>t instanceof Kb||t instanceof mk||t instanceof Wb,Kc={"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]}},Ex={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]},fX={Å:"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 $ue(t,e){Kc[t]=e}function xU(t,e,r){if(!Kc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Kc[e][n];if(!a&&t[0]in fX&&(n=fX[t[0]].charCodeAt(0),a=Kc[e][n]),!a&&r==="text"&&Lue(n)&&(a=Kc[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Q8={};function sBe(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Q8[e]){var r=Q8[e]={cssEmPerMu:Ex.quad[e]/18};for(var n in Ex)Ex.hasOwnProperty(n)&&(r[n]=Ex[n][e])}return Q8[e]}var da={math:{},text:{}};function H(t,e,r,n,a,i){da[t][a]={font:e,group:r,replace:n},i&&n&&(da[t][n]=da[t][a])}var Q="math",Pt="text",ue="main",Ue="ams",ma="accent-token",cr="bin",Zs="close",Xb="inner",Rr="mathord",ui="op-token",Vo="open",uT="punct",We="rel",V0="spacing",Je="textord";H(Q,ue,We,"≡","\\equiv",!0);H(Q,ue,We,"≺","\\prec",!0);H(Q,ue,We,"≻","\\succ",!0);H(Q,ue,We,"∼","\\sim",!0);H(Q,ue,We,"⊥","\\perp");H(Q,ue,We,"⪯","\\preceq",!0);H(Q,ue,We,"⪰","\\succeq",!0);H(Q,ue,We,"≃","\\simeq",!0);H(Q,ue,We,"∣","\\mid",!0);H(Q,ue,We,"≪","\\ll",!0);H(Q,ue,We,"≫","\\gg",!0);H(Q,ue,We,"≍","\\asymp",!0);H(Q,ue,We,"∥","\\parallel");H(Q,ue,We,"⋈","\\bowtie",!0);H(Q,ue,We,"⌣","\\smile",!0);H(Q,ue,We,"⊑","\\sqsubseteq",!0);H(Q,ue,We,"⊒","\\sqsupseteq",!0);H(Q,ue,We,"≐","\\doteq",!0);H(Q,ue,We,"⌢","\\frown",!0);H(Q,ue,We,"∋","\\ni",!0);H(Q,ue,We,"∝","\\propto",!0);H(Q,ue,We,"⊢","\\vdash",!0);H(Q,ue,We,"⊣","\\dashv",!0);H(Q,ue,We,"∋","\\owns");H(Q,ue,uT,".","\\ldotp");H(Q,ue,uT,"⋅","\\cdotp");H(Q,ue,uT,"⋅","·");H(Pt,ue,Je,"⋅","·");H(Q,ue,Je,"#","\\#");H(Pt,ue,Je,"#","\\#");H(Q,ue,Je,"&","\\&");H(Pt,ue,Je,"&","\\&");H(Q,ue,Je,"ℵ","\\aleph",!0);H(Q,ue,Je,"∀","\\forall",!0);H(Q,ue,Je,"ℏ","\\hbar",!0);H(Q,ue,Je,"∃","\\exists",!0);H(Q,ue,Je,"∇","\\nabla",!0);H(Q,ue,Je,"♭","\\flat",!0);H(Q,ue,Je,"ℓ","\\ell",!0);H(Q,ue,Je,"♮","\\natural",!0);H(Q,ue,Je,"♣","\\clubsuit",!0);H(Q,ue,Je,"℘","\\wp",!0);H(Q,ue,Je,"♯","\\sharp",!0);H(Q,ue,Je,"♢","\\diamondsuit",!0);H(Q,ue,Je,"ℜ","\\Re",!0);H(Q,ue,Je,"♡","\\heartsuit",!0);H(Q,ue,Je,"ℑ","\\Im",!0);H(Q,ue,Je,"♠","\\spadesuit",!0);H(Q,ue,Je,"§","\\S",!0);H(Pt,ue,Je,"§","\\S");H(Q,ue,Je,"¶","\\P",!0);H(Pt,ue,Je,"¶","\\P");H(Q,ue,Je,"†","\\dag");H(Pt,ue,Je,"†","\\dag");H(Pt,ue,Je,"†","\\textdagger");H(Q,ue,Je,"‡","\\ddag");H(Pt,ue,Je,"‡","\\ddag");H(Pt,ue,Je,"‡","\\textdaggerdbl");H(Q,ue,Zs,"⎱","\\rmoustache",!0);H(Q,ue,Vo,"⎰","\\lmoustache",!0);H(Q,ue,Zs,"⟯","\\rgroup",!0);H(Q,ue,Vo,"⟮","\\lgroup",!0);H(Q,ue,cr,"∓","\\mp",!0);H(Q,ue,cr,"⊖","\\ominus",!0);H(Q,ue,cr,"⊎","\\uplus",!0);H(Q,ue,cr,"⊓","\\sqcap",!0);H(Q,ue,cr,"∗","\\ast");H(Q,ue,cr,"⊔","\\sqcup",!0);H(Q,ue,cr,"◯","\\bigcirc",!0);H(Q,ue,cr,"∙","\\bullet",!0);H(Q,ue,cr,"‡","\\ddagger");H(Q,ue,cr,"≀","\\wr",!0);H(Q,ue,cr,"⨿","\\amalg");H(Q,ue,cr,"&","\\And");H(Q,ue,We,"⟵","\\longleftarrow",!0);H(Q,ue,We,"⇐","\\Leftarrow",!0);H(Q,ue,We,"⟸","\\Longleftarrow",!0);H(Q,ue,We,"⟶","\\longrightarrow",!0);H(Q,ue,We,"⇒","\\Rightarrow",!0);H(Q,ue,We,"⟹","\\Longrightarrow",!0);H(Q,ue,We,"↔","\\leftrightarrow",!0);H(Q,ue,We,"⟷","\\longleftrightarrow",!0);H(Q,ue,We,"⇔","\\Leftrightarrow",!0);H(Q,ue,We,"⟺","\\Longleftrightarrow",!0);H(Q,ue,We,"↦","\\mapsto",!0);H(Q,ue,We,"⟼","\\longmapsto",!0);H(Q,ue,We,"↗","\\nearrow",!0);H(Q,ue,We,"↩","\\hookleftarrow",!0);H(Q,ue,We,"↪","\\hookrightarrow",!0);H(Q,ue,We,"↘","\\searrow",!0);H(Q,ue,We,"↼","\\leftharpoonup",!0);H(Q,ue,We,"⇀","\\rightharpoonup",!0);H(Q,ue,We,"↙","\\swarrow",!0);H(Q,ue,We,"↽","\\leftharpoondown",!0);H(Q,ue,We,"⇁","\\rightharpoondown",!0);H(Q,ue,We,"↖","\\nwarrow",!0);H(Q,ue,We,"⇌","\\rightleftharpoons",!0);H(Q,Ue,We,"≮","\\nless",!0);H(Q,Ue,We,"","\\@nleqslant");H(Q,Ue,We,"","\\@nleqq");H(Q,Ue,We,"⪇","\\lneq",!0);H(Q,Ue,We,"≨","\\lneqq",!0);H(Q,Ue,We,"","\\@lvertneqq");H(Q,Ue,We,"⋦","\\lnsim",!0);H(Q,Ue,We,"⪉","\\lnapprox",!0);H(Q,Ue,We,"⊀","\\nprec",!0);H(Q,Ue,We,"⋠","\\npreceq",!0);H(Q,Ue,We,"⋨","\\precnsim",!0);H(Q,Ue,We,"⪹","\\precnapprox",!0);H(Q,Ue,We,"≁","\\nsim",!0);H(Q,Ue,We,"","\\@nshortmid");H(Q,Ue,We,"∤","\\nmid",!0);H(Q,Ue,We,"⊬","\\nvdash",!0);H(Q,Ue,We,"⊭","\\nvDash",!0);H(Q,Ue,We,"⋪","\\ntriangleleft");H(Q,Ue,We,"⋬","\\ntrianglelefteq",!0);H(Q,Ue,We,"⊊","\\subsetneq",!0);H(Q,Ue,We,"","\\@varsubsetneq");H(Q,Ue,We,"⫋","\\subsetneqq",!0);H(Q,Ue,We,"","\\@varsubsetneqq");H(Q,Ue,We,"≯","\\ngtr",!0);H(Q,Ue,We,"","\\@ngeqslant");H(Q,Ue,We,"","\\@ngeqq");H(Q,Ue,We,"⪈","\\gneq",!0);H(Q,Ue,We,"≩","\\gneqq",!0);H(Q,Ue,We,"","\\@gvertneqq");H(Q,Ue,We,"⋧","\\gnsim",!0);H(Q,Ue,We,"⪊","\\gnapprox",!0);H(Q,Ue,We,"⊁","\\nsucc",!0);H(Q,Ue,We,"⋡","\\nsucceq",!0);H(Q,Ue,We,"⋩","\\succnsim",!0);H(Q,Ue,We,"⪺","\\succnapprox",!0);H(Q,Ue,We,"≆","\\ncong",!0);H(Q,Ue,We,"","\\@nshortparallel");H(Q,Ue,We,"∦","\\nparallel",!0);H(Q,Ue,We,"⊯","\\nVDash",!0);H(Q,Ue,We,"⋫","\\ntriangleright");H(Q,Ue,We,"⋭","\\ntrianglerighteq",!0);H(Q,Ue,We,"","\\@nsupseteqq");H(Q,Ue,We,"⊋","\\supsetneq",!0);H(Q,Ue,We,"","\\@varsupsetneq");H(Q,Ue,We,"⫌","\\supsetneqq",!0);H(Q,Ue,We,"","\\@varsupsetneqq");H(Q,Ue,We,"⊮","\\nVdash",!0);H(Q,Ue,We,"⪵","\\precneqq",!0);H(Q,Ue,We,"⪶","\\succneqq",!0);H(Q,Ue,We,"","\\@nsubseteqq");H(Q,Ue,cr,"⊴","\\unlhd");H(Q,Ue,cr,"⊵","\\unrhd");H(Q,Ue,We,"↚","\\nleftarrow",!0);H(Q,Ue,We,"↛","\\nrightarrow",!0);H(Q,Ue,We,"⇍","\\nLeftarrow",!0);H(Q,Ue,We,"⇏","\\nRightarrow",!0);H(Q,Ue,We,"↮","\\nleftrightarrow",!0);H(Q,Ue,We,"⇎","\\nLeftrightarrow",!0);H(Q,Ue,We,"△","\\vartriangle");H(Q,Ue,Je,"ℏ","\\hslash");H(Q,Ue,Je,"▽","\\triangledown");H(Q,Ue,Je,"◊","\\lozenge");H(Q,Ue,Je,"Ⓢ","\\circledS");H(Q,Ue,Je,"®","\\circledR");H(Pt,Ue,Je,"®","\\circledR");H(Q,Ue,Je,"∡","\\measuredangle",!0);H(Q,Ue,Je,"∄","\\nexists");H(Q,Ue,Je,"℧","\\mho");H(Q,Ue,Je,"Ⅎ","\\Finv",!0);H(Q,Ue,Je,"⅁","\\Game",!0);H(Q,Ue,Je,"‵","\\backprime");H(Q,Ue,Je,"▲","\\blacktriangle");H(Q,Ue,Je,"▼","\\blacktriangledown");H(Q,Ue,Je,"■","\\blacksquare");H(Q,Ue,Je,"⧫","\\blacklozenge");H(Q,Ue,Je,"★","\\bigstar");H(Q,Ue,Je,"∢","\\sphericalangle",!0);H(Q,Ue,Je,"∁","\\complement",!0);H(Q,Ue,Je,"ð","\\eth",!0);H(Pt,ue,Je,"ð","ð");H(Q,Ue,Je,"╱","\\diagup");H(Q,Ue,Je,"╲","\\diagdown");H(Q,Ue,Je,"□","\\square");H(Q,Ue,Je,"□","\\Box");H(Q,Ue,Je,"◊","\\Diamond");H(Q,Ue,Je,"¥","\\yen",!0);H(Pt,Ue,Je,"¥","\\yen",!0);H(Q,Ue,Je,"✓","\\checkmark",!0);H(Pt,Ue,Je,"✓","\\checkmark");H(Q,Ue,Je,"ℶ","\\beth",!0);H(Q,Ue,Je,"ℸ","\\daleth",!0);H(Q,Ue,Je,"ℷ","\\gimel",!0);H(Q,Ue,Je,"ϝ","\\digamma",!0);H(Q,Ue,Je,"ϰ","\\varkappa");H(Q,Ue,Vo,"┌","\\@ulcorner",!0);H(Q,Ue,Zs,"┐","\\@urcorner",!0);H(Q,Ue,Vo,"└","\\@llcorner",!0);H(Q,Ue,Zs,"┘","\\@lrcorner",!0);H(Q,Ue,We,"≦","\\leqq",!0);H(Q,Ue,We,"⩽","\\leqslant",!0);H(Q,Ue,We,"⪕","\\eqslantless",!0);H(Q,Ue,We,"≲","\\lesssim",!0);H(Q,Ue,We,"⪅","\\lessapprox",!0);H(Q,Ue,We,"≊","\\approxeq",!0);H(Q,Ue,cr,"⋖","\\lessdot");H(Q,Ue,We,"⋘","\\lll",!0);H(Q,Ue,We,"≶","\\lessgtr",!0);H(Q,Ue,We,"⋚","\\lesseqgtr",!0);H(Q,Ue,We,"⪋","\\lesseqqgtr",!0);H(Q,Ue,We,"≑","\\doteqdot");H(Q,Ue,We,"≓","\\risingdotseq",!0);H(Q,Ue,We,"≒","\\fallingdotseq",!0);H(Q,Ue,We,"∽","\\backsim",!0);H(Q,Ue,We,"⋍","\\backsimeq",!0);H(Q,Ue,We,"⫅","\\subseteqq",!0);H(Q,Ue,We,"⋐","\\Subset",!0);H(Q,Ue,We,"⊏","\\sqsubset",!0);H(Q,Ue,We,"≼","\\preccurlyeq",!0);H(Q,Ue,We,"⋞","\\curlyeqprec",!0);H(Q,Ue,We,"≾","\\precsim",!0);H(Q,Ue,We,"⪷","\\precapprox",!0);H(Q,Ue,We,"⊲","\\vartriangleleft");H(Q,Ue,We,"⊴","\\trianglelefteq");H(Q,Ue,We,"⊨","\\vDash",!0);H(Q,Ue,We,"⊪","\\Vvdash",!0);H(Q,Ue,We,"⌣","\\smallsmile");H(Q,Ue,We,"⌢","\\smallfrown");H(Q,Ue,We,"≏","\\bumpeq",!0);H(Q,Ue,We,"≎","\\Bumpeq",!0);H(Q,Ue,We,"≧","\\geqq",!0);H(Q,Ue,We,"⩾","\\geqslant",!0);H(Q,Ue,We,"⪖","\\eqslantgtr",!0);H(Q,Ue,We,"≳","\\gtrsim",!0);H(Q,Ue,We,"⪆","\\gtrapprox",!0);H(Q,Ue,cr,"⋗","\\gtrdot");H(Q,Ue,We,"⋙","\\ggg",!0);H(Q,Ue,We,"≷","\\gtrless",!0);H(Q,Ue,We,"⋛","\\gtreqless",!0);H(Q,Ue,We,"⪌","\\gtreqqless",!0);H(Q,Ue,We,"≖","\\eqcirc",!0);H(Q,Ue,We,"≗","\\circeq",!0);H(Q,Ue,We,"≜","\\triangleq",!0);H(Q,Ue,We,"∼","\\thicksim");H(Q,Ue,We,"≈","\\thickapprox");H(Q,Ue,We,"⫆","\\supseteqq",!0);H(Q,Ue,We,"⋑","\\Supset",!0);H(Q,Ue,We,"⊐","\\sqsupset",!0);H(Q,Ue,We,"≽","\\succcurlyeq",!0);H(Q,Ue,We,"⋟","\\curlyeqsucc",!0);H(Q,Ue,We,"≿","\\succsim",!0);H(Q,Ue,We,"⪸","\\succapprox",!0);H(Q,Ue,We,"⊳","\\vartriangleright");H(Q,Ue,We,"⊵","\\trianglerighteq");H(Q,Ue,We,"⊩","\\Vdash",!0);H(Q,Ue,We,"∣","\\shortmid");H(Q,Ue,We,"∥","\\shortparallel");H(Q,Ue,We,"≬","\\between",!0);H(Q,Ue,We,"⋔","\\pitchfork",!0);H(Q,Ue,We,"∝","\\varpropto");H(Q,Ue,We,"◀","\\blacktriangleleft");H(Q,Ue,We,"∴","\\therefore",!0);H(Q,Ue,We,"∍","\\backepsilon");H(Q,Ue,We,"▶","\\blacktriangleright");H(Q,Ue,We,"∵","\\because",!0);H(Q,Ue,We,"⋘","\\llless");H(Q,Ue,We,"⋙","\\gggtr");H(Q,Ue,cr,"⊲","\\lhd");H(Q,Ue,cr,"⊳","\\rhd");H(Q,Ue,We,"≂","\\eqsim",!0);H(Q,ue,We,"⋈","\\Join");H(Q,Ue,We,"≑","\\Doteq",!0);H(Q,Ue,cr,"∔","\\dotplus",!0);H(Q,Ue,cr,"∖","\\smallsetminus");H(Q,Ue,cr,"⋒","\\Cap",!0);H(Q,Ue,cr,"⋓","\\Cup",!0);H(Q,Ue,cr,"⩞","\\doublebarwedge",!0);H(Q,Ue,cr,"⊟","\\boxminus",!0);H(Q,Ue,cr,"⊞","\\boxplus",!0);H(Q,Ue,cr,"⋇","\\divideontimes",!0);H(Q,Ue,cr,"⋉","\\ltimes",!0);H(Q,Ue,cr,"⋊","\\rtimes",!0);H(Q,Ue,cr,"⋋","\\leftthreetimes",!0);H(Q,Ue,cr,"⋌","\\rightthreetimes",!0);H(Q,Ue,cr,"⋏","\\curlywedge",!0);H(Q,Ue,cr,"⋎","\\curlyvee",!0);H(Q,Ue,cr,"⊝","\\circleddash",!0);H(Q,Ue,cr,"⊛","\\circledast",!0);H(Q,Ue,cr,"⋅","\\centerdot");H(Q,Ue,cr,"⊺","\\intercal",!0);H(Q,Ue,cr,"⋒","\\doublecap");H(Q,Ue,cr,"⋓","\\doublecup");H(Q,Ue,cr,"⊠","\\boxtimes",!0);H(Q,Ue,We,"⇢","\\dashrightarrow",!0);H(Q,Ue,We,"⇠","\\dashleftarrow",!0);H(Q,Ue,We,"⇇","\\leftleftarrows",!0);H(Q,Ue,We,"⇆","\\leftrightarrows",!0);H(Q,Ue,We,"⇚","\\Lleftarrow",!0);H(Q,Ue,We,"↞","\\twoheadleftarrow",!0);H(Q,Ue,We,"↢","\\leftarrowtail",!0);H(Q,Ue,We,"↫","\\looparrowleft",!0);H(Q,Ue,We,"⇋","\\leftrightharpoons",!0);H(Q,Ue,We,"↶","\\curvearrowleft",!0);H(Q,Ue,We,"↺","\\circlearrowleft",!0);H(Q,Ue,We,"↰","\\Lsh",!0);H(Q,Ue,We,"⇈","\\upuparrows",!0);H(Q,Ue,We,"↿","\\upharpoonleft",!0);H(Q,Ue,We,"⇃","\\downharpoonleft",!0);H(Q,ue,We,"⊶","\\origof",!0);H(Q,ue,We,"⊷","\\imageof",!0);H(Q,Ue,We,"⊸","\\multimap",!0);H(Q,Ue,We,"↭","\\leftrightsquigarrow",!0);H(Q,Ue,We,"⇉","\\rightrightarrows",!0);H(Q,Ue,We,"⇄","\\rightleftarrows",!0);H(Q,Ue,We,"↠","\\twoheadrightarrow",!0);H(Q,Ue,We,"↣","\\rightarrowtail",!0);H(Q,Ue,We,"↬","\\looparrowright",!0);H(Q,Ue,We,"↷","\\curvearrowright",!0);H(Q,Ue,We,"↻","\\circlearrowright",!0);H(Q,Ue,We,"↱","\\Rsh",!0);H(Q,Ue,We,"⇊","\\downdownarrows",!0);H(Q,Ue,We,"↾","\\upharpoonright",!0);H(Q,Ue,We,"⇂","\\downharpoonright",!0);H(Q,Ue,We,"⇝","\\rightsquigarrow",!0);H(Q,Ue,We,"⇝","\\leadsto");H(Q,Ue,We,"⇛","\\Rrightarrow",!0);H(Q,Ue,We,"↾","\\restriction");H(Q,ue,Je,"‘","`");H(Q,ue,Je,"$","\\$");H(Pt,ue,Je,"$","\\$");H(Pt,ue,Je,"$","\\textdollar");H(Q,ue,Je,"%","\\%");H(Pt,ue,Je,"%","\\%");H(Q,ue,Je,"_","\\_");H(Pt,ue,Je,"_","\\_");H(Pt,ue,Je,"_","\\textunderscore");H(Q,ue,Je,"∠","\\angle",!0);H(Q,ue,Je,"∞","\\infty",!0);H(Q,ue,Je,"′","\\prime");H(Q,ue,Je,"△","\\triangle");H(Q,ue,Je,"Γ","\\Gamma",!0);H(Q,ue,Je,"Δ","\\Delta",!0);H(Q,ue,Je,"Θ","\\Theta",!0);H(Q,ue,Je,"Λ","\\Lambda",!0);H(Q,ue,Je,"Ξ","\\Xi",!0);H(Q,ue,Je,"Π","\\Pi",!0);H(Q,ue,Je,"Σ","\\Sigma",!0);H(Q,ue,Je,"Υ","\\Upsilon",!0);H(Q,ue,Je,"Φ","\\Phi",!0);H(Q,ue,Je,"Ψ","\\Psi",!0);H(Q,ue,Je,"Ω","\\Omega",!0);H(Q,ue,Je,"A","Α");H(Q,ue,Je,"B","Β");H(Q,ue,Je,"E","Ε");H(Q,ue,Je,"Z","Ζ");H(Q,ue,Je,"H","Η");H(Q,ue,Je,"I","Ι");H(Q,ue,Je,"K","Κ");H(Q,ue,Je,"M","Μ");H(Q,ue,Je,"N","Ν");H(Q,ue,Je,"O","Ο");H(Q,ue,Je,"P","Ρ");H(Q,ue,Je,"T","Τ");H(Q,ue,Je,"X","Χ");H(Q,ue,Je,"¬","\\neg",!0);H(Q,ue,Je,"¬","\\lnot");H(Q,ue,Je,"⊤","\\top");H(Q,ue,Je,"⊥","\\bot");H(Q,ue,Je,"∅","\\emptyset");H(Q,Ue,Je,"∅","\\varnothing");H(Q,ue,Rr,"α","\\alpha",!0);H(Q,ue,Rr,"β","\\beta",!0);H(Q,ue,Rr,"γ","\\gamma",!0);H(Q,ue,Rr,"δ","\\delta",!0);H(Q,ue,Rr,"ϵ","\\epsilon",!0);H(Q,ue,Rr,"ζ","\\zeta",!0);H(Q,ue,Rr,"η","\\eta",!0);H(Q,ue,Rr,"θ","\\theta",!0);H(Q,ue,Rr,"ι","\\iota",!0);H(Q,ue,Rr,"κ","\\kappa",!0);H(Q,ue,Rr,"λ","\\lambda",!0);H(Q,ue,Rr,"μ","\\mu",!0);H(Q,ue,Rr,"ν","\\nu",!0);H(Q,ue,Rr,"ξ","\\xi",!0);H(Q,ue,Rr,"ο","\\omicron",!0);H(Q,ue,Rr,"π","\\pi",!0);H(Q,ue,Rr,"ρ","\\rho",!0);H(Q,ue,Rr,"σ","\\sigma",!0);H(Q,ue,Rr,"τ","\\tau",!0);H(Q,ue,Rr,"υ","\\upsilon",!0);H(Q,ue,Rr,"ϕ","\\phi",!0);H(Q,ue,Rr,"χ","\\chi",!0);H(Q,ue,Rr,"ψ","\\psi",!0);H(Q,ue,Rr,"ω","\\omega",!0);H(Q,ue,Rr,"ε","\\varepsilon",!0);H(Q,ue,Rr,"ϑ","\\vartheta",!0);H(Q,ue,Rr,"ϖ","\\varpi",!0);H(Q,ue,Rr,"ϱ","\\varrho",!0);H(Q,ue,Rr,"ς","\\varsigma",!0);H(Q,ue,Rr,"φ","\\varphi",!0);H(Q,ue,cr,"∗","*",!0);H(Q,ue,cr,"+","+");H(Q,ue,cr,"−","-",!0);H(Q,ue,cr,"⋅","\\cdot",!0);H(Q,ue,cr,"∘","\\circ",!0);H(Q,ue,cr,"÷","\\div",!0);H(Q,ue,cr,"±","\\pm",!0);H(Q,ue,cr,"×","\\times",!0);H(Q,ue,cr,"∩","\\cap",!0);H(Q,ue,cr,"∪","\\cup",!0);H(Q,ue,cr,"∖","\\setminus",!0);H(Q,ue,cr,"∧","\\land");H(Q,ue,cr,"∨","\\lor");H(Q,ue,cr,"∧","\\wedge",!0);H(Q,ue,cr,"∨","\\vee",!0);H(Q,ue,Je,"√","\\surd");H(Q,ue,Vo,"⟨","\\langle",!0);H(Q,ue,Vo,"∣","\\lvert");H(Q,ue,Vo,"∥","\\lVert");H(Q,ue,Zs,"?","?");H(Q,ue,Zs,"!","!");H(Q,ue,Zs,"⟩","\\rangle",!0);H(Q,ue,Zs,"∣","\\rvert");H(Q,ue,Zs,"∥","\\rVert");H(Q,ue,We,"=","=");H(Q,ue,We,":",":");H(Q,ue,We,"≈","\\approx",!0);H(Q,ue,We,"≅","\\cong",!0);H(Q,ue,We,"≥","\\ge");H(Q,ue,We,"≥","\\geq",!0);H(Q,ue,We,"←","\\gets");H(Q,ue,We,">","\\gt",!0);H(Q,ue,We,"∈","\\in",!0);H(Q,ue,We,"","\\@not");H(Q,ue,We,"⊂","\\subset",!0);H(Q,ue,We,"⊃","\\supset",!0);H(Q,ue,We,"⊆","\\subseteq",!0);H(Q,ue,We,"⊇","\\supseteq",!0);H(Q,Ue,We,"⊈","\\nsubseteq",!0);H(Q,Ue,We,"⊉","\\nsupseteq",!0);H(Q,ue,We,"⊨","\\models");H(Q,ue,We,"←","\\leftarrow",!0);H(Q,ue,We,"≤","\\le");H(Q,ue,We,"≤","\\leq",!0);H(Q,ue,We,"<","\\lt",!0);H(Q,ue,We,"→","\\rightarrow",!0);H(Q,ue,We,"→","\\to");H(Q,Ue,We,"≱","\\ngeq",!0);H(Q,Ue,We,"≰","\\nleq",!0);H(Q,ue,V0," ","\\ ");H(Q,ue,V0," ","\\space");H(Q,ue,V0," ","\\nobreakspace");H(Pt,ue,V0," ","\\ ");H(Pt,ue,V0," "," ");H(Pt,ue,V0," ","\\space");H(Pt,ue,V0," ","\\nobreakspace");H(Q,ue,V0,"","\\nobreak");H(Q,ue,V0,"","\\allowbreak");H(Q,ue,uT,",",",");H(Q,ue,uT,";",";");H(Q,Ue,cr,"⊼","\\barwedge",!0);H(Q,Ue,cr,"⊻","\\veebar",!0);H(Q,ue,cr,"⊙","\\odot",!0);H(Q,ue,cr,"⊕","\\oplus",!0);H(Q,ue,cr,"⊗","\\otimes",!0);H(Q,ue,Je,"∂","\\partial",!0);H(Q,ue,cr,"⊘","\\oslash",!0);H(Q,Ue,cr,"⊚","\\circledcirc",!0);H(Q,Ue,cr,"⊡","\\boxdot",!0);H(Q,ue,cr,"△","\\bigtriangleup");H(Q,ue,cr,"▽","\\bigtriangledown");H(Q,ue,cr,"†","\\dagger");H(Q,ue,cr,"⋄","\\diamond");H(Q,ue,cr,"⋆","\\star");H(Q,ue,cr,"◃","\\triangleleft");H(Q,ue,cr,"▹","\\triangleright");H(Q,ue,Vo,"{","\\{");H(Pt,ue,Je,"{","\\{");H(Pt,ue,Je,"{","\\textbraceleft");H(Q,ue,Zs,"}","\\}");H(Pt,ue,Je,"}","\\}");H(Pt,ue,Je,"}","\\textbraceright");H(Q,ue,Vo,"{","\\lbrace");H(Q,ue,Zs,"}","\\rbrace");H(Q,ue,Vo,"[","\\lbrack",!0);H(Pt,ue,Je,"[","\\lbrack",!0);H(Q,ue,Zs,"]","\\rbrack",!0);H(Pt,ue,Je,"]","\\rbrack",!0);H(Q,ue,Vo,"(","\\lparen",!0);H(Q,ue,Zs,")","\\rparen",!0);H(Pt,ue,Je,"<","\\textless",!0);H(Pt,ue,Je,">","\\textgreater",!0);H(Q,ue,Vo,"⌊","\\lfloor",!0);H(Q,ue,Zs,"⌋","\\rfloor",!0);H(Q,ue,Vo,"⌈","\\lceil",!0);H(Q,ue,Zs,"⌉","\\rceil",!0);H(Q,ue,Je,"\\","\\backslash");H(Q,ue,Je,"∣","|");H(Q,ue,Je,"∣","\\vert");H(Pt,ue,Je,"|","\\textbar",!0);H(Q,ue,Je,"∥","\\|");H(Q,ue,Je,"∥","\\Vert");H(Pt,ue,Je,"∥","\\textbardbl");H(Pt,ue,Je,"~","\\textasciitilde");H(Pt,ue,Je,"\\","\\textbackslash");H(Pt,ue,Je,"^","\\textasciicircum");H(Q,ue,We,"↑","\\uparrow",!0);H(Q,ue,We,"⇑","\\Uparrow",!0);H(Q,ue,We,"↓","\\downarrow",!0);H(Q,ue,We,"⇓","\\Downarrow",!0);H(Q,ue,We,"↕","\\updownarrow",!0);H(Q,ue,We,"⇕","\\Updownarrow",!0);H(Q,ue,ui,"∐","\\coprod");H(Q,ue,ui,"⋁","\\bigvee");H(Q,ue,ui,"⋀","\\bigwedge");H(Q,ue,ui,"⨄","\\biguplus");H(Q,ue,ui,"⋂","\\bigcap");H(Q,ue,ui,"⋃","\\bigcup");H(Q,ue,ui,"∫","\\int");H(Q,ue,ui,"∫","\\intop");H(Q,ue,ui,"∬","\\iint");H(Q,ue,ui,"∭","\\iiint");H(Q,ue,ui,"∏","\\prod");H(Q,ue,ui,"∑","\\sum");H(Q,ue,ui,"⨂","\\bigotimes");H(Q,ue,ui,"⨁","\\bigoplus");H(Q,ue,ui,"⨀","\\bigodot");H(Q,ue,ui,"∮","\\oint");H(Q,ue,ui,"∯","\\oiint");H(Q,ue,ui,"∰","\\oiiint");H(Q,ue,ui,"⨆","\\bigsqcup");H(Q,ue,ui,"∫","\\smallint");H(Pt,ue,Xb,"…","\\textellipsis");H(Q,ue,Xb,"…","\\mathellipsis");H(Pt,ue,Xb,"…","\\ldots",!0);H(Q,ue,Xb,"…","\\ldots",!0);H(Q,ue,Xb,"⋯","\\@cdots",!0);H(Q,ue,Xb,"⋱","\\ddots",!0);H(Q,ue,Je,"⋮","\\varvdots");H(Pt,ue,Je,"⋮","\\varvdots");H(Q,ue,ma,"ˊ","\\acute");H(Q,ue,ma,"ˋ","\\grave");H(Q,ue,ma,"¨","\\ddot");H(Q,ue,ma,"~","\\tilde");H(Q,ue,ma,"ˉ","\\bar");H(Q,ue,ma,"˘","\\breve");H(Q,ue,ma,"ˇ","\\check");H(Q,ue,ma,"^","\\hat");H(Q,ue,ma,"⃗","\\vec");H(Q,ue,ma,"˙","\\dot");H(Q,ue,ma,"˚","\\mathring");H(Q,ue,Rr,"","\\@imath");H(Q,ue,Rr,"","\\@jmath");H(Q,ue,Je,"ı","ı");H(Q,ue,Je,"ȷ","ȷ");H(Pt,ue,Je,"ı","\\i",!0);H(Pt,ue,Je,"ȷ","\\j",!0);H(Pt,ue,Je,"ß","\\ss",!0);H(Pt,ue,Je,"æ","\\ae",!0);H(Pt,ue,Je,"œ","\\oe",!0);H(Pt,ue,Je,"ø","\\o",!0);H(Pt,ue,Je,"Æ","\\AE",!0);H(Pt,ue,Je,"Œ","\\OE",!0);H(Pt,ue,Je,"Ø","\\O",!0);H(Pt,ue,ma,"ˊ","\\'");H(Pt,ue,ma,"ˋ","\\`");H(Pt,ue,ma,"ˆ","\\^");H(Pt,ue,ma,"˜","\\~");H(Pt,ue,ma,"ˉ","\\=");H(Pt,ue,ma,"˘","\\u");H(Pt,ue,ma,"˙","\\.");H(Pt,ue,ma,"¸","\\c");H(Pt,ue,ma,"˚","\\r");H(Pt,ue,ma,"ˇ","\\v");H(Pt,ue,ma,"¨",'\\"');H(Pt,ue,ma,"˝","\\H");H(Pt,ue,ma,"◯","\\textcircled");var zue={"--":!0,"---":!0,"``":!0,"''":!0};H(Pt,ue,Je,"–","--",!0);H(Pt,ue,Je,"–","\\textendash");H(Pt,ue,Je,"—","---",!0);H(Pt,ue,Je,"—","\\textemdash");H(Pt,ue,Je,"‘","`",!0);H(Pt,ue,Je,"‘","\\textquoteleft");H(Pt,ue,Je,"’","'",!0);H(Pt,ue,Je,"’","\\textquoteright");H(Pt,ue,Je,"“","``",!0);H(Pt,ue,Je,"“","\\textquotedblleft");H(Pt,ue,Je,"”","''",!0);H(Pt,ue,Je,"”","\\textquotedblright");H(Q,ue,Je,"°","\\degree",!0);H(Pt,ue,Je,"°","\\degree");H(Pt,ue,Je,"°","\\textdegree",!0);H(Q,ue,Je,"£","\\pounds");H(Q,ue,Je,"£","\\mathsterling",!0);H(Pt,ue,Je,"£","\\pounds");H(Pt,ue,Je,"£","\\textsterling",!0);H(Q,Ue,Je,"✠","\\maltese");H(Pt,Ue,Je,"✠","\\maltese");var pX='0123456789/@."';for(var Z8=0;Z8{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return xX[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return lBe[i]}else{if(n===120485||n===120486)return xX[0];if(120486{if(sh(t.classes)!==sh(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 a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},Uue=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},zt=function(e,r,n,a){var i=new Kb(e,r,n,a);return wU(i),i},lh=(t,e,r,n)=>new Kb(t,e,r,n),eb=function(e,r,n){var a=zt([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=Jt(a.height),a.maxFontSize=1,a},hBe=function(e,r,n,a){var i=new mk(e,r,n,a);return wU(i),i},W0=function(e){var r=new Wb(e);return wU(r),r},tb=function(e,r){return e instanceof Wb?zt([],[e],r):e},fBe=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s{var r=zt(["mspace"],[],e),n=wa(t,e);return r.style.marginRight=Jt(n),r},xx=(t,e,r)=>{var n,a;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"?a="BoldItalic":e==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},HM={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"}},que={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,a,i]=que[e],s=new oh(n),o=new C0([s],{width:Jt(a),height:Jt(i),style:"width:"+Jt(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=lh(["overlay"],[o],r);return l.height=i,l.style.height=Jt(i),l.style.width=Jt(a),l},Ta={number:3,unit:"mu"},lf={number:4,unit:"mu"},$u={number:5,unit:"mu"},pBe={mord:{mop:Ta,mbin:lf,mrel:$u,minner:Ta},mop:{mord:Ta,mop:Ta,mrel:$u,minner:Ta},mbin:{mord:lf,mop:lf,mopen:lf,minner:lf},mrel:{mord:$u,mop:$u,mopen:$u,minner:$u},mopen:{},mclose:{mop:Ta,mbin:lf,mrel:$u,minner:Ta},mpunct:{mord:Ta,mop:Ta,mrel:$u,mopen:Ta,mclose:Ta,mpunct:Ta,minner:Ta},minner:{mord:Ta,mop:Ta,mbin:lf,mrel:$u,mopen:Ta,mpunct:Ta,minner:Ta}},gBe={mord:{mop:Ta},mop:{mord:Ta,mop:Ta},mbin:{},mrel:{},mopen:{},mclose:{mop:Ta},mpunct:{},minner:{mop:Ta}},Hue={},OC={},DC={};function ir(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,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:a},l=0;l{var v=m.classes[0],y=g.classes[0];v==="mbin"&&vBe.has(y)?m.classes[0]="mord":y==="mbin"&&mBe.has(v)&&(g.classes[0]="mord")},{node:h},f,p),VM(i,(g,m)=>{var v,y,b=KM(m),_=KM(g),S=b&&_?g.hasClass("mtight")?(v=gBe[b])==null?void 0:v[_]:(y=pBe[b])==null?void 0:y[_]:null;if(S)return Gue(S,u)},{node:h},f,p),i},VM=function(e,r,n,a,i){a&&e.push(a);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}a&&e.pop()},Vue=function(e){return e instanceof Wb||e instanceof mk||e instanceof Kb&&e.hasClass("enclosing")?e:null},WM=function(e,r){var n=Vue(e);if(n){var a=n.children;if(a.length){if(r==="right")return WM(a[a.length-1],"right");if(r==="left")return WM(a[0],"left")}}return e},KM=function(e,r){if(!e)return null;r&&(e=WM(e,r));var n=e.classes[0];return _Be[n]||null},qS=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return zt(r.concat(n))},Rn=function(e,r,n){if(!e)return zt();if(OC[e.type]){var a=OC[e.type](e,r);if(n&&r.size!==n.size){a=zt(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new Vt("Got group of unknown type: '"+e.type+"'")};function Cx(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 XM(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Ci(t,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o0&&(i.push(Cx(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(Cx(s,e));var u;r?(u=Cx(Ci(r,e,!0),e),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=zt(["katex-html"],i);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 Wue(t){return new Wb(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=sh(this.classes));for(var n=0;n0&&(e+=' class ="'+us(sh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ni=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return us(this.toText())}toText(){return this.text}},Kue=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 bBe=new Set(["\\imath","\\jmath"]),EBe=new Set(["mrow","mtable"]),Rl=function(e,r,n){return da[r][e]&&da[r][e].replace&&e.charCodeAt(0)!==55349&&!(zue.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=da[r][e].replace),new ni(e)},kU=function(e){return e.length===1?e[0]:new Ht("mrow",e)},SBe={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"},AU=(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,a=SBe[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(bBe.has(i))return null;if(da[n][i]){var s=da[n][i].replace;s&&(i=s)}var o=HM[r].fontName;return xU(i,o,n)?HM[r].variant:null};function rR(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ni&&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 ni&&r.text===","}else return!1}var Wo=function(e,r,n){if(e.length===1){var a=zn(e[0],r);return n&&a instanceof Ht&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o=1&&(s.type==="mn"||rR(s))){var u=l.children[0];u instanceof Ht&&u.type==="mn"&&(u.children=[...s.children,...u.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ni&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof ni&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(l),s=l}return i},ch=function(e,r,n){return kU(Wo(e,r,n))},zn=function(e,r){if(!e)return new Ht("mrow");if(DC[e.type])return DC[e.type](e,r);throw new Vt("Got group of unknown type: '"+e.type+"'")};function CX(t,e,r,n,a){var i=Wo(t,r),s;i.length===1&&i[0]instanceof Ht&&EBe.has(i[0].type)?s=i[0]:s=new Ht("mrow",i);var o=new Ht("annotation",[new ni(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=a?"katex":"katex-mathml";return zt([d],[u])}var TBe=[[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]],wX=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],kX=function(e,r){return r.size<2?e:TBe[e-1][r.size-1]};let Xue=class wf{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||wf.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=wX[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 wf(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:kX(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:wX[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=kX(wf.BASESIZE,e);return this.size===r&&this.textSize===wf.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!==wf.BASESIZE?["sizing","reset-size"+this.size,"size"+wf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=sBe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Xue.BASESIZE=6;var jue=function(e){return new Xue({style:e.displayMode?jr.DISPLAY:jr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Que=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},xBe=function(e,r,n){var a=jue(n),i;if(n.output==="mathml")return CX(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=XM(e,a);i=zt(["katex"],[s])}else{var o=CX(e,r,a,n.displayMode,!1),l=XM(e,a);i=zt(["katex"],[o,l])}return Que(i,n)},CBe=function(e,r,n){var a=jue(n),i=XM(e,a),s=zt(["katex"],[i]);return Que(s,n)},wBe={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":"="},_k=function(e){var r=new Ht("mo",[new ni(wBe[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},kBe={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]},ABe=new Set(["widehat","widecheck","widetilde","utilde"]),bk=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(ABe.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 oh(h),m=new C0([g],{width:"100%",height:Jt(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:lh([],[m],r),minWidth:0,height:f}}else{var v=[],y=kBe[l];if(!y)throw new Error('No SVG data for "'+l+'".');var[b,_,S]=y,x=S/1e3,C=b.length,T,w;if(C===1){if(y.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+l+'".');T=["hide-tail"],w=[y[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 R=0;R0&&(a.style.minWidth=Jt(i)),a},RBe=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=zt(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new $M({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new $M({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new C0(u,{width:"100%",height:Jt(o)});s=lh([],[d],i)}return s.height=o,s.style.height=Jt(o),s},NBe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},IBe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function OBe(t){return t in NBe}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 Ek(t){var e=Sk(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 Sk(t){return t&&(t.type==="atom"||IBe.hasOwnProperty(t.type))?t:null}var Zue=t=>{if(t instanceof $o)return t;if(iBe(t)&&t.children.length===1)return Zue(t.children[0])},RU=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=en(t.base,"accent"),r=n.base,t.base=r,a=aBe(Rn(t,e)),t.base=n):(n=en(t,"accent"),r=n.base);var i=Rn(r,e.havingCrampedStyle()),s=n.isShifty&&H0(r),o=0;if(s){var l,u;o=(l=(u=Zue(i))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=bk(n,e),f=wn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{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=que.vec[1]):(p=yk({mode:n.mode,text:n.label},e,"textord"),p=nBe(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=i.height);var v=o;m||(v-=g/2),f.style.left=Jt(v),n.label==="\\textcircled"&&(f.style.top=".2em"),f=wn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:f}]})}var y=zt(["mord","accent"],[f],e);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},Jue=(t,e)=>{var r=t.isStretchy?_k(t.label):new Ht("mo",[Rl(t.label,t.mode)]),n=new Ht("mover",[zn(t.base,e),r]);return n.setAttribute("accent","true"),n},DBe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));ir({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=LC(e[0]),n=!DBe.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:RU,mathmlBuilder:Jue});ir({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:RU,mathmlBuilder:Jue});ir({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=Rn(t.base,e),n=bk(t,e),a=t.label==="\\utilde"?.12:0,i=wn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return zt(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=_k(t.label),n=new Ht("munder",[zn(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var wx=t=>{var e=new Ht("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};ir({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:a}=t;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=tb(Rn(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=tb(Rn(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=bk(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=wn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:h}]})}else d=wn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]}]});return zt(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=_k(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=wx(zn(t.body,e));if(t.below){var i=wx(zn(t.below,e));n=new Ht("munderover",[r,i,a])}else n=new Ht("mover",[r,a])}else if(t.below){var s=wx(zn(t.below,e));n=new Ht("munder",[r,s])}else n=wx(),n=new Ht("mover",[r,n]);return n}});function e0e(t,e){var r=Ci(t.body,e,!0);return zt([t.mclass],r,e)}function t0e(t,e){var r,n=Wo(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"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ir({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ri(a),isCharacterBox:H0(a)}},htmlBuilder:e0e,mathmlBuilder:t0e});var Tk=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"};ir({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:Tk(e[0]),body:ri(e[1]),isCharacterBox:H0(e[1])}}});ir({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,a=e[1],i=e[0],s;n!=="\\stackrel"?s=Tk(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ri(a)},l={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:H0(l)}},htmlBuilder:e0e,mathmlBuilder:t0e});ir({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:Tk(e[0]),body:ri(e[0])}},htmlBuilder(t,e){var r=Ci(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=Wo(t.body,e),n=new Ht("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var LBe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},AX=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),RX=t=>t.type==="textord"&&t.text==="@",MBe=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function PBe(t,e,r){var n=LBe[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,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 BBe(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=[],a=[n],i=0;iAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=PBe(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display",resetFont:!0};n.push(m),o=AX()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var v=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}ir({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=tb(Rn(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",[zn(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}});ir({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=tb(Rn(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Ht("mrow",[zn(t.fragment,e)])}});ir({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=en(e[0],"ordgroup"),a=n.body,i="",s=0;s=1114111)throw new Vt("\\@char with invalid code point "+i);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 r0e=(t,e)=>{var r=Ci(t.body,e.withColor(t.color),!1);return W0(r)},n0e=(t,e)=>{var r=Wo(t.body,e.withColor(t.color)),n=new Ht("mstyle",r);return n.setAttribute("mathcolor",t.color),n};ir({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,a=e[1];return{type:"color",mode:r.mode,color:n,body:ri(a)}},htmlBuilder:r0e,mathmlBuilder:n0e});ir({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,a=en(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:r0e,mathmlBuilder:n0e});ir({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&en(a,"size").value}},htmlBuilder(t,e){var r=zt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=Jt(wa(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(wa(t.size,e)))),r}});var jM={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},a0e=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Vt("Expected a control sequence",t);return e},FBe=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},i0e=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,n)};ir({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(jM[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=jM[n.text]),en(e.parseFunction(),"internal");throw new Vt("Invalid token after macro prefix",n)}});ir({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(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Vt("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Vt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new Vt('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new Vt("Expected a macro definition");o[i].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(a,{tokens:l,numArgs:i,delimiters:o},r===jM[r]),{type:"internal",mode:e.mode}}});ir({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=a0e(e.gullet.popToken());e.gullet.consumeSpaces();var a=FBe(e);return i0e(e,n,a,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});ir({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=a0e(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return i0e(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var yE=function(e,r,n){var a=da.math[e]&&da.math[e].replace,i=xU(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},NU=function(e,r,n,a){var i=n.havingBaseStyle(r),s=zt(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},s0e=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Jt(i),e.height-=i,e.depth+=i},$Be=function(e,r,n,a,i,s){var o=Rs(e,"Main-Regular",i,a),l=NU(o,r,a,s);return s0e(l,a,r),l},zBe=function(e,r,n,a){return Rs(e,"Size"+r+"-Regular",n,a)},o0e=function(e,r,n,a,i,s){var o=zBe(e,r,i,a),l=NU(zt(["delimsizing","size"+r],[o],a),jr.TEXT,a,s);return n&&s0e(l,a,jr.TEXT),l},nR=function(e,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=zt(["delimsizinginner",a],[zt([],[Rs(e,r,n)])]);return{type:"elem",elem:i}},aR=function(e,r,n){var a=Kc["Size4-Regular"][e.charCodeAt(0)]?Kc["Size4-Regular"][e.charCodeAt(0)][4]:Kc["Size1-Regular"][e.charCodeAt(0)][4],i=new oh("inner",jPe(e,Math.round(1e3*r))),s=new C0([i],{width:Jt(a),height:Jt(r),style:"width:"+Jt(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=lh([],[s],n);return o.height=r,o.style.height=Jt(r),o.style.width=Jt(a),{type:"elem",elem:o}},QM=.008,kx={type:"kern",size:-1*QM},UBe=new Set(["|","\\lvert","\\rvert","\\vert"]),GBe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),l0e=function(e,r,n,a,i,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"):UBe.has(e)?(u="∣",h="vert",f=333):GBe.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=yE(o,p,i),m=g.height+g.depth,v=yE(u,p,i),y=v.height+v.depth,b=yE(d,p,i),_=b.height+b.depth,S=0,x=1;if(l!==null){var C=yE(l,p,i);S=C.height+C.depth,x=2}var T=m+_+S,w=Math.max(0,Math.ceil((r-T)/(x*y))),R=T+w*x*y,O=a.fontMetrics().axisHeight;n&&(O*=a.sizeMultiplier);var M=R/2-O,$=[];if(h.length>0){var F=R-m-_,A=Math.round(R*1e3),I=QPe(h,Math.round(F*1e3)),D=new oh(h,I),L=Jt(f/1e3),N=Jt(A/1e3),P=new C0([D],{width:L,height:N,viewBox:"0 0 "+f+" "+A}),z=lh([],[P],a);z.height=A/1e3,z.style.width=L,z.style.height=N,$.push({type:"elem",elem:z})}else{if($.push(nR(d,p,i)),$.push(kx),l===null){var B=R-m-_+2*QM;$.push(aR(u,B,a))}else{var U=(R-m-_-S)/2+2*QM;$.push(aR(u,U,a)),$.push(kx),$.push(nR(l,p,i)),$.push(kx),$.push(aR(u,U,a))}$.push(kx),$.push(nR(o,p,i))}var G=a.havingBaseStyle(jr.TEXT),K=wn({positionType:"bottom",positionData:M,children:$});return NU(zt(["delimsizing","mult"],[K],G),jr.TEXT,a,s)},iR=80,sR=.08,oR=function(e,r,n,a,i){var s=XPe(e,a,n),o=new oh(e,s),l=new C0([o],{width:"400em",height:Jt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return lh(["hide-tail"],[l],i)},qBe=function(e,r){var n=r.havingBaseSizing(),a=f0e("\\surd",e*n.sizeMultiplier,h0e,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l,u,d,h;return a.type==="small"?(d=1e3+1e3*s+iR,e<1?i=1:e<1.4&&(i=.7),l=(1+s+sR)/i,u=(1+s)/i,o=oR("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/i):a.type==="large"?(d=(1e3+iR)*rS[a.size],u=(rS[a.size]+s)/i,l=(rS[a.size]+s+sR)/i,o=oR("sqrtSize"+a.size,l,d,s,r),o.style.minWidth="1.02em",h=1/i):(l=e+s+sR,u=e+s,d=Math.floor(1e3*e+s)+iR,o=oR("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)*i}},c0e=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),YBe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),u0e=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),rS=[0,1.2,1.8,2.4,3],d0e=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),c0e.has(e)||u0e.has(e))return o0e(e,r,!1,n,a,i);if(YBe.has(e))return l0e(e,rS[r],!1,n,a,i);throw new Vt("Illegal delimiter: '"+e+"'")},HBe=[{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}],VBe=[{type:"small",style:jr.SCRIPTSCRIPT},{type:"small",style:jr.SCRIPT},{type:"small",style:jr.TEXT},{type:"stack"}],h0e=[{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"}],WBe=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.")},f0e=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;sr)return o}return n[n.length-1]},ZM=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;u0e.has(e)?o=HBe:c0e.has(e)?o=h0e:o=VBe;var l=f0e(e,r,o,a);return l.type==="small"?$Be(e,l.style,n,a,i,s):l.type==="large"?o0e(e,l.size,n,a,i,s):l0e(e,r,n,a,i,s)},lR=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return ZM(e,h,!0,a,i,s)},NX={"\\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}},KBe=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 IX(t){return"isMiddle"in t}function xk(t,e){var r=Sk(t);if(r&&KBe.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)}ir({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=xk(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:NX[t.funcName].size,mclass:NX[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?zt([t.mclass]):d0e(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Rl(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(rS[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function OX(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ir({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 Vt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:xk(e[0],t).text,color:r}}});ir({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=xk(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=en(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{OX(t);for(var r=Ci(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s{OX(t);var r=Wo(t.body,e);if(t.left!=="."){var n=new Ht("mo",[Rl(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new Ht("mo",[Rl(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return kU(r)}});ir({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=xk(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=qS(e,[]):(r=d0e(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Rl("|","text"):Rl(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 Ck=(t,e)=>{var r=tb(Rn(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=H0(t.body);if(n==="sout")i=zt(["stretchy","sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=wa({number:.6,unit:"pt"},e),u=wa({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=Jt(h/2+l);var f=Math.floor(1e3*h*a),p=WPe(f),g=new C0([new oh("phase",p)],{width:"400em",height:Jt(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=lh(["hide-tail"],[g],e),i.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,v,y=0;/box/.test(n)?(y=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:y),v=m):n==="angl"?(y=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*y,v=Math.max(0,.25-r.depth)):(m=o?.2:0,v=m),i=RBe(r,n,m,v,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=Jt(y)):n==="angl"&&y!==.049&&(i.style.borderTopWidth=Jt(y),i.style.borderRightWidth=Jt(y)),s=r.depth+v,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=wn({positionType:"individualShift",children:[{type:"elem",elem:i,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:i,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)},wk=(t,e)=>{var r,n=new Ht(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 a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+Jt(a)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};ir({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(t,e,r){var{parser:n,funcName:a}=t,i=en(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Ck,mathmlBuilder:wk});ir({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(t,e,r){var{parser:n,funcName:a}=t,i=en(e[0],"color-token").color,s=en(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:Ck,mathmlBuilder:wk});ir({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]}}});ir({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Ck,mathmlBuilder:wk});ir({type:"enclose",names:["\\sout"],props:{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 a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Ck,mathmlBuilder:wk});ir({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 p0e={};function gu(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new Vt("{"+t.envName+"} can be used only in display mode.")},XBe=new Set(["gather","gather*"]);function IU(t){if(!t.includes("ed"))return!t.includes("*")}function Ph(t,e,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,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],v=[],y=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function S(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new tc("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),y.push(DX(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"){S(),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(),y.length0&&(_+=.25),u.push({pos:_,isDashed:it[ke]})}for(S(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var te=void 0;if(a>0||e.hskipBeforeAndAfter){var ne,ae;te=(ne=(ae=G)==null?void 0:ae.pregap)!=null?ne:f,te!==0&&(I=zt(["arraycolsep"],[]),I.style.width=Jt(te),A.push(I))}var re=[];for(n=0;n0){for(var Ce=eb("hline",r,d),ut=eb("hdashline",r,d),Ae=[{type:"elem",elem:$e,shift:0}];u.length>0;){var je=u.pop(),ot=je.pos-$;je.isDashed?Ae.push({type:"elem",elem:ut,shift:ot}):Ae.push({type:"elem",elem:Ce,shift:ot})}$e=wn({positionType:"individualShift",children:Ae})}if(L.length===0)return zt(["mord"],[$e],r);var lt=wn({positionType:"individualShift",children:L}),ct=zt(["tag"],[lt],r);return W0([$e,ct])},jBe={c:"center ",l:"left ",r:"right "},vu=function(e,r){for(var n=[],a=new Ht("mtd",[],["mtr-glue"]),i=new Ht("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",v=!1,y=0,b=g.length;g[0].type==="separator"&&(f+="top ",y=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=y;_0?"left ":"",f+=R[R.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(v=1),n[g]={type:"align",align:m,pregap:v,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};gu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Sk(e[0]),n=r?[e[0]]:en(e[0],"ordgroup").body,a=n.map(function(s){var o=Ek(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)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Ph(t.parser,i,OU(t.envName))},htmlBuilder:mu,mathmlBuilder:vu});gu({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 a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new Vt("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=Ph(t.parser,n,OU(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Ph(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Sk(e[0]),n=r?[e[0]]:en(e[0],"ordgroup").body,a=n.map(function(o){var l=Ek(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Vt("Unknown column alignment: "+u,o)});if(a.length>1)throw new Vt("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=Ph(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new Vt("{subarray} can contain only one column");return s},htmlBuilder:mu,mathmlBuilder:vu});gu({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=Ph(t.parser,e,OU(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:y0e,htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){XBe.has(t.envName)&&kk(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:IU(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Ph(t.parser,e,"display")},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:y0e,htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){kk(t);var e={autoTag:IU(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Ph(t.parser,e,"display")},htmlBuilder:mu,mathmlBuilder:vu});gu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return kk(t),BBe(t.parser)},htmlBuilder:mu,mathmlBuilder:vu});be("\\nonumber","\\gdef\\@eqnsw{0}");be("\\notag","\\nonumber");ir({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new Vt(t.funcName+" valid only within array environment")}});var LX=p0e;ir({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];if(a.type!=="ordgroup")throw new Vt("Invalid environment name",a);for(var i="",s=0;s{var r=t.font,n=e.withFont(r);return Rn(t.body,n)},b0e=(t,e)=>{var r=t.font,n=e.withFont(r);return zn(t.body,n)},MX={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};ir({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,a=LC(e[0]),i=n;return i in MX&&(i=MX[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:_0e,mathmlBuilder:b0e});ir({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:Tk(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:H0(n)}}});ir({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:a}=t,{mode:i}=r,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:_0e,mathmlBuilder:b0e});var QBe=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=Rn(t.numer,i,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 v;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Ht("mfrac",[zn(t.numer,e),zn(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=wa(t.barSize,e);r.setAttribute("linethickness",Jt(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new Ht("mo",[new ni(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new Ht("mo",[new ni(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return kU(a)}return r},E0e=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};ir({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,a=e[0],i=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"),E0e({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:QBe,mathmlBuilder:ZBe});ir({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var PX=["display","text","script","scriptscript"],BX=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};ir({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],a=e[5],i=LC(e[0]),s=i.type==="atom"&&i.family==="open"?BX(i.text):null,o=LC(e[1]),l=o.type==="atom"&&o.family==="close"?BX(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=PX[Number(g.text)]}}else p=en(p,"textord"),f=PX[Number(p.text)];return E0e({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:d,barSize:h,leftDelim:s,rightDelim:l},f)}});ir({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:a}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:en(e[0],"size").value,token:a}}});ir({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0],i=en(e[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var s=e[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var S0e=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?Rn(t.sup,e.havingStyle(r.sup()),e):Rn(t.sub,e.havingStyle(r.sub()),e),a=en(t.base,"horizBrace")):a=en(t,"horizBrace");var i=Rn(a.base,e.havingBaseStyle(jr.DISPLAY)),s=bk(a,e),o;if(a.isOver?o=wn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=wn({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var l=zt(["minner",a.isOver?"mover":"munder"],[o],e);a.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 zt(["minner",a.isOver?"mover":"munder"],[o],e)},JBe=(t,e)=>{var r=_k(t.label);return new Ht(t.isOver?"mover":"munder",[zn(t.base,e),r])};ir({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{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:S0e,mathmlBuilder:JBe});ir({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],a=en(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:ri(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Ci(t.body,e,!1);return hBe(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=ch(t.body,e);return r instanceof Ht||(r=new Ht("mrow",[r])),r.setAttribute("href",t.href),r}});ir({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 a=[],i=0;i{var{parser:r,funcName:n,token:a}=t,i=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=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d{var r=Ci(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=zt(n,r,e);for(var i in t.attributes)i!=="class"&&t.attributes.hasOwnProperty(i)&&a.setAttribute(i,t.attributes[i]);return a},mathmlBuilder:(t,e)=>ch(t.body,e)});ir({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:ri(e[0]),mathml:ri(e[1])}},htmlBuilder:(t,e)=>{var r=Ci(t.html,e,!1);return W0(r)},mathmlBuilder:(t,e)=>ch(t.mathml,e)});var cR=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(!Mue(n))throw new Vt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ir({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,a={number:0,unit:"em"},i={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=wa(t.height,e),n=0;t.totalheight.number>0&&(n=wa(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=wa(t.width,e));var i={height:Jt(r+n)};a>0&&(i.width=Jt(a)),n>0&&(i.verticalAlign=Jt(-n));var s=new tBe(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Ht("mglyph",[]);r.setAttribute("alt",t.alt);var n=wa(t.height,e),a=0;if(t.totalheight.number>0&&(a=wa(t.totalheight,e)-n,r.setAttribute("valign",Jt(-a))),r.setAttribute("height",Jt(n+a)),t.width.number>0){var i=wa(t.width,e);r.setAttribute("width",Jt(i))}return r.setAttribute("src",t.src),r}});ir({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,a=en(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.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:a.value}},htmlBuilder(t,e){return Gue(t.dimension,e)},mathmlBuilder(t,e){var r=wa(t.dimension,e);return new Kue(r)}});ir({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=zt([],[Rn(t.body,e)]),r=zt(["inner"],[r],e)):r=zt(["inner"],[Rn(t.body,e)]);var n=zt(["fix"],[]),a=zt([t.alignment],[r,n],e),i=zt(["strut"]);return i.style.height=Jt(a.height+a.depth),a.depth&&(i.style.verticalAlign=Jt(-a.depth)),a.children.unshift(i),a=zt(["thinbox"],[a],e),zt(["mord","vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new Ht("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}});ir({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});ir({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new Vt("Mismatched "+t.funcName)}});var FX=(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}};ir({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:ri(e[0]),text:ri(e[1]),script:ri(e[2]),scriptscript:ri(e[3])}},htmlBuilder:(t,e)=>{var r=FX(t,e),n=Ci(r,e,!1);return W0(n)},mathmlBuilder:(t,e)=>{var r=FX(t,e);return ch(r,e)}});var T0e=(t,e,r,n,a,i,s)=>{t=zt([],[t]);var o=r&&H0(r),l,u;if(e){var d=Rn(e,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Rn(r,n.havingStyle(a.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:Jt(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(i)},{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:Jt(-i)},{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:Jt(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var v=[f];if(l&&i!==0&&!o){var y=zt(["mspace"],[],n);y.style.marginRight=Jt(i),v.unshift(y)}return zt(["mop","op-limits"],v,n)},x0e=new Set(["\\smallint"]),jb=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=en(t.base,"op"),a=!0):i=en(t,"op");var s=e.style,o=!1;s.size===jr.DISPLAY.size&&i.symbol&&!x0e.has(i.name)&&(o=!0);var l,u;if(i.symbol){var d=o?"Size2-Regular":"Size1-Regular",h="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(h=i.name.slice(1),i.name=h==="oiint"?"\\iint":"\\iiint"),l=Rs(i.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=wn({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),i.name="\\"+h,l.classes.unshift("mop"),l.italic=u}}else if(i.body){var p=Ci(i.body,e,!0);p.length===1&&p[0]instanceof $o?(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",[Rl(t.name,t.mode)]),x0e.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Ht("mo",Wo(t.body,e));else{r=new Ht("mi",[new ni(t.name.slice(1))]);var n=new Ht("mo",[Rl("⁡","text")]);t.parentIsSupSub?r=new Ht("mrow",[r,n]):r=Wue([r,n])}return r},eFe={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ir({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,a=n;return a.length===1&&(a=eFe[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:jb,mathmlBuilder:dT});ir({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:ri(n)}},htmlBuilder:jb,mathmlBuilder:dT});var tFe={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ir({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:jb,mathmlBuilder:dT});ir({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:jb,mathmlBuilder:dT});ir({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=tFe[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:jb,mathmlBuilder:dT});var C0e=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=en(t.base,"operatorname"),a=!0):i=en(t,"operatorname");var s;if(i.body.length>0){for(var o=i.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=Ci(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Wo(t.body,e.withFont("mathrm")),n=!0,a=0;ad.toText()).join("");r=[new ni(o)]}var l=new Ht("mi",r);l.setAttribute("mathvariant","normal");var u=new Ht("mo",[Rl("⁡","text")]);return t.parentIsSupSub?new Ht("mrow",[l,u]):Wue([l,u])};ir({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"operatorname",mode:r.mode,body:ri(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:C0e,mathmlBuilder:rFe});be("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Jp({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?W0(Ci(t.body,e,!1)):zt(["mord"],Ci(t.body,e,!0),e)},mathmlBuilder(t,e){return ch(t.body,e,!0)}});ir({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=eb("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=wn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return zt(["mord","overline"],[i],e)},mathmlBuilder(t,e){var r=new Ht("mo",[new ni("‾")]);r.setAttribute("stretchy","true");var n=new Ht("mover",[zn(t.body,e),r]);return n.setAttribute("accent","true"),n}});ir({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:ri(n)}},htmlBuilder:(t,e)=>{var r=Ci(t.body,e.withPhantom(),!1);return W0(r)},mathmlBuilder:(t,e)=>{var r=Wo(t.body,e);return new Ht("mphantom",r)}});be("\\hphantom","\\smash{\\phantom{#1}}");ir({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=zt(["inner"],[Rn(t.body,e.withPhantom())]),n=zt(["fix"],[]);return zt(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Wo(ri(t.body),e),n=new Ht("mphantom",r),a=new Ht("mpadded",[n]);return a.setAttribute("width","0px"),a}});ir({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,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=Rn(t.body,e),n=wa(t.dy,e);return wn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Ht("mpadded",[zn(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});ir({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});ir({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,a=r[0],i=en(e[0],"size"),s=en(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&en(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=zt(["mord","rule"],[],e),n=wa(t.width,e),a=wa(t.height,e),i=t.shift?wa(t.shift,e):0;return r.style.borderRightWidth=Jt(n),r.style.borderTopWidth=Jt(a),r.style.bottom=Jt(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=wa(t.width,e),n=wa(t.height,e),a=t.shift?wa(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new Ht("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",Jt(r)),s.setAttribute("height",Jt(n));var o=new Ht("mpadded",[s]);return a>=0?o.setAttribute("height",Jt(a)):(o.setAttribute("height",Jt(a)),o.setAttribute("depth",Jt(-a))),o.setAttribute("voffset",Jt(a)),o}});function w0e(t,e,r){for(var n=Ci(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i{var r=e.havingSize(t.size);return w0e(t.body,r,e)};ir({type:"sizing",names:$X,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:a}=t,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:$X.indexOf(n)+1,body:i}},htmlBuilder:nFe,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Wo(t.body,r),a=new Ht("mstyle",n);return a.setAttribute("mathsize",Jt(r.sizeMultiplier)),a}});ir({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,a=!1,i=!1,s=r[0]&&en(r[0],"ordgroup");if(s)for(var o,l=0;l{var r=zt([],[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 zt(["mord","smash"],[r],e);if(r.children)for(var n=0;n{var r=new Ht("mpadded",[zn(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});ir({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=Rn(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=tb(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;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=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=Rn(t.index,g,e),v=.6*(p.height-p.depth),y=wn({positionType:"shift",positionData:-v,children:[{type:"elem",elem:m}]}),b=zt(["root"],[y]);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",[zn(r,e),zn(n,e)]):new Ht("msqrt",[zn(r,e)])}});var JM={display:jr.DISPLAY,text:jr.TEXT,script:jr.SCRIPT,scriptscript:jr.SCRIPTSCRIPT};function aFe(t){return t in JM}ir({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:a}=t,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!aFe(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=JM[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),w0e(t.body,n,e)},mathmlBuilder(t,e){var r=JM[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var a=Wo(t.body,n),i=new Ht("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var iFe=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===jr.DISPLAY.size||n.alwaysHandleSupSub);return a?jb:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===jr.DISPLAY.size||n.limits);return i?C0e:null}else{if(n.type==="accent")return H0(n.base)?RU:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?S0e:null}else return null}else return null};Jp({type:"supsub",htmlBuilder(t,e){var r=iFe(t,e);if(r)return r(t,e);var{base:n,sup:a,sub:i}=t,s=Rn(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&H0(n);if(a){var p=e.havingStyle(e.style.sup());o=Rn(a,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(i){var g=e.havingStyle(e.style.sub());l=Rn(i,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 v=e.sizeMultiplier,y=Jt(.5/u.ptPerEm/v),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 $o||_){var S;b=Jt(-((S=s.italic)!=null?S: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 R=[{type:"elem",elem:l,shift:h,marginRight:y,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:y}];x=wn({positionType:"individualShift",children:R})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var O=[{type:"elem",elem:l,marginLeft:b,marginRight:y}];x=wn({positionType:"shift",positionData:h,children:O})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),x=wn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var M=KM(s,"right")||"mord";return zt([M],[s,zt(["msupsub"],[x])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[zn(t.base,e)];t.sub&&i.push(zn(t.sub,e)),t.sup&&i.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 Ht(s,i)}});Jp({type:"atom",htmlBuilder(t,e){return CU(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Ht("mo",[Rl(t.text,t.mode)]);if(t.family==="bin"){var n=AU(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 k0e={mi:"italic",mn:"normal",mtext:"normal"};Jp({type:"mathord",htmlBuilder(t,e){return yk(t,e,"mathord")},mathmlBuilder(t,e){var r=new Ht("mi",[Rl(t.text,t.mode,e)]),n=AU(t,e)||"italic";return n!==k0e[r.type]&&r.setAttribute("mathvariant",n),r}});Jp({type:"textord",htmlBuilder(t,e){return yk(t,e,"textord")},mathmlBuilder(t,e){var r=Rl(t.text,t.mode,e),n=AU(t,e)||"normal",a;return t.mode==="text"?a=new Ht("mtext",[r]):/[0-9]/.test(t.text)?a=new Ht("mn",[r]):t.text==="\\prime"?a=new Ht("mo",[r]):a=new Ht("mi",[r]),n!==k0e[a.type]&&a.setAttribute("mathvariant",n),a}});var uR={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},dR={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Jp({type:"spacing",htmlBuilder(t,e){if(dR.hasOwnProperty(t.text)){var r=dR[t.text].className||"";if(t.mode==="text"){var n=yk(t,e,"textord");return n.classes.push(r),n}else return zt(["mspace",r],[CU(t.text,t.mode,e)],e)}else{if(uR.hasOwnProperty(t.text))return zt(["mspace",uR[t.text]],[],e);throw new Vt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(dR.hasOwnProperty(t.text))r=new Ht("mtext",[new ni(" ")]);else{if(uR.hasOwnProperty(t.text))return new Ht("mspace");throw new Vt('Unknown type of space "'+t.text+'"')}return r}});var zX=()=>{var t=new Ht("mtd",[]);return t.setAttribute("width","50%"),t};Jp({type:"tag",mathmlBuilder(t,e){var r=new Ht("mtable",[new Ht("mtr",[zX(),new Ht("mtd",[ch(t.body,e)]),zX(),new Ht("mtd",[ch(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var UX={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},GX={"\\textbf":"textbf","\\textmd":"textmd"},sFe={"\\textit":"textit","\\textup":"textup"},qX=(t,e)=>{var r=t.font;if(r){if(UX[r])return e.withTextFontFamily(UX[r]);if(GX[r])return e.withTextFontWeight(GX[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(sFe[r])};ir({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,a=e[0];return{type:"text",mode:r.mode,body:ri(a),font:n}},htmlBuilder(t,e){var r=qX(t,e),n=Ci(t.body,r,!0);return zt(["mord","text"],n,r)},mathmlBuilder(t,e){var r=qX(t,e);return ch(t.body,r)}});ir({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=eb("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=wn({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return zt(["mord","underline"],[i],e)},mathmlBuilder(t,e){var r=new Ht("mo",[new ni("‾")]);r.setAttribute("stretchy","true");var n=new Ht("munder",[zn(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});ir({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,a=.5*(r.height-n-(r.depth+n));return wn({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Ht("mpadded",[zn(t.body,e)],["vcenter"]);return new Ht("mrow",[r])}});ir({type:"verb",names:["\\verb"],props:{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=YX(t),n=[],a=e.havingStyle(e.style.text()),i=0;it.body.replace(/ /g,t.star?"␣":" "),zd=Hue,A0e=`[ \r + ]`,oFe="\\\\[a-zA-Z@]+",lFe="\\\\[^\uD800-\uDFFF]",cFe="("+oFe+")"+A0e+"*",uFe=`\\\\( |[ \r ]+ -?)[ \r ]*`,eP="[̀-ͯ]",uFe=new RegExp(eP+"+$"),dFe="("+A0e+"+)|"+(cFe+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(eP+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(eP+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+lFe)+("|"+oFe+")");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(dFe,"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 tc("EOF",new fl(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Vt("Unexpected character: '"+e[r]+"'",new tc(e[r],new fl(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(` -`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new tc(a,new fl(this,r,this.tokenRegex.lastIndex))}},hFe=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 a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}};var fFe=g0e;be("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});be("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});be("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});be("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});be("\\@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}});be("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");be("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var VX={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};be("\\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=VX[e.text],n==null||n>=r)throw new Vt("Invalid base-"+r+" digit "+e.text);for(var a;(a=VX[t.future().text])!=null&&a{var a=t.consumeArg().tokens;if(a.length!==1)throw new Vt("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new Vt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new Vt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[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),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};be("\\newcommand",t=>DU(t,!1,!0,!1));be("\\renewcommand",t=>DU(t,!0,!1,!1));be("\\providecommand",t=>DU(t,!0,!0,!0));be("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});be("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});be("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),zd[r],da.math[r],da.text[r]),""});be("\\bgroup","{");be("\\egroup","}");be("~","\\nobreakspace");be("\\lq","`");be("\\rq","'");be("\\aa","\\r a");be("\\AA","\\r A");be("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");be("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");be("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");be("ℬ","\\mathscr{B}");be("ℰ","\\mathscr{E}");be("ℱ","\\mathscr{F}");be("ℋ","\\mathscr{H}");be("ℐ","\\mathscr{I}");be("ℒ","\\mathscr{L}");be("ℳ","\\mathscr{M}");be("ℛ","\\mathscr{R}");be("ℭ","\\mathfrak{C}");be("ℌ","\\mathfrak{H}");be("ℨ","\\mathfrak{Z}");be("\\Bbbk","\\Bbb{k}");be("\\llap","\\mathllap{\\textrm{#1}}");be("\\rlap","\\mathrlap{\\textrm{#1}}");be("\\clap","\\mathclap{\\textrm{#1}}");be("\\mathstrut","\\vphantom{(}");be("\\underbar","\\underline{\\text{#1}}");be("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');be("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");be("\\ne","\\neq");be("≠","\\neq");be("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");be("∉","\\notin");be("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");be("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");be("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");be("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");be("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");be("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");be("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");be("⟂","\\perp");be("‼","\\mathclose{!\\mkern-0.8mu!}");be("∌","\\notni");be("⌜","\\ulcorner");be("⌝","\\urcorner");be("⌞","\\llcorner");be("⌟","\\lrcorner");be("©","\\copyright");be("®","\\textregistered");be("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');be("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');be("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');be("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');be("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");be("⋮","\\vdots");be("\\varGamma","\\mathit{\\Gamma}");be("\\varDelta","\\mathit{\\Delta}");be("\\varTheta","\\mathit{\\Theta}");be("\\varLambda","\\mathit{\\Lambda}");be("\\varXi","\\mathit{\\Xi}");be("\\varPi","\\mathit{\\Pi}");be("\\varSigma","\\mathit{\\Sigma}");be("\\varUpsilon","\\mathit{\\Upsilon}");be("\\varPhi","\\mathit{\\Phi}");be("\\varPsi","\\mathit{\\Psi}");be("\\varOmega","\\mathit{\\Omega}");be("\\substack","\\begin{subarray}{c}#1\\end{subarray}");be("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");be("\\boxed","\\fbox{$\\displaystyle{#1}$}");be("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");be("\\implies","\\DOTSB\\;\\Longrightarrow\\;");be("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");be("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");be("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var WX={",":"\\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"},pFe=new Set(["bin","rel"]);be("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in WX?e=WX[r]:(r.slice(0,4)==="\\not"||r in da.math&&pFe.has(da.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};be("\\dotso",function(t){var e=t.future().text;return e in LU?"\\ldots\\,":"\\ldots"});be("\\dotsc",function(t){var e=t.future().text;return e in LU&&e!==","?"\\ldots\\,":"\\ldots"});be("\\cdots",function(t){var e=t.future().text;return e in LU?"\\@cdots\\,":"\\@cdots"});be("\\dotsb","\\cdots");be("\\dotsm","\\cdots");be("\\dotsi","\\!\\cdots");be("\\dotsx","\\ldots\\,");be("\\DOTSI","\\relax");be("\\DOTSB","\\relax");be("\\DOTSX","\\relax");be("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");be("\\,","\\tmspace+{3mu}{.1667em}");be("\\thinspace","\\,");be("\\>","\\mskip{4mu}");be("\\:","\\tmspace+{4mu}{.2222em}");be("\\medspace","\\:");be("\\;","\\tmspace+{5mu}{.2777em}");be("\\thickspace","\\;");be("\\!","\\tmspace-{3mu}{.1667em}");be("\\negthinspace","\\!");be("\\negmedspace","\\tmspace-{4mu}{.2222em}");be("\\negthickspace","\\tmspace-{5mu}{.277em}");be("\\enspace","\\kern.5em ");be("\\enskip","\\hskip.5em\\relax");be("\\quad","\\hskip1em\\relax");be("\\qquad","\\hskip2em\\relax");be("\\tag","\\@ifstar\\tag@literal\\tag@paren");be("\\tag@paren","\\tag@literal{({#1})}");be("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Vt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});be("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");be("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");be("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");be("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");be("\\newline","\\\\\\relax");be("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var R0e=Jt(Kc["Main-Regular"][84][1]-.7*Kc["Main-Regular"][65][1]);be("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+R0e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");be("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+R0e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");be("\\hspace","\\@ifstar\\@hspacer\\@hspace");be("\\@hspace","\\hskip #1\\relax");be("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");be("\\ordinarycolon",":");be("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");be("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');be("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');be("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');be("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');be("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');be("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');be("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');be("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');be("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');be("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');be("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');be("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');be("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');be("∷","\\dblcolon");be("∹","\\eqcolon");be("≔","\\coloneqq");be("≕","\\eqqcolon");be("⩴","\\Coloneqq");be("\\ratio","\\vcentcolon");be("\\coloncolon","\\dblcolon");be("\\colonequals","\\coloneqq");be("\\coloncolonequals","\\Coloneqq");be("\\equalscolon","\\eqqcolon");be("\\equalscoloncolon","\\Eqqcolon");be("\\colonminus","\\coloneq");be("\\coloncolonminus","\\Coloneq");be("\\minuscolon","\\eqcolon");be("\\minuscoloncolon","\\Eqcolon");be("\\coloncolonapprox","\\Colonapprox");be("\\coloncolonsim","\\Colonsim");be("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");be("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");be("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");be("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");be("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");be("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");be("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");be("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");be("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");be("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");be("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");be("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");be("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");be("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");be("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");be("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");be("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");be("\\nleqq","\\html@mathml{\\@nleqq}{≰}");be("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");be("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");be("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");be("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");be("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");be("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");be("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");be("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");be("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");be("\\imath","\\html@mathml{\\@imath}{ı}");be("\\jmath","\\html@mathml{\\@jmath}{ȷ}");be("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");be("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");be("⟦","\\llbracket");be("⟧","\\rrbracket");be("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");be("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");be("⦃","\\lBrace");be("⦄","\\rBrace");be("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");be("⦵","\\minuso");be("\\darr","\\downarrow");be("\\dArr","\\Downarrow");be("\\Darr","\\Downarrow");be("\\lang","\\langle");be("\\rang","\\rangle");be("\\uarr","\\uparrow");be("\\uArr","\\Uparrow");be("\\Uarr","\\Uparrow");be("\\N","\\mathbb{N}");be("\\R","\\mathbb{R}");be("\\Z","\\mathbb{Z}");be("\\alef","\\aleph");be("\\alefsym","\\aleph");be("\\Alpha","\\mathrm{A}");be("\\Beta","\\mathrm{B}");be("\\bull","\\bullet");be("\\Chi","\\mathrm{X}");be("\\clubs","\\clubsuit");be("\\cnums","\\mathbb{C}");be("\\Complex","\\mathbb{C}");be("\\Dagger","\\ddagger");be("\\diamonds","\\diamondsuit");be("\\empty","\\emptyset");be("\\Epsilon","\\mathrm{E}");be("\\Eta","\\mathrm{H}");be("\\exist","\\exists");be("\\harr","\\leftrightarrow");be("\\hArr","\\Leftrightarrow");be("\\Harr","\\Leftrightarrow");be("\\hearts","\\heartsuit");be("\\image","\\Im");be("\\infin","\\infty");be("\\Iota","\\mathrm{I}");be("\\isin","\\in");be("\\Kappa","\\mathrm{K}");be("\\larr","\\leftarrow");be("\\lArr","\\Leftarrow");be("\\Larr","\\Leftarrow");be("\\lrarr","\\leftrightarrow");be("\\lrArr","\\Leftrightarrow");be("\\Lrarr","\\Leftrightarrow");be("\\Mu","\\mathrm{M}");be("\\natnums","\\mathbb{N}");be("\\Nu","\\mathrm{N}");be("\\Omicron","\\mathrm{O}");be("\\plusmn","\\pm");be("\\rarr","\\rightarrow");be("\\rArr","\\Rightarrow");be("\\Rarr","\\Rightarrow");be("\\real","\\Re");be("\\reals","\\mathbb{R}");be("\\Reals","\\mathbb{R}");be("\\Rho","\\mathrm{P}");be("\\sdot","\\cdot");be("\\sect","\\S");be("\\spades","\\spadesuit");be("\\sub","\\subset");be("\\sube","\\subseteq");be("\\supe","\\supseteq");be("\\Tau","\\mathrm{T}");be("\\thetasym","\\vartheta");be("\\weierp","\\wp");be("\\Zeta","\\mathrm{Z}");be("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");be("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");be("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");be("\\bra","\\mathinner{\\langle{#1}|}");be("\\ket","\\mathinner{|{#1}\\rangle}");be("\\braket","\\mathinner{\\langle{#1}\\rangle}");be("\\Bra","\\left\\langle#1\\right|");be("\\Ket","\\left|#1\\right\\rangle");var N0e=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",o));var p=h;if(!h&&a.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...i,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};be("\\bra@ket",N0e(!1));be("\\bra@set",N0e(!0));be("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");be("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");be("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");be("\\angln","{\\angl n}");be("\\blue","\\textcolor{##6495ed}{#1}");be("\\orange","\\textcolor{##ffa500}{#1}");be("\\pink","\\textcolor{##ff00af}{#1}");be("\\red","\\textcolor{##df0030}{#1}");be("\\green","\\textcolor{##28ae7b}{#1}");be("\\gray","\\textcolor{gray}{#1}");be("\\purple","\\textcolor{##9d38bd}{#1}");be("\\blueA","\\textcolor{##ccfaff}{#1}");be("\\blueB","\\textcolor{##80f6ff}{#1}");be("\\blueC","\\textcolor{##63d9ea}{#1}");be("\\blueD","\\textcolor{##11accd}{#1}");be("\\blueE","\\textcolor{##0c7f99}{#1}");be("\\tealA","\\textcolor{##94fff5}{#1}");be("\\tealB","\\textcolor{##26edd5}{#1}");be("\\tealC","\\textcolor{##01d1c1}{#1}");be("\\tealD","\\textcolor{##01a995}{#1}");be("\\tealE","\\textcolor{##208170}{#1}");be("\\greenA","\\textcolor{##b6ffb0}{#1}");be("\\greenB","\\textcolor{##8af281}{#1}");be("\\greenC","\\textcolor{##74cf70}{#1}");be("\\greenD","\\textcolor{##1fab54}{#1}");be("\\greenE","\\textcolor{##0d923f}{#1}");be("\\goldA","\\textcolor{##ffd0a9}{#1}");be("\\goldB","\\textcolor{##ffbb71}{#1}");be("\\goldC","\\textcolor{##ff9c39}{#1}");be("\\goldD","\\textcolor{##e07d10}{#1}");be("\\goldE","\\textcolor{##a75a05}{#1}");be("\\redA","\\textcolor{##fca9a9}{#1}");be("\\redB","\\textcolor{##ff8482}{#1}");be("\\redC","\\textcolor{##f9685d}{#1}");be("\\redD","\\textcolor{##e84d39}{#1}");be("\\redE","\\textcolor{##bc2612}{#1}");be("\\maroonA","\\textcolor{##ffbde0}{#1}");be("\\maroonB","\\textcolor{##ff92c6}{#1}");be("\\maroonC","\\textcolor{##ed5fa6}{#1}");be("\\maroonD","\\textcolor{##ca337c}{#1}");be("\\maroonE","\\textcolor{##9e034e}{#1}");be("\\purpleA","\\textcolor{##ddd7ff}{#1}");be("\\purpleB","\\textcolor{##c6b9fc}{#1}");be("\\purpleC","\\textcolor{##aa87ff}{#1}");be("\\purpleD","\\textcolor{##7854ab}{#1}");be("\\purpleE","\\textcolor{##543b78}{#1}");be("\\mintA","\\textcolor{##f5f9e8}{#1}");be("\\mintB","\\textcolor{##edf2df}{#1}");be("\\mintC","\\textcolor{##e0e5cc}{#1}");be("\\grayA","\\textcolor{##f6f7f7}{#1}");be("\\grayB","\\textcolor{##f0f1f2}{#1}");be("\\grayC","\\textcolor{##e3e5e6}{#1}");be("\\grayD","\\textcolor{##d6d8da}{#1}");be("\\grayE","\\textcolor{##babec2}{#1}");be("\\grayF","\\textcolor{##888d93}{#1}");be("\\grayG","\\textcolor{##626569}{#1}");be("\\grayH","\\textcolor{##3b3e40}{#1}");be("\\grayI","\\textcolor{##21242c}{#1}");be("\\kaBlue","\\textcolor{##314453}{#1}");be("\\kaGreen","\\textcolor{##71B307}{#1}");var I0e={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let gFe=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 hFe(fFe,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,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new tc("EOF",n.loc)),this.pushTokens(a),new tc("",fl.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 a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new Vt("Extra }",i)}else if(i.text==="EOF")throw new Vt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}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],a=0;athis.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,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new Vt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new Vt("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new Vt("Not a valid argument number",l)}}}return this.pushTokens(i),i.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 tc(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 a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}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 a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new HX(a,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||zd.hasOwnProperty(e)||da.math.hasOwnProperty(e)||da.text.hasOwnProperty(e)||I0e.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 KX=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ax=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),hR={"́":{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"}},XX={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let O0e=class D0e{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 gFe(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 tc("}")),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 a=this.fetch();if(D0e.endOfExpression.has(a.text)||r&&a.text===r||e&&zd[a.text]&&zd[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a=128)this.settings.strict&&(Lue(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:fl.range(e),text:r};else return null;if(this.consume(),i)for(var d=0;d=I?A:""+Array(I+1-L.length).join(D)+A},S={s:_,z:function(A){var I=-A.utcOffset(),D=Math.abs(I),L=Math.floor(D/60),N=D%60;return(I<=0?"+":"-")+_(L,2,"0")+":"+_(N,2,"0")},m:function A(I,D){if(I.date()1)return A(z[0])}else{var B=I.name;C[B]=I,N=B}return!L&&N&&(x=N),N||!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=S;M.l=R,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=R(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 N=L.date,P=L.utc;if(N===null)return new Date(NaN);if(M.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var z=N.match(v);if(z){var B=z[2]-1||0,U=(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,U)):new Date(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(N)})(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 N=O(D);return this.startOf(L)<=N&&N<=this.endOf(L)},I.isAfter=function(D,L){return O(D)z0e(t,"name",{value:e,configurable:!0}),Rk=(t,e)=>{for(var r in e)z0e(t,r,{get:e[r],enumerable:!0})},zu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},oe={trace:E((...t)=>{},"trace"),debug:E((...t)=>{},"debug"),info:E((...t)=>{},"info"),warn:E((...t)=>{},"warn"),error:E((...t)=>{},"error"),fatal:E((...t)=>{},"fatal")},BU=E(function(t="fatal"){let e=zu.fatal;typeof t=="string"?t.toLowerCase()in zu&&(e=zu[t]):typeof t=="number"&&(e=t),oe.trace=()=>{},oe.debug=()=>{},oe.info=()=>{},oe.warn=()=>{},oe.error=()=>{},oe.fatal=()=>{},e<=zu.fatal&&(oe.fatal=console.error?console.error.bind(console,ll("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ll("FATAL"))),e<=zu.error&&(oe.error=console.error?console.error.bind(console,ll("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ll("ERROR"))),e<=zu.warn&&(oe.warn=console.warn?console.warn.bind(console,ll("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ll("WARN"))),e<=zu.info&&(oe.info=console.info?console.info.bind(console,ll("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ll("INFO"))),e<=zu.debug&&(oe.debug=console.debug?console.debug.bind(console,ll("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ll("DEBUG"))),e<=zu.trace&&(oe.trace=console.debug?console.debug.bind(console,ll("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ll("TRACE")))},"setLogLevel"),ll=E(t=>`%c${Bi().format("ss.SSS")} : ${t} : `,"format");const J3={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 a=r<.5?r*(1+e):r+e-r*e,i=2*r-a;switch(n){case"r":return J3.hue2rgb(i,a,t+1/3)*255;case"g":return J3.hue2rgb(i,a,t)*255;case"b":return J3.hue2rgb(i,a,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const a=Math.max(t,e,r),i=Math.min(t,e,r),s=(a+i)/2;if(n==="l")return s*100;if(a===i)return 0;const o=a-i,l=s>.5?o/(2-a-i):o/(a+i);if(n==="s")return l*100;switch(a){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},SFe={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Yr={channel:J3,lang:EFe,unit:SFe},Cd={};for(let t=0;t<=255;t++)Cd[t]=Yr.unit.dec2hex(t);const as={ALL:0,RGB:1,HSL:2};let TFe=class{constructor(){this.type=as.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=as.ALL}is(e){return this.type===e}};class xFe{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new TFe}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=as.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:a}=e;r===void 0&&(e.h=Yr.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=Yr.channel.rgb2hsl(e,"s")),a===void 0&&(e.l=Yr.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:a}=e;r===void 0&&(e.r=Yr.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=Yr.channel.hsl2rgb(e,"g")),a===void 0&&(e.b=Yr.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(as.HSL)&&r!==void 0?r:(this._ensureHSL(),Yr.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(as.HSL)&&r!==void 0?r:(this._ensureHSL(),Yr.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(as.HSL)&&r!==void 0?r:(this._ensureHSL(),Yr.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(as.RGB)&&r!==void 0?r:(this._ensureRGB(),Yr.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(as.RGB)&&r!==void 0?r:(this._ensureRGB(),Yr.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(as.RGB)&&r!==void 0?r:(this._ensureRGB(),Yr.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(as.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(as.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(as.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(as.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(as.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(as.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Nk=new xFe({r:0,g:0,b:0,a:0},"transparent"),e1={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(e1.re);if(!e)return;const r=e[1],n=parseInt(r,16),a=r.length,i=a%4===0,s=a>4,o=s?1:17,l=s?8:4,u=i?0:-1,d=s?255:15;return Nk.set({r:(n>>l*(u+3)&d)*o,g:(n>>l*(u+2)&d)*o,b:(n>>l*(u+1)&d)*o,a:i?(n&d)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a}=t;return a<1?`#${Cd[Math.round(e)]}${Cd[Math.round(r)]}${Cd[Math.round(n)]}${Cd[Math.round(a*255)]}`:`#${Cd[Math.round(e)]}${Cd[Math.round(r)]}${Cd[Math.round(n)]}`}},sp={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(sp.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return Yr.channel.clamp.h(parseFloat(r)*.9);case"rad":return Yr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Yr.channel.clamp.h(parseFloat(r)*360)}}return Yr.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(sp.re);if(!r)return;const[,n,a,i,s,o]=r;return Nk.set({h:sp._hue2deg(n),s:Yr.channel.clamp.s(parseFloat(a)),l:Yr.channel.clamp.l(parseFloat(i)),a:s?Yr.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a}=t;return a<1?`hsla(${Yr.lang.round(e)}, ${Yr.lang.round(r)}%, ${Yr.lang.round(n)}%, ${a})`:`hsl(${Yr.lang.round(e)}, ${Yr.lang.round(r)}%, ${Yr.lang.round(n)}%)`}},nS={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=nS.colors[t];if(e)return e1.parse(e)},stringify:t=>{const e=e1.stringify(t);for(const r in nS.colors)if(nS.colors[r]===e)return r}},_E={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(_E.re);if(!r)return;const[,n,a,i,s,o,l,u,d]=r;return Nk.set({r:Yr.channel.clamp.r(a?parseFloat(n)*2.55:parseFloat(n)),g:Yr.channel.clamp.g(s?parseFloat(i)*2.55:parseFloat(i)),b:Yr.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?Yr.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a}=t;return a<1?`rgba(${Yr.lang.round(e)}, ${Yr.lang.round(r)}, ${Yr.lang.round(n)}, ${Yr.lang.round(a)})`:`rgb(${Yr.lang.round(e)}, ${Yr.lang.round(r)}, ${Yr.lang.round(n)})`}},pc={format:{keyword:nS,hex:e1,rgb:_E,rgba:_E,hsl:sp,hsla:sp},parse:t=>{if(typeof t!="string")return t;const e=e1.parse(t)||_E.parse(t)||sp.parse(t)||nS.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(as.HSL)||t.data.r===void 0?sp.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?_E.stringify(t):e1.stringify(t)},U0e=(t,e)=>{const r=pc.parse(t);for(const n in e)r[n]=Yr.channel.clamp[n](e[n]);return pc.stringify(r)},rc=(t,e,r=0,n=1)=>{if(typeof t!="number")return U0e(t,{a:e});const a=Nk.set({r:Yr.channel.clamp.r(t),g:Yr.channel.clamp.g(e),b:Yr.channel.clamp.b(r),a:Yr.channel.clamp.a(n)});return pc.stringify(a)},FU=(t,e)=>Yr.lang.round(pc.parse(t)[e]),CFe=t=>{const{r:e,g:r,b:n}=pc.parse(t),a=.2126*Yr.channel.toLinear(e)+.7152*Yr.channel.toLinear(r)+.0722*Yr.channel.toLinear(n);return Yr.lang.round(a)},wFe=t=>CFe(t)>=.5,Js=t=>!wFe(t),$U=(t,e,r)=>{const n=pc.parse(t),a=n[e],i=Yr.channel.clamp[e](a+r);return a!==i&&(n[e]=i),pc.stringify(n)},vt=(t,e)=>$U(t,"l",e),yt=(t,e)=>$U(t,"l",-e),QX=(t,e)=>$U(t,"a",-e),ce=(t,e)=>{const r=pc.parse(t),n={};for(const a in e)e[a]&&(n[a]=r[a]+e[a]);return U0e(t,n)},kFe=(t,e,r=50)=>{const{r:n,g:a,b:i,a:s}=pc.parse(t),{r:o,g:l,b:u,a:d}=pc.parse(e),h=r/100,f=h*2-1,p=s-d,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,v=1-m,y=n*m+o*v,b=a*m+l*v,_=i*m+u*v,S=s*h+d*(1-h);return rc(y,b,_,S)},st=(t,e=100)=>{const r=pc.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,kFe(r,t,e)};const{entries:G0e,setPrototypeOf:ZX,isFrozen:AFe,getPrototypeOf:RFe,getOwnPropertyDescriptor:NFe}=Object;let{freeze:Hs,seal:Nl,create:e5}=Object,{apply:tP,construct:rP}=typeof Reflect<"u"&&Reflect;Hs||(Hs=function(e){return e});Nl||(Nl=function(e){return e});tP||(tP=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i1?r-1:0),a=1;a1?r-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:t5;ZX&&ZX(t,null);let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(AFe(e)||(e[n]=i),a=i)}t[a]=!0}return t}function PFe(t){for(let e=0;e/gm),UFe=Nl(/\$\{[\w\W]*/gm),GFe=Nl(/^data-[\-\w.\u00B7-\uFFFF]+$/),qFe=Nl(/^aria-[\-\w]+$/),q0e=Nl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),YFe=Nl(/^(?:\w+script|data):/i),HFe=Nl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y0e=Nl(/^html$/i),VFe=Nl(/^[a-z][.\w]*(-[.\w]+)+$/i);var aj=Object.freeze({__proto__:null,ARIA_ATTR:qFe,ATTR_WHITESPACE:HFe,CUSTOM_ELEMENT:VFe,DATA_ATTR:GFe,DOCTYPE_NAME:Y0e,ERB_EXPR:zFe,IS_ALLOWED_URI:q0e,IS_SCRIPT_OR_DATA:YFe,MUSTACHE_EXPR:$Fe,TMPLIT_EXPR:UFe});const F2={element:1,text:3,progressingInstruction:7,comment:8,document:9},WFe=function(){return typeof window>"u"?null:window},KFe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ij=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function H0e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WFe();const e=Ct=>H0e(Ct);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==F2.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,a=n.currentScript,{DocumentFragment:i,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=B2(g,"cloneNode"),v=B2(g,"remove"),y=B2(g,"nextSibling"),b=B2(g,"childNodes"),_=B2(g,"parentNode");if(typeof s=="function"){const Ct=r.createElement("template");Ct.content&&Ct.content.ownerDocument&&(r=Ct.content.ownerDocument)}let S,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:w,getElementsByTagName:R}=r,{importNode:O}=n;let M=ij();e.isSupported=typeof G0e=="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:N,CUSTOM_ELEMENT:P}=aj;let{IS_ALLOWED_URI:z}=aj,B=null;const U=sn({},[...ej,...gR,...mR,...vR,...tj]);let G=null;const K=sn({},[...rj,...yR,...nj,...Nx]);let Y=Object.seal(e5(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}})),ee=null,X=null;const le=Object.seal(e5(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let te=!0,ne=!0,ae=!1,re=!0,ge=!1,pe=!0,Be=!1,Le=!1,He=!1,Re=!1,xe=!1,$e=!1,Ce=!0,ut=!1;const Ae="user-content-";let je=!0,ot=!1,lt={},ct=null;const it=sn({},["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 ke=null;const Qe=sn({},["audio","video","img","source","image","track"]);let _e=null;const ye=sn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),q="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",j="http://www.w3.org/1999/xhtml";let we=j,Te=!1,rt=null;const Oe=sn({},[q,fe,j],fR);let Pe=sn({},["mi","mo","mn","ms","mtext"]),Ie=sn({},["annotation-xml"]);const Ze=sn({},["title","style","font","a","script"]);let ze=null;const me=["application/xhtml+xml","text/html"],ie="text/html";let Ve=null,ve=null;const Tt=r.createElement("form"),St=function(Fe){return Fe instanceof RegExp||Fe instanceof Function},nt=function(){let Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ve&&ve===Fe)){if((!Fe||typeof Fe!="object")&&(Fe={}),Fe=Rc(Fe),ze=me.indexOf(Fe.PARSER_MEDIA_TYPE)===-1?ie:Fe.PARSER_MEDIA_TYPE,Ve=ze==="application/xhtml+xml"?fR:t5,B=Io(Fe,"ALLOWED_TAGS")?sn({},Fe.ALLOWED_TAGS,Ve):U,G=Io(Fe,"ALLOWED_ATTR")?sn({},Fe.ALLOWED_ATTR,Ve):K,rt=Io(Fe,"ALLOWED_NAMESPACES")?sn({},Fe.ALLOWED_NAMESPACES,fR):Oe,_e=Io(Fe,"ADD_URI_SAFE_ATTR")?sn(Rc(ye),Fe.ADD_URI_SAFE_ATTR,Ve):ye,ke=Io(Fe,"ADD_DATA_URI_TAGS")?sn(Rc(Qe),Fe.ADD_DATA_URI_TAGS,Ve):Qe,ct=Io(Fe,"FORBID_CONTENTS")?sn({},Fe.FORBID_CONTENTS,Ve):it,ee=Io(Fe,"FORBID_TAGS")?sn({},Fe.FORBID_TAGS,Ve):Rc({}),X=Io(Fe,"FORBID_ATTR")?sn({},Fe.FORBID_ATTR,Ve):Rc({}),lt=Io(Fe,"USE_PROFILES")?Fe.USE_PROFILES:!1,te=Fe.ALLOW_ARIA_ATTR!==!1,ne=Fe.ALLOW_DATA_ATTR!==!1,ae=Fe.ALLOW_UNKNOWN_PROTOCOLS||!1,re=Fe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=Fe.SAFE_FOR_TEMPLATES||!1,pe=Fe.SAFE_FOR_XML!==!1,Be=Fe.WHOLE_DOCUMENT||!1,Re=Fe.RETURN_DOM||!1,xe=Fe.RETURN_DOM_FRAGMENT||!1,$e=Fe.RETURN_TRUSTED_TYPE||!1,He=Fe.FORCE_BODY||!1,Ce=Fe.SANITIZE_DOM!==!1,ut=Fe.SANITIZE_NAMED_PROPS||!1,je=Fe.KEEP_CONTENT!==!1,ot=Fe.IN_PLACE||!1,z=Fe.ALLOWED_URI_REGEXP||q0e,we=Fe.NAMESPACE||j,Pe=Fe.MATHML_TEXT_INTEGRATION_POINTS||Pe,Ie=Fe.HTML_INTEGRATION_POINTS||Ie,Y=Fe.CUSTOM_ELEMENT_HANDLING||{},Fe.CUSTOM_ELEMENT_HANDLING&&St(Fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=Fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Fe.CUSTOM_ELEMENT_HANDLING&&St(Fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=Fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Fe.CUSTOM_ELEMENT_HANDLING&&typeof Fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=Fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(ne=!1),xe&&(Re=!0),lt&&(B=sn({},tj),G=e5(null),lt.html===!0&&(sn(B,ej),sn(G,rj)),lt.svg===!0&&(sn(B,gR),sn(G,yR),sn(G,Nx)),lt.svgFilters===!0&&(sn(B,mR),sn(G,yR),sn(G,Nx)),lt.mathMl===!0&&(sn(B,vR),sn(G,nj),sn(G,Nx))),Io(Fe,"ADD_TAGS")||(le.tagCheck=null),Io(Fe,"ADD_ATTR")||(le.attributeCheck=null),Fe.ADD_TAGS&&(typeof Fe.ADD_TAGS=="function"?le.tagCheck=Fe.ADD_TAGS:(B===U&&(B=Rc(B)),sn(B,Fe.ADD_TAGS,Ve))),Fe.ADD_ATTR&&(typeof Fe.ADD_ATTR=="function"?le.attributeCheck=Fe.ADD_ATTR:(G===K&&(G=Rc(G)),sn(G,Fe.ADD_ATTR,Ve))),Fe.ADD_URI_SAFE_ATTR&&sn(_e,Fe.ADD_URI_SAFE_ATTR,Ve),Fe.FORBID_CONTENTS&&(ct===it&&(ct=Rc(ct)),sn(ct,Fe.FORBID_CONTENTS,Ve)),Fe.ADD_FORBID_CONTENTS&&(ct===it&&(ct=Rc(ct)),sn(ct,Fe.ADD_FORBID_CONTENTS,Ve)),je&&(B["#text"]=!0),Be&&sn(B,["html","head","body"]),B.table&&(sn(B,["tbody"]),delete ee.tbody),Fe.TRUSTED_TYPES_POLICY){if(typeof Fe.TRUSTED_TYPES_POLICY.createHTML!="function")throw P2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Fe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw P2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=Fe.TRUSTED_TYPES_POLICY,x=S.createHTML("")}else S===void 0&&(S=KFe(p,a)),S!==null&&typeof x=="string"&&(x=S.createHTML(""));Hs&&Hs(Fe),ve=Fe}},dt=sn({},[...gR,...mR,...BFe]),ft=sn({},[...vR,...FFe]),gt=function(Fe){let pt=_(Fe);(!pt||!pt.tagName)&&(pt={namespaceURI:we,tagName:"template"});const Dt=t5(Fe.tagName),Zt=t5(pt.tagName);return rt[Fe.namespaceURI]?Fe.namespaceURI===fe?pt.namespaceURI===j?Dt==="svg":pt.namespaceURI===q?Dt==="svg"&&(Zt==="annotation-xml"||Pe[Zt]):!!dt[Dt]:Fe.namespaceURI===q?pt.namespaceURI===j?Dt==="math":pt.namespaceURI===fe?Dt==="math"&&Ie[Zt]:!!ft[Dt]:Fe.namespaceURI===j?pt.namespaceURI===fe&&!Ie[Zt]||pt.namespaceURI===q&&!Pe[Zt]?!1:!ft[Dt]&&(Ze[Dt]||!dt[Dt]):!!(ze==="application/xhtml+xml"&&rt[Fe.namespaceURI]):!1},se=function(Fe){L2(e.removed,{element:Fe});try{_(Fe).removeChild(Fe)}catch{v(Fe)}},It=function(Fe,pt){try{L2(e.removed,{attribute:pt.getAttributeNode(Fe),from:pt})}catch{L2(e.removed,{attribute:null,from:pt})}if(pt.removeAttribute(Fe),Fe==="is")if(Re||xe)try{se(pt)}catch{}else try{pt.setAttribute(Fe,"")}catch{}},bt=function(Fe){let pt=null,Dt=null;if(He)Fe=""+Fe;else{const Wr=pR(Fe,/^[\r\n\t ]+/);Dt=Wr&&Wr[0]}ze==="application/xhtml+xml"&&we===j&&(Fe=''+Fe+"");const Zt=S?S.createHTML(Fe):Fe;if(we===j)try{pt=new f().parseFromString(Zt,ze)}catch{}if(!pt||!pt.documentElement){pt=C.createDocument(we,"template",null);try{pt.documentElement.innerHTML=Te?x:Zt}catch{}}const kr=pt.body||pt.documentElement;return Fe&&Dt&&kr.insertBefore(r.createTextNode(Dt),kr.childNodes[0]||null),we===j?R.call(pt,Be?"html":"body")[0]:Be?pt.documentElement:kr},Et=function(Fe){return T.call(Fe.ownerDocument||Fe,Fe,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Nt=function(Fe){return Fe instanceof h&&(typeof Fe.nodeName!="string"||typeof Fe.textContent!="string"||typeof Fe.removeChild!="function"||!(Fe.attributes instanceof d)||typeof Fe.removeAttribute!="function"||typeof Fe.setAttribute!="function"||typeof Fe.namespaceURI!="string"||typeof Fe.insertBefore!="function"||typeof Fe.hasChildNodes!="function")},Vr=function(Fe){return typeof o=="function"&&Fe instanceof o};function Ne(Ct,Fe,pt){Rx(Ct,Dt=>{Dt.call(e,Fe,pt,ve)})}const mt=function(Fe){let pt=null;if(Ne(M.beforeSanitizeElements,Fe,null),Nt(Fe))return se(Fe),!0;const Dt=Ve(Fe.nodeName);if(Ne(M.uponSanitizeElement,Fe,{tagName:Dt,allowedTags:B}),pe&&Fe.hasChildNodes()&&!Vr(Fe.firstElementChild)&&Ss(/<[/\w!]/g,Fe.innerHTML)&&Ss(/<[/\w!]/g,Fe.textContent)||Fe.nodeType===F2.progressingInstruction||pe&&Fe.nodeType===F2.comment&&Ss(/<[/\w]/g,Fe.data))return se(Fe),!0;if(!(le.tagCheck instanceof Function&&le.tagCheck(Dt))&&(!B[Dt]||ee[Dt])){if(!ee[Dt]&&Ot(Dt)&&(Y.tagNameCheck instanceof RegExp&&Ss(Y.tagNameCheck,Dt)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Dt)))return!1;if(je&&!ct[Dt]){const Zt=_(Fe)||Fe.parentNode,kr=b(Fe)||Fe.childNodes;if(kr&&Zt){const Wr=kr.length;for(let Xr=Wr-1;Xr>=0;--Xr){const qn=m(kr[Xr],!0);qn.__removalCount=(Fe.__removalCount||0)+1,Zt.insertBefore(qn,y(Fe))}}}return se(Fe),!0}return Fe instanceof l&&!gt(Fe)||(Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&Ss(/<\/no(script|embed|frames)/i,Fe.innerHTML)?(se(Fe),!0):(ge&&Fe.nodeType===F2.text&&(pt=Fe.textContent,Rx([$,F,A],Zt=>{pt=M2(pt,Zt," ")}),Fe.textContent!==pt&&(L2(e.removed,{element:Fe.cloneNode()}),Fe.textContent=pt)),Ne(M.afterSanitizeElements,Fe,null),!1)},_t=function(Fe,pt,Dt){if(X[pt]||Ce&&(pt==="id"||pt==="name")&&(Dt in r||Dt in Tt))return!1;if(!(ne&&!X[pt]&&Ss(I,pt))){if(!(te&&Ss(D,pt))){if(!(le.attributeCheck instanceof Function&&le.attributeCheck(pt,Fe))){if(!G[pt]||X[pt]){if(!(Ot(Fe)&&(Y.tagNameCheck instanceof RegExp&&Ss(Y.tagNameCheck,Fe)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Fe))&&(Y.attributeNameCheck instanceof RegExp&&Ss(Y.attributeNameCheck,pt)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(pt,Fe))||pt==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Ss(Y.tagNameCheck,Dt)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Dt))))return!1}else if(!_e[pt]){if(!Ss(z,M2(Dt,N,""))){if(!((pt==="src"||pt==="xlink:href"||pt==="href")&&Fe!=="script"&&DFe(Dt,"data:")===0&&ke[Fe])){if(!(ae&&!Ss(L,M2(Dt,N,"")))){if(Dt)return!1}}}}}}}return!0},Ot=function(Fe){return Fe!=="annotation-xml"&&pR(Fe,P)},Qt=function(Fe){Ne(M.beforeSanitizeAttributes,Fe,null);const{attributes:pt}=Fe;if(!pt||Nt(Fe))return;const Dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let Zt=pt.length;for(;Zt--;){const kr=pt[Zt],{name:Wr,namespaceURI:Xr,value:qn}=kr,ja=Ve(Wr),Mt=qn;let Xt=Wr==="value"?Mt:LFe(Mt);if(Dt.attrName=ja,Dt.attrValue=Xt,Dt.keepAttr=!0,Dt.forceKeepAttr=void 0,Ne(M.uponSanitizeAttribute,Fe,Dt),Xt=Dt.attrValue,ut&&(ja==="id"||ja==="name")&&(It(Wr,Fe),Xt=Ae+Xt),pe&&Ss(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xt)){It(Wr,Fe);continue}if(ja==="attributename"&&pR(Xt,"href")){It(Wr,Fe);continue}if(Dt.forceKeepAttr)continue;if(!Dt.keepAttr){It(Wr,Fe);continue}if(!re&&Ss(/\/>/i,Xt)){It(Wr,Fe);continue}ge&&Rx([$,F,A],xt=>{Xt=M2(Xt,xt," ")});const kt=Ve(Fe.nodeName);if(!_t(kt,ja,Xt)){It(Wr,Fe);continue}if(S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Xr)switch(p.getAttributeType(kt,ja)){case"TrustedHTML":{Xt=S.createHTML(Xt);break}case"TrustedScriptURL":{Xt=S.createScriptURL(Xt);break}}if(Xt!==Mt)try{Xr?Fe.setAttributeNS(Xr,Wr,Xt):Fe.setAttribute(Wr,Xt),Nt(Fe)?se(Fe):JX(e.removed)}catch{It(Wr,Fe)}}Ne(M.afterSanitizeAttributes,Fe,null)},br=function Ct(Fe){let pt=null;const Dt=Et(Fe);for(Ne(M.beforeSanitizeShadowDOM,Fe,null);pt=Dt.nextNode();)Ne(M.uponSanitizeShadowNode,pt,null),mt(pt),Qt(pt),pt.content instanceof i&&Ct(pt.content);Ne(M.afterSanitizeShadowDOM,Fe,null)};return e.sanitize=function(Ct){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=null,Dt=null,Zt=null,kr=null;if(Te=!Ct,Te&&(Ct=""),typeof Ct!="string"&&!Vr(Ct))if(typeof Ct.toString=="function"){if(Ct=Ct.toString(),typeof Ct!="string")throw P2("dirty is not a string, aborting")}else throw P2("toString is not a function");if(!e.isSupported)return Ct;if(Le||nt(Fe),e.removed=[],typeof Ct=="string"&&(ot=!1),ot){if(Ct.nodeName){const qn=Ve(Ct.nodeName);if(!B[qn]||ee[qn])throw P2("root node is forbidden and cannot be sanitized in-place")}}else if(Ct instanceof o)pt=bt(""),Dt=pt.ownerDocument.importNode(Ct,!0),Dt.nodeType===F2.element&&Dt.nodeName==="BODY"||Dt.nodeName==="HTML"?pt=Dt:pt.appendChild(Dt);else{if(!Re&&!ge&&!Be&&Ct.indexOf("<")===-1)return S&&$e?S.createHTML(Ct):Ct;if(pt=bt(Ct),!pt)return Re?null:$e?x:""}pt&&He&&se(pt.firstChild);const Wr=Et(ot?Ct:pt);for(;Zt=Wr.nextNode();)mt(Zt),Qt(Zt),Zt.content instanceof i&&br(Zt.content);if(ot)return Ct;if(Re){if(xe)for(kr=w.call(pt.ownerDocument);pt.firstChild;)kr.appendChild(pt.firstChild);else kr=pt;return(G.shadowroot||G.shadowrootmode)&&(kr=O.call(n,kr,!0)),kr}let Xr=Be?pt.outerHTML:pt.innerHTML;return Be&&B["!doctype"]&&pt.ownerDocument&&pt.ownerDocument.doctype&&pt.ownerDocument.doctype.name&&Ss(Y0e,pt.ownerDocument.doctype.name)&&(Xr=" -`+Xr),ge&&Rx([$,F,A],qn=>{Xr=M2(Xr,qn," ")}),S&&$e?S.createHTML(Xr):Xr},e.setConfig=function(){let Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nt(Ct),Le=!0},e.clearConfig=function(){ve=null,Le=!1},e.isValidAttribute=function(Ct,Fe,pt){ve||nt({});const Dt=Ve(Ct),Zt=Ve(Fe);return _t(Dt,Zt,pt)},e.addHook=function(Ct,Fe){typeof Fe=="function"&&L2(M[Ct],Fe)},e.removeHook=function(Ct,Fe){if(Fe!==void 0){const pt=IFe(M[Ct],Fe);return pt===-1?void 0:OFe(M[Ct],pt,1)[0]}return JX(M[Ct])},e.removeHooks=function(Ct){M[Ct]=[]},e.removeAllHooks=function(){M=ij()},e}var uh=H0e(),V0e=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,aS=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,XFe=/\s*%%.*\n/gm,E1,W0e=(E1=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},E(E1,"UnknownDiagramError"),E1),Ap={},zU=E(function(t,e){t=t.replace(V0e,"").replace(aS,"").replace(XFe,` -`);for(const[r,{detector:n}]of Object.entries(Ap))if(n(t,e))return r;throw new W0e(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),nP=E((...t)=>{for(const{id:e,detector:r,loader:n}of t)K0e(e,r,n)},"registerLazyLoadedDiagrams"),K0e=E((t,e,r)=>{Ap[t]&&oe.warn(`Detector with key ${t} already exists. Overwriting.`),Ap[t]={detector:e,loader:r},oe.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),jFe=E(t=>Ap[t].loader,"getDiagramLoader"),aP=E((t,e,{depth:r=2,clobber:n=!1}={})=>{const a={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(i=>aP(t,i,a)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(i=>{t.includes(i)||t.push(i)}),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(i=>{typeof e[i]=="object"&&e[i]!==null&&(t[i]===void 0||typeof t[i]=="object")?(t[i]===void 0&&(t[i]=Array.isArray(e[i])?[]:{}),t[i]=aP(t[i],e[i],{depth:r-1,clobber:n})):(n||typeof t[i]!="object"&&typeof e[i]!="object")&&(t[i]=e[i])}),t)},"assignWithDepth"),Va=aP,yu="#ffffff",_u="#f2f2f2",zr=E((t,e)=>e?ce(t,{s:-40,l:10}):ce(t,{s:-40,l:-10}),"mkBorder"),S1,QFe=(S1=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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||yt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||yt(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(S1,"Theme"),S1),ZFe=E(t=>{const e=new QFe;return e.calculate(t),e},"getThemeVariables"),T1,JFe=(T1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(st("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=rc(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=yt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=yt(this.sectionBkgColor,10),this.taskBorderColor=rc(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=rc(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||yt(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=st(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=ce(this.primaryColor,{h:64}),this.fillType3=ce(this.secondaryColor,{h:64}),this.fillType4=ce(this.primaryColor,{h:-64}),this.fillType5=ce(this.secondaryColor,{h:-64}),this.fillType6=ce(this.primaryColor,{h:128}),this.fillType7=ce(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330});for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(T1,"Theme"),T1),e$e=E(t=>{const e=new JFe;return e.calculate(t),e},"getThemeVariables"),x1,t$e=(x1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ce(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=zr(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=rc(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(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]})}},E(x1,"Theme"),x1),Qb=E(t=>{const e=new t$e;return e.calculate(t),e},"getThemeVariables"),C1,r$e=(C1=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=zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.primaryColor),this.lineColor=st(this.background),this.textColor=st(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=yt(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(this.tertiaryColor,40);for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(C1,"Theme"),C1),n$e=E(t=>{const e=new r$e;return e.calculate(t),e},"getThemeVariables"),w1,a$e=(w1=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=vt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(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]})}},E(w1,"Theme"),w1),i$e=E(t=>{const e=new a$e;return e.calculate(t),e},"getThemeVariables"),k1,s$e=(k1=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=zr(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=ce(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||ce(e,{h:30}),this.cScale4=this.cScale4||ce(e,{h:60}),this.cScale5=this.cScale5||ce(e,{h:90}),this.cScale6=this.cScale6||ce(e,{h:120}),this.cScale7=this.cScale7||ce(e,{h:150}),this.cScale8=this.cScale8||ce(e,{h:210,l:150}),this.cScale9=this.cScale9||ce(e,{h:270}),this.cScale10=this.cScale10||ce(e,{h:300}),this.cScale11=this.cScale11||ce(e,{h:330}),this.darkMode)for(let i=0;i{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(k1,"Theme"),k1),o$e=E(t=>{const e=new s$e;return e.calculate(t),e},"getThemeVariables"),A1,l$e=(A1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(st("#323D47"),10),this.border1="#ccc",this.border2=rc(255,255,255,.25),this.arrowheadColor=st(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(A1,"Theme"),A1),c$e=E(t=>{const e=new l$e;return e.calculate(t),e},"getThemeVariables"),R1,u$e=(R1=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=zr("#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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=ce(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 i=0;i{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(R1,"Theme"),R1),d$e=E(t=>{const e=new u$e;return e.calculate(t),e},"getThemeVariables"),N1,h$e=(N1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(st("#323D47"),10),this.border1="#ccc",this.border2=rc(255,255,255,.25),this.arrowheadColor=st(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(N1,"Theme"),N1),f$e=E(t=>{const e=new h$e;return e.calculate(t),e},"getThemeVariables"),I1,p$e=(I1=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=zr(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=ce(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 i=0;i{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(I1,"Theme"),I1),g$e=E(t=>{const e=new p$e;return e.calculate(t),e},"getThemeVariables"),O1,m$e=(O1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(st("#323D47"),10),this.border1="#ccc",this.border2=rc(255,255,255,.25),this.arrowheadColor=st(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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]})}},E(O1,"Theme"),O1),v$e=E(t=>{const e=new m$e;return e.calculate(t),e},"getThemeVariables"),b0={base:{getThemeVariables:ZFe},dark:{getThemeVariables:e$e},default:{getThemeVariables:Qb},forest:{getThemeVariables:n$e},neutral:{getThemeVariables:i$e},neo:{getThemeVariables:o$e},"neo-dark":{getThemeVariables:c$e},redux:{getThemeVariables:d$e},"redux-dark":{getThemeVariables:f$e},"redux-color":{getThemeVariables:g$e},"redux-dark-color":{getThemeVariables:v$e}},Ts={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},X0e={...Ts,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:b0.default.getThemeVariables(),sequence:{...Ts.sequence,messageFont:E(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:E(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:E(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Ts.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ts.c4,useWidth:void 0,personFont:E(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Ts.flowchart,inheritDir:!1},external_personFont:E(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:E(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:E(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:E(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:E(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:E(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:E(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:E(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:E(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:E(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:E(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:E(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:E(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:E(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:E(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:E(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:E(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:E(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:E(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:E(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:E(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Ts.pie,useWidth:984},xyChart:{...Ts.xyChart,useWidth:void 0},requirement:{...Ts.requirement,useWidth:void 0},packet:{...Ts.packet},eventmodeling:{...Ts.eventmodeling},treeView:{...Ts.treeView,useWidth:void 0},radar:{...Ts.radar},ishikawa:{...Ts.ishikawa},sankey:{...Ts.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:{...Ts.venn}},j0e=E((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...j0e(t[n],"")]:[...r,e+n],[]),"keyify"),y$e=new Set(j0e(X0e,"")),ln=X0e,MC=E(t=>{if(oe.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>MC(e));return}for(const e of Object.keys(t)){if(oe.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!y$e.has(e)||t[e]==null){oe.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 a of Object.keys(t[e]))(typeof t[e][a]!="string"||!n.test(t[e][a]))&&(oe.debug("sanitize deleting invalid color:",a,t[e][a]),delete t[e][a])}else oe.debug("sanitizing object",e),MC(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(oe.debug("sanitizing css option",e),t[e]=Q0e(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]="")}oe.debug("After sanitization",t)}},"sanitizeDirective"),Q0e=E(t=>{let e=0,r=0;for(const n of t){if(e!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),fo=Va({},rb),PC,Rp=[],iS=Va({},rb),Ik=E((t,e)=>{let r=Va({},t),n={};for(const a of e)ede(a),n=Va(n,a);if(r=Va(r,n),n.theme&&n.theme in b0){const a=Va({},PC),i=Va(a.themeVariables||{},n.themeVariables);r.theme&&r.theme in b0&&(r.themeVariables=b0[r.theme].getThemeVariables(i))}return iS=r,rde(iS),iS},"updateCurrentConfig"),_$e=E(t=>(fo=Va({},rb),fo=Va(fo,t),t.theme&&b0[t.theme]&&(fo.themeVariables=b0[t.theme].getThemeVariables(t.themeVariables)),Ik(fo,Rp),fo),"setSiteConfig"),b$e=E(t=>{PC=Va({},t)},"saveConfigFromInitialize"),E$e=E(t=>(fo=Va(fo,t),Ik(fo,Rp),fo),"updateSiteConfig"),Z0e=E(()=>Va({},fo),"getSiteConfig"),J0e=E(t=>(rde(t),Va(iS,t),xr()),"setConfig"),xr=E(()=>Va({},iS),"getConfig"),ede=E(t=>{t&&(["secure",...fo.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(oe.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"&&ede(t[e])}))},"sanitize"),S$e=E(t=>{MC(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Rp.push(t),Ik(fo,Rp)},"addDirective"),BC=E((t=fo)=>{Rp=[],Ik(t,Rp)},"reset"),T$e={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."},sj={},tde=E(t=>{sj[t]||(oe.warn(T$e[t]),sj[t]=!0)},"issueWarning"),rde=E(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&tde("LAZY_LOAD_DEPRECATED")},"checkConfig"),x$e=E(()=>{let t={};PC&&(t=Va(t,PC));for(const e of Rp)t=Va(t,e);return t},"getUserDefinedConfig"),On=E(t=>(t.flowchart?.htmlLabels!=null&&tde("FLOWCHART_HTML_LABELS_DEPRECATED"),K0(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),Zb=//gi,C$e=E(t=>t?ide(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),w$e=(()=>{let t=!1;return()=>{t||(nde(),t=!0)}})();function nde(){const t="data-temp-href-target";uh.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),uh.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"))})}E(nde,"setupDompurifyHooks");var ade=E(t=>(w$e(),uh.sanitize(t)),"removeScript"),oj=E((t,e)=>{if(On(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=ade(t):r!=="loose"&&(t=ide(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=N$e(t))}return t},"sanitizeMore"),dn=E((t,e)=>t&&(e.dompurifyConfig?t=uh.sanitize(oj(t,e),e.dompurifyConfig).toString():t=uh.sanitize(oj(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),k$e=E((t,e)=>typeof t=="string"?dn(t,e):t.flat().map(r=>dn(r,e)),"sanitizeTextOrArray"),A$e=E(t=>Zb.test(t),"hasBreaks"),R$e=E(t=>t.split(Zb),"splitBreaks"),N$e=E(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),ide=E(t=>t.replace(Zb,"#br#"),"breakToPlaceholder"),Ok=E(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),I$e=E(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),O$e=E(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Ad=E(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,t.split(e).length-1),"countOccurrence"),D$e=E((t,e)=>{const r=iP(t,"~"),n=iP(e,"~");return r===1&&n===1},"shouldCombineSets"),L$e=E(t=>{const e=iP(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let a=n.indexOf("~"),i=n.lastIndexOf("~");for(;a!==-1&&i!==-1&&a!==i;)n[a]="<",n[i]=">",a=n.indexOf("~"),i=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),lj=E(()=>window.MathMLElement!==void 0,"isMathMLSupported"),sP=/\$\$(.*)\$\$/g,Xa=E(t=>(t.match(sP)?.length??0)>0,"hasKatex"),hT=E(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await Dk(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 a={width:r.clientWidth,height:r.clientHeight};return r.remove(),a},"calculateMathMLDimensions"),M$e=E(async(t,e)=>{if(!Xa(t))return t;if(!(lj()||e.legacyMathML||e.forceLegacyMathML))return t.replace(sP,"MathML is unsupported in this environment.");{const{default:r}=await Promise.resolve().then(()=>xot),n=e.forceLegacyMathML||!lj()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Zb).map(a=>Xa(a)?`
${a}
`:`
${a}
`).join("").replace(sP,(a,i)=>r.renderToString(i,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(//g,""))}},"renderKatexUnsanitized"),Dk=E(async(t,e)=>dn(await M$e(t,e),e),"renderKatexSanitized"),qt={getRows:C$e,sanitizeText:dn,sanitizeTextOrArray:k$e,hasBreaks:A$e,splitBreaks:R$e,lineBreakRegex:Zb,removeScript:ade,getUrl:Ok,evaluate:K0,getMax:I$e,getMin:O$e},P$e=E(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),B$e=E(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"),di=E(function(t,e,r,n){const a=B$e(e,r,n);P$e(t,a)},"configureSvgSize"),Jb=E(function(t,e,r,n){const a=e.node().getBBox(),i=a.width,s=a.height;oe.info(`SVG bounds: ${i}x${s}`,a);let o=0,l=0;oe.info(`Graph bounds: ${o}x${l}`,t),o=i+r*2,l=s+r*2,oe.info(`Calculated bounds: ${o}x${l}`),di(e,l,o,n);const u=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),r5={};function oP(t){return[...t.cssRules].map(e=>e.cssText).join(` -`)}E(oP,"cssStyleSheetToString");var F$e=E((t,e,r,n)=>{let a="";return t in r5&&r5[t]?a=r5[t]({...r,svgId:n}):oe.warn(`No theme found for ${t}`),` & { +?)[ \r ]*`,eP="[̀-ͯ]",dFe=new RegExp(eP+"+$"),hFe="("+A0e+"+)|"+(uFe+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(eP+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(eP+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+cFe)+("|"+lFe+")");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(hFe,"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 tc("EOF",new fl(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Vt("Unexpected character: '"+e[r]+"'",new tc(e[r],new fl(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new tc(a,new fl(this,r,this.tokenRegex.lastIndex))}},fFe=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 a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}};var pFe=g0e;be("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});be("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});be("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});be("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});be("\\@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}});be("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");be("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var VX={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};be("\\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=VX[e.text],n==null||n>=r)throw new Vt("Invalid base-"+r+" digit "+e.text);for(var a;(a=VX[t.future().text])!=null&&a{var a=t.consumeArg().tokens;if(a.length!==1)throw new Vt("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new Vt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new Vt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[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),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};be("\\newcommand",t=>DU(t,!1,!0,!1));be("\\renewcommand",t=>DU(t,!0,!1,!1));be("\\providecommand",t=>DU(t,!0,!0,!0));be("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});be("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});be("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),zd[r],da.math[r],da.text[r]),""});be("\\bgroup","{");be("\\egroup","}");be("~","\\nobreakspace");be("\\lq","`");be("\\rq","'");be("\\aa","\\r a");be("\\AA","\\r A");be("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");be("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");be("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");be("ℬ","\\mathscr{B}");be("ℰ","\\mathscr{E}");be("ℱ","\\mathscr{F}");be("ℋ","\\mathscr{H}");be("ℐ","\\mathscr{I}");be("ℒ","\\mathscr{L}");be("ℳ","\\mathscr{M}");be("ℛ","\\mathscr{R}");be("ℭ","\\mathfrak{C}");be("ℌ","\\mathfrak{H}");be("ℨ","\\mathfrak{Z}");be("\\Bbbk","\\Bbb{k}");be("\\llap","\\mathllap{\\textrm{#1}}");be("\\rlap","\\mathrlap{\\textrm{#1}}");be("\\clap","\\mathclap{\\textrm{#1}}");be("\\mathstrut","\\vphantom{(}");be("\\underbar","\\underline{\\text{#1}}");be("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');be("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");be("\\ne","\\neq");be("≠","\\neq");be("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");be("∉","\\notin");be("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");be("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");be("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");be("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");be("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");be("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");be("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");be("⟂","\\perp");be("‼","\\mathclose{!\\mkern-0.8mu!}");be("∌","\\notni");be("⌜","\\ulcorner");be("⌝","\\urcorner");be("⌞","\\llcorner");be("⌟","\\lrcorner");be("©","\\copyright");be("®","\\textregistered");be("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');be("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');be("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');be("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');be("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");be("⋮","\\vdots");be("\\varGamma","\\mathit{\\Gamma}");be("\\varDelta","\\mathit{\\Delta}");be("\\varTheta","\\mathit{\\Theta}");be("\\varLambda","\\mathit{\\Lambda}");be("\\varXi","\\mathit{\\Xi}");be("\\varPi","\\mathit{\\Pi}");be("\\varSigma","\\mathit{\\Sigma}");be("\\varUpsilon","\\mathit{\\Upsilon}");be("\\varPhi","\\mathit{\\Phi}");be("\\varPsi","\\mathit{\\Psi}");be("\\varOmega","\\mathit{\\Omega}");be("\\substack","\\begin{subarray}{c}#1\\end{subarray}");be("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");be("\\boxed","\\fbox{$\\displaystyle{#1}$}");be("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");be("\\implies","\\DOTSB\\;\\Longrightarrow\\;");be("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");be("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");be("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var WX={",":"\\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"},gFe=new Set(["bin","rel"]);be("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in WX?e=WX[r]:(r.slice(0,4)==="\\not"||r in da.math&&gFe.has(da.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};be("\\dotso",function(t){var e=t.future().text;return e in LU?"\\ldots\\,":"\\ldots"});be("\\dotsc",function(t){var e=t.future().text;return e in LU&&e!==","?"\\ldots\\,":"\\ldots"});be("\\cdots",function(t){var e=t.future().text;return e in LU?"\\@cdots\\,":"\\@cdots"});be("\\dotsb","\\cdots");be("\\dotsm","\\cdots");be("\\dotsi","\\!\\cdots");be("\\dotsx","\\ldots\\,");be("\\DOTSI","\\relax");be("\\DOTSB","\\relax");be("\\DOTSX","\\relax");be("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");be("\\,","\\tmspace+{3mu}{.1667em}");be("\\thinspace","\\,");be("\\>","\\mskip{4mu}");be("\\:","\\tmspace+{4mu}{.2222em}");be("\\medspace","\\:");be("\\;","\\tmspace+{5mu}{.2777em}");be("\\thickspace","\\;");be("\\!","\\tmspace-{3mu}{.1667em}");be("\\negthinspace","\\!");be("\\negmedspace","\\tmspace-{4mu}{.2222em}");be("\\negthickspace","\\tmspace-{5mu}{.277em}");be("\\enspace","\\kern.5em ");be("\\enskip","\\hskip.5em\\relax");be("\\quad","\\hskip1em\\relax");be("\\qquad","\\hskip2em\\relax");be("\\tag","\\@ifstar\\tag@literal\\tag@paren");be("\\tag@paren","\\tag@literal{({#1})}");be("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Vt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});be("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");be("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");be("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");be("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");be("\\newline","\\\\\\relax");be("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var R0e=Jt(Kc["Main-Regular"][84][1]-.7*Kc["Main-Regular"][65][1]);be("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+R0e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");be("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+R0e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");be("\\hspace","\\@ifstar\\@hspacer\\@hspace");be("\\@hspace","\\hskip #1\\relax");be("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");be("\\ordinarycolon",":");be("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");be("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');be("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');be("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');be("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');be("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');be("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');be("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');be("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');be("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');be("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');be("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');be("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');be("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');be("∷","\\dblcolon");be("∹","\\eqcolon");be("≔","\\coloneqq");be("≕","\\eqqcolon");be("⩴","\\Coloneqq");be("\\ratio","\\vcentcolon");be("\\coloncolon","\\dblcolon");be("\\colonequals","\\coloneqq");be("\\coloncolonequals","\\Coloneqq");be("\\equalscolon","\\eqqcolon");be("\\equalscoloncolon","\\Eqqcolon");be("\\colonminus","\\coloneq");be("\\coloncolonminus","\\Coloneq");be("\\minuscolon","\\eqcolon");be("\\minuscoloncolon","\\Eqcolon");be("\\coloncolonapprox","\\Colonapprox");be("\\coloncolonsim","\\Colonsim");be("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");be("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");be("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");be("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");be("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");be("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");be("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");be("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");be("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");be("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");be("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");be("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");be("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");be("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");be("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");be("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");be("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");be("\\nleqq","\\html@mathml{\\@nleqq}{≰}");be("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");be("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");be("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");be("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");be("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");be("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");be("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");be("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");be("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");be("\\imath","\\html@mathml{\\@imath}{ı}");be("\\jmath","\\html@mathml{\\@jmath}{ȷ}");be("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");be("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");be("⟦","\\llbracket");be("⟧","\\rrbracket");be("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");be("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");be("⦃","\\lBrace");be("⦄","\\rBrace");be("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");be("⦵","\\minuso");be("\\darr","\\downarrow");be("\\dArr","\\Downarrow");be("\\Darr","\\Downarrow");be("\\lang","\\langle");be("\\rang","\\rangle");be("\\uarr","\\uparrow");be("\\uArr","\\Uparrow");be("\\Uarr","\\Uparrow");be("\\N","\\mathbb{N}");be("\\R","\\mathbb{R}");be("\\Z","\\mathbb{Z}");be("\\alef","\\aleph");be("\\alefsym","\\aleph");be("\\Alpha","\\mathrm{A}");be("\\Beta","\\mathrm{B}");be("\\bull","\\bullet");be("\\Chi","\\mathrm{X}");be("\\clubs","\\clubsuit");be("\\cnums","\\mathbb{C}");be("\\Complex","\\mathbb{C}");be("\\Dagger","\\ddagger");be("\\diamonds","\\diamondsuit");be("\\empty","\\emptyset");be("\\Epsilon","\\mathrm{E}");be("\\Eta","\\mathrm{H}");be("\\exist","\\exists");be("\\harr","\\leftrightarrow");be("\\hArr","\\Leftrightarrow");be("\\Harr","\\Leftrightarrow");be("\\hearts","\\heartsuit");be("\\image","\\Im");be("\\infin","\\infty");be("\\Iota","\\mathrm{I}");be("\\isin","\\in");be("\\Kappa","\\mathrm{K}");be("\\larr","\\leftarrow");be("\\lArr","\\Leftarrow");be("\\Larr","\\Leftarrow");be("\\lrarr","\\leftrightarrow");be("\\lrArr","\\Leftrightarrow");be("\\Lrarr","\\Leftrightarrow");be("\\Mu","\\mathrm{M}");be("\\natnums","\\mathbb{N}");be("\\Nu","\\mathrm{N}");be("\\Omicron","\\mathrm{O}");be("\\plusmn","\\pm");be("\\rarr","\\rightarrow");be("\\rArr","\\Rightarrow");be("\\Rarr","\\Rightarrow");be("\\real","\\Re");be("\\reals","\\mathbb{R}");be("\\Reals","\\mathbb{R}");be("\\Rho","\\mathrm{P}");be("\\sdot","\\cdot");be("\\sect","\\S");be("\\spades","\\spadesuit");be("\\sub","\\subset");be("\\sube","\\subseteq");be("\\supe","\\supseteq");be("\\Tau","\\mathrm{T}");be("\\thetasym","\\vartheta");be("\\weierp","\\wp");be("\\Zeta","\\mathrm{Z}");be("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");be("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");be("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");be("\\bra","\\mathinner{\\langle{#1}|}");be("\\ket","\\mathinner{|{#1}\\rangle}");be("\\braket","\\mathinner{\\langle{#1}\\rangle}");be("\\Bra","\\left\\langle#1\\right|");be("\\Ket","\\left|#1\\right\\rangle");var N0e=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",o));var p=h;if(!h&&a.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...i,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};be("\\bra@ket",N0e(!1));be("\\bra@set",N0e(!0));be("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");be("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");be("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");be("\\angln","{\\angl n}");be("\\blue","\\textcolor{##6495ed}{#1}");be("\\orange","\\textcolor{##ffa500}{#1}");be("\\pink","\\textcolor{##ff00af}{#1}");be("\\red","\\textcolor{##df0030}{#1}");be("\\green","\\textcolor{##28ae7b}{#1}");be("\\gray","\\textcolor{gray}{#1}");be("\\purple","\\textcolor{##9d38bd}{#1}");be("\\blueA","\\textcolor{##ccfaff}{#1}");be("\\blueB","\\textcolor{##80f6ff}{#1}");be("\\blueC","\\textcolor{##63d9ea}{#1}");be("\\blueD","\\textcolor{##11accd}{#1}");be("\\blueE","\\textcolor{##0c7f99}{#1}");be("\\tealA","\\textcolor{##94fff5}{#1}");be("\\tealB","\\textcolor{##26edd5}{#1}");be("\\tealC","\\textcolor{##01d1c1}{#1}");be("\\tealD","\\textcolor{##01a995}{#1}");be("\\tealE","\\textcolor{##208170}{#1}");be("\\greenA","\\textcolor{##b6ffb0}{#1}");be("\\greenB","\\textcolor{##8af281}{#1}");be("\\greenC","\\textcolor{##74cf70}{#1}");be("\\greenD","\\textcolor{##1fab54}{#1}");be("\\greenE","\\textcolor{##0d923f}{#1}");be("\\goldA","\\textcolor{##ffd0a9}{#1}");be("\\goldB","\\textcolor{##ffbb71}{#1}");be("\\goldC","\\textcolor{##ff9c39}{#1}");be("\\goldD","\\textcolor{##e07d10}{#1}");be("\\goldE","\\textcolor{##a75a05}{#1}");be("\\redA","\\textcolor{##fca9a9}{#1}");be("\\redB","\\textcolor{##ff8482}{#1}");be("\\redC","\\textcolor{##f9685d}{#1}");be("\\redD","\\textcolor{##e84d39}{#1}");be("\\redE","\\textcolor{##bc2612}{#1}");be("\\maroonA","\\textcolor{##ffbde0}{#1}");be("\\maroonB","\\textcolor{##ff92c6}{#1}");be("\\maroonC","\\textcolor{##ed5fa6}{#1}");be("\\maroonD","\\textcolor{##ca337c}{#1}");be("\\maroonE","\\textcolor{##9e034e}{#1}");be("\\purpleA","\\textcolor{##ddd7ff}{#1}");be("\\purpleB","\\textcolor{##c6b9fc}{#1}");be("\\purpleC","\\textcolor{##aa87ff}{#1}");be("\\purpleD","\\textcolor{##7854ab}{#1}");be("\\purpleE","\\textcolor{##543b78}{#1}");be("\\mintA","\\textcolor{##f5f9e8}{#1}");be("\\mintB","\\textcolor{##edf2df}{#1}");be("\\mintC","\\textcolor{##e0e5cc}{#1}");be("\\grayA","\\textcolor{##f6f7f7}{#1}");be("\\grayB","\\textcolor{##f0f1f2}{#1}");be("\\grayC","\\textcolor{##e3e5e6}{#1}");be("\\grayD","\\textcolor{##d6d8da}{#1}");be("\\grayE","\\textcolor{##babec2}{#1}");be("\\grayF","\\textcolor{##888d93}{#1}");be("\\grayG","\\textcolor{##626569}{#1}");be("\\grayH","\\textcolor{##3b3e40}{#1}");be("\\grayI","\\textcolor{##21242c}{#1}");be("\\kaBlue","\\textcolor{##314453}{#1}");be("\\kaGreen","\\textcolor{##71B307}{#1}");var I0e={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let mFe=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 fFe(pFe,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,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new tc("EOF",n.loc)),this.pushTokens(a),new tc("",fl.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 a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new Vt("Extra }",i)}else if(i.text==="EOF")throw new Vt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}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],a=0;athis.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,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new Vt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new Vt("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new Vt("Not a valid argument number",l)}}}return this.pushTokens(i),i.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 tc(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 a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}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 a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new HX(a,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||zd.hasOwnProperty(e)||da.math.hasOwnProperty(e)||da.text.hasOwnProperty(e)||I0e.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 KX=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ax=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),hR={"́":{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"}},XX={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let O0e=class D0e{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 mFe(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 tc("}")),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 a=this.fetch();if(D0e.endOfExpression.has(a.text)||r&&a.text===r||e&&zd[a.text]&&zd[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a=128)this.settings.strict&&(Lue(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:fl.range(e),text:r};else return null;if(this.consume(),i)for(var d=0;d=I?A:""+Array(I+1-L.length).join(D)+A},S={s:_,z:function(A){var I=-A.utcOffset(),D=Math.abs(I),L=Math.floor(D/60),N=D%60;return(I<=0?"+":"-")+_(L,2,"0")+":"+_(N,2,"0")},m:function A(I,D){if(I.date()1)return A(z[0])}else{var B=I.name;C[B]=I,N=B}return!L&&N&&(x=N),N||!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=S;M.l=R,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=R(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 N=L.date,P=L.utc;if(N===null)return new Date(NaN);if(M.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var z=N.match(v);if(z){var B=z[2]-1||0,U=(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,U)):new Date(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date(N)})(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 N=O(D);return this.startOf(L)<=N&&N<=this.endOf(L)},I.isAfter=function(D,L){return O(D)z0e(t,"name",{value:e,configurable:!0}),Rk=(t,e)=>{for(var r in e)z0e(t,r,{get:e[r],enumerable:!0})},zu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},oe={trace:E((...t)=>{},"trace"),debug:E((...t)=>{},"debug"),info:E((...t)=>{},"info"),warn:E((...t)=>{},"warn"),error:E((...t)=>{},"error"),fatal:E((...t)=>{},"fatal")},BU=E(function(t="fatal"){let e=zu.fatal;typeof t=="string"?t.toLowerCase()in zu&&(e=zu[t]):typeof t=="number"&&(e=t),oe.trace=()=>{},oe.debug=()=>{},oe.info=()=>{},oe.warn=()=>{},oe.error=()=>{},oe.fatal=()=>{},e<=zu.fatal&&(oe.fatal=console.error?console.error.bind(console,ll("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ll("FATAL"))),e<=zu.error&&(oe.error=console.error?console.error.bind(console,ll("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ll("ERROR"))),e<=zu.warn&&(oe.warn=console.warn?console.warn.bind(console,ll("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ll("WARN"))),e<=zu.info&&(oe.info=console.info?console.info.bind(console,ll("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ll("INFO"))),e<=zu.debug&&(oe.debug=console.debug?console.debug.bind(console,ll("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ll("DEBUG"))),e<=zu.trace&&(oe.trace=console.debug?console.debug.bind(console,ll("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ll("TRACE")))},"setLogLevel"),ll=E(t=>`%c${Bi().format("ss.SSS")} : ${t} : `,"format");const J3={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 a=r<.5?r*(1+e):r+e-r*e,i=2*r-a;switch(n){case"r":return J3.hue2rgb(i,a,t+1/3)*255;case"g":return J3.hue2rgb(i,a,t)*255;case"b":return J3.hue2rgb(i,a,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const a=Math.max(t,e,r),i=Math.min(t,e,r),s=(a+i)/2;if(n==="l")return s*100;if(a===i)return 0;const o=a-i,l=s>.5?o/(2-a-i):o/(a+i);if(n==="s")return l*100;switch(a){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},TFe={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Yr={channel:J3,lang:SFe,unit:TFe},Cd={};for(let t=0;t<=255;t++)Cd[t]=Yr.unit.dec2hex(t);const as={ALL:0,RGB:1,HSL:2};let xFe=class{constructor(){this.type=as.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=as.ALL}is(e){return this.type===e}};class CFe{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new xFe}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=as.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:a}=e;r===void 0&&(e.h=Yr.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=Yr.channel.rgb2hsl(e,"s")),a===void 0&&(e.l=Yr.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:a}=e;r===void 0&&(e.r=Yr.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=Yr.channel.hsl2rgb(e,"g")),a===void 0&&(e.b=Yr.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(as.HSL)&&r!==void 0?r:(this._ensureHSL(),Yr.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(as.HSL)&&r!==void 0?r:(this._ensureHSL(),Yr.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(as.HSL)&&r!==void 0?r:(this._ensureHSL(),Yr.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(as.RGB)&&r!==void 0?r:(this._ensureRGB(),Yr.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(as.RGB)&&r!==void 0?r:(this._ensureRGB(),Yr.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(as.RGB)&&r!==void 0?r:(this._ensureRGB(),Yr.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(as.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(as.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(as.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(as.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(as.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(as.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Nk=new CFe({r:0,g:0,b:0,a:0},"transparent"),e1={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(e1.re);if(!e)return;const r=e[1],n=parseInt(r,16),a=r.length,i=a%4===0,s=a>4,o=s?1:17,l=s?8:4,u=i?0:-1,d=s?255:15;return Nk.set({r:(n>>l*(u+3)&d)*o,g:(n>>l*(u+2)&d)*o,b:(n>>l*(u+1)&d)*o,a:i?(n&d)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a}=t;return a<1?`#${Cd[Math.round(e)]}${Cd[Math.round(r)]}${Cd[Math.round(n)]}${Cd[Math.round(a*255)]}`:`#${Cd[Math.round(e)]}${Cd[Math.round(r)]}${Cd[Math.round(n)]}`}},sp={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(sp.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return Yr.channel.clamp.h(parseFloat(r)*.9);case"rad":return Yr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Yr.channel.clamp.h(parseFloat(r)*360)}}return Yr.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(sp.re);if(!r)return;const[,n,a,i,s,o]=r;return Nk.set({h:sp._hue2deg(n),s:Yr.channel.clamp.s(parseFloat(a)),l:Yr.channel.clamp.l(parseFloat(i)),a:s?Yr.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a}=t;return a<1?`hsla(${Yr.lang.round(e)}, ${Yr.lang.round(r)}%, ${Yr.lang.round(n)}%, ${a})`:`hsl(${Yr.lang.round(e)}, ${Yr.lang.round(r)}%, ${Yr.lang.round(n)}%)`}},nS={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=nS.colors[t];if(e)return e1.parse(e)},stringify:t=>{const e=e1.stringify(t);for(const r in nS.colors)if(nS.colors[r]===e)return r}},_E={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(_E.re);if(!r)return;const[,n,a,i,s,o,l,u,d]=r;return Nk.set({r:Yr.channel.clamp.r(a?parseFloat(n)*2.55:parseFloat(n)),g:Yr.channel.clamp.g(s?parseFloat(i)*2.55:parseFloat(i)),b:Yr.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?Yr.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a}=t;return a<1?`rgba(${Yr.lang.round(e)}, ${Yr.lang.round(r)}, ${Yr.lang.round(n)}, ${Yr.lang.round(a)})`:`rgb(${Yr.lang.round(e)}, ${Yr.lang.round(r)}, ${Yr.lang.round(n)})`}},pc={format:{keyword:nS,hex:e1,rgb:_E,rgba:_E,hsl:sp,hsla:sp},parse:t=>{if(typeof t!="string")return t;const e=e1.parse(t)||_E.parse(t)||sp.parse(t)||nS.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(as.HSL)||t.data.r===void 0?sp.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?_E.stringify(t):e1.stringify(t)},U0e=(t,e)=>{const r=pc.parse(t);for(const n in e)r[n]=Yr.channel.clamp[n](e[n]);return pc.stringify(r)},rc=(t,e,r=0,n=1)=>{if(typeof t!="number")return U0e(t,{a:e});const a=Nk.set({r:Yr.channel.clamp.r(t),g:Yr.channel.clamp.g(e),b:Yr.channel.clamp.b(r),a:Yr.channel.clamp.a(n)});return pc.stringify(a)},FU=(t,e)=>Yr.lang.round(pc.parse(t)[e]),wFe=t=>{const{r:e,g:r,b:n}=pc.parse(t),a=.2126*Yr.channel.toLinear(e)+.7152*Yr.channel.toLinear(r)+.0722*Yr.channel.toLinear(n);return Yr.lang.round(a)},kFe=t=>wFe(t)>=.5,Js=t=>!kFe(t),$U=(t,e,r)=>{const n=pc.parse(t),a=n[e],i=Yr.channel.clamp[e](a+r);return a!==i&&(n[e]=i),pc.stringify(n)},vt=(t,e)=>$U(t,"l",e),yt=(t,e)=>$U(t,"l",-e),QX=(t,e)=>$U(t,"a",-e),ce=(t,e)=>{const r=pc.parse(t),n={};for(const a in e)e[a]&&(n[a]=r[a]+e[a]);return U0e(t,n)},AFe=(t,e,r=50)=>{const{r:n,g:a,b:i,a:s}=pc.parse(t),{r:o,g:l,b:u,a:d}=pc.parse(e),h=r/100,f=h*2-1,p=s-d,m=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,v=1-m,y=n*m+o*v,b=a*m+l*v,_=i*m+u*v,S=s*h+d*(1-h);return rc(y,b,_,S)},st=(t,e=100)=>{const r=pc.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,AFe(r,t,e)};const{entries:G0e,setPrototypeOf:ZX,isFrozen:RFe,getPrototypeOf:NFe,getOwnPropertyDescriptor:IFe}=Object;let{freeze:Hs,seal:Nl,create:e5}=Object,{apply:tP,construct:rP}=typeof Reflect<"u"&&Reflect;Hs||(Hs=function(e){return e});Nl||(Nl=function(e){return e});tP||(tP=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i1?r-1:0),a=1;a1?r-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:t5;ZX&&ZX(t,null);let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(RFe(e)||(e[n]=i),a=i)}t[a]=!0}return t}function BFe(t){for(let e=0;e/gm),GFe=Nl(/\$\{[\w\W]*/gm),qFe=Nl(/^data-[\-\w.\u00B7-\uFFFF]+$/),YFe=Nl(/^aria-[\-\w]+$/),q0e=Nl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),HFe=Nl(/^(?:\w+script|data):/i),VFe=Nl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y0e=Nl(/^html$/i),WFe=Nl(/^[a-z][.\w]*(-[.\w]+)+$/i);var aj=Object.freeze({__proto__:null,ARIA_ATTR:YFe,ATTR_WHITESPACE:VFe,CUSTOM_ELEMENT:WFe,DATA_ATTR:qFe,DOCTYPE_NAME:Y0e,ERB_EXPR:UFe,IS_ALLOWED_URI:q0e,IS_SCRIPT_OR_DATA:HFe,MUSTACHE_EXPR:zFe,TMPLIT_EXPR:GFe});const F2={element:1,text:3,progressingInstruction:7,comment:8,document:9},KFe=function(){return typeof window>"u"?null:window},XFe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ij=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function H0e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:KFe();const e=Ct=>H0e(Ct);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==F2.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,a=n.currentScript,{DocumentFragment:i,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=B2(g,"cloneNode"),v=B2(g,"remove"),y=B2(g,"nextSibling"),b=B2(g,"childNodes"),_=B2(g,"parentNode");if(typeof s=="function"){const Ct=r.createElement("template");Ct.content&&Ct.content.ownerDocument&&(r=Ct.content.ownerDocument)}let S,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:w,getElementsByTagName:R}=r,{importNode:O}=n;let M=ij();e.isSupported=typeof G0e=="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:N,CUSTOM_ELEMENT:P}=aj;let{IS_ALLOWED_URI:z}=aj,B=null;const U=sn({},[...ej,...gR,...mR,...vR,...tj]);let G=null;const K=sn({},[...rj,...yR,...nj,...Nx]);let Y=Object.seal(e5(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}})),ee=null,X=null;const le=Object.seal(e5(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let te=!0,ne=!0,ae=!1,re=!0,ge=!1,pe=!0,Be=!1,Le=!1,He=!1,Re=!1,xe=!1,$e=!1,Ce=!0,ut=!1;const Ae="user-content-";let je=!0,ot=!1,lt={},ct=null;const it=sn({},["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 ke=null;const Qe=sn({},["audio","video","img","source","image","track"]);let _e=null;const ye=sn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),q="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",j="http://www.w3.org/1999/xhtml";let we=j,Te=!1,rt=null;const Oe=sn({},[q,fe,j],fR);let Pe=sn({},["mi","mo","mn","ms","mtext"]),Ie=sn({},["annotation-xml"]);const Ze=sn({},["title","style","font","a","script"]);let ze=null;const me=["application/xhtml+xml","text/html"],ie="text/html";let Ve=null,ve=null;const Tt=r.createElement("form"),St=function(Fe){return Fe instanceof RegExp||Fe instanceof Function},nt=function(){let Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ve&&ve===Fe)){if((!Fe||typeof Fe!="object")&&(Fe={}),Fe=Rc(Fe),ze=me.indexOf(Fe.PARSER_MEDIA_TYPE)===-1?ie:Fe.PARSER_MEDIA_TYPE,Ve=ze==="application/xhtml+xml"?fR:t5,B=Io(Fe,"ALLOWED_TAGS")?sn({},Fe.ALLOWED_TAGS,Ve):U,G=Io(Fe,"ALLOWED_ATTR")?sn({},Fe.ALLOWED_ATTR,Ve):K,rt=Io(Fe,"ALLOWED_NAMESPACES")?sn({},Fe.ALLOWED_NAMESPACES,fR):Oe,_e=Io(Fe,"ADD_URI_SAFE_ATTR")?sn(Rc(ye),Fe.ADD_URI_SAFE_ATTR,Ve):ye,ke=Io(Fe,"ADD_DATA_URI_TAGS")?sn(Rc(Qe),Fe.ADD_DATA_URI_TAGS,Ve):Qe,ct=Io(Fe,"FORBID_CONTENTS")?sn({},Fe.FORBID_CONTENTS,Ve):it,ee=Io(Fe,"FORBID_TAGS")?sn({},Fe.FORBID_TAGS,Ve):Rc({}),X=Io(Fe,"FORBID_ATTR")?sn({},Fe.FORBID_ATTR,Ve):Rc({}),lt=Io(Fe,"USE_PROFILES")?Fe.USE_PROFILES:!1,te=Fe.ALLOW_ARIA_ATTR!==!1,ne=Fe.ALLOW_DATA_ATTR!==!1,ae=Fe.ALLOW_UNKNOWN_PROTOCOLS||!1,re=Fe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=Fe.SAFE_FOR_TEMPLATES||!1,pe=Fe.SAFE_FOR_XML!==!1,Be=Fe.WHOLE_DOCUMENT||!1,Re=Fe.RETURN_DOM||!1,xe=Fe.RETURN_DOM_FRAGMENT||!1,$e=Fe.RETURN_TRUSTED_TYPE||!1,He=Fe.FORCE_BODY||!1,Ce=Fe.SANITIZE_DOM!==!1,ut=Fe.SANITIZE_NAMED_PROPS||!1,je=Fe.KEEP_CONTENT!==!1,ot=Fe.IN_PLACE||!1,z=Fe.ALLOWED_URI_REGEXP||q0e,we=Fe.NAMESPACE||j,Pe=Fe.MATHML_TEXT_INTEGRATION_POINTS||Pe,Ie=Fe.HTML_INTEGRATION_POINTS||Ie,Y=Fe.CUSTOM_ELEMENT_HANDLING||{},Fe.CUSTOM_ELEMENT_HANDLING&&St(Fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=Fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Fe.CUSTOM_ELEMENT_HANDLING&&St(Fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=Fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Fe.CUSTOM_ELEMENT_HANDLING&&typeof Fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=Fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(ne=!1),xe&&(Re=!0),lt&&(B=sn({},tj),G=e5(null),lt.html===!0&&(sn(B,ej),sn(G,rj)),lt.svg===!0&&(sn(B,gR),sn(G,yR),sn(G,Nx)),lt.svgFilters===!0&&(sn(B,mR),sn(G,yR),sn(G,Nx)),lt.mathMl===!0&&(sn(B,vR),sn(G,nj),sn(G,Nx))),Io(Fe,"ADD_TAGS")||(le.tagCheck=null),Io(Fe,"ADD_ATTR")||(le.attributeCheck=null),Fe.ADD_TAGS&&(typeof Fe.ADD_TAGS=="function"?le.tagCheck=Fe.ADD_TAGS:(B===U&&(B=Rc(B)),sn(B,Fe.ADD_TAGS,Ve))),Fe.ADD_ATTR&&(typeof Fe.ADD_ATTR=="function"?le.attributeCheck=Fe.ADD_ATTR:(G===K&&(G=Rc(G)),sn(G,Fe.ADD_ATTR,Ve))),Fe.ADD_URI_SAFE_ATTR&&sn(_e,Fe.ADD_URI_SAFE_ATTR,Ve),Fe.FORBID_CONTENTS&&(ct===it&&(ct=Rc(ct)),sn(ct,Fe.FORBID_CONTENTS,Ve)),Fe.ADD_FORBID_CONTENTS&&(ct===it&&(ct=Rc(ct)),sn(ct,Fe.ADD_FORBID_CONTENTS,Ve)),je&&(B["#text"]=!0),Be&&sn(B,["html","head","body"]),B.table&&(sn(B,["tbody"]),delete ee.tbody),Fe.TRUSTED_TYPES_POLICY){if(typeof Fe.TRUSTED_TYPES_POLICY.createHTML!="function")throw P2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Fe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw P2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=Fe.TRUSTED_TYPES_POLICY,x=S.createHTML("")}else S===void 0&&(S=XFe(p,a)),S!==null&&typeof x=="string"&&(x=S.createHTML(""));Hs&&Hs(Fe),ve=Fe}},dt=sn({},[...gR,...mR,...FFe]),ft=sn({},[...vR,...$Fe]),gt=function(Fe){let pt=_(Fe);(!pt||!pt.tagName)&&(pt={namespaceURI:we,tagName:"template"});const Dt=t5(Fe.tagName),Zt=t5(pt.tagName);return rt[Fe.namespaceURI]?Fe.namespaceURI===fe?pt.namespaceURI===j?Dt==="svg":pt.namespaceURI===q?Dt==="svg"&&(Zt==="annotation-xml"||Pe[Zt]):!!dt[Dt]:Fe.namespaceURI===q?pt.namespaceURI===j?Dt==="math":pt.namespaceURI===fe?Dt==="math"&&Ie[Zt]:!!ft[Dt]:Fe.namespaceURI===j?pt.namespaceURI===fe&&!Ie[Zt]||pt.namespaceURI===q&&!Pe[Zt]?!1:!ft[Dt]&&(Ze[Dt]||!dt[Dt]):!!(ze==="application/xhtml+xml"&&rt[Fe.namespaceURI]):!1},se=function(Fe){L2(e.removed,{element:Fe});try{_(Fe).removeChild(Fe)}catch{v(Fe)}},It=function(Fe,pt){try{L2(e.removed,{attribute:pt.getAttributeNode(Fe),from:pt})}catch{L2(e.removed,{attribute:null,from:pt})}if(pt.removeAttribute(Fe),Fe==="is")if(Re||xe)try{se(pt)}catch{}else try{pt.setAttribute(Fe,"")}catch{}},bt=function(Fe){let pt=null,Dt=null;if(He)Fe=""+Fe;else{const Wr=pR(Fe,/^[\r\n\t ]+/);Dt=Wr&&Wr[0]}ze==="application/xhtml+xml"&&we===j&&(Fe=''+Fe+"");const Zt=S?S.createHTML(Fe):Fe;if(we===j)try{pt=new f().parseFromString(Zt,ze)}catch{}if(!pt||!pt.documentElement){pt=C.createDocument(we,"template",null);try{pt.documentElement.innerHTML=Te?x:Zt}catch{}}const kr=pt.body||pt.documentElement;return Fe&&Dt&&kr.insertBefore(r.createTextNode(Dt),kr.childNodes[0]||null),we===j?R.call(pt,Be?"html":"body")[0]:Be?pt.documentElement:kr},Et=function(Fe){return T.call(Fe.ownerDocument||Fe,Fe,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Nt=function(Fe){return Fe instanceof h&&(typeof Fe.nodeName!="string"||typeof Fe.textContent!="string"||typeof Fe.removeChild!="function"||!(Fe.attributes instanceof d)||typeof Fe.removeAttribute!="function"||typeof Fe.setAttribute!="function"||typeof Fe.namespaceURI!="string"||typeof Fe.insertBefore!="function"||typeof Fe.hasChildNodes!="function")},Vr=function(Fe){return typeof o=="function"&&Fe instanceof o};function Ne(Ct,Fe,pt){Rx(Ct,Dt=>{Dt.call(e,Fe,pt,ve)})}const mt=function(Fe){let pt=null;if(Ne(M.beforeSanitizeElements,Fe,null),Nt(Fe))return se(Fe),!0;const Dt=Ve(Fe.nodeName);if(Ne(M.uponSanitizeElement,Fe,{tagName:Dt,allowedTags:B}),pe&&Fe.hasChildNodes()&&!Vr(Fe.firstElementChild)&&Ss(/<[/\w!]/g,Fe.innerHTML)&&Ss(/<[/\w!]/g,Fe.textContent)||Fe.nodeType===F2.progressingInstruction||pe&&Fe.nodeType===F2.comment&&Ss(/<[/\w]/g,Fe.data))return se(Fe),!0;if(!(le.tagCheck instanceof Function&&le.tagCheck(Dt))&&(!B[Dt]||ee[Dt])){if(!ee[Dt]&&Ot(Dt)&&(Y.tagNameCheck instanceof RegExp&&Ss(Y.tagNameCheck,Dt)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Dt)))return!1;if(je&&!ct[Dt]){const Zt=_(Fe)||Fe.parentNode,kr=b(Fe)||Fe.childNodes;if(kr&&Zt){const Wr=kr.length;for(let Xr=Wr-1;Xr>=0;--Xr){const qn=m(kr[Xr],!0);qn.__removalCount=(Fe.__removalCount||0)+1,Zt.insertBefore(qn,y(Fe))}}}return se(Fe),!0}return Fe instanceof l&&!gt(Fe)||(Dt==="noscript"||Dt==="noembed"||Dt==="noframes")&&Ss(/<\/no(script|embed|frames)/i,Fe.innerHTML)?(se(Fe),!0):(ge&&Fe.nodeType===F2.text&&(pt=Fe.textContent,Rx([$,F,A],Zt=>{pt=M2(pt,Zt," ")}),Fe.textContent!==pt&&(L2(e.removed,{element:Fe.cloneNode()}),Fe.textContent=pt)),Ne(M.afterSanitizeElements,Fe,null),!1)},_t=function(Fe,pt,Dt){if(X[pt]||Ce&&(pt==="id"||pt==="name")&&(Dt in r||Dt in Tt))return!1;if(!(ne&&!X[pt]&&Ss(I,pt))){if(!(te&&Ss(D,pt))){if(!(le.attributeCheck instanceof Function&&le.attributeCheck(pt,Fe))){if(!G[pt]||X[pt]){if(!(Ot(Fe)&&(Y.tagNameCheck instanceof RegExp&&Ss(Y.tagNameCheck,Fe)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Fe))&&(Y.attributeNameCheck instanceof RegExp&&Ss(Y.attributeNameCheck,pt)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(pt,Fe))||pt==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Ss(Y.tagNameCheck,Dt)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Dt))))return!1}else if(!_e[pt]){if(!Ss(z,M2(Dt,N,""))){if(!((pt==="src"||pt==="xlink:href"||pt==="href")&&Fe!=="script"&&LFe(Dt,"data:")===0&&ke[Fe])){if(!(ae&&!Ss(L,M2(Dt,N,"")))){if(Dt)return!1}}}}}}}return!0},Ot=function(Fe){return Fe!=="annotation-xml"&&pR(Fe,P)},Qt=function(Fe){Ne(M.beforeSanitizeAttributes,Fe,null);const{attributes:pt}=Fe;if(!pt||Nt(Fe))return;const Dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let Zt=pt.length;for(;Zt--;){const kr=pt[Zt],{name:Wr,namespaceURI:Xr,value:qn}=kr,ja=Ve(Wr),Mt=qn;let Xt=Wr==="value"?Mt:MFe(Mt);if(Dt.attrName=ja,Dt.attrValue=Xt,Dt.keepAttr=!0,Dt.forceKeepAttr=void 0,Ne(M.uponSanitizeAttribute,Fe,Dt),Xt=Dt.attrValue,ut&&(ja==="id"||ja==="name")&&(It(Wr,Fe),Xt=Ae+Xt),pe&&Ss(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xt)){It(Wr,Fe);continue}if(ja==="attributename"&&pR(Xt,"href")){It(Wr,Fe);continue}if(Dt.forceKeepAttr)continue;if(!Dt.keepAttr){It(Wr,Fe);continue}if(!re&&Ss(/\/>/i,Xt)){It(Wr,Fe);continue}ge&&Rx([$,F,A],xt=>{Xt=M2(Xt,xt," ")});const kt=Ve(Fe.nodeName);if(!_t(kt,ja,Xt)){It(Wr,Fe);continue}if(S&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Xr)switch(p.getAttributeType(kt,ja)){case"TrustedHTML":{Xt=S.createHTML(Xt);break}case"TrustedScriptURL":{Xt=S.createScriptURL(Xt);break}}if(Xt!==Mt)try{Xr?Fe.setAttributeNS(Xr,Wr,Xt):Fe.setAttribute(Wr,Xt),Nt(Fe)?se(Fe):JX(e.removed)}catch{It(Wr,Fe)}}Ne(M.afterSanitizeAttributes,Fe,null)},br=function Ct(Fe){let pt=null;const Dt=Et(Fe);for(Ne(M.beforeSanitizeShadowDOM,Fe,null);pt=Dt.nextNode();)Ne(M.uponSanitizeShadowNode,pt,null),mt(pt),Qt(pt),pt.content instanceof i&&Ct(pt.content);Ne(M.afterSanitizeShadowDOM,Fe,null)};return e.sanitize=function(Ct){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=null,Dt=null,Zt=null,kr=null;if(Te=!Ct,Te&&(Ct=""),typeof Ct!="string"&&!Vr(Ct))if(typeof Ct.toString=="function"){if(Ct=Ct.toString(),typeof Ct!="string")throw P2("dirty is not a string, aborting")}else throw P2("toString is not a function");if(!e.isSupported)return Ct;if(Le||nt(Fe),e.removed=[],typeof Ct=="string"&&(ot=!1),ot){if(Ct.nodeName){const qn=Ve(Ct.nodeName);if(!B[qn]||ee[qn])throw P2("root node is forbidden and cannot be sanitized in-place")}}else if(Ct instanceof o)pt=bt(""),Dt=pt.ownerDocument.importNode(Ct,!0),Dt.nodeType===F2.element&&Dt.nodeName==="BODY"||Dt.nodeName==="HTML"?pt=Dt:pt.appendChild(Dt);else{if(!Re&&!ge&&!Be&&Ct.indexOf("<")===-1)return S&&$e?S.createHTML(Ct):Ct;if(pt=bt(Ct),!pt)return Re?null:$e?x:""}pt&&He&&se(pt.firstChild);const Wr=Et(ot?Ct:pt);for(;Zt=Wr.nextNode();)mt(Zt),Qt(Zt),Zt.content instanceof i&&br(Zt.content);if(ot)return Ct;if(Re){if(xe)for(kr=w.call(pt.ownerDocument);pt.firstChild;)kr.appendChild(pt.firstChild);else kr=pt;return(G.shadowroot||G.shadowrootmode)&&(kr=O.call(n,kr,!0)),kr}let Xr=Be?pt.outerHTML:pt.innerHTML;return Be&&B["!doctype"]&&pt.ownerDocument&&pt.ownerDocument.doctype&&pt.ownerDocument.doctype.name&&Ss(Y0e,pt.ownerDocument.doctype.name)&&(Xr=" +`+Xr),ge&&Rx([$,F,A],qn=>{Xr=M2(Xr,qn," ")}),S&&$e?S.createHTML(Xr):Xr},e.setConfig=function(){let Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nt(Ct),Le=!0},e.clearConfig=function(){ve=null,Le=!1},e.isValidAttribute=function(Ct,Fe,pt){ve||nt({});const Dt=Ve(Ct),Zt=Ve(Fe);return _t(Dt,Zt,pt)},e.addHook=function(Ct,Fe){typeof Fe=="function"&&L2(M[Ct],Fe)},e.removeHook=function(Ct,Fe){if(Fe!==void 0){const pt=OFe(M[Ct],Fe);return pt===-1?void 0:DFe(M[Ct],pt,1)[0]}return JX(M[Ct])},e.removeHooks=function(Ct){M[Ct]=[]},e.removeAllHooks=function(){M=ij()},e}var uh=H0e(),V0e=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,aS=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,jFe=/\s*%%.*\n/gm,E1,W0e=(E1=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},E(E1,"UnknownDiagramError"),E1),Ap={},zU=E(function(t,e){t=t.replace(V0e,"").replace(aS,"").replace(jFe,` +`);for(const[r,{detector:n}]of Object.entries(Ap))if(n(t,e))return r;throw new W0e(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),nP=E((...t)=>{for(const{id:e,detector:r,loader:n}of t)K0e(e,r,n)},"registerLazyLoadedDiagrams"),K0e=E((t,e,r)=>{Ap[t]&&oe.warn(`Detector with key ${t} already exists. Overwriting.`),Ap[t]={detector:e,loader:r},oe.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),QFe=E(t=>Ap[t].loader,"getDiagramLoader"),aP=E((t,e,{depth:r=2,clobber:n=!1}={})=>{const a={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(i=>aP(t,i,a)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(i=>{t.includes(i)||t.push(i)}),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(i=>{typeof e[i]=="object"&&e[i]!==null&&(t[i]===void 0||typeof t[i]=="object")?(t[i]===void 0&&(t[i]=Array.isArray(e[i])?[]:{}),t[i]=aP(t[i],e[i],{depth:r-1,clobber:n})):(n||typeof t[i]!="object"&&typeof e[i]!="object")&&(t[i]=e[i])}),t)},"assignWithDepth"),Va=aP,yu="#ffffff",_u="#f2f2f2",zr=E((t,e)=>e?ce(t,{s:-40,l:10}):ce(t,{s:-40,l:-10}),"mkBorder"),S1,ZFe=(S1=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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||yt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||yt(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(S1,"Theme"),S1),JFe=E(t=>{const e=new ZFe;return e.calculate(t),e},"getThemeVariables"),T1,e$e=(T1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(st("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=rc(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=yt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=yt(this.sectionBkgColor,10),this.taskBorderColor=rc(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=rc(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||yt(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=st(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=ce(this.primaryColor,{h:64}),this.fillType3=ce(this.secondaryColor,{h:64}),this.fillType4=ce(this.primaryColor,{h:-64}),this.fillType5=ce(this.secondaryColor,{h:-64}),this.fillType6=ce(this.primaryColor,{h:128}),this.fillType7=ce(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330});for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(T1,"Theme"),T1),t$e=E(t=>{const e=new e$e;return e.calculate(t),e},"getThemeVariables"),x1,r$e=(x1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ce(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=zr(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=rc(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(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]})}},E(x1,"Theme"),x1),Qb=E(t=>{const e=new r$e;return e.calculate(t),e},"getThemeVariables"),C1,n$e=(C1=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=zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.primaryColor),this.lineColor=st(this.background),this.textColor=st(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=yt(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||yt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||yt(this.tertiaryColor,40);for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(C1,"Theme"),C1),a$e=E(t=>{const e=new n$e;return e.calculate(t),e},"getThemeVariables"),w1,i$e=(w1=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=vt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(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]})}},E(w1,"Theme"),w1),s$e=E(t=>{const e=new i$e;return e.calculate(t),e},"getThemeVariables"),k1,o$e=(k1=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=zr(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=ce(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||ce(e,{h:30}),this.cScale4=this.cScale4||ce(e,{h:60}),this.cScale5=this.cScale5||ce(e,{h:90}),this.cScale6=this.cScale6||ce(e,{h:120}),this.cScale7=this.cScale7||ce(e,{h:150}),this.cScale8=this.cScale8||ce(e,{h:210,l:150}),this.cScale9=this.cScale9||ce(e,{h:270}),this.cScale10=this.cScale10||ce(e,{h:300}),this.cScale11=this.cScale11||ce(e,{h:330}),this.darkMode)for(let i=0;i{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(k1,"Theme"),k1),l$e=E(t=>{const e=new o$e;return e.calculate(t),e},"getThemeVariables"),A1,c$e=(A1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(st("#323D47"),10),this.border1="#ccc",this.border2=rc(255,255,255,.25),this.arrowheadColor=st(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(A1,"Theme"),A1),u$e=E(t=>{const e=new c$e;return e.calculate(t),e},"getThemeVariables"),R1,d$e=(R1=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=zr("#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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=ce(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 i=0;i{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(R1,"Theme"),R1),h$e=E(t=>{const e=new d$e;return e.calculate(t),e},"getThemeVariables"),N1,f$e=(N1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(st("#323D47"),10),this.border1="#ccc",this.border2=rc(255,255,255,.25),this.arrowheadColor=st(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||ce(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ce(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ce(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ce(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ce(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ce(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ce(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ce(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ce(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(N1,"Theme"),N1),p$e=E(t=>{const e=new f$e;return e.calculate(t),e},"getThemeVariables"),I1,g$e=(I1=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=zr(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",n=ce(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 i=0;i{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},E(I1,"Theme"),I1),m$e=E(t=>{const e=new g$e;return e.calculate(t),e},"getThemeVariables"),O1,v$e=(O1=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vt(this.primaryColor,16),this.tertiaryColor=ce(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zr(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vt(st("#323D47"),10),this.border1="#ccc",this.border2=rc(255,255,255,.25),this.arrowheadColor=st(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||ce(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ce(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zr(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?yt(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||yt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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]})}},E(O1,"Theme"),O1),y$e=E(t=>{const e=new v$e;return e.calculate(t),e},"getThemeVariables"),b0={base:{getThemeVariables:JFe},dark:{getThemeVariables:t$e},default:{getThemeVariables:Qb},forest:{getThemeVariables:a$e},neutral:{getThemeVariables:s$e},neo:{getThemeVariables:l$e},"neo-dark":{getThemeVariables:u$e},redux:{getThemeVariables:h$e},"redux-dark":{getThemeVariables:p$e},"redux-color":{getThemeVariables:m$e},"redux-dark-color":{getThemeVariables:y$e}},Ts={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},X0e={...Ts,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:b0.default.getThemeVariables(),sequence:{...Ts.sequence,messageFont:E(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:E(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:E(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Ts.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ts.c4,useWidth:void 0,personFont:E(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Ts.flowchart,inheritDir:!1},external_personFont:E(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:E(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:E(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:E(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:E(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:E(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:E(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:E(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:E(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:E(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:E(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:E(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:E(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:E(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:E(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:E(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:E(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:E(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:E(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:E(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:E(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Ts.pie,useWidth:984},xyChart:{...Ts.xyChart,useWidth:void 0},requirement:{...Ts.requirement,useWidth:void 0},packet:{...Ts.packet},eventmodeling:{...Ts.eventmodeling},treeView:{...Ts.treeView,useWidth:void 0},radar:{...Ts.radar},ishikawa:{...Ts.ishikawa},sankey:{...Ts.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:{...Ts.venn}},j0e=E((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...j0e(t[n],"")]:[...r,e+n],[]),"keyify"),_$e=new Set(j0e(X0e,"")),ln=X0e,MC=E(t=>{if(oe.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>MC(e));return}for(const e of Object.keys(t)){if(oe.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!_$e.has(e)||t[e]==null){oe.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 a of Object.keys(t[e]))(typeof t[e][a]!="string"||!n.test(t[e][a]))&&(oe.debug("sanitize deleting invalid color:",a,t[e][a]),delete t[e][a])}else oe.debug("sanitizing object",e),MC(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(oe.debug("sanitizing css option",e),t[e]=Q0e(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]="")}oe.debug("After sanitization",t)}},"sanitizeDirective"),Q0e=E(t=>{let e=0,r=0;for(const n of t){if(e!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),fo=Va({},rb),PC,Rp=[],iS=Va({},rb),Ik=E((t,e)=>{let r=Va({},t),n={};for(const a of e)ede(a),n=Va(n,a);if(r=Va(r,n),n.theme&&n.theme in b0){const a=Va({},PC),i=Va(a.themeVariables||{},n.themeVariables);r.theme&&r.theme in b0&&(r.themeVariables=b0[r.theme].getThemeVariables(i))}return iS=r,rde(iS),iS},"updateCurrentConfig"),b$e=E(t=>(fo=Va({},rb),fo=Va(fo,t),t.theme&&b0[t.theme]&&(fo.themeVariables=b0[t.theme].getThemeVariables(t.themeVariables)),Ik(fo,Rp),fo),"setSiteConfig"),E$e=E(t=>{PC=Va({},t)},"saveConfigFromInitialize"),S$e=E(t=>(fo=Va(fo,t),Ik(fo,Rp),fo),"updateSiteConfig"),Z0e=E(()=>Va({},fo),"getSiteConfig"),J0e=E(t=>(rde(t),Va(iS,t),xr()),"setConfig"),xr=E(()=>Va({},iS),"getConfig"),ede=E(t=>{t&&(["secure",...fo.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(oe.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"&&ede(t[e])}))},"sanitize"),T$e=E(t=>{MC(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Rp.push(t),Ik(fo,Rp)},"addDirective"),BC=E((t=fo)=>{Rp=[],Ik(t,Rp)},"reset"),x$e={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."},sj={},tde=E(t=>{sj[t]||(oe.warn(x$e[t]),sj[t]=!0)},"issueWarning"),rde=E(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&tde("LAZY_LOAD_DEPRECATED")},"checkConfig"),C$e=E(()=>{let t={};PC&&(t=Va(t,PC));for(const e of Rp)t=Va(t,e);return t},"getUserDefinedConfig"),On=E(t=>(t.flowchart?.htmlLabels!=null&&tde("FLOWCHART_HTML_LABELS_DEPRECATED"),K0(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),Zb=//gi,w$e=E(t=>t?ide(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),k$e=(()=>{let t=!1;return()=>{t||(nde(),t=!0)}})();function nde(){const t="data-temp-href-target";uh.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),uh.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"))})}E(nde,"setupDompurifyHooks");var ade=E(t=>(k$e(),uh.sanitize(t)),"removeScript"),oj=E((t,e)=>{if(On(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=ade(t):r!=="loose"&&(t=ide(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=I$e(t))}return t},"sanitizeMore"),dn=E((t,e)=>t&&(e.dompurifyConfig?t=uh.sanitize(oj(t,e),e.dompurifyConfig).toString():t=uh.sanitize(oj(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),A$e=E((t,e)=>typeof t=="string"?dn(t,e):t.flat().map(r=>dn(r,e)),"sanitizeTextOrArray"),R$e=E(t=>Zb.test(t),"hasBreaks"),N$e=E(t=>t.split(Zb),"splitBreaks"),I$e=E(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),ide=E(t=>t.replace(Zb,"#br#"),"breakToPlaceholder"),Ok=E(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),O$e=E(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),D$e=E(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),Ad=E(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,t.split(e).length-1),"countOccurrence"),L$e=E((t,e)=>{const r=iP(t,"~"),n=iP(e,"~");return r===1&&n===1},"shouldCombineSets"),M$e=E(t=>{const e=iP(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let a=n.indexOf("~"),i=n.lastIndexOf("~");for(;a!==-1&&i!==-1&&a!==i;)n[a]="<",n[i]=">",a=n.indexOf("~"),i=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),lj=E(()=>window.MathMLElement!==void 0,"isMathMLSupported"),sP=/\$\$(.*)\$\$/g,Xa=E(t=>(t.match(sP)?.length??0)>0,"hasKatex"),hT=E(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await Dk(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 a={width:r.clientWidth,height:r.clientHeight};return r.remove(),a},"calculateMathMLDimensions"),P$e=E(async(t,e)=>{if(!Xa(t))return t;if(!(lj()||e.legacyMathML||e.forceLegacyMathML))return t.replace(sP,"MathML is unsupported in this environment.");{const{default:r}=await Promise.resolve().then(()=>Cot),n=e.forceLegacyMathML||!lj()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Zb).map(a=>Xa(a)?`
${a}
`:`
${a}
`).join("").replace(sP,(a,i)=>r.renderToString(i,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(//g,""))}},"renderKatexUnsanitized"),Dk=E(async(t,e)=>dn(await P$e(t,e),e),"renderKatexSanitized"),qt={getRows:w$e,sanitizeText:dn,sanitizeTextOrArray:A$e,hasBreaks:R$e,splitBreaks:N$e,lineBreakRegex:Zb,removeScript:ade,getUrl:Ok,evaluate:K0,getMax:O$e,getMin:D$e},B$e=E(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),F$e=E(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"),di=E(function(t,e,r,n){const a=F$e(e,r,n);B$e(t,a)},"configureSvgSize"),Jb=E(function(t,e,r,n){const a=e.node().getBBox(),i=a.width,s=a.height;oe.info(`SVG bounds: ${i}x${s}`,a);let o=0,l=0;oe.info(`Graph bounds: ${o}x${l}`,t),o=i+r*2,l=s+r*2,oe.info(`Calculated bounds: ${o}x${l}`),di(e,l,o,n);const u=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;e.attr("viewBox",u)},"setupGraphViewbox"),r5={};function oP(t){return[...t.cssRules].map(e=>e.cssText).join(` +`)}E(oP,"cssStyleSheetToString");var $$e=E((t,e,r,n)=>{let a="";return t in r5&&r5[t]?a=r5[t]({...r,svgId:n}):oe.warn(`No theme found for ${t}`),` & { font-family: ${r.fontFamily}; font-size: ${r.fontSize}; fill: ${r.textColor} @@ -2682,27 +2687,27 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, } ${e} -`},"getStyles"),$$e=E((t,e)=>{e!==void 0&&(r5[t]=e)},"addStylesForDiagram"),z$e=F$e,UU={};Rk(UU,{clear:()=>oa,getAccDescription:()=>_a,getAccTitle:()=>va,getDiagramTitle:()=>la,setAccDescription:()=>ya,setAccTitle:()=>sa,setDiagramTitle:()=>pa});var GU="",qU="",YU="",HU=E(t=>dn(t,xr()),"sanitizeText"),oa=E(()=>{GU="",YU="",qU=""},"clear"),sa=E(t=>{GU=HU(t).replace(/^\s+/g,"")},"setAccTitle"),va=E(()=>GU,"getAccTitle"),ya=E(t=>{YU=HU(t).replace(/\n\s+/g,` -`)},"setAccDescription"),_a=E(()=>YU,"getAccDescription"),pa=E(t=>{qU=HU(t)},"setDiagramTitle"),la=E(()=>qU,"getDiagramTitle"),cj=oe,U$e=BU,Ye=xr,lP=J0e,sde=rb,VU=E(t=>dn(t,Ye()),"sanitizeText"),WU=Jb,G$e=E(()=>UU,"getCommonDb"),FC={},$C=E((t,e,r)=>{FC[t]&&cj.warn(`Diagram with id ${t} already registered. Overwriting.`),FC[t]=e,r&&K0e(t,r),$$e(t,e.styles),e.injectUtils?.(cj,U$e,Ye,VU,WU,G$e(),()=>{})},"registerDiagram"),cP=E(t=>{if(t in FC)return FC[t];throw new q$e(t)},"getDiagram"),D1,q$e=(D1=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},E(D1,"DiagramNotFoundError"),D1);function n5(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function Y$e(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function KU(t){let e,r,n;t.length!==2?(e=n5,r=(o,l)=>n5(t(o),l),n=(o,l)=>t(o)-l):(e=t===n5||t===Y$e?t:H$e,r=t,n=t);function a(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:a,center:s,right:i}}function H$e(){return 0}function V$e(t){return t===null?NaN:+t}const W$e=KU(n5),K$e=W$e.right;KU(V$e).center;class uj extends Map{constructor(e,r=Q$e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,a]of e)this.set(n,a)}get(e){return super.get(dj(this,e))}has(e){return super.has(dj(this,e))}set(e,r){return super.set(X$e(this,e),r)}delete(e){return super.delete(j$e(this,e))}}function dj({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function X$e({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function j$e({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function Q$e(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Z$e=Math.sqrt(50),J$e=Math.sqrt(10),eze=Math.sqrt(2);function zC(t,e,r){const n=(e-t)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),s=i>=Z$e?10:i>=J$e?5:i>=eze?2:1;let o,l,u;return a<0?(u=Math.pow(10,-a)/s,o=Math.round(t*u),l=Math.round(e*u),o/ue&&--l,u=-u):(u=Math.pow(10,a)*s,o=Math.round(t/u),l=Math.round(e/u),o*ue&&--l),l0))return[];if(t===e)return[t];const n=e=a))return[];const o=i-a+1,l=new Array(o);if(n)if(s<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(r=a)&&(r=a)}return r}function nze(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 a of t)(a=e(a,++n,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function aze(t,e,r){t=+t,e=+e,r=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((e-t)/r))|0,i=new Array(a);++n+t(e)}function cze(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function uze(){return!this.__axis}function ode(t,e){var r=[],n=null,a=null,i=6,s=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===a5||t===Ix?-1:1,d=t===Ix||t===_R?"x":"y",h=t===a5||t===hP?sze:oze;function f(p){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),m=a??(e.tickFormat?e.tickFormat.apply(e,r):ize),v=Math.max(i,0)+o,y=e.range(),b=+y[0]+l,_=+y[y.length-1]+l,S=(e.bandwidth?cze:lze)(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(),R=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(R),O=O.merge(R.append("line").attr("stroke","currentColor").attr(d+"2",u*i)),M=M.merge(R.append("text").attr("fill","currentColor").attr(d,u*v).attr("dy",t===a5?"0em":t===hP?"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",hj).attr("transform",function($){return isFinite($=S($))?h($+l):this.getAttribute("transform")}),R.attr("opacity",hj).attr("transform",function($){var F=this.parentNode.__axis;return h((F&&isFinite(F=F($))?F:S($))+l)})),w.remove(),C.attr("d",t===Ix||t===_R?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(S($)+l)}),O.attr(d+"2",u*i),M.attr(d,u*v).text(m),x.filter(uze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===_R?"start":t===Ix?"end":"middle"),x.each(function(){this.__axis=S})}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?(a=p,f):a},f.tickSize=function(p){return arguments.length?(i=s=+p,f):i},f.tickSizeInner=function(p){return arguments.length?(i=+p,f):i},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 dze(t){return ode(a5,t)}function hze(t){return ode(hP,t)}var fze={value:()=>{}};function lde(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(a+1),r=r.slice(0,a)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}i5.prototype=lde.prototype={constructor:i5,on:function(t,e){var r=this._,n=pze(t+"",r),a,i=-1,s=n.length;if(arguments.length<2){for(;++i0)for(var r=new Array(a),n=0,a,i;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),pj.hasOwnProperty(e)?{space:pj[e],local:t}:t}function mze(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===fP&&e.documentElement.namespaceURI===fP?e.createElement(t):e.createElementNS(r,t)}}function vze(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function cde(t){var e=Lk(t);return(e.local?vze:mze)(e)}function yze(){}function XU(t){return t==null?yze:function(){return this.querySelector(t)}}function _ze(t){typeof t!="function"&&(t=XU(t));for(var e=this._groups,r=e.length,n=new Array(r),a=0;a=_&&(_=b+1);!(x=v[_])&&++_=0;)(s=n[a])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function Yze(t){t||(t=Hze);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var r=this._groups,n=r.length,a=new Array(n),i=0;ie?1:t>=e?0:NaN}function Vze(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Wze(){return Array.from(this)}function Kze(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?iUe:typeof e=="function"?oUe:sUe)(t,e,r??"")):nb(this.node(),t)}function nb(t,e){return t.style.getPropertyValue(e)||pde(t).getComputedStyle(t,null).getPropertyValue(e)}function cUe(t){return function(){delete this[t]}}function uUe(t,e){return function(){this[t]=e}}function dUe(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function hUe(t,e){return arguments.length>1?this.each((e==null?cUe:typeof e=="function"?dUe:uUe)(t,e)):this.node()[t]}function gde(t){return t.trim().split(/^|\s+/)}function jU(t){return t.classList||new mde(t)}function mde(t){this._node=t,this._names=gde(t.getAttribute("class")||"")}mde.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 vde(t,e){for(var r=jU(t),n=-1,a=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function zUe(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,a=e.length,i;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Ox(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Ox(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=XUe.exec(t))?new ls(e[1],e[2],e[3],1):(e=jUe.exec(t))?new ls(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=QUe.exec(t))?Ox(e[1],e[2],e[3],e[4]):(e=ZUe.exec(t))?Ox(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=JUe.exec(t))?Ej(e[1],e[2]/100,e[3]/100,1):(e=eGe.exec(t))?Ej(e[1],e[2]/100,e[3]/100,e[4]):gj.hasOwnProperty(t)?yj(gj[t]):t==="transparent"?new ls(NaN,NaN,NaN,0):null}function yj(t){return new ls(t>>16&255,t>>8&255,t&255,1)}function Ox(t,e,r,n){return n<=0&&(t=e=r=NaN),new ls(t,e,r,n)}function Ede(t){return t instanceof eg||(t=Np(t)),t?(t=t.rgb(),new ls(t.r,t.g,t.b,t.opacity)):new ls}function pP(t,e,r,n){return arguments.length===1?Ede(t):new ls(t,e,r,n??1)}function ls(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}pT(ls,pP,Mk(eg,{brighter(t){return t=t==null?GC:Math.pow(GC,t),new ls(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?YS:Math.pow(YS,t),new ls(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ls(bp(this.r),bp(this.g),bp(this.b),qC(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:_j,formatHex:_j,formatHex8:nGe,formatRgb:bj,toString:bj}));function _j(){return`#${op(this.r)}${op(this.g)}${op(this.b)}`}function nGe(){return`#${op(this.r)}${op(this.g)}${op(this.b)}${op((isNaN(this.opacity)?1:this.opacity)*255)}`}function bj(){const t=qC(this.opacity);return`${t===1?"rgb(":"rgba("}${bp(this.r)}, ${bp(this.g)}, ${bp(this.b)}${t===1?")":`, ${t})`}`}function qC(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function bp(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function op(t){return t=bp(t),(t<16?"0":"")+t.toString(16)}function Ej(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ql(t,e,r,n)}function Sde(t){if(t instanceof Ql)return new Ql(t.h,t.s,t.l,t.opacity);if(t instanceof eg||(t=Np(t)),!t)return new Ql;if(t instanceof Ql)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),i=Math.max(e,r,n),s=NaN,o=i-a,l=(i+a)/2;return o?(e===i?s=(r-n)/o+(r0&&l<1?0:s,new Ql(s,o,l,t.opacity)}function aGe(t,e,r,n){return arguments.length===1?Sde(t):new Ql(t,e,r,n??1)}function Ql(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}pT(Ql,aGe,Mk(eg,{brighter(t){return t=t==null?GC:Math.pow(GC,t),new Ql(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?YS:Math.pow(YS,t),new Ql(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,a=2*r-n;return new ls(bR(t>=240?t-240:t+120,a,n),bR(t,a,n),bR(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new Ql(Sj(this.h),Dx(this.s),Dx(this.l),qC(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=qC(this.opacity);return`${t===1?"hsl(":"hsla("}${Sj(this.h)}, ${Dx(this.s)*100}%, ${Dx(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Sj(t){return t=(t||0)%360,t<0?t+360:t}function Dx(t){return Math.max(0,Math.min(1,t||0))}function bR(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 iGe=Math.PI/180,sGe=180/Math.PI,YC=18,Tde=.96422,xde=1,Cde=.82521,wde=4/29,r1=6/29,kde=3*r1*r1,oGe=r1*r1*r1;function Ade(t){if(t instanceof au)return new au(t.l,t.a,t.b,t.opacity);if(t instanceof c0)return Rde(t);t instanceof ls||(t=Ede(t));var e=xR(t.r),r=xR(t.g),n=xR(t.b),a=ER((.2225045*e+.7168786*r+.0606169*n)/xde),i,s;return e===r&&r===n?i=s=a:(i=ER((.4360747*e+.3850649*r+.1430804*n)/Tde),s=ER((.0139322*e+.0971045*r+.7141733*n)/Cde)),new au(116*a-16,500*(i-a),200*(a-s),t.opacity)}function lGe(t,e,r,n){return arguments.length===1?Ade(t):new au(t,e,r,n??1)}function au(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}pT(au,lGe,Mk(eg,{brighter(t){return new au(this.l+YC*(t??1),this.a,this.b,this.opacity)},darker(t){return new au(this.l-YC*(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=Tde*SR(e),t=xde*SR(t),r=Cde*SR(r),new ls(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 ER(t){return t>oGe?Math.pow(t,1/3):t/kde+wde}function SR(t){return t>r1?t*t*t:kde*(t-wde)}function TR(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function xR(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function cGe(t){if(t instanceof c0)return new c0(t.h,t.c,t.l,t.opacity);if(t instanceof au||(t=Ade(t)),t.a===0&&t.b===0)return new c0(NaN,0()=>t;function Nde(t,e){return function(r){return t+r*e}}function uGe(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 dGe(t,e){var r=e-t;return r?Nde(t,r>180||r<-180?r-360*Math.round(r/360):r):Pk(isNaN(t)?e:t)}function hGe(t){return(t=+t)==1?sS:function(e,r){return r-e?uGe(e,r,t):Pk(isNaN(e)?r:e)}}function sS(t,e){var r=e-t;return r?Nde(t,r):Pk(isNaN(t)?e:t)}const HC=(function t(e){var r=hGe(e);function n(a,i){var s=r((a=pP(a)).r,(i=pP(i)).r),o=r(a.g,i.g),l=r(a.b,i.b),u=sS(a.opacity,i.opacity);return function(d){return a.r=s(d),a.g=o(d),a.b=l(d),a.opacity=u(d),a+""}}return n.gamma=t,n})(1);function fGe(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(i){for(a=0;ar&&(i=e.slice(r,i),o[s]?o[s]+=i:o[++s]=i),(n=n[0])===(a=a[0])?o[s]?o[s]+=a:o[++s]=a:(o[++s]=null,l.push({i:s,x:Wl(n,a)})),r=CR.lastIndex;return r180?d+=360:d-u>180&&(u+=360),f.push({i:h.push(a(h)+"rotate(",null,n)-2,x:Wl(u,d)})):d&&h.push(a(h)+"rotate("+d+n)}function o(u,d,h,f){u!==d?f.push({i:h.push(a(h)+"skewX(",null,n)-2,x:Wl(u,d)}):d&&h.push(a(h)+"skewX("+d+n)}function l(u,d,h,f,p,g){if(u!==h||d!==f){var m=p.push(a(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Wl(u,h)},{i:m-2,x:Wl(d,f)})}else(h!==1||f!==1)&&p.push(a(p)+"scale("+h+","+f+")")}return function(u,d){var h=[],f=[];return u=t(u),d=t(d),i(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,v;++g=0&&t._call.call(void 0,e),t=t._next;--ab}function xj(){Ip=(WC=VS.now())+Bk,ab=bE=0;try{AGe()}finally{ab=0,NGe(),Ip=0}}function RGe(){var t=VS.now(),e=t-WC;e>Lde&&(Bk-=e,WC=t)}function NGe(){for(var t,e=VC,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:VC=r);EE=t,yP(n)}function yP(t){if(!ab){bE&&(bE=clearTimeout(bE));var e=t-Ip;e>24?(t<1/0&&(bE=setTimeout(xj,t-VS.now()-Bk)),$2&&($2=clearInterval($2))):($2||(WC=VS.now(),$2=setInterval(RGe,Lde)),ab=1,Mde(xj))}}function Cj(t,e,r){var n=new KC;return e=e==null?0:+e,n.restart(a=>{n.stop(),t(a+e)},e,r),n}var IGe=lde("start","end","cancel","interrupt"),OGe=[],Bde=0,wj=1,_P=2,s5=3,kj=4,bP=5,o5=6;function Fk(t,e,r,n,a,i){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;DGe(t,r,{name:e,index:n,group:a,on:IGe,tween:OGe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Bde})}function JU(t,e){var r=bc(t,e);if(r.state>Bde)throw new Error("too late; already scheduled");return r}function bu(t,e){var r=bc(t,e);if(r.state>s5)throw new Error("too late; already running");return r}function bc(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function DGe(t,e,r){var n=t.__transition,a;n[e]=r,r.timer=Pde(i,0,r.time);function i(u){r.state=wj,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!==wj)return l();for(d in n)if(p=n[d],p.name===r.name){if(p.state===s5)return Cj(s);p.state===kj?(p.state=o5,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[d]):+d_P&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function uqe(t,e,r){var n,a,i=cqe(e)?JU:bu;return function(){var s=i(this,t),o=s.on;o!==n&&(a=(n=o).copy()).on(e,r),s.on=a}}function dqe(t,e){var r=this._id;return arguments.length<2?bc(this.node(),r).on.on(t):this.each(uqe(r,t,e))}function hqe(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function fqe(){return this.on("end.remove",hqe(this._id))}function pqe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=XU(t));for(var n=this._groups,a=n.length,i=new Array(a),s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ude;const r=10**e;return function(n){this._+=n[0];for(let a=1,i=n.length;akf)if(!(Math.abs(h*l-u*d)>kf)||!i)this._append`L${this._x1=e},${this._y1=r}`;else{let p=n-s,g=a-o,m=l*l+u*u,v=p*p+g*g,y=Math.sqrt(m),b=Math.sqrt(f),_=i*Math.tan((EP-Math.acos((m+f-v)/(2*y*b)))/2),S=_/b,x=_/y;Math.abs(S-1)>kf&&this._append`L${e+S*d},${r+S*h}`,this._append`A${i},${i},0,0,${+(h*p>d*g)},${this._x1=e+x*l},${this._y1=r+x*u}`}}arc(e,r,n,a,i,s){if(e=+e,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(a),l=n*Math.sin(a),u=e+o,d=r+l,h=1^s,f=s?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>kf||Math.abs(this._y1-d)>kf)&&this._append`L${u},${d}`,n&&(f<0&&(f=f%SP+SP),f>$qe?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>kf&&this._append`A${n},${n},0,${+(f>=EP)},${h},${this._x1=e+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(e,r,n,a){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}};function Gqe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function XC(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 ib(t){return t=XC(Math.abs(t)),t?t[1]:NaN}function qqe(t,e){return function(r,n){for(var a=r.length,i=[],s=0,o=t[0],l=0;a>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),i.push(r.substring(a-=o,a+o)),!((l+=o+1)>n));)o=t[s=(s+1)%t.length];return i.reverse().join(e)}}function Yqe(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var Hqe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jC(t){if(!(e=Hqe.exec(t)))throw new Error("invalid format: "+t);var e;return new tG({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]})}jC.prototype=tG.prototype;function tG(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+""}tG.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 Vqe(t){e:for(var e=t.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var QC;function Wqe(t,e){var r=XC(t,e);if(!r)return QC=void 0,t.toPrecision(e);var n=r[0],a=r[1],i=a-(QC=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=n.length;return i===s?n:i>s?n+new Array(i-s+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+XC(t,Math.max(0,e+i-1))[0]}function Aj(t,e){var r=XC(t,e);if(!r)return t+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const Rj={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Gqe,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)=>Aj(t*100,e),r:Aj,s:Wqe,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Nj(t){return t}var Ij=Array.prototype.map,Oj=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Kqe(t){var e=t.grouping===void 0||t.thousands===void 0?Nj:qqe(Ij.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?Nj:Yqe(Ij.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=jC(h);var p=h.fill,g=h.align,m=h.sign,v=h.symbol,y=h.zero,b=h.width,_=h.comma,S=h.precision,x=h.trim,C=h.type;C==="n"?(_=!0,C="g"):Rj[C]||(S===void 0&&(S=12),x=!0,C="g"),(y||p==="0"&&g==="=")&&(y=!0,p="0",g="=");var T=(f&&f.prefix!==void 0?f.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),w=(v==="$"?n:/[%p]/.test(C)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),R=Rj[C],O=/[defgprs%]/.test(C);S=S===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function M($){var F=T,A=w,I,D,L;if(C==="c")A=R($)+A,$="";else{$=+$;var N=$<0||1/$<0;if($=isNaN($)?l:R(Math.abs($),S),x&&($=Vqe($)),N&&+$==0&&m!=="+"&&(N=!1),F=(N?m==="("?m:o:m==="-"||m==="("?"":m)+F,A=(C==="s"&&!isNaN($)&&QC!==void 0?Oj[8+QC/3]:"")+A+(N&&m==="("?")":""),O){for(I=-1,D=$.length;++IL||L>57){A=(L===46?a+$.slice(I+1):$.slice(I))+A,$=$.slice(0,I);break}}}_&&!y&&($=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 i($)}return M.toString=function(){return h+""},M}function d(h,f){var p=Math.max(-8,Math.min(8,Math.floor(ib(f)/3)))*3,g=Math.pow(10,-p),m=u((h=jC(h),h.type="f",h),{suffix:Oj[8+p/3]});return function(v){return m(g*v)}}return{format:u,formatPrefix:d}}var Mx,Gf,Gde;Xqe({thousands:",",grouping:[3],currency:["$",""]});function Xqe(t){return Mx=Kqe(t),Gf=Mx.format,Gde=Mx.formatPrefix,Mx}function jqe(t){return Math.max(0,-ib(Math.abs(t)))}function Qqe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ib(e)/3)))*3-ib(Math.abs(t)))}function Zqe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ib(e)-ib(t))+1}function Jqe(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 eYe(){return this.eachAfter(Jqe)}function tYe(t,e){let r=-1;for(const n of this)t.call(e,n,++r,this);return this}function rYe(t,e){for(var r=this,n=[r],a,i,s=-1;r=n.pop();)if(t.call(e,r,++s,this),a=r.children)for(i=a.length-1;i>=0;--i)n.push(a[i]);return this}function nYe(t,e){for(var r=this,n=[r],a=[],i,s,o,l=-1;r=n.pop();)if(a.push(r),i=r.children)for(s=0,o=i.length;s=0;)r+=n[a].value;e.value=r})}function sYe(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function oYe(t){for(var e=this,r=lYe(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var a=n.length;t!==r;)n.splice(a,0,t),t=t.parent;return n}function lYe(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),a=null;for(t=r.pop(),e=n.pop();t===e;)a=t,t=r.pop(),e=n.pop();return a}function cYe(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function uYe(){return Array.from(this)}function dYe(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function hYe(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*fYe(){var t=this,e,r=[t],n,a,i;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,n=t.children)for(a=0,i=n.length;a=0;--o)a.push(i=s[o]=new ZC(s[o])),i.parent=n,i.depth=n.depth+1;return r.eachBefore(yYe)}function pYe(){return rG(this).eachBefore(vYe)}function gYe(t){return t.children}function mYe(t){return Array.isArray(t)?t[1]:null}function vYe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function yYe(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ZC(t){this.data=t,this.depth=this.height=0,this.parent=null}ZC.prototype=rG.prototype={constructor:ZC,count:eYe,each:tYe,eachAfter:nYe,eachBefore:rYe,find:aYe,sum:iYe,sort:sYe,path:oYe,ancestors:cYe,descendants:uYe,leaves:dYe,links:hYe,copy:pYe,[Symbol.iterator]:fYe};function _Ye(t){if(typeof t!="function")throw new Error;return t}function z2(){return 0}function U2(t){return function(){return t}}function bYe(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 EYe(t,e,r,n,a){for(var i=t.children,s,o=-1,l=i.length,u=t.value&&(n-e)/t.value;++ob&&(b=u),C=v*v*x,_=Math.max(b/C,C/y),_>S){v-=u;break}S=_}s.push(l={value:v,dice:p1?n:1)},r})(TYe);function wYe(){var t=CYe,e=!1,r=1,n=1,a=[0],i=z2,s=z2,o=z2,l=z2,u=z2;function d(f){return f.x0=f.y0=0,f.x1=r,f.y1=n,f.eachBefore(h),a=[0],e&&f.eachBefore(bYe),f}function h(f){var p=a[f.depth],g=f.x0+p,m=f.y0+p,v=f.x1-p,y=f.y1-p;ve&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function NYe(t,e,r){var n=t[0],a=t[1],i=e[0],s=e[1];return a2?IYe:NYe,l=u=null,h}function h(f){return f==null||isNaN(f=+f)?i:(l||(l=o(t.map(n),e,r)))(n(s(f)))}return h.invert=function(f){return s(a((u||(u=o(e,t.map(n),Wl)))(f)))},h.domain=function(f){return arguments.length?(t=Array.from(f,AYe),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=bGe,d()},h.clamp=function(f){return arguments.length?(s=f?!0:Dm,d()):s!==Dm},h.interpolate=function(f){return arguments.length?(r=f,d()):r},h.unknown=function(f){return arguments.length?(i=f,h):i},function(f,p){return n=f,a=p,d()}}function Yde(){return OYe()(Dm,Dm)}function DYe(t,e,r,n){var a=dP(t,e,r),i;switch(n=jC(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(i=Qqe(a,s))&&(n.precision=i),Gde(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Zqe(a,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=jqe(a))&&(n.precision=i-(n.type==="%")*2);break}}return Gf(n)}function LYe(t){var e=t.domain;return t.ticks=function(r){var n=e();return tze(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var a=e();return DYe(a[0],a[a.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),a=0,i=n.length-1,s=n[a],o=n[i],l,u,d=10;for(o0;){if(u=uP(s,o,r),u===l)return n[a]=s,n[i]=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 sb(){var t=Yde();return t.copy=function(){return qde(t,sb())},$k.apply(t,arguments),LYe(t)}function MYe(t,e){t=t.slice();var r=0,n=t.length-1,a=t[r],i=t[n],s;return i(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const s=a(i),o=a.ceil(i);return i-s(e(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,o)=>{const l=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i0))return l;let u;do l.push(u=new Date(+i)),e(i,o),t(i);while(uRi(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!i(s););else for(;--o>=0;)for(;e(s,1),!i(s););}),r&&(a.count=(i,s)=>(wR.setTime(+i),kR.setTime(+s),t(wR),t(kR),Math.floor(r(wR,kR))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?s=>n(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const ob=Ri(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ob.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Ri(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):ob);ob.range;const u0=1e3,bl=u0*60,d0=bl*60,k0=d0*24,nG=k0*7,Mj=k0*30,AR=k0*365,Ud=Ri(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*u0)},(t,e)=>(e-t)/u0,t=>t.getUTCSeconds());Ud.range;const WS=Ri(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*u0)},(t,e)=>{t.setTime(+t+e*bl)},(t,e)=>(e-t)/bl,t=>t.getMinutes());WS.range;const PYe=Ri(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*bl)},(t,e)=>(e-t)/bl,t=>t.getUTCMinutes());PYe.range;const KS=Ri(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*u0-t.getMinutes()*bl)},(t,e)=>{t.setTime(+t+e*d0)},(t,e)=>(e-t)/d0,t=>t.getHours());KS.range;const BYe=Ri(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*d0)},(t,e)=>(e-t)/d0,t=>t.getUTCHours());BYe.range;const Op=Ri(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*bl)/k0,t=>t.getDate()-1);Op.range;const aG=Ri(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/k0,t=>t.getUTCDate()-1);aG.range;const FYe=Ri(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/k0,t=>Math.floor(t/k0));FYe.range;function tg(t){return Ri(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())*bl)/nG)}const gT=tg(0),XS=tg(1),Hde=tg(2),Vde=tg(3),Dp=tg(4),Wde=tg(5),Kde=tg(6);gT.range;XS.range;Hde.range;Vde.range;Dp.range;Wde.range;Kde.range;function rg(t){return Ri(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)/nG)}const Xde=rg(0),JC=rg(1),$Ye=rg(2),zYe=rg(3),lb=rg(4),UYe=rg(5),GYe=rg(6);Xde.range;JC.range;$Ye.range;zYe.range;lb.range;UYe.range;GYe.range;const jS=Ri(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());jS.range;const qYe=Ri(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());qYe.range;const A0=Ri(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());A0.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ri(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)});A0.range;const Lp=Ri(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());Lp.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ri(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)});Lp.range;function YYe(t,e,r,n,a,i){const s=[[Ud,1,u0],[Ud,5,5*u0],[Ud,15,15*u0],[Ud,30,30*u0],[i,1,bl],[i,5,5*bl],[i,15,15*bl],[i,30,30*bl],[a,1,d0],[a,3,3*d0],[a,6,6*d0],[a,12,12*d0],[n,1,k0],[n,2,2*k0],[r,1,nG],[e,1,Mj],[e,3,3*Mj],[t,1,AR]];function o(u,d,h){const f=dv).right(s,f);if(p===s.length)return t.every(dP(u/AR,d/AR,h));if(p===0)return ob.every(Math.max(dP(u,d,h),1));const[g,m]=s[f/s[p-1][2]53)return null;"w"in re||(re.w=1),"Z"in re?(pe=NR(G2(re.y,0,1)),Be=pe.getUTCDay(),pe=Be>4||Be===0?JC.ceil(pe):JC(pe),pe=aG.offset(pe,(re.V-1)*7),re.y=pe.getUTCFullYear(),re.m=pe.getUTCMonth(),re.d=pe.getUTCDate()+(re.w+6)%7):(pe=RR(G2(re.y,0,1)),Be=pe.getDay(),pe=Be>4||Be===0?XS.ceil(pe):XS(pe),pe=Op.offset(pe,(re.V-1)*7),re.y=pe.getFullYear(),re.m=pe.getMonth(),re.d=pe.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Be="Z"in re?NR(G2(re.y,0,1)).getUTCDay():RR(G2(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(Be+5)%7:re.w+re.U*7-(Be+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,NR(re)):RR(re)}}function w(te,ne,ae,re){for(var ge=0,pe=ne.length,Be=ae.length,Le,He;ge=Be)return-1;if(Le=ne.charCodeAt(ge++),Le===37){if(Le=ne.charAt(ge++),He=x[Le in Pj?ne.charAt(ge++):Le],!He||(re=He(te,ae,re))<0)return-1}else if(Le!=ae.charCodeAt(re++))return-1}return re}function R(te,ne,ae){var re=u.exec(ne.slice(ae));return re?(te.p=d.get(re[0].toLowerCase()),ae+re[0].length):-1}function O(te,ne,ae){var re=p.exec(ne.slice(ae));return re?(te.w=g.get(re[0].toLowerCase()),ae+re[0].length):-1}function M(te,ne,ae){var re=h.exec(ne.slice(ae));return re?(te.w=f.get(re[0].toLowerCase()),ae+re[0].length):-1}function $(te,ne,ae){var re=y.exec(ne.slice(ae));return re?(te.m=b.get(re[0].toLowerCase()),ae+re[0].length):-1}function F(te,ne,ae){var re=m.exec(ne.slice(ae));return re?(te.m=v.get(re[0].toLowerCase()),ae+re[0].length):-1}function A(te,ne,ae){return w(te,e,ne,ae)}function I(te,ne,ae){return w(te,r,ne,ae)}function D(te,ne,ae){return w(te,n,ne,ae)}function L(te){return s[te.getDay()]}function N(te){return i[te.getDay()]}function P(te){return l[te.getMonth()]}function z(te){return o[te.getMonth()]}function B(te){return a[+(te.getHours()>=12)]}function U(te){return 1+~~(te.getMonth()/3)}function G(te){return s[te.getUTCDay()]}function K(te){return i[te.getUTCDay()]}function Y(te){return l[te.getUTCMonth()]}function ee(te){return o[te.getUTCMonth()]}function X(te){return a[+(te.getUTCHours()>=12)]}function le(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var ne=C(te+="",_);return ne.toString=function(){return te},ne},parse:function(te){var ne=T(te+="",!1);return ne.toString=function(){return te},ne},utcFormat:function(te){var ne=C(te+="",S);return ne.toString=function(){return te},ne},utcParse:function(te){var ne=T(te+="",!0);return ne.toString=function(){return te},ne}}}var Pj={"-":"",_:" ",0:"0"},Ui=/^\s*\d+/,KYe=/^%/,XYe=/[\\^$*+?|[\]().{}]/g;function Tn(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",i=a.length;return n+(i[e.toLowerCase(),r]))}function QYe(t,e,r){var n=Ui.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function ZYe(t,e,r){var n=Ui.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function JYe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function tHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Bj(t,e,r){var n=Ui.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Fj(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function rHe(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 nHe(t,e,r){var n=Ui.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function aHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function $j(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function iHe(t,e,r){var n=Ui.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function zj(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function sHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function oHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function lHe(t,e,r){var n=Ui.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function cHe(t,e,r){var n=Ui.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function uHe(t,e,r){var n=KYe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function dHe(t,e,r){var n=Ui.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function hHe(t,e,r){var n=Ui.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Uj(t,e){return Tn(t.getDate(),e,2)}function fHe(t,e){return Tn(t.getHours(),e,2)}function pHe(t,e){return Tn(t.getHours()%12||12,e,2)}function gHe(t,e){return Tn(1+Op.count(A0(t),t),e,3)}function jde(t,e){return Tn(t.getMilliseconds(),e,3)}function mHe(t,e){return jde(t,e)+"000"}function vHe(t,e){return Tn(t.getMonth()+1,e,2)}function yHe(t,e){return Tn(t.getMinutes(),e,2)}function _He(t,e){return Tn(t.getSeconds(),e,2)}function bHe(t){var e=t.getDay();return e===0?7:e}function EHe(t,e){return Tn(gT.count(A0(t)-1,t),e,2)}function Qde(t){var e=t.getDay();return e>=4||e===0?Dp(t):Dp.ceil(t)}function SHe(t,e){return t=Qde(t),Tn(Dp.count(A0(t),t)+(A0(t).getDay()===4),e,2)}function THe(t){return t.getDay()}function xHe(t,e){return Tn(XS.count(A0(t)-1,t),e,2)}function CHe(t,e){return Tn(t.getFullYear()%100,e,2)}function wHe(t,e){return t=Qde(t),Tn(t.getFullYear()%100,e,2)}function kHe(t,e){return Tn(t.getFullYear()%1e4,e,4)}function AHe(t,e){var r=t.getDay();return t=r>=4||r===0?Dp(t):Dp.ceil(t),Tn(t.getFullYear()%1e4,e,4)}function RHe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Tn(e/60|0,"0",2)+Tn(e%60,"0",2)}function Gj(t,e){return Tn(t.getUTCDate(),e,2)}function NHe(t,e){return Tn(t.getUTCHours(),e,2)}function IHe(t,e){return Tn(t.getUTCHours()%12||12,e,2)}function OHe(t,e){return Tn(1+aG.count(Lp(t),t),e,3)}function Zde(t,e){return Tn(t.getUTCMilliseconds(),e,3)}function DHe(t,e){return Zde(t,e)+"000"}function LHe(t,e){return Tn(t.getUTCMonth()+1,e,2)}function MHe(t,e){return Tn(t.getUTCMinutes(),e,2)}function PHe(t,e){return Tn(t.getUTCSeconds(),e,2)}function BHe(t){var e=t.getUTCDay();return e===0?7:e}function FHe(t,e){return Tn(Xde.count(Lp(t)-1,t),e,2)}function Jde(t){var e=t.getUTCDay();return e>=4||e===0?lb(t):lb.ceil(t)}function $He(t,e){return t=Jde(t),Tn(lb.count(Lp(t),t)+(Lp(t).getUTCDay()===4),e,2)}function zHe(t){return t.getUTCDay()}function UHe(t,e){return Tn(JC.count(Lp(t)-1,t),e,2)}function GHe(t,e){return Tn(t.getUTCFullYear()%100,e,2)}function qHe(t,e){return t=Jde(t),Tn(t.getUTCFullYear()%100,e,2)}function YHe(t,e){return Tn(t.getUTCFullYear()%1e4,e,4)}function HHe(t,e){var r=t.getUTCDay();return t=r>=4||r===0?lb(t):lb.ceil(t),Tn(t.getUTCFullYear()%1e4,e,4)}function VHe(){return"+0000"}function qj(){return"%"}function Yj(t){return+t}function Hj(t){return Math.floor(+t/1e3)}var Gg,e6;WHe({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 WHe(t){return Gg=WYe(t),e6=Gg.format,Gg.parse,Gg.utcFormat,Gg.utcParse,Gg}function KHe(t){return new Date(t)}function XHe(t){return t instanceof Date?+t:+new Date(+t)}function ehe(t,e,r,n,a,i,s,o,l,u){var d=Yde(),h=d.invert,f=d.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),b=u("%b %d"),_=u("%B"),S=u("%Y");function x(C){return(l(C)1?0:t<-1?QS:Math.acos(t)}function Wj(t){return t>=1?t6:t<=-1?-t6:Math.asin(t)}function the(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 Uqe(e)}function tVe(t){return t.innerRadius}function rVe(t){return t.outerRadius}function nVe(t){return t.startAngle}function aVe(t){return t.endAngle}function iVe(t){return t&&t.padAngle}function sVe(t,e,r,n,a,i,s,o){var l=r-t,u=n-e,d=s-a,h=o-i,f=h*l-d*u;if(!(f*fA*A+I*I&&(w=O,R=M),{cx:w,cy:R,x01:-d,y01:-h,x11:w*(a/x-1),y11:R*(a/x-1)}}function cb(){var t=tVe,e=rVe,r=Ya(0),n=null,a=nVe,i=aVe,s=iVe,o=null,l=the(u);function u(){var d,h,f=+t.apply(this,arguments),p=+e.apply(this,arguments),g=a.apply(this,arguments)-t6,m=i.apply(this,arguments)-t6,v=Vj(m-g),y=m>g;if(o||(o=d=l()),pis))o.moveTo(0,0);else if(v>l5-is)o.moveTo(p*cf(g),p*Cc(g)),o.arc(0,0,p,g,m,!y),f>is&&(o.moveTo(f*cf(m),f*Cc(m)),o.arc(0,0,f,m,g,y));else{var b=g,_=m,S=g,x=m,C=v,T=v,w=s.apply(this,arguments)/2,R=w>is&&(n?+n.apply(this,arguments):Lm(f*f+p*p)),O=IR(Vj(p-f)/2,+r.apply(this,arguments)),M=O,$=O,F,A;if(R>is){var I=Wj(R/f*Cc(w)),D=Wj(R/p*Cc(w));(C-=I*2)>is?(I*=y?1:-1,S+=I,x-=I):(C=0,S=x=(g+m)/2),(T-=D*2)>is?(D*=y?1:-1,b+=D,_-=D):(T=0,b=_=(g+m)/2)}var L=p*cf(b),N=p*Cc(b),P=f*cf(x),z=f*Cc(x);if(O>is){var B=p*cf(_),U=p*Cc(_),G=f*cf(S),K=f*Cc(S),Y;if(vis?$>is?(F=Px(G,K,L,N,p,$,y),A=Px(B,U,P,z,p,$,y),o.moveTo(F.cx+F.x01,F.cy+F.y01),$is)||!(C>is)?o.lineTo(P,z):M>is?(F=Px(P,z,B,U,f,-M,y),A=Px(L,N,G,K,f,-M,y),o.lineTo(F.cx+F.x01,F.cy+F.y01),Mt?1:e>=t?0:NaN}function uVe(t){return t}function dVe(){var t=uVe,e=cVe,r=null,n=Ya(0),a=Ya(l5),i=Ya(0);function s(o){var l,u=(o=rhe(o)).length,d,h,f=0,p=new Array(u),g=new Array(u),m=+n.apply(this,arguments),v=Math.min(l5,Math.max(-l5,a.apply(this,arguments)-m)),y,b=Math.min(Math.abs(v)/u,i.apply(this,arguments)),_=b*(v<0?-1:1),S;for(l=0;l0&&(f+=S);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?(v-u*_)/f:0;l0?S*h:0)+_,g[d]={data:o[d],index:l,value:S,startAngle:m,endAngle:y,padAngle:b};return g}return s.value=function(o){return arguments.length?(t=typeof o=="function"?o:Ya(+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:Ya(+o),s):n},s.endAngle=function(o){return arguments.length?(a=typeof o=="function"?o:Ya(+o),s):a},s.padAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Ya(+o),s):i},s}class ahe{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 ihe(t){return new ahe(t,!0)}function she(t){return new ahe(t,!1)}function dh(){}function r6(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 zk(t){this._context=t}zk.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:r6(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:r6(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function JS(t){return new zk(t)}function ohe(t){this._context=t}ohe.prototype={areaStart:dh,areaEnd:dh,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:r6(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function hVe(t){return new ohe(t)}function lhe(t){this._context=t}lhe.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:r6(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function fVe(t){return new lhe(t)}function che(t,e){this._basis=new zk(t),this._beta=e}che.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],a=e[0],i=t[r]-n,s=e[r]-a,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(n+l*i),this._beta*e[o]+(1-this._beta)*(a+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const pVe=(function t(e){function r(n){return e===1?new zk(n):new che(n,e)}return r.beta=function(n){return t(+n)},r})(.85);function n6(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 iG(t,e){this._context=t,this._k=(1-e)/6}iG.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:n6(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:n6(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 uhe=(function t(e){function r(n){return new iG(n,e)}return r.tension=function(n){return t(+n)},r})(0);function sG(t,e){this._context=t,this._k=(1-e)/6}sG.prototype={areaStart:dh,areaEnd:dh,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:n6(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 gVe=(function t(e){function r(n){return new sG(n,e)}return r.tension=function(n){return t(+n)},r})(0);function oG(t,e){this._context=t,this._k=(1-e)/6}oG.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:n6(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 mVe=(function t(e){function r(n){return new oG(n,e)}return r.tension=function(n){return t(+n)},r})(0);function lG(t,e,r){var n=t._x1,a=t._y1,i=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,a=(a*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);i=(i*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,a,i,s,t._x2,t._y2)}function dhe(t,e){this._context=t,this._alpha=e}dhe.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:lG(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 hhe=(function t(e){function r(n){return e?new dhe(n,e):new iG(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function fhe(t,e){this._context=t,this._alpha=e}fhe.prototype={areaStart:dh,areaEnd:dh,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:lG(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 vVe=(function t(e){function r(n){return e?new fhe(n,e):new sG(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function phe(t,e){this._context=t,this._alpha=e}phe.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:lG(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 yVe=(function t(e){function r(n){return e?new phe(n,e):new oG(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function ghe(t){this._context=t}ghe.prototype={areaStart:dh,areaEnd:dh,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 _Ve(t){return new ghe(t)}function Kj(t){return t<0?-1:1}function Xj(t,e,r){var n=t._x1-t._x0,a=e-t._x1,i=(t._y1-t._y0)/(n||a<0&&-0),s=(r-t._y1)/(a||n<0&&-0),o=(i*a+s*n)/(n+a);return(Kj(i)+Kj(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function jj(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function OR(t,e,r){var n=t._x0,a=t._y0,i=t._x1,s=t._y1,o=(i-n)/3;t._context.bezierCurveTo(n+o,a+o*e,i-o,s-o*r,i,s)}function a6(t){this._context=t}a6.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:OR(this,this._t0,jj(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,OR(this,jj(this,r=Xj(this,t,e)),r);break;default:OR(this,this._t0,r=Xj(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function mhe(t){this._context=new vhe(t)}(mhe.prototype=Object.create(a6.prototype)).point=function(t,e){a6.prototype.point.call(this,e,t)};function vhe(t){this._context=t}vhe.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,a,i){this._context.bezierCurveTo(e,t,n,r,i,a)}};function yhe(t){return new a6(t)}function _he(t){return new mhe(t)}function bhe(t){this._context=t}bhe.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=Qj(t),a=Qj(e),i=0,s=1;s=0;--e)a[e]=(s[e]-a[e+1])/i[e];for(i[r-1]=(t[r]+a[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 She(t){return new Uk(t,.5)}function The(t){return new Uk(t,0)}function xhe(t){return new Uk(t,1)}function SE(t,e,r){this.k=t,this.x=e,this.y=r}SE.prototype={constructor:SE,scale:function(t){return t===1?this:new SE(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new SE(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+")"}};SE.prototype;var wo=E(t=>{const{securityLevel:e}=Ye();let r=At("body");if(e==="sandbox"){const i=At(`#i${t}`).node()?.contentDocument??document;r=At(i.body)}return r.select(`#${t}`)},"selectSvgElement");function cG(t){return typeof t>"u"||t===null}E(cG,"isNothing");function Che(t){return typeof t=="object"&&t!==null}E(Che,"isObject");function whe(t){return Array.isArray(t)?t:cG(t)?[]:[t]}E(whe,"toArray");function khe(t,e){var r,n,a,i;if(e)for(i=Object.keys(e),r=0,n=i.length;r{e!==void 0&&(r5[t]=e)},"addStylesForDiagram"),U$e=$$e,UU={};Rk(UU,{clear:()=>oa,getAccDescription:()=>_a,getAccTitle:()=>va,getDiagramTitle:()=>la,setAccDescription:()=>ya,setAccTitle:()=>sa,setDiagramTitle:()=>pa});var GU="",qU="",YU="",HU=E(t=>dn(t,xr()),"sanitizeText"),oa=E(()=>{GU="",YU="",qU=""},"clear"),sa=E(t=>{GU=HU(t).replace(/^\s+/g,"")},"setAccTitle"),va=E(()=>GU,"getAccTitle"),ya=E(t=>{YU=HU(t).replace(/\n\s+/g,` +`)},"setAccDescription"),_a=E(()=>YU,"getAccDescription"),pa=E(t=>{qU=HU(t)},"setDiagramTitle"),la=E(()=>qU,"getDiagramTitle"),cj=oe,G$e=BU,Ye=xr,lP=J0e,sde=rb,VU=E(t=>dn(t,Ye()),"sanitizeText"),WU=Jb,q$e=E(()=>UU,"getCommonDb"),FC={},$C=E((t,e,r)=>{FC[t]&&cj.warn(`Diagram with id ${t} already registered. Overwriting.`),FC[t]=e,r&&K0e(t,r),z$e(t,e.styles),e.injectUtils?.(cj,G$e,Ye,VU,WU,q$e(),()=>{})},"registerDiagram"),cP=E(t=>{if(t in FC)return FC[t];throw new Y$e(t)},"getDiagram"),D1,Y$e=(D1=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},E(D1,"DiagramNotFoundError"),D1);function n5(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function H$e(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function KU(t){let e,r,n;t.length!==2?(e=n5,r=(o,l)=>n5(t(o),l),n=(o,l)=>t(o)-l):(e=t===n5||t===H$e?t:V$e,r=t,n=t);function a(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:a,center:s,right:i}}function V$e(){return 0}function W$e(t){return t===null?NaN:+t}const K$e=KU(n5),X$e=K$e.right;KU(W$e).center;class uj extends Map{constructor(e,r=Z$e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,a]of e)this.set(n,a)}get(e){return super.get(dj(this,e))}has(e){return super.has(dj(this,e))}set(e,r){return super.set(j$e(this,e),r)}delete(e){return super.delete(Q$e(this,e))}}function dj({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function j$e({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function Q$e({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function Z$e(t){return t!==null&&typeof t=="object"?t.valueOf():t}const J$e=Math.sqrt(50),eze=Math.sqrt(10),tze=Math.sqrt(2);function zC(t,e,r){const n=(e-t)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),s=i>=J$e?10:i>=eze?5:i>=tze?2:1;let o,l,u;return a<0?(u=Math.pow(10,-a)/s,o=Math.round(t*u),l=Math.round(e*u),o/ue&&--l,u=-u):(u=Math.pow(10,a)*s,o=Math.round(t/u),l=Math.round(e/u),o*ue&&--l),l0))return[];if(t===e)return[t];const n=e=a))return[];const o=i-a+1,l=new Array(o);if(n)if(s<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(r=a)&&(r=a)}return r}function aze(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 a of t)(a=e(a,++n,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function ize(t,e,r){t=+t,e=+e,r=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((e-t)/r))|0,i=new Array(a);++n+t(e)}function uze(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function dze(){return!this.__axis}function ode(t,e){var r=[],n=null,a=null,i=6,s=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===a5||t===Ix?-1:1,d=t===Ix||t===_R?"x":"y",h=t===a5||t===hP?oze:lze;function f(p){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),m=a??(e.tickFormat?e.tickFormat.apply(e,r):sze),v=Math.max(i,0)+o,y=e.range(),b=+y[0]+l,_=+y[y.length-1]+l,S=(e.bandwidth?uze:cze)(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(),R=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(R),O=O.merge(R.append("line").attr("stroke","currentColor").attr(d+"2",u*i)),M=M.merge(R.append("text").attr("fill","currentColor").attr(d,u*v).attr("dy",t===a5?"0em":t===hP?"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",hj).attr("transform",function($){return isFinite($=S($))?h($+l):this.getAttribute("transform")}),R.attr("opacity",hj).attr("transform",function($){var F=this.parentNode.__axis;return h((F&&isFinite(F=F($))?F:S($))+l)})),w.remove(),C.attr("d",t===Ix||t===_R?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(S($)+l)}),O.attr(d+"2",u*i),M.attr(d,u*v).text(m),x.filter(dze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===_R?"start":t===Ix?"end":"middle"),x.each(function(){this.__axis=S})}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?(a=p,f):a},f.tickSize=function(p){return arguments.length?(i=s=+p,f):i},f.tickSizeInner=function(p){return arguments.length?(i=+p,f):i},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 hze(t){return ode(a5,t)}function fze(t){return ode(hP,t)}var pze={value:()=>{}};function lde(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(a+1),r=r.slice(0,a)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}i5.prototype=lde.prototype={constructor:i5,on:function(t,e){var r=this._,n=gze(t+"",r),a,i=-1,s=n.length;if(arguments.length<2){for(;++i0)for(var r=new Array(a),n=0,a,i;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),pj.hasOwnProperty(e)?{space:pj[e],local:t}:t}function vze(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===fP&&e.documentElement.namespaceURI===fP?e.createElement(t):e.createElementNS(r,t)}}function yze(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function cde(t){var e=Lk(t);return(e.local?yze:vze)(e)}function _ze(){}function XU(t){return t==null?_ze:function(){return this.querySelector(t)}}function bze(t){typeof t!="function"&&(t=XU(t));for(var e=this._groups,r=e.length,n=new Array(r),a=0;a=_&&(_=b+1);!(x=v[_])&&++_=0;)(s=n[a])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function Hze(t){t||(t=Vze);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var r=this._groups,n=r.length,a=new Array(n),i=0;ie?1:t>=e?0:NaN}function Wze(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Kze(){return Array.from(this)}function Xze(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?sUe:typeof e=="function"?lUe:oUe)(t,e,r??"")):nb(this.node(),t)}function nb(t,e){return t.style.getPropertyValue(e)||pde(t).getComputedStyle(t,null).getPropertyValue(e)}function uUe(t){return function(){delete this[t]}}function dUe(t,e){return function(){this[t]=e}}function hUe(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function fUe(t,e){return arguments.length>1?this.each((e==null?uUe:typeof e=="function"?hUe:dUe)(t,e)):this.node()[t]}function gde(t){return t.trim().split(/^|\s+/)}function jU(t){return t.classList||new mde(t)}function mde(t){this._node=t,this._names=gde(t.getAttribute("class")||"")}mde.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 vde(t,e){for(var r=jU(t),n=-1,a=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function UUe(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,a=e.length,i;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Ox(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Ox(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=jUe.exec(t))?new ls(e[1],e[2],e[3],1):(e=QUe.exec(t))?new ls(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ZUe.exec(t))?Ox(e[1],e[2],e[3],e[4]):(e=JUe.exec(t))?Ox(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=eGe.exec(t))?Ej(e[1],e[2]/100,e[3]/100,1):(e=tGe.exec(t))?Ej(e[1],e[2]/100,e[3]/100,e[4]):gj.hasOwnProperty(t)?yj(gj[t]):t==="transparent"?new ls(NaN,NaN,NaN,0):null}function yj(t){return new ls(t>>16&255,t>>8&255,t&255,1)}function Ox(t,e,r,n){return n<=0&&(t=e=r=NaN),new ls(t,e,r,n)}function Ede(t){return t instanceof eg||(t=Np(t)),t?(t=t.rgb(),new ls(t.r,t.g,t.b,t.opacity)):new ls}function pP(t,e,r,n){return arguments.length===1?Ede(t):new ls(t,e,r,n??1)}function ls(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}pT(ls,pP,Mk(eg,{brighter(t){return t=t==null?GC:Math.pow(GC,t),new ls(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?YS:Math.pow(YS,t),new ls(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ls(bp(this.r),bp(this.g),bp(this.b),qC(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:_j,formatHex:_j,formatHex8:aGe,formatRgb:bj,toString:bj}));function _j(){return`#${op(this.r)}${op(this.g)}${op(this.b)}`}function aGe(){return`#${op(this.r)}${op(this.g)}${op(this.b)}${op((isNaN(this.opacity)?1:this.opacity)*255)}`}function bj(){const t=qC(this.opacity);return`${t===1?"rgb(":"rgba("}${bp(this.r)}, ${bp(this.g)}, ${bp(this.b)}${t===1?")":`, ${t})`}`}function qC(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function bp(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function op(t){return t=bp(t),(t<16?"0":"")+t.toString(16)}function Ej(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ql(t,e,r,n)}function Sde(t){if(t instanceof Ql)return new Ql(t.h,t.s,t.l,t.opacity);if(t instanceof eg||(t=Np(t)),!t)return new Ql;if(t instanceof Ql)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),i=Math.max(e,r,n),s=NaN,o=i-a,l=(i+a)/2;return o?(e===i?s=(r-n)/o+(r0&&l<1?0:s,new Ql(s,o,l,t.opacity)}function iGe(t,e,r,n){return arguments.length===1?Sde(t):new Ql(t,e,r,n??1)}function Ql(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}pT(Ql,iGe,Mk(eg,{brighter(t){return t=t==null?GC:Math.pow(GC,t),new Ql(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?YS:Math.pow(YS,t),new Ql(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,a=2*r-n;return new ls(bR(t>=240?t-240:t+120,a,n),bR(t,a,n),bR(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new Ql(Sj(this.h),Dx(this.s),Dx(this.l),qC(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=qC(this.opacity);return`${t===1?"hsl(":"hsla("}${Sj(this.h)}, ${Dx(this.s)*100}%, ${Dx(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Sj(t){return t=(t||0)%360,t<0?t+360:t}function Dx(t){return Math.max(0,Math.min(1,t||0))}function bR(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 sGe=Math.PI/180,oGe=180/Math.PI,YC=18,Tde=.96422,xde=1,Cde=.82521,wde=4/29,r1=6/29,kde=3*r1*r1,lGe=r1*r1*r1;function Ade(t){if(t instanceof au)return new au(t.l,t.a,t.b,t.opacity);if(t instanceof c0)return Rde(t);t instanceof ls||(t=Ede(t));var e=xR(t.r),r=xR(t.g),n=xR(t.b),a=ER((.2225045*e+.7168786*r+.0606169*n)/xde),i,s;return e===r&&r===n?i=s=a:(i=ER((.4360747*e+.3850649*r+.1430804*n)/Tde),s=ER((.0139322*e+.0971045*r+.7141733*n)/Cde)),new au(116*a-16,500*(i-a),200*(a-s),t.opacity)}function cGe(t,e,r,n){return arguments.length===1?Ade(t):new au(t,e,r,n??1)}function au(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}pT(au,cGe,Mk(eg,{brighter(t){return new au(this.l+YC*(t??1),this.a,this.b,this.opacity)},darker(t){return new au(this.l-YC*(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=Tde*SR(e),t=xde*SR(t),r=Cde*SR(r),new ls(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 ER(t){return t>lGe?Math.pow(t,1/3):t/kde+wde}function SR(t){return t>r1?t*t*t:kde*(t-wde)}function TR(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function xR(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function uGe(t){if(t instanceof c0)return new c0(t.h,t.c,t.l,t.opacity);if(t instanceof au||(t=Ade(t)),t.a===0&&t.b===0)return new c0(NaN,0()=>t;function Nde(t,e){return function(r){return t+r*e}}function dGe(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 hGe(t,e){var r=e-t;return r?Nde(t,r>180||r<-180?r-360*Math.round(r/360):r):Pk(isNaN(t)?e:t)}function fGe(t){return(t=+t)==1?sS:function(e,r){return r-e?dGe(e,r,t):Pk(isNaN(e)?r:e)}}function sS(t,e){var r=e-t;return r?Nde(t,r):Pk(isNaN(t)?e:t)}const HC=(function t(e){var r=fGe(e);function n(a,i){var s=r((a=pP(a)).r,(i=pP(i)).r),o=r(a.g,i.g),l=r(a.b,i.b),u=sS(a.opacity,i.opacity);return function(d){return a.r=s(d),a.g=o(d),a.b=l(d),a.opacity=u(d),a+""}}return n.gamma=t,n})(1);function pGe(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(i){for(a=0;ar&&(i=e.slice(r,i),o[s]?o[s]+=i:o[++s]=i),(n=n[0])===(a=a[0])?o[s]?o[s]+=a:o[++s]=a:(o[++s]=null,l.push({i:s,x:Wl(n,a)})),r=CR.lastIndex;return r180?d+=360:d-u>180&&(u+=360),f.push({i:h.push(a(h)+"rotate(",null,n)-2,x:Wl(u,d)})):d&&h.push(a(h)+"rotate("+d+n)}function o(u,d,h,f){u!==d?f.push({i:h.push(a(h)+"skewX(",null,n)-2,x:Wl(u,d)}):d&&h.push(a(h)+"skewX("+d+n)}function l(u,d,h,f,p,g){if(u!==h||d!==f){var m=p.push(a(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Wl(u,h)},{i:m-2,x:Wl(d,f)})}else(h!==1||f!==1)&&p.push(a(p)+"scale("+h+","+f+")")}return function(u,d){var h=[],f=[];return u=t(u),d=t(d),i(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,v;++g=0&&t._call.call(void 0,e),t=t._next;--ab}function xj(){Ip=(WC=VS.now())+Bk,ab=bE=0;try{RGe()}finally{ab=0,IGe(),Ip=0}}function NGe(){var t=VS.now(),e=t-WC;e>Lde&&(Bk-=e,WC=t)}function IGe(){for(var t,e=VC,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:VC=r);EE=t,yP(n)}function yP(t){if(!ab){bE&&(bE=clearTimeout(bE));var e=t-Ip;e>24?(t<1/0&&(bE=setTimeout(xj,t-VS.now()-Bk)),$2&&($2=clearInterval($2))):($2||(WC=VS.now(),$2=setInterval(NGe,Lde)),ab=1,Mde(xj))}}function Cj(t,e,r){var n=new KC;return e=e==null?0:+e,n.restart(a=>{n.stop(),t(a+e)},e,r),n}var OGe=lde("start","end","cancel","interrupt"),DGe=[],Bde=0,wj=1,_P=2,s5=3,kj=4,bP=5,o5=6;function Fk(t,e,r,n,a,i){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;LGe(t,r,{name:e,index:n,group:a,on:OGe,tween:DGe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Bde})}function JU(t,e){var r=bc(t,e);if(r.state>Bde)throw new Error("too late; already scheduled");return r}function bu(t,e){var r=bc(t,e);if(r.state>s5)throw new Error("too late; already running");return r}function bc(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function LGe(t,e,r){var n=t.__transition,a;n[e]=r,r.timer=Pde(i,0,r.time);function i(u){r.state=wj,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!==wj)return l();for(d in n)if(p=n[d],p.name===r.name){if(p.state===s5)return Cj(s);p.state===kj?(p.state=o5,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete n[d]):+d_P&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function dqe(t,e,r){var n,a,i=uqe(e)?JU:bu;return function(){var s=i(this,t),o=s.on;o!==n&&(a=(n=o).copy()).on(e,r),s.on=a}}function hqe(t,e){var r=this._id;return arguments.length<2?bc(this.node(),r).on.on(t):this.each(dqe(r,t,e))}function fqe(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function pqe(){return this.on("end.remove",fqe(this._id))}function gqe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=XU(t));for(var n=this._groups,a=n.length,i=new Array(a),s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ude;const r=10**e;return function(n){this._+=n[0];for(let a=1,i=n.length;akf)if(!(Math.abs(h*l-u*d)>kf)||!i)this._append`L${this._x1=e},${this._y1=r}`;else{let p=n-s,g=a-o,m=l*l+u*u,v=p*p+g*g,y=Math.sqrt(m),b=Math.sqrt(f),_=i*Math.tan((EP-Math.acos((m+f-v)/(2*y*b)))/2),S=_/b,x=_/y;Math.abs(S-1)>kf&&this._append`L${e+S*d},${r+S*h}`,this._append`A${i},${i},0,0,${+(h*p>d*g)},${this._x1=e+x*l},${this._y1=r+x*u}`}}arc(e,r,n,a,i,s){if(e=+e,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(a),l=n*Math.sin(a),u=e+o,d=r+l,h=1^s,f=s?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>kf||Math.abs(this._y1-d)>kf)&&this._append`L${u},${d}`,n&&(f<0&&(f=f%SP+SP),f>zqe?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>kf&&this._append`A${n},${n},0,${+(f>=EP)},${h},${this._x1=e+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(e,r,n,a){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}};function qqe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function XC(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 ib(t){return t=XC(Math.abs(t)),t?t[1]:NaN}function Yqe(t,e){return function(r,n){for(var a=r.length,i=[],s=0,o=t[0],l=0;a>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),i.push(r.substring(a-=o,a+o)),!((l+=o+1)>n));)o=t[s=(s+1)%t.length];return i.reverse().join(e)}}function Hqe(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var Vqe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jC(t){if(!(e=Vqe.exec(t)))throw new Error("invalid format: "+t);var e;return new tG({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]})}jC.prototype=tG.prototype;function tG(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+""}tG.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 Wqe(t){e:for(var e=t.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var QC;function Kqe(t,e){var r=XC(t,e);if(!r)return QC=void 0,t.toPrecision(e);var n=r[0],a=r[1],i=a-(QC=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=n.length;return i===s?n:i>s?n+new Array(i-s+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+XC(t,Math.max(0,e+i-1))[0]}function Aj(t,e){var r=XC(t,e);if(!r)return t+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const Rj={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:qqe,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)=>Aj(t*100,e),r:Aj,s:Kqe,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Nj(t){return t}var Ij=Array.prototype.map,Oj=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xqe(t){var e=t.grouping===void 0||t.thousands===void 0?Nj:Yqe(Ij.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?Nj:Hqe(Ij.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=jC(h);var p=h.fill,g=h.align,m=h.sign,v=h.symbol,y=h.zero,b=h.width,_=h.comma,S=h.precision,x=h.trim,C=h.type;C==="n"?(_=!0,C="g"):Rj[C]||(S===void 0&&(S=12),x=!0,C="g"),(y||p==="0"&&g==="=")&&(y=!0,p="0",g="=");var T=(f&&f.prefix!==void 0?f.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),w=(v==="$"?n:/[%p]/.test(C)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),R=Rj[C],O=/[defgprs%]/.test(C);S=S===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function M($){var F=T,A=w,I,D,L;if(C==="c")A=R($)+A,$="";else{$=+$;var N=$<0||1/$<0;if($=isNaN($)?l:R(Math.abs($),S),x&&($=Wqe($)),N&&+$==0&&m!=="+"&&(N=!1),F=(N?m==="("?m:o:m==="-"||m==="("?"":m)+F,A=(C==="s"&&!isNaN($)&&QC!==void 0?Oj[8+QC/3]:"")+A+(N&&m==="("?")":""),O){for(I=-1,D=$.length;++IL||L>57){A=(L===46?a+$.slice(I+1):$.slice(I))+A,$=$.slice(0,I);break}}}_&&!y&&($=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 i($)}return M.toString=function(){return h+""},M}function d(h,f){var p=Math.max(-8,Math.min(8,Math.floor(ib(f)/3)))*3,g=Math.pow(10,-p),m=u((h=jC(h),h.type="f",h),{suffix:Oj[8+p/3]});return function(v){return m(g*v)}}return{format:u,formatPrefix:d}}var Mx,Gf,Gde;jqe({thousands:",",grouping:[3],currency:["$",""]});function jqe(t){return Mx=Xqe(t),Gf=Mx.format,Gde=Mx.formatPrefix,Mx}function Qqe(t){return Math.max(0,-ib(Math.abs(t)))}function Zqe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ib(e)/3)))*3-ib(Math.abs(t)))}function Jqe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ib(e)-ib(t))+1}function eYe(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 tYe(){return this.eachAfter(eYe)}function rYe(t,e){let r=-1;for(const n of this)t.call(e,n,++r,this);return this}function nYe(t,e){for(var r=this,n=[r],a,i,s=-1;r=n.pop();)if(t.call(e,r,++s,this),a=r.children)for(i=a.length-1;i>=0;--i)n.push(a[i]);return this}function aYe(t,e){for(var r=this,n=[r],a=[],i,s,o,l=-1;r=n.pop();)if(a.push(r),i=r.children)for(s=0,o=i.length;s=0;)r+=n[a].value;e.value=r})}function oYe(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function lYe(t){for(var e=this,r=cYe(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var a=n.length;t!==r;)n.splice(a,0,t),t=t.parent;return n}function cYe(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),a=null;for(t=r.pop(),e=n.pop();t===e;)a=t,t=r.pop(),e=n.pop();return a}function uYe(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function dYe(){return Array.from(this)}function hYe(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function fYe(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*pYe(){var t=this,e,r=[t],n,a,i;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,n=t.children)for(a=0,i=n.length;a=0;--o)a.push(i=s[o]=new ZC(s[o])),i.parent=n,i.depth=n.depth+1;return r.eachBefore(_Ye)}function gYe(){return rG(this).eachBefore(yYe)}function mYe(t){return t.children}function vYe(t){return Array.isArray(t)?t[1]:null}function yYe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function _Ye(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ZC(t){this.data=t,this.depth=this.height=0,this.parent=null}ZC.prototype=rG.prototype={constructor:ZC,count:tYe,each:rYe,eachAfter:aYe,eachBefore:nYe,find:iYe,sum:sYe,sort:oYe,path:lYe,ancestors:uYe,descendants:dYe,leaves:hYe,links:fYe,copy:gYe,[Symbol.iterator]:pYe};function bYe(t){if(typeof t!="function")throw new Error;return t}function z2(){return 0}function U2(t){return function(){return t}}function EYe(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 SYe(t,e,r,n,a){for(var i=t.children,s,o=-1,l=i.length,u=t.value&&(n-e)/t.value;++ob&&(b=u),C=v*v*x,_=Math.max(b/C,C/y),_>S){v-=u;break}S=_}s.push(l={value:v,dice:p1?n:1)},r})(xYe);function kYe(){var t=wYe,e=!1,r=1,n=1,a=[0],i=z2,s=z2,o=z2,l=z2,u=z2;function d(f){return f.x0=f.y0=0,f.x1=r,f.y1=n,f.eachBefore(h),a=[0],e&&f.eachBefore(EYe),f}function h(f){var p=a[f.depth],g=f.x0+p,m=f.y0+p,v=f.x1-p,y=f.y1-p;ve&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function IYe(t,e,r){var n=t[0],a=t[1],i=e[0],s=e[1];return a2?OYe:IYe,l=u=null,h}function h(f){return f==null||isNaN(f=+f)?i:(l||(l=o(t.map(n),e,r)))(n(s(f)))}return h.invert=function(f){return s(a((u||(u=o(e,t.map(n),Wl)))(f)))},h.domain=function(f){return arguments.length?(t=Array.from(f,RYe),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=EGe,d()},h.clamp=function(f){return arguments.length?(s=f?!0:Dm,d()):s!==Dm},h.interpolate=function(f){return arguments.length?(r=f,d()):r},h.unknown=function(f){return arguments.length?(i=f,h):i},function(f,p){return n=f,a=p,d()}}function Yde(){return DYe()(Dm,Dm)}function LYe(t,e,r,n){var a=dP(t,e,r),i;switch(n=jC(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(i=Zqe(a,s))&&(n.precision=i),Gde(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Jqe(a,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=Qqe(a))&&(n.precision=i-(n.type==="%")*2);break}}return Gf(n)}function MYe(t){var e=t.domain;return t.ticks=function(r){var n=e();return rze(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var a=e();return LYe(a[0],a[a.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),a=0,i=n.length-1,s=n[a],o=n[i],l,u,d=10;for(o0;){if(u=uP(s,o,r),u===l)return n[a]=s,n[i]=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 sb(){var t=Yde();return t.copy=function(){return qde(t,sb())},$k.apply(t,arguments),MYe(t)}function PYe(t,e){t=t.slice();var r=0,n=t.length-1,a=t[r],i=t[n],s;return i(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const s=a(i),o=a.ceil(i);return i-s(e(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,o)=>{const l=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i0))return l;let u;do l.push(u=new Date(+i)),e(i,o),t(i);while(uRi(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!i(s););else for(;--o>=0;)for(;e(s,1),!i(s););}),r&&(a.count=(i,s)=>(wR.setTime(+i),kR.setTime(+s),t(wR),t(kR),Math.floor(r(wR,kR))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?s=>n(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const ob=Ri(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ob.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Ri(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):ob);ob.range;const u0=1e3,bl=u0*60,d0=bl*60,k0=d0*24,nG=k0*7,Mj=k0*30,AR=k0*365,Ud=Ri(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*u0)},(t,e)=>(e-t)/u0,t=>t.getUTCSeconds());Ud.range;const WS=Ri(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*u0)},(t,e)=>{t.setTime(+t+e*bl)},(t,e)=>(e-t)/bl,t=>t.getMinutes());WS.range;const BYe=Ri(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*bl)},(t,e)=>(e-t)/bl,t=>t.getUTCMinutes());BYe.range;const KS=Ri(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*u0-t.getMinutes()*bl)},(t,e)=>{t.setTime(+t+e*d0)},(t,e)=>(e-t)/d0,t=>t.getHours());KS.range;const FYe=Ri(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*d0)},(t,e)=>(e-t)/d0,t=>t.getUTCHours());FYe.range;const Op=Ri(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*bl)/k0,t=>t.getDate()-1);Op.range;const aG=Ri(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/k0,t=>t.getUTCDate()-1);aG.range;const $Ye=Ri(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/k0,t=>Math.floor(t/k0));$Ye.range;function tg(t){return Ri(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())*bl)/nG)}const gT=tg(0),XS=tg(1),Hde=tg(2),Vde=tg(3),Dp=tg(4),Wde=tg(5),Kde=tg(6);gT.range;XS.range;Hde.range;Vde.range;Dp.range;Wde.range;Kde.range;function rg(t){return Ri(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)/nG)}const Xde=rg(0),JC=rg(1),zYe=rg(2),UYe=rg(3),lb=rg(4),GYe=rg(5),qYe=rg(6);Xde.range;JC.range;zYe.range;UYe.range;lb.range;GYe.range;qYe.range;const jS=Ri(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());jS.range;const YYe=Ri(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());YYe.range;const A0=Ri(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());A0.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ri(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)});A0.range;const Lp=Ri(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());Lp.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ri(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)});Lp.range;function HYe(t,e,r,n,a,i){const s=[[Ud,1,u0],[Ud,5,5*u0],[Ud,15,15*u0],[Ud,30,30*u0],[i,1,bl],[i,5,5*bl],[i,15,15*bl],[i,30,30*bl],[a,1,d0],[a,3,3*d0],[a,6,6*d0],[a,12,12*d0],[n,1,k0],[n,2,2*k0],[r,1,nG],[e,1,Mj],[e,3,3*Mj],[t,1,AR]];function o(u,d,h){const f=dv).right(s,f);if(p===s.length)return t.every(dP(u/AR,d/AR,h));if(p===0)return ob.every(Math.max(dP(u,d,h),1));const[g,m]=s[f/s[p-1][2]53)return null;"w"in re||(re.w=1),"Z"in re?(pe=NR(G2(re.y,0,1)),Be=pe.getUTCDay(),pe=Be>4||Be===0?JC.ceil(pe):JC(pe),pe=aG.offset(pe,(re.V-1)*7),re.y=pe.getUTCFullYear(),re.m=pe.getUTCMonth(),re.d=pe.getUTCDate()+(re.w+6)%7):(pe=RR(G2(re.y,0,1)),Be=pe.getDay(),pe=Be>4||Be===0?XS.ceil(pe):XS(pe),pe=Op.offset(pe,(re.V-1)*7),re.y=pe.getFullYear(),re.m=pe.getMonth(),re.d=pe.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Be="Z"in re?NR(G2(re.y,0,1)).getUTCDay():RR(G2(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(Be+5)%7:re.w+re.U*7-(Be+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,NR(re)):RR(re)}}function w(te,ne,ae,re){for(var ge=0,pe=ne.length,Be=ae.length,Le,He;ge=Be)return-1;if(Le=ne.charCodeAt(ge++),Le===37){if(Le=ne.charAt(ge++),He=x[Le in Pj?ne.charAt(ge++):Le],!He||(re=He(te,ae,re))<0)return-1}else if(Le!=ae.charCodeAt(re++))return-1}return re}function R(te,ne,ae){var re=u.exec(ne.slice(ae));return re?(te.p=d.get(re[0].toLowerCase()),ae+re[0].length):-1}function O(te,ne,ae){var re=p.exec(ne.slice(ae));return re?(te.w=g.get(re[0].toLowerCase()),ae+re[0].length):-1}function M(te,ne,ae){var re=h.exec(ne.slice(ae));return re?(te.w=f.get(re[0].toLowerCase()),ae+re[0].length):-1}function $(te,ne,ae){var re=y.exec(ne.slice(ae));return re?(te.m=b.get(re[0].toLowerCase()),ae+re[0].length):-1}function F(te,ne,ae){var re=m.exec(ne.slice(ae));return re?(te.m=v.get(re[0].toLowerCase()),ae+re[0].length):-1}function A(te,ne,ae){return w(te,e,ne,ae)}function I(te,ne,ae){return w(te,r,ne,ae)}function D(te,ne,ae){return w(te,n,ne,ae)}function L(te){return s[te.getDay()]}function N(te){return i[te.getDay()]}function P(te){return l[te.getMonth()]}function z(te){return o[te.getMonth()]}function B(te){return a[+(te.getHours()>=12)]}function U(te){return 1+~~(te.getMonth()/3)}function G(te){return s[te.getUTCDay()]}function K(te){return i[te.getUTCDay()]}function Y(te){return l[te.getUTCMonth()]}function ee(te){return o[te.getUTCMonth()]}function X(te){return a[+(te.getUTCHours()>=12)]}function le(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var ne=C(te+="",_);return ne.toString=function(){return te},ne},parse:function(te){var ne=T(te+="",!1);return ne.toString=function(){return te},ne},utcFormat:function(te){var ne=C(te+="",S);return ne.toString=function(){return te},ne},utcParse:function(te){var ne=T(te+="",!0);return ne.toString=function(){return te},ne}}}var Pj={"-":"",_:" ",0:"0"},Ui=/^\s*\d+/,XYe=/^%/,jYe=/[\\^$*+?|[\]().{}]/g;function Tn(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",i=a.length;return n+(i[e.toLowerCase(),r]))}function ZYe(t,e,r){var n=Ui.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function JYe(t,e,r){var n=Ui.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function tHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function rHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Bj(t,e,r){var n=Ui.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Fj(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nHe(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 aHe(t,e,r){var n=Ui.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function iHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function $j(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function sHe(t,e,r){var n=Ui.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function zj(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function oHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function lHe(t,e,r){var n=Ui.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function cHe(t,e,r){var n=Ui.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function uHe(t,e,r){var n=Ui.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dHe(t,e,r){var n=XYe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function hHe(t,e,r){var n=Ui.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function fHe(t,e,r){var n=Ui.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Uj(t,e){return Tn(t.getDate(),e,2)}function pHe(t,e){return Tn(t.getHours(),e,2)}function gHe(t,e){return Tn(t.getHours()%12||12,e,2)}function mHe(t,e){return Tn(1+Op.count(A0(t),t),e,3)}function jde(t,e){return Tn(t.getMilliseconds(),e,3)}function vHe(t,e){return jde(t,e)+"000"}function yHe(t,e){return Tn(t.getMonth()+1,e,2)}function _He(t,e){return Tn(t.getMinutes(),e,2)}function bHe(t,e){return Tn(t.getSeconds(),e,2)}function EHe(t){var e=t.getDay();return e===0?7:e}function SHe(t,e){return Tn(gT.count(A0(t)-1,t),e,2)}function Qde(t){var e=t.getDay();return e>=4||e===0?Dp(t):Dp.ceil(t)}function THe(t,e){return t=Qde(t),Tn(Dp.count(A0(t),t)+(A0(t).getDay()===4),e,2)}function xHe(t){return t.getDay()}function CHe(t,e){return Tn(XS.count(A0(t)-1,t),e,2)}function wHe(t,e){return Tn(t.getFullYear()%100,e,2)}function kHe(t,e){return t=Qde(t),Tn(t.getFullYear()%100,e,2)}function AHe(t,e){return Tn(t.getFullYear()%1e4,e,4)}function RHe(t,e){var r=t.getDay();return t=r>=4||r===0?Dp(t):Dp.ceil(t),Tn(t.getFullYear()%1e4,e,4)}function NHe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Tn(e/60|0,"0",2)+Tn(e%60,"0",2)}function Gj(t,e){return Tn(t.getUTCDate(),e,2)}function IHe(t,e){return Tn(t.getUTCHours(),e,2)}function OHe(t,e){return Tn(t.getUTCHours()%12||12,e,2)}function DHe(t,e){return Tn(1+aG.count(Lp(t),t),e,3)}function Zde(t,e){return Tn(t.getUTCMilliseconds(),e,3)}function LHe(t,e){return Zde(t,e)+"000"}function MHe(t,e){return Tn(t.getUTCMonth()+1,e,2)}function PHe(t,e){return Tn(t.getUTCMinutes(),e,2)}function BHe(t,e){return Tn(t.getUTCSeconds(),e,2)}function FHe(t){var e=t.getUTCDay();return e===0?7:e}function $He(t,e){return Tn(Xde.count(Lp(t)-1,t),e,2)}function Jde(t){var e=t.getUTCDay();return e>=4||e===0?lb(t):lb.ceil(t)}function zHe(t,e){return t=Jde(t),Tn(lb.count(Lp(t),t)+(Lp(t).getUTCDay()===4),e,2)}function UHe(t){return t.getUTCDay()}function GHe(t,e){return Tn(JC.count(Lp(t)-1,t),e,2)}function qHe(t,e){return Tn(t.getUTCFullYear()%100,e,2)}function YHe(t,e){return t=Jde(t),Tn(t.getUTCFullYear()%100,e,2)}function HHe(t,e){return Tn(t.getUTCFullYear()%1e4,e,4)}function VHe(t,e){var r=t.getUTCDay();return t=r>=4||r===0?lb(t):lb.ceil(t),Tn(t.getUTCFullYear()%1e4,e,4)}function WHe(){return"+0000"}function qj(){return"%"}function Yj(t){return+t}function Hj(t){return Math.floor(+t/1e3)}var Gg,e6;KHe({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 KHe(t){return Gg=KYe(t),e6=Gg.format,Gg.parse,Gg.utcFormat,Gg.utcParse,Gg}function XHe(t){return new Date(t)}function jHe(t){return t instanceof Date?+t:+new Date(+t)}function ehe(t,e,r,n,a,i,s,o,l,u){var d=Yde(),h=d.invert,f=d.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),b=u("%b %d"),_=u("%B"),S=u("%Y");function x(C){return(l(C)1?0:t<-1?QS:Math.acos(t)}function Wj(t){return t>=1?t6:t<=-1?-t6:Math.asin(t)}function the(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 Gqe(e)}function rVe(t){return t.innerRadius}function nVe(t){return t.outerRadius}function aVe(t){return t.startAngle}function iVe(t){return t.endAngle}function sVe(t){return t&&t.padAngle}function oVe(t,e,r,n,a,i,s,o){var l=r-t,u=n-e,d=s-a,h=o-i,f=h*l-d*u;if(!(f*fA*A+I*I&&(w=O,R=M),{cx:w,cy:R,x01:-d,y01:-h,x11:w*(a/x-1),y11:R*(a/x-1)}}function cb(){var t=rVe,e=nVe,r=Ya(0),n=null,a=aVe,i=iVe,s=sVe,o=null,l=the(u);function u(){var d,h,f=+t.apply(this,arguments),p=+e.apply(this,arguments),g=a.apply(this,arguments)-t6,m=i.apply(this,arguments)-t6,v=Vj(m-g),y=m>g;if(o||(o=d=l()),pis))o.moveTo(0,0);else if(v>l5-is)o.moveTo(p*cf(g),p*Cc(g)),o.arc(0,0,p,g,m,!y),f>is&&(o.moveTo(f*cf(m),f*Cc(m)),o.arc(0,0,f,m,g,y));else{var b=g,_=m,S=g,x=m,C=v,T=v,w=s.apply(this,arguments)/2,R=w>is&&(n?+n.apply(this,arguments):Lm(f*f+p*p)),O=IR(Vj(p-f)/2,+r.apply(this,arguments)),M=O,$=O,F,A;if(R>is){var I=Wj(R/f*Cc(w)),D=Wj(R/p*Cc(w));(C-=I*2)>is?(I*=y?1:-1,S+=I,x-=I):(C=0,S=x=(g+m)/2),(T-=D*2)>is?(D*=y?1:-1,b+=D,_-=D):(T=0,b=_=(g+m)/2)}var L=p*cf(b),N=p*Cc(b),P=f*cf(x),z=f*Cc(x);if(O>is){var B=p*cf(_),U=p*Cc(_),G=f*cf(S),K=f*Cc(S),Y;if(vis?$>is?(F=Px(G,K,L,N,p,$,y),A=Px(B,U,P,z,p,$,y),o.moveTo(F.cx+F.x01,F.cy+F.y01),$is)||!(C>is)?o.lineTo(P,z):M>is?(F=Px(P,z,B,U,f,-M,y),A=Px(L,N,G,K,f,-M,y),o.lineTo(F.cx+F.x01,F.cy+F.y01),Mt?1:e>=t?0:NaN}function dVe(t){return t}function hVe(){var t=dVe,e=uVe,r=null,n=Ya(0),a=Ya(l5),i=Ya(0);function s(o){var l,u=(o=rhe(o)).length,d,h,f=0,p=new Array(u),g=new Array(u),m=+n.apply(this,arguments),v=Math.min(l5,Math.max(-l5,a.apply(this,arguments)-m)),y,b=Math.min(Math.abs(v)/u,i.apply(this,arguments)),_=b*(v<0?-1:1),S;for(l=0;l0&&(f+=S);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?(v-u*_)/f:0;l0?S*h:0)+_,g[d]={data:o[d],index:l,value:S,startAngle:m,endAngle:y,padAngle:b};return g}return s.value=function(o){return arguments.length?(t=typeof o=="function"?o:Ya(+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:Ya(+o),s):n},s.endAngle=function(o){return arguments.length?(a=typeof o=="function"?o:Ya(+o),s):a},s.padAngle=function(o){return arguments.length?(i=typeof o=="function"?o:Ya(+o),s):i},s}class ahe{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 ihe(t){return new ahe(t,!0)}function she(t){return new ahe(t,!1)}function dh(){}function r6(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 zk(t){this._context=t}zk.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:r6(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:r6(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function JS(t){return new zk(t)}function ohe(t){this._context=t}ohe.prototype={areaStart:dh,areaEnd:dh,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:r6(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function fVe(t){return new ohe(t)}function lhe(t){this._context=t}lhe.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:r6(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function pVe(t){return new lhe(t)}function che(t,e){this._basis=new zk(t),this._beta=e}che.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],a=e[0],i=t[r]-n,s=e[r]-a,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(n+l*i),this._beta*e[o]+(1-this._beta)*(a+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const gVe=(function t(e){function r(n){return e===1?new zk(n):new che(n,e)}return r.beta=function(n){return t(+n)},r})(.85);function n6(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 iG(t,e){this._context=t,this._k=(1-e)/6}iG.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:n6(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:n6(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 uhe=(function t(e){function r(n){return new iG(n,e)}return r.tension=function(n){return t(+n)},r})(0);function sG(t,e){this._context=t,this._k=(1-e)/6}sG.prototype={areaStart:dh,areaEnd:dh,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:n6(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 mVe=(function t(e){function r(n){return new sG(n,e)}return r.tension=function(n){return t(+n)},r})(0);function oG(t,e){this._context=t,this._k=(1-e)/6}oG.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:n6(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 vVe=(function t(e){function r(n){return new oG(n,e)}return r.tension=function(n){return t(+n)},r})(0);function lG(t,e,r){var n=t._x1,a=t._y1,i=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,a=(a*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);i=(i*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,a,i,s,t._x2,t._y2)}function dhe(t,e){this._context=t,this._alpha=e}dhe.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:lG(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 hhe=(function t(e){function r(n){return e?new dhe(n,e):new iG(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function fhe(t,e){this._context=t,this._alpha=e}fhe.prototype={areaStart:dh,areaEnd:dh,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:lG(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 yVe=(function t(e){function r(n){return e?new fhe(n,e):new sG(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function phe(t,e){this._context=t,this._alpha=e}phe.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:lG(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 _Ve=(function t(e){function r(n){return e?new phe(n,e):new oG(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function ghe(t){this._context=t}ghe.prototype={areaStart:dh,areaEnd:dh,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 bVe(t){return new ghe(t)}function Kj(t){return t<0?-1:1}function Xj(t,e,r){var n=t._x1-t._x0,a=e-t._x1,i=(t._y1-t._y0)/(n||a<0&&-0),s=(r-t._y1)/(a||n<0&&-0),o=(i*a+s*n)/(n+a);return(Kj(i)+Kj(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function jj(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function OR(t,e,r){var n=t._x0,a=t._y0,i=t._x1,s=t._y1,o=(i-n)/3;t._context.bezierCurveTo(n+o,a+o*e,i-o,s-o*r,i,s)}function a6(t){this._context=t}a6.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:OR(this,this._t0,jj(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,OR(this,jj(this,r=Xj(this,t,e)),r);break;default:OR(this,this._t0,r=Xj(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function mhe(t){this._context=new vhe(t)}(mhe.prototype=Object.create(a6.prototype)).point=function(t,e){a6.prototype.point.call(this,e,t)};function vhe(t){this._context=t}vhe.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,a,i){this._context.bezierCurveTo(e,t,n,r,i,a)}};function yhe(t){return new a6(t)}function _he(t){return new mhe(t)}function bhe(t){this._context=t}bhe.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=Qj(t),a=Qj(e),i=0,s=1;s=0;--e)a[e]=(s[e]-a[e+1])/i[e];for(i[r-1]=(t[r]+a[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 She(t){return new Uk(t,.5)}function The(t){return new Uk(t,0)}function xhe(t){return new Uk(t,1)}function SE(t,e,r){this.k=t,this.x=e,this.y=r}SE.prototype={constructor:SE,scale:function(t){return t===1?this:new SE(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new SE(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+")"}};SE.prototype;var wo=E(t=>{const{securityLevel:e}=Ye();let r=At("body");if(e==="sandbox"){const i=At(`#i${t}`).node()?.contentDocument??document;r=At(i.body)}return r.select(`#${t}`)},"selectSvgElement");function cG(t){return typeof t>"u"||t===null}E(cG,"isNothing");function Che(t){return typeof t=="object"&&t!==null}E(Che,"isObject");function whe(t){return Array.isArray(t)?t:cG(t)?[]:[t]}E(whe,"toArray");function khe(t,e){var r,n,a,i;if(e)for(i=Object.keys(e),r=0,n=i.length;ro&&(i=" ... ",e=n-o+i.length),r-n>o&&(s=" ...",r=n+o-s.length),{str:i+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+i.length}}E(c5,"getLine");function u5(t,e){return Si.repeat(" ",e-t.length)+t}E(u5,"padStart");function Nhe(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],a=[],i,s=-1;i=r.exec(t.buffer);)a.push(i.index),n.push(i.index+i[0].length),t.position<=i.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",l,u,d=Math.min(t.line+e.linesAfter,a.length).toString().length,h=e.maxLength-(e.indent+d+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)u=c5(t.buffer,n[s-l],a[s-l],t.position-(n[s]-n[s-l]),h),o=Si.repeat(" ",e.indent)+u5((t.line-l+1).toString(),d)+" | "+u.str+` `+o;for(u=c5(t.buffer,n[s],a[s],t.position,h),o+=Si.repeat(" ",e.indent)+u5((t.line+1).toString(),d)+" | "+u.str+` `,o+=Si.repeat("-",e.indent+d+3+u.pos)+`^ `,l=1;l<=e.linesAfter&&!(s+l>=a.length);l++)u=c5(t.buffer,n[s+l],a[s+l],t.position-(n[s]-n[s+l]),h),o+=Si.repeat(" ",e.indent)+u5((t.line+l+1).toString(),d)+" | "+u.str+` -`;return o.replace(/\n$/,"")}E(Nhe,"makeSnippet");var wVe=Nhe,kVe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],AVe=["scalar","sequence","mapping"];function Ihe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}E(Ihe,"compileStyleAliases");function Ohe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(kVe.indexOf(r)===-1)throw new mo('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=Ihe(e.styleAliases||null),AVe.indexOf(this.kind)===-1)throw new mo('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}E(Ohe,"Type$1");var ds=Ohe;function CP(t,e){var r=[];return t[e].forEach(function(n){var a=r.length;r.forEach(function(i,s){i.tag===n.tag&&i.kind===n.kind&&i.multi===n.multi&&(a=s)}),r[a]=n}),r}E(CP,"compileList");function Dhe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(a){a.multi?(t.multi[a.kind].push(a),t.multi.fallback.push(a)):t[a.kind][a.tag]=t.fallback[a.tag]=a}for(E(n,"collectType"),e=0,r=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:E(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:E(function(t){return t.toString(10)},"decimal"),hexadecimal:E(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"]}}),BVe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Vhe(t){return!(t===null||!BVe.test(t)||t[t.length-1]==="_")}E(Vhe,"resolveYamlFloat");function Whe(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)}E(Whe,"constructYamlFloat");var FVe=/^[-+]?[0-9]+e/;function Khe(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(Si.isNegativeZero(t))return"-0.0";return r=t.toString(10),FVe.test(r)?r.replace("e",".e"):r}E(Khe,"representYamlFloat");function Xhe(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Si.isNegativeZero(t))}E(Xhe,"isFloat");var $Ve=new ds("tag:yaml.org,2002:float",{kind:"scalar",resolve:Vhe,construct:Whe,predicate:Xhe,represent:Khe,defaultStyle:"lowercase"}),jhe=DVe.extend({implicit:[LVe,MVe,PVe,$Ve]}),zVe=jhe,Qhe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Zhe=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 Jhe(t){return t===null?!1:Qhe.exec(t)!==null||Zhe.exec(t)!==null}E(Jhe,"resolveYamlTimestamp");function efe(t){var e,r,n,a,i,s,o,l=0,u=null,d,h,f;if(e=Qhe.exec(t),e===null&&(e=Zhe.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(r,n,a));if(i=+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,a,i,s,o,l)),u&&f.setTime(f.getTime()-u),f}E(efe,"constructYamlTimestamp");function tfe(t){return t.toISOString()}E(tfe,"representYamlTimestamp");var UVe=new ds("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jhe,construct:efe,instanceOf:Date,represent:tfe});function rfe(t){return t==="<<"||t===null}E(rfe,"resolveYamlMerge");var GVe=new ds("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rfe}),dG=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function nfe(t){if(t===null)return!1;var e,r,n=0,a=t.length,i=dG;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8===0}E(nfe,"resolveYamlBinary");function afe(t){var e,r,n=t.replace(/[\r\n=]/g,""),a=n.length,i=dG,s=0,o=[];for(e=0;e>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|i.indexOf(n.charAt(e));return r=a%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)}E(afe,"constructYamlBinary");function ife(t){var e="",r=0,n,a,i=t.length,s=dG;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 a=i%3,a===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):a===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):a===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}E(ife,"representYamlBinary");function sfe(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}E(sfe,"isBinary");var qVe=new ds("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nfe,construct:afe,predicate:sfe,represent:ife}),YVe=Object.prototype.hasOwnProperty,HVe=Object.prototype.toString;function ofe(t){if(t===null)return!0;var e=[],r,n,a,i,s,o=t;for(r=0,n=o.length;r>10)+55296,(t-65536&1023)+56320)}E(Efe,"charFromCodepoint");function hG(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}E(hG,"setProperty");var Sfe=new Array(256),Tfe=new Array(256);for(uf=0;uf<256;uf++)Sfe[uf]=kP(uf)?1:0,Tfe[uf]=kP(uf);var uf;function xfe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ffe,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=[]}E(xfe,"State$1");function fG(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=wVe(r),new mo(e,r)}E(fG,"generateError");function Tr(t,e){throw fG(t,e)}E(Tr,"throwError");function e4(t,e){t.onWarning&&t.onWarning.call(null,fG(t,e))}E(e4,"throwWarning");var Jj={YAML:E(function(e,r,n){var a,i,s;e.version!==null&&Tr(e,"duplication of %YAML directive"),n.length!==1&&Tr(e,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),a===null&&Tr(e,"ill-formed argument of the YAML directive"),i=parseInt(a[1],10),s=parseInt(a[2],10),i!==1&&Tr(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&e4(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:E(function(e,r,n){var a,i;n.length!==2&&Tr(e,"TAG directive accepts exactly two arguments"),a=n[0],i=n[1],mfe.test(a)||Tr(e,"ill-formed tag handle (first argument) of the TAG directive"),hh.call(e.tagMap,a)&&Tr(e,'there is a previously declared suffix for "'+a+'" tag handle'),vfe.test(i)||Tr(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Tr(e,"tag prefix is malformed: "+i)}e.tagMap[a]=i},"handleTagDirective")};function E0(t,e,r,n){var a,i,s,o;if(e1&&(t.result+=Si.repeat(` -`,e-1))}E(qk,"writeFoldedLines");function Cfe(t,e,r){var n,a,i,s,o,l,u,d,h=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),Ps(p)||lp(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)&&(a=t.input.charCodeAt(t.position+1),Ps(a)||r&&lp(a)))return!1;for(t.kind="scalar",t.result="",i=s=t.position,o=!1;p!==0;){if(p===58){if(a=t.input.charCodeAt(t.position+1),Ps(a)||r&&lp(a))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),Ps(n))break}else{if(t.position===t.lineStart&&mT(t)||r&&lp(p))break;if(nc(p))if(l=t.line,u=t.lineStart,d=t.lineIndent,Wa(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&&(E0(t,i,s,!1),qk(t,t.line-l),i=s=t.position,o=!1),Zd(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return E0(t,i,s,!1),t.result?!0:(t.kind=h,t.result=f,!1)}E(Cfe,"readPlainScalar");function wfe(t,e){var r,n,a;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=a=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(E0(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,a=t.position;else return!0;else nc(r)?(E0(t,n,a,!0),qk(t,Wa(t,!1,e)),n=a=t.position):t.position===t.lineStart&&mT(t)?Tr(t,"unexpected end of the document within a single quoted scalar"):(t.position++,a=t.position);Tr(t,"unexpected end of the stream within a single quoted scalar")}E(wfe,"readSingleQuotedScalar");function kfe(t,e){var r,n,a,i,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 E0(t,r,t.position,!0),t.position++,!0;if(o===92){if(E0(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),nc(o))Wa(t,!1,e);else if(o<256&&Sfe[o])t.result+=Tfe[o],t.position++;else if((s=_fe(o))>0){for(a=s,i=0;a>0;a--)o=t.input.charCodeAt(++t.position),(s=yfe(o))>=0?i=(i<<4)+s:Tr(t,"expected hexadecimal character");t.result+=Efe(i),t.position++}else Tr(t,"unknown escape sequence");r=n=t.position}else nc(o)?(E0(t,r,n,!0),qk(t,Wa(t,!1,e)),r=n=t.position):t.position===t.lineStart&&mT(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")}E(kfe,"readDoubleQuotedScalar");function Afe(t,e){var r=!0,n,a,i,s=t.tag,o,l=t.anchor,u,d,h,f,p,g=Object.create(null),m,v,y,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(Wa(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"),v=m=y=null,h=f=!1,b===63&&(u=t.input.charCodeAt(t.position+1),Ps(u)&&(h=f=!0,t.position++,Wa(t,!0,e))),n=t.line,a=t.lineStart,i=t.position,Mp(t,e,s6,!1,!0),v=t.tag,m=t.result,Wa(t,!0,e),b=t.input.charCodeAt(t.position),(f||t.line===n)&&b===58&&(h=!0,b=t.input.charCodeAt(++t.position),Wa(t,!0,e),Mp(t,e,s6,!1,!0),y=t.result),p?cp(t,o,g,v,m,y,n,a,i):h?o.push(cp(t,null,g,v,m,y,n,a,i)):o.push(m),Wa(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")}E(Afe,"readFlowCollection");function Rfe(t,e){var r,n,a=DR,i=!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===a?a=h===43?Zj:QVe:Tr(t,"repeat of a chomping mode identifier");else if((d=bfe(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(Zd(h)){do h=t.input.charCodeAt(++t.position);while(Zd(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!nc(h)&&h!==0)}for(;h!==0;){for(Gk(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndento&&(o=t.lineIndent),nc(h)){l++;continue}if(t.lineIndent=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:E(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:E(function(t){return t.toString(10)},"decimal"),hexadecimal:E(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"]}}),FVe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Vhe(t){return!(t===null||!FVe.test(t)||t[t.length-1]==="_")}E(Vhe,"resolveYamlFloat");function Whe(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)}E(Whe,"constructYamlFloat");var $Ve=/^[-+]?[0-9]+e/;function Khe(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(Si.isNegativeZero(t))return"-0.0";return r=t.toString(10),$Ve.test(r)?r.replace("e",".e"):r}E(Khe,"representYamlFloat");function Xhe(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Si.isNegativeZero(t))}E(Xhe,"isFloat");var zVe=new ds("tag:yaml.org,2002:float",{kind:"scalar",resolve:Vhe,construct:Whe,predicate:Xhe,represent:Khe,defaultStyle:"lowercase"}),jhe=LVe.extend({implicit:[MVe,PVe,BVe,zVe]}),UVe=jhe,Qhe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Zhe=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 Jhe(t){return t===null?!1:Qhe.exec(t)!==null||Zhe.exec(t)!==null}E(Jhe,"resolveYamlTimestamp");function efe(t){var e,r,n,a,i,s,o,l=0,u=null,d,h,f;if(e=Qhe.exec(t),e===null&&(e=Zhe.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(r,n,a));if(i=+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,a,i,s,o,l)),u&&f.setTime(f.getTime()-u),f}E(efe,"constructYamlTimestamp");function tfe(t){return t.toISOString()}E(tfe,"representYamlTimestamp");var GVe=new ds("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jhe,construct:efe,instanceOf:Date,represent:tfe});function rfe(t){return t==="<<"||t===null}E(rfe,"resolveYamlMerge");var qVe=new ds("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rfe}),dG=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function nfe(t){if(t===null)return!1;var e,r,n=0,a=t.length,i=dG;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8===0}E(nfe,"resolveYamlBinary");function afe(t){var e,r,n=t.replace(/[\r\n=]/g,""),a=n.length,i=dG,s=0,o=[];for(e=0;e>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|i.indexOf(n.charAt(e));return r=a%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)}E(afe,"constructYamlBinary");function ife(t){var e="",r=0,n,a,i=t.length,s=dG;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 a=i%3,a===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):a===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):a===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}E(ife,"representYamlBinary");function sfe(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}E(sfe,"isBinary");var YVe=new ds("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nfe,construct:afe,predicate:sfe,represent:ife}),HVe=Object.prototype.hasOwnProperty,VVe=Object.prototype.toString;function ofe(t){if(t===null)return!0;var e=[],r,n,a,i,s,o=t;for(r=0,n=o.length;r>10)+55296,(t-65536&1023)+56320)}E(Efe,"charFromCodepoint");function hG(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}E(hG,"setProperty");var Sfe=new Array(256),Tfe=new Array(256);for(uf=0;uf<256;uf++)Sfe[uf]=kP(uf)?1:0,Tfe[uf]=kP(uf);var uf;function xfe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ffe,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=[]}E(xfe,"State$1");function fG(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=kVe(r),new mo(e,r)}E(fG,"generateError");function Tr(t,e){throw fG(t,e)}E(Tr,"throwError");function e4(t,e){t.onWarning&&t.onWarning.call(null,fG(t,e))}E(e4,"throwWarning");var Jj={YAML:E(function(e,r,n){var a,i,s;e.version!==null&&Tr(e,"duplication of %YAML directive"),n.length!==1&&Tr(e,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),a===null&&Tr(e,"ill-formed argument of the YAML directive"),i=parseInt(a[1],10),s=parseInt(a[2],10),i!==1&&Tr(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&e4(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:E(function(e,r,n){var a,i;n.length!==2&&Tr(e,"TAG directive accepts exactly two arguments"),a=n[0],i=n[1],mfe.test(a)||Tr(e,"ill-formed tag handle (first argument) of the TAG directive"),hh.call(e.tagMap,a)&&Tr(e,'there is a previously declared suffix for "'+a+'" tag handle'),vfe.test(i)||Tr(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Tr(e,"tag prefix is malformed: "+i)}e.tagMap[a]=i},"handleTagDirective")};function E0(t,e,r,n){var a,i,s,o;if(e1&&(t.result+=Si.repeat(` +`,e-1))}E(qk,"writeFoldedLines");function Cfe(t,e,r){var n,a,i,s,o,l,u,d,h=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),Ps(p)||lp(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)&&(a=t.input.charCodeAt(t.position+1),Ps(a)||r&&lp(a)))return!1;for(t.kind="scalar",t.result="",i=s=t.position,o=!1;p!==0;){if(p===58){if(a=t.input.charCodeAt(t.position+1),Ps(a)||r&&lp(a))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),Ps(n))break}else{if(t.position===t.lineStart&&mT(t)||r&&lp(p))break;if(nc(p))if(l=t.line,u=t.lineStart,d=t.lineIndent,Wa(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&&(E0(t,i,s,!1),qk(t,t.line-l),i=s=t.position,o=!1),Zd(p)||(s=t.position+1),p=t.input.charCodeAt(++t.position)}return E0(t,i,s,!1),t.result?!0:(t.kind=h,t.result=f,!1)}E(Cfe,"readPlainScalar");function wfe(t,e){var r,n,a;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=a=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(E0(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,a=t.position;else return!0;else nc(r)?(E0(t,n,a,!0),qk(t,Wa(t,!1,e)),n=a=t.position):t.position===t.lineStart&&mT(t)?Tr(t,"unexpected end of the document within a single quoted scalar"):(t.position++,a=t.position);Tr(t,"unexpected end of the stream within a single quoted scalar")}E(wfe,"readSingleQuotedScalar");function kfe(t,e){var r,n,a,i,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 E0(t,r,t.position,!0),t.position++,!0;if(o===92){if(E0(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),nc(o))Wa(t,!1,e);else if(o<256&&Sfe[o])t.result+=Tfe[o],t.position++;else if((s=_fe(o))>0){for(a=s,i=0;a>0;a--)o=t.input.charCodeAt(++t.position),(s=yfe(o))>=0?i=(i<<4)+s:Tr(t,"expected hexadecimal character");t.result+=Efe(i),t.position++}else Tr(t,"unknown escape sequence");r=n=t.position}else nc(o)?(E0(t,r,n,!0),qk(t,Wa(t,!1,e)),r=n=t.position):t.position===t.lineStart&&mT(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")}E(kfe,"readDoubleQuotedScalar");function Afe(t,e){var r=!0,n,a,i,s=t.tag,o,l=t.anchor,u,d,h,f,p,g=Object.create(null),m,v,y,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(Wa(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"),v=m=y=null,h=f=!1,b===63&&(u=t.input.charCodeAt(t.position+1),Ps(u)&&(h=f=!0,t.position++,Wa(t,!0,e))),n=t.line,a=t.lineStart,i=t.position,Mp(t,e,s6,!1,!0),v=t.tag,m=t.result,Wa(t,!0,e),b=t.input.charCodeAt(t.position),(f||t.line===n)&&b===58&&(h=!0,b=t.input.charCodeAt(++t.position),Wa(t,!0,e),Mp(t,e,s6,!1,!0),y=t.result),p?cp(t,o,g,v,m,y,n,a,i):h?o.push(cp(t,null,g,v,m,y,n,a,i)):o.push(m),Wa(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")}E(Afe,"readFlowCollection");function Rfe(t,e){var r,n,a=DR,i=!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===a?a=h===43?Zj:ZVe:Tr(t,"repeat of a chomping mode identifier");else if((d=bfe(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(Zd(h)){do h=t.input.charCodeAt(++t.position);while(Zd(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!nc(h)&&h!==0)}for(;h!==0;){for(Gk(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndento&&(o=t.lineIndent),nc(h)){l++;continue}if(t.lineIndente)&&l!==0)Tr(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(v&&(s=t.line,o=t.lineStart,l=t.position),Mp(t,e,o6,!0,a)&&(v?g=t.result:m=t.result),v||(cp(t,h,f,p,g,m,s,o,l),p=g=m=null),Wa(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===i||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}E(Mp,"composeNode");function Lfe(t){var e=t.position,r,n,a,i=!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&&(Wa(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(i=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!Ps(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),a=[],n.length<1&&Tr(t,"directive name must not be less than one character in length");s!==0;){for(;Zd(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!nc(s));break}if(nc(s))break;for(r=t.position;s!==0&&!Ps(s);)s=t.input.charCodeAt(++t.position);a.push(t.input.slice(r,t.position))}s!==0&&Gk(t),hh.call(Jj,n)?Jj[n](t,n,a):e4(t,'unknown document directive "'+n+'"')}if(Wa(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,Wa(t,!0,-1)):i&&Tr(t,"directives end mark is expected"),Mp(t,t.lineIndent-1,o6,!1,!0),Wa(t,!0,-1),t.checkLineBreaks&&JVe.test(t.input.slice(e,t.position))&&e4(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&mT(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Wa(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var n=pG(t,r);if(typeof e!="function")return n;for(var a=0,i=n.length;ae)&&l!==0)Tr(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(v&&(s=t.line,o=t.lineStart,l=t.position),Mp(t,e,o6,!0,a)&&(v?g=t.result:m=t.result),v||(cp(t,h,f,p,g,m,s,o,l),p=g=m=null),Wa(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===i||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}E(Mp,"composeNode");function Lfe(t){var e=t.position,r,n,a,i=!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&&(Wa(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(i=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!Ps(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),a=[],n.length<1&&Tr(t,"directive name must not be less than one character in length");s!==0;){for(;Zd(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!nc(s));break}if(nc(s))break;for(r=t.position;s!==0&&!Ps(s);)s=t.input.charCodeAt(++t.position);a.push(t.input.slice(r,t.position))}s!==0&&Gk(t),hh.call(Jj,n)?Jj[n](t,n,a):e4(t,'unknown document directive "'+n+'"')}if(Wa(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,Wa(t,!0,-1)):i&&Tr(t,"directives end mark is expected"),Mp(t,t.lineIndent-1,o6,!1,!0),Wa(t,!0,-1),t.checkLineBreaks&&eWe.test(t.input.slice(e,t.position))&&e4(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&mT(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Wa(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var n=pG(t,r);if(typeof e!="function")return n;for(var a=0,i=n.length;a=55296&&r<=56319&&e+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}E(Mm,"codePointAt");function mG(t){var e=/^\n* /;return e.test(t)}E(mG,"needIndentIndicator");var Xfe=1,LP=2,jfe=3,Qfe=4,dm=5;function Zfe(t,e,r,n,a,i,s,o){var l,u=0,d=null,h=!1,f=!1,p=n!==-1,g=-1,m=Wfe(Mm(t,0))&&Kfe(Mm(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(u=Mm(t,l),!db(u))return dm;m=m&&DP(u,d,o),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=Mm(t,l),u===t4)h=!0,p&&(f=f||l-g-1>n&&t[g+1]!==" ",g=l);else if(!db(u))return dm;m=m&&DP(u,d,o),d=u}f=f||p&&l-g-1>n&&t[g+1]!==" "}return!h&&!f?m&&!s&&!a(t)?Xfe:i===r4?dm:LP:r>9&&mG(t)?dm:s?i===r4?dm:LP:f?Qfe:jfe}E(Zfe,"chooseScalarStyle");function Jfe(t,e,r,n,a){t.dump=(function(){if(e.length===0)return t.quotingType===r4?'""':"''";if(!t.noCompatMode&&(bWe.indexOf(e)!==-1||EWe.test(e)))return t.quotingType===r4?'"'+e+'"':"'"+e+"'";var i=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-i),o=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return Vfe(t,u)}switch(E(l,"testAmbiguity"),Zfe(e,o,t.indent,s,l,t.quotingType,t.forceQuotes&&!n,a)){case Xfe:return e;case LP:return"'"+e.replace(/'/g,"''")+"'";case jfe:return"|"+MP(e,t.indent)+PP(IP(e,i));case Qfe:return">"+MP(e,t.indent)+PP(IP(epe(e,s),i));case dm:return'"'+tpe(e)+'"';default:throw new mo("impossible error: invalid scalar style")}})()}E(Jfe,"writeScalar");function MP(t,e){var r=mG(t)?String(e):"",n=t[t.length-1]===` +`+Si.repeat(" ",t.indent*e)}E(c6,"generateNextLine");function Vfe(t,e){var r,n,a;for(r=0,n=t.implicitTypes.length;r=55296&&r<=56319&&e+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}E(Mm,"codePointAt");function mG(t){var e=/^\n* /;return e.test(t)}E(mG,"needIndentIndicator");var Xfe=1,LP=2,jfe=3,Qfe=4,dm=5;function Zfe(t,e,r,n,a,i,s,o){var l,u=0,d=null,h=!1,f=!1,p=n!==-1,g=-1,m=Wfe(Mm(t,0))&&Kfe(Mm(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(u=Mm(t,l),!db(u))return dm;m=m&&DP(u,d,o),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=Mm(t,l),u===t4)h=!0,p&&(f=f||l-g-1>n&&t[g+1]!==" ",g=l);else if(!db(u))return dm;m=m&&DP(u,d,o),d=u}f=f||p&&l-g-1>n&&t[g+1]!==" "}return!h&&!f?m&&!s&&!a(t)?Xfe:i===r4?dm:LP:r>9&&mG(t)?dm:s?i===r4?dm:LP:f?Qfe:jfe}E(Zfe,"chooseScalarStyle");function Jfe(t,e,r,n,a){t.dump=(function(){if(e.length===0)return t.quotingType===r4?'""':"''";if(!t.noCompatMode&&(EWe.indexOf(e)!==-1||SWe.test(e)))return t.quotingType===r4?'"'+e+'"':"'"+e+"'";var i=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-i),o=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return Vfe(t,u)}switch(E(l,"testAmbiguity"),Zfe(e,o,t.indent,s,l,t.quotingType,t.forceQuotes&&!n,a)){case Xfe:return e;case LP:return"'"+e.replace(/'/g,"''")+"'";case jfe:return"|"+MP(e,t.indent)+PP(IP(e,i));case Qfe:return">"+MP(e,t.indent)+PP(IP(epe(e,s),i));case dm:return'"'+tpe(e)+'"';default:throw new mo("impossible error: invalid scalar style")}})()}E(Jfe,"writeScalar");function MP(t,e){var r=mG(t)?String(e):"",n=t[t.length-1]===` `,a=n&&(t[t.length-2]===` `||t===` `),i=a?"+":n?"":"-";return r+i+` @@ -2713,13 +2718,13 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, `:"")+BP(l,e),a=i}return n}E(epe,"foldString");function BP(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,a=0,i,s=0,o=0,l="";n=r.exec(t);)o=n.index,o-a>e&&(i=s>a?s:o,l+=` `+t.slice(a,i),a=i+1),s=o;return l+=` `,t.length-a>e&&s>a?l+=t.slice(a,s)+` -`+t.slice(s+1):l+=t.slice(a),l.slice(1)}E(BP,"foldLine");function tpe(t){for(var e="",r=0,n,a=0;a=65536?a+=2:a++)r=Mm(t,a),n=ms[r],!n&&db(r)?(e+=t[a],r>=65536&&(e+=t[a+1])):e+=n||Yfe(r);return e}E(tpe,"escapeString");function rpe(t,e,r){var n="",a=t.tag,i,s,o;for(i=0,s=r.length;i"u"&&ou(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=a,t.dump="["+n+"]"}E(rpe,"writeFlowSequence");function FP(t,e,r,n){var a="",i=t.tag,s,o,l;for(s=0,o=r.length;s"u"&&ou(t,e+1,null,!0,!0,!1,!0))&&((!n||a!=="")&&(a+=c6(t,e)),t.dump&&t4===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=i,t.dump=a||"[]"}E(FP,"writeBlockSequence");function npe(t,e,r){var n="",a=t.tag,i=Object.keys(r),s,o,l,u,d;for(s=0,o=i.length;s1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ou(t,e,u,!1,!1)&&(d+=t.dump,n+=d));t.tag=a,t.dump="{"+n+"}"}E(npe,"writeFlowMapping");function ape(t,e,r,n){var a="",i=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 mo("sortKeys must be a boolean or a function");for(o=0,l=s.length;o1024,h&&(t.dump&&t4===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=c6(t,e)),ou(t,e+1,d,!0,h)&&(t.dump&&t4===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,a+=f));t.tag=i,t.dump=a||"{}"}E(ape,"writeBlockMapping");function $P(t,e,r){var n,a,i,s,o,l;for(a=r?t.explicitTypes:t.implicitTypes,i=0,s=a.length;i tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}E($P,"detectType");function ou(t,e,r,n,a,i,s){t.tag=null,t.dump=r,$P(t,r,!1)||$P(t,r,!0);var o=Pfe.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)&&(a=!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?(ape(t,e,t.dump,a),f&&(t.dump="&ref_"+h+t.dump)):(npe(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?FP(t,e-1,t.dump,a):FP(t,e,t.dump,a),f&&(t.dump="&ref_"+h+t.dump)):(rpe(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&Jfe(t,t.dump,e,i,l);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new mo("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}E(ou,"writeNode");function ipe(t,e){var r=[],n=[],a,i;for(u6(t,r,n),a=0,i=n.length;a{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"),ss={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},eQ={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function TE(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=ca(t),e=ca(e);const[r,n]=[t.x,t.y],[a,i]=[e.x,e.y],s=a-r,o=i-n;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}E(TE,"calculateDeltaAndAngle");var ca=E(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),spe=E(t=>({x:E(function(e,r,n){let a=0;const i=ca(n[0]).x=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(ss,t.arrowTypeEnd)){const{angle:p,deltaX:g}=TE(n[n.length-1],n[n.length-2]);a=ss[t.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const s=Math.abs(ca(e).x-ca(n[n.length-1]).x),o=Math.abs(ca(e).y-ca(n[n.length-1]).y),l=Math.abs(ca(e).x-ca(n[0]).x),u=Math.abs(ca(e).y-ca(n[0]).y),d=ss[t.arrowTypeStart],h=ss[t.arrowTypeEnd],f=1;if(s0&&o0&&u=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(ss,t.arrowTypeEnd)){const{angle:p,deltaY:g}=TE(n[n.length-1],n[n.length-2]);a=ss[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const s=Math.abs(ca(e).y-ca(n[n.length-1]).y),o=Math.abs(ca(e).x-ca(n[n.length-1]).x),l=Math.abs(ca(e).y-ca(n[0]).y),u=Math.abs(ca(e).x-ca(n[0]).x),d=ss[t.arrowTypeStart],h=ss[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 a(s){try{return decodeURIComponent(s)}catch{return s}}function i(s){if(!s)return t.BLANK_URL;var o,l=a(s.trim());do l=r(l).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),l=a(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 Bx}var ng=wWe();function kWe(t){return Number.isSafeInteger(t)&&t>=0}function ope(t){return t!=null&&typeof t!="function"&&kWe(t.length)}function AWe(t){return t==="__proto__"}function Vk(t){return t==null||typeof t!="object"&&typeof t!="function"}function lpe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function vT(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const vG="[object RegExp]",a4="[object String]",Wk="[object Number]",Kk="[object Boolean]",Xk="[object Arguments]",yG="[object Symbol]",_G="[object Date]",bG="[object Map]",EG="[object Set]",cpe="[object Array]",SG="[object ArrayBuffer]",TG="[object Object]",xG="[object DataView]",upe="[object Uint8Array]",dpe="[object Uint8ClampedArray]",hpe="[object Uint16Array]",fpe="[object Uint32Array]",ppe="[object Int8Array]",gpe="[object Int16Array]",mpe="[object Int32Array]",vpe="[object Float32Array]",ype="[object Float64Array]",nQ=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();function CG(t){return typeof nQ.Buffer<"u"&&nQ.Buffer.isBuffer(t)}function wG(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function RWe(t,e){return Pm(t,void 0,t,new Map,e)}function Pm(t,e,r,n=new Map,a=void 0){const i=a?.(t,e,r,n);if(i!==void 0)return i;if(Vk(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(vT(t)===TG&&typeof t.constructor!="function"){const s={};return i.set(t,s),Yl(s,t,a,i),s}switch(Object.prototype.toString.call(t)){case Wk:case a4:case Kk:{const s=new t.constructor(t?.valueOf());return Yl(s,t),s}case Xk:{const s={};return Yl(s,t),s.length=t.length,s[Symbol.iterator]=t[Symbol.iterator],s}default:return}}})}function aQ(t){return IWe(t)}function zP(t){return t!==null&&typeof t=="object"&&vT(t)==="[object Arguments]"}function UP(t){return typeof t=="object"&&t!==null}function OWe(t){return UP(t)&&ope(t)}function DWe(t){return Array.isArray(t)}function yT(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");const r=function(...a){const i=e?e.apply(this,a):a[0],s=r.cache;if(s.has(i))return s.get(i);const o=t.apply(this,a);return r.cache=s.set(i,o)||s,o},n=yT.Cache||Map;return r.cache=new n,r}yT.Cache=Map;function LWe(){}function MWe(t){const e=t?.constructor,r=typeof e=="function"?e.prototype:Object.prototype;return t===r}function lS(t){return wG(t)}function PWe(t){if(Vk(t))return t;const e=vT(t);if(!BWe(t))return{};if(DWe(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(lS(t)){const n=t,a=n.constructor;return new a(n.buffer,n.byteOffset,n.length)}if(e===SG)return new ArrayBuffer(t.byteLength);if(e===xG){const n=t,a=n.buffer,i=n.byteOffset,s=n.byteLength,o=new ArrayBuffer(s),l=new Uint8Array(a,i,s);return new Uint8Array(o).set(l),new DataView(o)}if(e===Kk||e===Wk||e===a4){const n=t.constructor,a=new n(t.valueOf());return e===a4?$We(a,t):LR(a,t),a}if(e===_G)return new Date(Number(t));if(e===vG){const n=t,a=new RegExp(n.source,n.flags);return a.lastIndex=n.lastIndex,a}if(e===yG)return Object(Symbol.prototype.valueOf.call(t));if(e===bG){const n=t,a=new Map;return n.forEach((i,s)=>{a.set(s,i)}),a}if(e===EG){const n=t,a=new Set;return n.forEach(i=>{a.add(i)}),a}if(e===Xk){const n=t,a={};return LR(a,n),a.length=n.length,a[Symbol.iterator]=n[Symbol.iterator],a}const r={};return zWe(r,t),LR(r,t),FWe(r,t),r}function BWe(t){switch(vT(t)){case Xk:case cpe:case SG:case xG:case Kk:case _G:case vpe:case ype:case ppe:case gpe:case mpe:case bG:case Wk:case TG:case vG:case EG:case a4:case yG:case upe:case dpe:case hpe:case fpe:return!0;default:return!1}}function LR(t,e){for(const r in e)Object.hasOwn(e,r)&&(t[r]=e[r])}function FWe(t,e){const r=Object.getOwnPropertySymbols(e);for(let n=0;n=r)&&(t[n]=e[n])}function zWe(t,e){const r=Object.getPrototypeOf(e);r!==null&&typeof e.constructor=="function"&&Object.setPrototypeOf(t,r)}function MR(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 UWe(t){if(Vk(t))return t;if(Array.isArray(t)||wG(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 GWe(t,...e){const r=e.slice(0,-1),n=e[e.length-1];let a=t;for(let i=0;ir!=="constructor").length===0:e.length===0}return!0}var _pe="​",YWe={curveBasis:JS,curveBasisClosed:hVe,curveBasisOpen:fVe,curveBumpX:ihe,curveBumpY:she,curveBundle:pVe,curveCardinalClosed:gVe,curveCardinalOpen:mVe,curveCardinal:uhe,curveCatmullRomClosed:vVe,curveCatmullRomOpen:yVe,curveCatmullRom:hhe,curveLinear:oS,curveLinearClosed:_Ve,curveMonotoneX:yhe,curveMonotoneY:_he,curveNatural:Ehe,curveStep:She,curveStepAfter:xhe,curveStepBefore:The},HWe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,VWe=E(function(t,e){const r=bpe(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(o=>o.args);MC(s),n=Va(n,[...s])}else n=r.args;if(!n)return;let a=zU(t,e);const i="config";return n[i]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),n[a]=n[i],delete n[i]),n},"detectInit"),bpe=E(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${HWe.source})(?=[}][%]{2}).* -`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),oe.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const a=[];for(;(n=aS.exec(t))!==null;)if(n.index===aS.lastIndex&&aS.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){const i=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;a.push({type:i,args:s})}return a.length===0?{type:t,args:null}:a.length===1?a[0]:a}catch(r){return oe.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),WWe=E(function(t){return t.replace(aS,"")},"removeDirectives"),KWe=E(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function kG(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return YWe[r]??e}E(kG,"interpolateToCurve");function Epe(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?ng.sanitizeUrl(r):r}E(Epe,"formatUrl");var XWe=E((t,...e)=>{const r=t.split("."),n=r.length-1,a=r[n];let i=window;for(let s=0;s{r+=AG(a,e),e=a});const n=r/2;return RG(t,n)}E(Spe,"traverseEdge");function Tpe(t){return t.length===1?t[0]:Spe(t)}E(Tpe,"calcLabelPosition");var sQ=E((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),RG=E((t,e)=>{let r,n=e;for(const a of t){if(r){const i=AG(a,r);if(i===0)return r;if(i=1)return{x:a.x,y:a.y};if(s>0&&s<1)return{x:sQ((1-s)*r.x+s*a.x,5),y:sQ((1-s)*r.y+s*a.y,5)}}}r=a}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),jWe=E((t,e,r)=>{oe.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const a=RG(e,25),i=t?10:5,s=Math.atan2(e[0].y-a.y,e[0].x-a.x),o={x:0,y:0};return o.x=Math.sin(s)*i+(e[0].x+a.x)/2,o.y=-Math.cos(s)*i+(e[0].y+a.y)/2,o},"calcCardinalityPosition");function xpe(t,e,r){const n=structuredClone(r);oe.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const a=25+t,i=RG(n,a),s=10+t*.5,o=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+i.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+i.y)/2):e==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+i.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+i.y)/2-5):e==="end_left"?(l.x=Math.sin(o)*s+(n[0].x+i.x)/2-5,l.y=-Math.cos(o)*s+(n[0].y+i.y)/2-5):(l.x=Math.sin(o)*s+(n[0].x+i.x)/2,l.y=-Math.cos(o)*s+(n[0].y+i.y)/2),l}E(xpe,"calcTerminalLabelPosition");function NG(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}}E(NG,"getStylesFromArray");var oQ=0,Cpe=E(()=>(oQ++,"id-"+Math.random().toString(36).substr(2,12)+"-"+oQ),"generateId");function wpe(t){let e="";const r="0123456789abcdef",n=r.length;for(let a=0;awpe(t.length),"random"),QWe=E(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"),ZWe=E(function(t,e){const r=e.text.replace(qt.lineBreakRegex," "),[,n]=X0(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",n),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),e.class!==void 0&&a.attr("class",e.class);const i=a.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.attr("fill",e.fill),i.text(r),a},"drawSimpleText"),cS=yT((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),a=[];let i="";return n.forEach((s,o)=>{const l=Gs(`${s} `,r),u=Gs(i,r);if(l>e){const{hyphenatedStrings:f,remainingWord:p}=JWe(s,e,"-",r);a.push(i,...f),i=p}else u+l>=e?(a.push(i),i=s):i=[i,s].filter(Boolean).join(" ");o+1===n.length&&a.push(i)}),a.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),JWe=yT((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const a=[...t],i=[];let s="";return a.forEach((o,l)=>{const u=`${s}${o}`;if(Gs(u,n)>=e){const h=l+1,f=a.length===h,p=`${u}${r}`;i.push(f?u:p),s=""}else s=u}),{hyphenatedStrings:i,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function d6(t,e){return jk(t,e).height}E(d6,"calculateTextHeight");function Gs(t,e){return jk(t,e).width}E(Gs,"calculateTextWidth");var jk=yT((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};const[,i]=X0(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 v=QWe();v.text=m||_pe;const y=ZWe(d,v).style("font-size",i).style("font-weight",a).style("font-family",f),b=(y._groups||y)[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}`),L1,eKe=(L1=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},E(L1,"InitIDGenerator"),L1),Fx,tKe=E(function(t){return Fx=Fx||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Fx.innerHTML=t,unescape(Fx.textContent)},"entityDecode");function IG(t){return"str"in t}E(IG,"isDetailedError");var rKe=E((t,e,r,n)=>{if(!n)return;const a=t.node()?.getBBox();a&&t.append("text").text(n).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)},"insertTitle"),X0=E(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 $a(t,e){return qWe({},t,e)}E($a,"cleanAndMerge");var Kr={assignWithDepth:Va,wrapLabel:cS,calculateTextHeight:d6,calculateTextWidth:Gs,calculateTextDimensions:jk,cleanAndMerge:$a,detectInit:VWe,detectDirective:bpe,isSubstringInArray:KWe,interpolateToCurve:kG,calcLabelPosition:Tpe,calcCardinalityPosition:jWe,calcTerminalLabelPosition:xpe,formatUrl:Epe,getStylesFromArray:NG,generateId:Cpe,random:kpe,runFunc:XWe,entityDecode:tKe,insertTitle:rKe,isLabelCoordinateInPath:Ape,parseFontSize:X0,InitIDGenerator:eKe},nKe=E(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"),R0=E(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),n1=E((t,e,{counter:r=0,prefix:n,suffix:a},i)=>i||`${n?`${n}_`:""}${t}_${e}_${r}${a?`_${a}`:""}`,"getEdgeId");function Fi(t){return t??null}E(Fi,"handleUndefinedAttr");function Ape(t,e){const r=Math.round(t.x),n=Math.round(t.y),a=e.replace(/(\d+\.\d+)/g,i=>Math.round(parseFloat(i)).toString());return a.includes(r.toString())||a.includes(n.toString())}E(Ape,"isLabelCoordinateInPath");var _T=E(({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 OG(t,e){const r=t.getElementsByTagName("img");if(!r||r.length===0)return;const n=e.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map(a=>new Promise(i=>{function s(){if(a.style.display="flex",a.style.flexDirection="column",n){const o=Ye().fontSize?Ye().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[u=ln.fontSize]=X0(o),d=u*l+"px";a.style.minWidth=d,a.style.maxWidth=d}else a.style.width="100%";i(a)}E(s,"setupImage"),setTimeout(()=>{a.complete&&s()}),a.addEventListener("error",s),a.addEventListener("load",s)})))}E(OG,"configureLabelImages");var aKe=E(t=>{const{handDrawnSeed:e}=Ye();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),e2=E(t=>{const e=iKe([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),iKe=E(t=>{const e=new Map;return t.forEach(r=>{const[n,a]=r.split(":");e.set(n.trim(),a?.trim())}),e},"styles2Map"),DG=E(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=E(t=>{const{stylesArray:e}=e2(t),r=[],n=[],a=[],i=[];return e.forEach(s=>{const o=s[0];DG(o)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),o.includes("stroke")&&a.push(s.join(":")+" !important"),o==="fill"&&i.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:i}},"styles2String"),mr=E((t,e)=>{const{themeVariables:r,handDrawnSeed:n}=Ye(),{nodeBorder:a,mainBkg:i}=r,{stylesMap:s}=e2(t);return Object.assign({roughness:.7,fill:s.get("fill")||i,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||a,seed:n,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:sKe(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),sKe=E(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const a=isNaN(e[0])?0:e[0];return[a,a]}const r=isNaN(e[0])?0:e[0],n=isNaN(e[1])?0:e[1];return[r,n]},"getStrokeDashArray");const oKe=Object.freeze({left:0,top:0,width:16,height:16}),h6=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Rpe=Object.freeze({...oKe,...h6}),lKe=Object.freeze({...Rpe,body:"",hidden:!1}),cKe=Object.freeze({width:null,height:null}),uKe=Object.freeze({...cKe,...h6}),dKe=(t,e,r,n="")=>{const a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const o=a.pop(),l=a.pop(),u={provider:a.length>0?a[0]:n,prefix:l,name:o};return PR(u)?u:null}const i=a[0],s=i.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:i};return PR(o,r)?o:null}return null},PR=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function hKe(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 lQ(t,e){const r=hKe(t,e);for(const n in lKe)n in h6?n in t&&!(n in r)&&(r[n]=h6[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function fKe(t,e){const r=t.icons,n=t.aliases||Object.create(null),a=Object.create(null);function i(s){if(r[s])return a[s]=[];if(!(s in a)){a[s]=null;const o=n[s]&&n[s].parent,l=o&&i(o);l&&(a[s]=[o].concat(l))}return a[s]}return(e||Object.keys(r).concat(Object.keys(n))).forEach(i),a}function cQ(t,e,r){const n=t.icons,a=t.aliases||Object.create(null);let i={};function s(o){i=lQ(n[o]||a[o],i)}return s(e),r.forEach(s),lQ(t,i)}function pKe(t,e){if(t.icons[e])return cQ(t,e,[]);const r=fKe(t,[e])[e];return r?cQ(t,e,r):null}const gKe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mKe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function uQ(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(gKe);if(n===null||!n.length)return t;const a=[];let i=n.shift(),s=mKe.test(i);for(;;){if(s){const o=parseFloat(i);isNaN(o)?a.push(i):a.push(Math.ceil(o*e*r)/r)}else a.push(i);if(i=n.shift(),i===void 0)return a.join("");s=!s}}function vKe(t,e="defs"){let r="";const n=t.indexOf("<"+e);for(;n>=0;){const a=t.indexOf(">",n),i=t.indexOf("",i);if(s===-1)break;r+=t.slice(a+1,i).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}function yKe(t,e){return t?""+t+""+e:e}function _Ke(t,e,r){const n=vKe(t);return yKe(n.defs,e+n.content+r)}const bKe=t=>t==="unset"||t==="undefined"||t==="none";function EKe(t,e){const r={...Rpe,...t},n={...uKe,...e},a={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(m=>{const v=[],y=m.hFlip,b=m.vFlip;let _=m.rotate;y?b?_+=2:(v.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),v.push("scale(-1 1)"),a.top=a.left=0):b&&(v.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),v.push("scale(1 -1)"),a.top=a.left=0);let S;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:S=a.height/2+a.top,v.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:v.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:S=a.width/2+a.left,v.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}_%2===1&&(a.left!==a.top&&(S=a.left,a.left=a.top,a.top=S),a.width!==a.height&&(S=a.width,a.width=a.height,a.height=S)),v.length&&(i=_Ke(i,'',""))});const s=n.width,o=n.height,l=a.width,u=a.height;let d,h;s===null?(h=o===null?"1em":o==="auto"?u:o,d=uQ(h,l/u)):(d=s==="auto"?l:s,h=o===null?uQ(d,u/l):o==="auto"?u:o);const f={},p=(m,v)=>{bKe(v)||(f[m]=v.toString())};p("width",d),p("height",h);const g=[a.left,a.top,l,u];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:i}}const SKe=/\sid="(\S+)"/g,dQ=new Map;function TKe(t){t=t.replace(/[0-9]+$/,"")||"a";const e=dQ.get(t)||0;return dQ.set(t,e+1),e?`${t}${e}`:t}function xKe(t){const e=[];let r;for(;r=SKe.exec(t);)e.push(r[1]);if(!e.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(a=>{const i=TKe(a),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+i+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}function CKe(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 ag=LG();function Npe(t){ag=t}var uS={exec:()=>null};function xn(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Bs.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var wKe=(()=>{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")},kKe=/^(?:[ \t]*(?:\n|$))+/,AKe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,RKe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bT=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,NKe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,MG=/(?:[*+-]|\d{1,9}[.)])/,Ipe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ope=xn(Ipe).replace(/bull/g,MG).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(),IKe=xn(Ipe).replace(/bull/g,MG).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(),PG=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,OKe=/^[^\n]+/,BG=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,DKe=xn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",BG).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),LKe=xn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,MG).getRegex(),Qk="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",FG=/|$))/,MKe=xn("^ {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",FG).replace("tag",Qk).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dpe=xn(PG).replace("hr",bT).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",Qk).getRegex(),PKe=xn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Dpe).getRegex(),$G={blockquote:PKe,code:AKe,def:DKe,fences:RKe,heading:NKe,hr:bT,html:MKe,lheading:Ope,list:LKe,newline:kKe,paragraph:Dpe,table:uS,text:OKe},hQ=xn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",bT).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",Qk).getRegex(),BKe={...$G,lheading:IKe,table:hQ,paragraph:xn(PG).replace("hr",bT).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hQ).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",Qk).getRegex()},FKe={...$G,html:xn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",FG).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:uS,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:xn(PG).replace("hr",bT).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",Ope).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$Ke=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,zKe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lpe=/^( {2,}|\\)\n(?!\s*$)/,UKe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",wKe?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Bpe=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,VKe=xn(Bpe,"u").replace(/punct/g,Zk).getRegex(),WKe=xn(Bpe,"u").replace(/punct/g,Ppe).getRegex(),Fpe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",KKe=xn(Fpe,"gu").replace(/notPunctSpace/g,Mpe).replace(/punctSpace/g,zG).replace(/punct/g,Zk).getRegex(),XKe=xn(Fpe,"gu").replace(/notPunctSpace/g,YKe).replace(/punctSpace/g,qKe).replace(/punct/g,Ppe).getRegex(),jKe=xn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Mpe).replace(/punctSpace/g,zG).replace(/punct/g,Zk).getRegex(),QKe=xn(/\\(punct)/,"gu").replace(/punct/g,Zk).getRegex(),ZKe=xn(/^<(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(),JKe=xn(FG).replace("(?:-->|$)","-->").getRegex(),eXe=xn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",JKe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),f6=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,tXe=xn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",f6).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$pe=xn(/^!?\[(label)\]\[(ref)\]/).replace("label",f6).replace("ref",BG).getRegex(),zpe=xn(/^!?\[(ref)\](?:\[\])?/).replace("ref",BG).getRegex(),rXe=xn("reflink|nolink(?!\\()","g").replace("reflink",$pe).replace("nolink",zpe).getRegex(),fQ=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,UG={_backpedal:uS,anyPunctuation:QKe,autolink:ZKe,blockSkip:HKe,br:Lpe,code:zKe,del:uS,emStrongLDelim:VKe,emStrongRDelimAst:KKe,emStrongRDelimUnd:jKe,escape:$Ke,link:tXe,nolink:zpe,punctuation:GKe,reflink:$pe,reflinkSearch:rXe,tag:eXe,text:UKe,url:uS},nXe={...UG,link:xn(/^!?\[(label)\]\((.*?)\)/).replace("label",f6).getRegex(),reflink:xn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",f6).getRegex()},GP={...UG,emStrongRDelimAst:XKe,emStrongLDelim:WKe,url:xn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fQ).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:xn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},pQ=t=>iXe[t];function Nc(t,e){if(e){if(Bs.escapeTest.test(t))return t.replace(Bs.escapeReplace,pQ)}else if(Bs.escapeTestNoEncode.test(t))return t.replace(Bs.escapeReplaceNoEncode,pQ);return t}function gQ(t){try{t=encodeURI(t).replace(Bs.percentDecode,"%")}catch{return null}return t}function mQ(t,e){let r=t.replace(Bs.findPipe,(i,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(Bs.splitPipe),a=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 vQ(t,e,r,n,a){let i=e.href,s=e.title||null,o=t[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function oXe(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let a=n[1];return e.split(` +`+t.slice(s+1):l+=t.slice(a),l.slice(1)}E(BP,"foldLine");function tpe(t){for(var e="",r=0,n,a=0;a=65536?a+=2:a++)r=Mm(t,a),n=ms[r],!n&&db(r)?(e+=t[a],r>=65536&&(e+=t[a+1])):e+=n||Yfe(r);return e}E(tpe,"escapeString");function rpe(t,e,r){var n="",a=t.tag,i,s,o;for(i=0,s=r.length;i"u"&&ou(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=a,t.dump="["+n+"]"}E(rpe,"writeFlowSequence");function FP(t,e,r,n){var a="",i=t.tag,s,o,l;for(s=0,o=r.length;s"u"&&ou(t,e+1,null,!0,!0,!1,!0))&&((!n||a!=="")&&(a+=c6(t,e)),t.dump&&t4===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=i,t.dump=a||"[]"}E(FP,"writeBlockSequence");function npe(t,e,r){var n="",a=t.tag,i=Object.keys(r),s,o,l,u,d;for(s=0,o=i.length;s1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ou(t,e,u,!1,!1)&&(d+=t.dump,n+=d));t.tag=a,t.dump="{"+n+"}"}E(npe,"writeFlowMapping");function ape(t,e,r,n){var a="",i=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 mo("sortKeys must be a boolean or a function");for(o=0,l=s.length;o1024,h&&(t.dump&&t4===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=c6(t,e)),ou(t,e+1,d,!0,h)&&(t.dump&&t4===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,a+=f));t.tag=i,t.dump=a||"{}"}E(ape,"writeBlockMapping");function $P(t,e,r){var n,a,i,s,o,l;for(a=r?t.explicitTypes:t.implicitTypes,i=0,s=a.length;i tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}E($P,"detectType");function ou(t,e,r,n,a,i,s){t.tag=null,t.dump=r,$P(t,r,!1)||$P(t,r,!0);var o=Pfe.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)&&(a=!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?(ape(t,e,t.dump,a),f&&(t.dump="&ref_"+h+t.dump)):(npe(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?FP(t,e-1,t.dump,a):FP(t,e,t.dump,a),f&&(t.dump="&ref_"+h+t.dump)):(rpe(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&Jfe(t,t.dump,e,i,l);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new mo("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}E(ou,"writeNode");function ipe(t,e){var r=[],n=[],a,i;for(u6(t,r,n),a=0,i=n.length;a{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"),ss={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},eQ={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function TE(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=ca(t),e=ca(e);const[r,n]=[t.x,t.y],[a,i]=[e.x,e.y],s=a-r,o=i-n;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}E(TE,"calculateDeltaAndAngle");var ca=E(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),spe=E(t=>({x:E(function(e,r,n){let a=0;const i=ca(n[0]).x=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(ss,t.arrowTypeEnd)){const{angle:p,deltaX:g}=TE(n[n.length-1],n[n.length-2]);a=ss[t.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const s=Math.abs(ca(e).x-ca(n[n.length-1]).x),o=Math.abs(ca(e).y-ca(n[n.length-1]).y),l=Math.abs(ca(e).x-ca(n[0]).x),u=Math.abs(ca(e).y-ca(n[0]).y),d=ss[t.arrowTypeStart],h=ss[t.arrowTypeEnd],f=1;if(s0&&o0&&u=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(ss,t.arrowTypeEnd)){const{angle:p,deltaY:g}=TE(n[n.length-1],n[n.length-2]);a=ss[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const s=Math.abs(ca(e).y-ca(n[n.length-1]).y),o=Math.abs(ca(e).x-ca(n[n.length-1]).x),l=Math.abs(ca(e).y-ca(n[0]).y),u=Math.abs(ca(e).x-ca(n[0]).x),d=ss[t.arrowTypeStart],h=ss[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 a(s){try{return decodeURIComponent(s)}catch{return s}}function i(s){if(!s)return t.BLANK_URL;var o,l=a(s.trim());do l=r(l).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),l=a(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 Bx}var ng=kWe();function AWe(t){return Number.isSafeInteger(t)&&t>=0}function ope(t){return t!=null&&typeof t!="function"&&AWe(t.length)}function RWe(t){return t==="__proto__"}function Vk(t){return t==null||typeof t!="object"&&typeof t!="function"}function lpe(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function vT(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const vG="[object RegExp]",a4="[object String]",Wk="[object Number]",Kk="[object Boolean]",Xk="[object Arguments]",yG="[object Symbol]",_G="[object Date]",bG="[object Map]",EG="[object Set]",cpe="[object Array]",SG="[object ArrayBuffer]",TG="[object Object]",xG="[object DataView]",upe="[object Uint8Array]",dpe="[object Uint8ClampedArray]",hpe="[object Uint16Array]",fpe="[object Uint32Array]",ppe="[object Int8Array]",gpe="[object Int16Array]",mpe="[object Int32Array]",vpe="[object Float32Array]",ype="[object Float64Array]",nQ=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();function CG(t){return typeof nQ.Buffer<"u"&&nQ.Buffer.isBuffer(t)}function wG(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function NWe(t,e){return Pm(t,void 0,t,new Map,e)}function Pm(t,e,r,n=new Map,a=void 0){const i=a?.(t,e,r,n);if(i!==void 0)return i;if(Vk(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(vT(t)===TG&&typeof t.constructor!="function"){const s={};return i.set(t,s),Yl(s,t,a,i),s}switch(Object.prototype.toString.call(t)){case Wk:case a4:case Kk:{const s=new t.constructor(t?.valueOf());return Yl(s,t),s}case Xk:{const s={};return Yl(s,t),s.length=t.length,s[Symbol.iterator]=t[Symbol.iterator],s}default:return}}})}function aQ(t){return OWe(t)}function zP(t){return t!==null&&typeof t=="object"&&vT(t)==="[object Arguments]"}function UP(t){return typeof t=="object"&&t!==null}function DWe(t){return UP(t)&&ope(t)}function LWe(t){return Array.isArray(t)}function yT(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");const r=function(...a){const i=e?e.apply(this,a):a[0],s=r.cache;if(s.has(i))return s.get(i);const o=t.apply(this,a);return r.cache=s.set(i,o)||s,o},n=yT.Cache||Map;return r.cache=new n,r}yT.Cache=Map;function MWe(){}function PWe(t){const e=t?.constructor,r=typeof e=="function"?e.prototype:Object.prototype;return t===r}function lS(t){return wG(t)}function BWe(t){if(Vk(t))return t;const e=vT(t);if(!FWe(t))return{};if(LWe(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(lS(t)){const n=t,a=n.constructor;return new a(n.buffer,n.byteOffset,n.length)}if(e===SG)return new ArrayBuffer(t.byteLength);if(e===xG){const n=t,a=n.buffer,i=n.byteOffset,s=n.byteLength,o=new ArrayBuffer(s),l=new Uint8Array(a,i,s);return new Uint8Array(o).set(l),new DataView(o)}if(e===Kk||e===Wk||e===a4){const n=t.constructor,a=new n(t.valueOf());return e===a4?zWe(a,t):LR(a,t),a}if(e===_G)return new Date(Number(t));if(e===vG){const n=t,a=new RegExp(n.source,n.flags);return a.lastIndex=n.lastIndex,a}if(e===yG)return Object(Symbol.prototype.valueOf.call(t));if(e===bG){const n=t,a=new Map;return n.forEach((i,s)=>{a.set(s,i)}),a}if(e===EG){const n=t,a=new Set;return n.forEach(i=>{a.add(i)}),a}if(e===Xk){const n=t,a={};return LR(a,n),a.length=n.length,a[Symbol.iterator]=n[Symbol.iterator],a}const r={};return UWe(r,t),LR(r,t),$We(r,t),r}function FWe(t){switch(vT(t)){case Xk:case cpe:case SG:case xG:case Kk:case _G:case vpe:case ype:case ppe:case gpe:case mpe:case bG:case Wk:case TG:case vG:case EG:case a4:case yG:case upe:case dpe:case hpe:case fpe:return!0;default:return!1}}function LR(t,e){for(const r in e)Object.hasOwn(e,r)&&(t[r]=e[r])}function $We(t,e){const r=Object.getOwnPropertySymbols(e);for(let n=0;n=r)&&(t[n]=e[n])}function UWe(t,e){const r=Object.getPrototypeOf(e);r!==null&&typeof e.constructor=="function"&&Object.setPrototypeOf(t,r)}function MR(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 GWe(t){if(Vk(t))return t;if(Array.isArray(t)||wG(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 qWe(t,...e){const r=e.slice(0,-1),n=e[e.length-1];let a=t;for(let i=0;ir!=="constructor").length===0:e.length===0}return!0}var _pe="​",HWe={curveBasis:JS,curveBasisClosed:fVe,curveBasisOpen:pVe,curveBumpX:ihe,curveBumpY:she,curveBundle:gVe,curveCardinalClosed:mVe,curveCardinalOpen:vVe,curveCardinal:uhe,curveCatmullRomClosed:yVe,curveCatmullRomOpen:_Ve,curveCatmullRom:hhe,curveLinear:oS,curveLinearClosed:bVe,curveMonotoneX:yhe,curveMonotoneY:_he,curveNatural:Ehe,curveStep:She,curveStepAfter:xhe,curveStepBefore:The},VWe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,WWe=E(function(t,e){const r=bpe(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(o=>o.args);MC(s),n=Va(n,[...s])}else n=r.args;if(!n)return;let a=zU(t,e);const i="config";return n[i]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),n[a]=n[i],delete n[i]),n},"detectInit"),bpe=E(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${VWe.source})(?=[}][%]{2}).* +`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),oe.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const a=[];for(;(n=aS.exec(t))!==null;)if(n.index===aS.lastIndex&&aS.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){const i=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;a.push({type:i,args:s})}return a.length===0?{type:t,args:null}:a.length===1?a[0]:a}catch(r){return oe.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),KWe=E(function(t){return t.replace(aS,"")},"removeDirectives"),XWe=E(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function kG(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return HWe[r]??e}E(kG,"interpolateToCurve");function Epe(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?ng.sanitizeUrl(r):r}E(Epe,"formatUrl");var jWe=E((t,...e)=>{const r=t.split("."),n=r.length-1,a=r[n];let i=window;for(let s=0;s{r+=AG(a,e),e=a});const n=r/2;return RG(t,n)}E(Spe,"traverseEdge");function Tpe(t){return t.length===1?t[0]:Spe(t)}E(Tpe,"calcLabelPosition");var sQ=E((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),RG=E((t,e)=>{let r,n=e;for(const a of t){if(r){const i=AG(a,r);if(i===0)return r;if(i=1)return{x:a.x,y:a.y};if(s>0&&s<1)return{x:sQ((1-s)*r.x+s*a.x,5),y:sQ((1-s)*r.y+s*a.y,5)}}}r=a}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),QWe=E((t,e,r)=>{oe.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const a=RG(e,25),i=t?10:5,s=Math.atan2(e[0].y-a.y,e[0].x-a.x),o={x:0,y:0};return o.x=Math.sin(s)*i+(e[0].x+a.x)/2,o.y=-Math.cos(s)*i+(e[0].y+a.y)/2,o},"calcCardinalityPosition");function xpe(t,e,r){const n=structuredClone(r);oe.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const a=25+t,i=RG(n,a),s=10+t*.5,o=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+i.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+i.y)/2):e==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+i.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+i.y)/2-5):e==="end_left"?(l.x=Math.sin(o)*s+(n[0].x+i.x)/2-5,l.y=-Math.cos(o)*s+(n[0].y+i.y)/2-5):(l.x=Math.sin(o)*s+(n[0].x+i.x)/2,l.y=-Math.cos(o)*s+(n[0].y+i.y)/2),l}E(xpe,"calcTerminalLabelPosition");function NG(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}}E(NG,"getStylesFromArray");var oQ=0,Cpe=E(()=>(oQ++,"id-"+Math.random().toString(36).substr(2,12)+"-"+oQ),"generateId");function wpe(t){let e="";const r="0123456789abcdef",n=r.length;for(let a=0;awpe(t.length),"random"),ZWe=E(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"),JWe=E(function(t,e){const r=e.text.replace(qt.lineBreakRegex," "),[,n]=X0(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",n),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),e.class!==void 0&&a.attr("class",e.class);const i=a.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.attr("fill",e.fill),i.text(r),a},"drawSimpleText"),cS=yT((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),a=[];let i="";return n.forEach((s,o)=>{const l=Gs(`${s} `,r),u=Gs(i,r);if(l>e){const{hyphenatedStrings:f,remainingWord:p}=eKe(s,e,"-",r);a.push(i,...f),i=p}else u+l>=e?(a.push(i),i=s):i=[i,s].filter(Boolean).join(" ");o+1===n.length&&a.push(i)}),a.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),eKe=yT((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const a=[...t],i=[];let s="";return a.forEach((o,l)=>{const u=`${s}${o}`;if(Gs(u,n)>=e){const h=l+1,f=a.length===h,p=`${u}${r}`;i.push(f?u:p),s=""}else s=u}),{hyphenatedStrings:i,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function d6(t,e){return jk(t,e).height}E(d6,"calculateTextHeight");function Gs(t,e){return jk(t,e).width}E(Gs,"calculateTextWidth");var jk=yT((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};const[,i]=X0(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 v=ZWe();v.text=m||_pe;const y=JWe(d,v).style("font-size",i).style("font-weight",a).style("font-family",f),b=(y._groups||y)[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}`),L1,tKe=(L1=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},E(L1,"InitIDGenerator"),L1),Fx,rKe=E(function(t){return Fx=Fx||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Fx.innerHTML=t,unescape(Fx.textContent)},"entityDecode");function IG(t){return"str"in t}E(IG,"isDetailedError");var nKe=E((t,e,r,n)=>{if(!n)return;const a=t.node()?.getBBox();a&&t.append("text").text(n).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)},"insertTitle"),X0=E(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 $a(t,e){return YWe({},t,e)}E($a,"cleanAndMerge");var Kr={assignWithDepth:Va,wrapLabel:cS,calculateTextHeight:d6,calculateTextWidth:Gs,calculateTextDimensions:jk,cleanAndMerge:$a,detectInit:WWe,detectDirective:bpe,isSubstringInArray:XWe,interpolateToCurve:kG,calcLabelPosition:Tpe,calcCardinalityPosition:QWe,calcTerminalLabelPosition:xpe,formatUrl:Epe,getStylesFromArray:NG,generateId:Cpe,random:kpe,runFunc:jWe,entityDecode:rKe,insertTitle:nKe,isLabelCoordinateInPath:Ape,parseFontSize:X0,InitIDGenerator:tKe},aKe=E(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"),R0=E(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),n1=E((t,e,{counter:r=0,prefix:n,suffix:a},i)=>i||`${n?`${n}_`:""}${t}_${e}_${r}${a?`_${a}`:""}`,"getEdgeId");function Fi(t){return t??null}E(Fi,"handleUndefinedAttr");function Ape(t,e){const r=Math.round(t.x),n=Math.round(t.y),a=e.replace(/(\d+\.\d+)/g,i=>Math.round(parseFloat(i)).toString());return a.includes(r.toString())||a.includes(n.toString())}E(Ape,"isLabelCoordinateInPath");var _T=E(({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 OG(t,e){const r=t.getElementsByTagName("img");if(!r||r.length===0)return;const n=e.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map(a=>new Promise(i=>{function s(){if(a.style.display="flex",a.style.flexDirection="column",n){const o=Ye().fontSize?Ye().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[u=ln.fontSize]=X0(o),d=u*l+"px";a.style.minWidth=d,a.style.maxWidth=d}else a.style.width="100%";i(a)}E(s,"setupImage"),setTimeout(()=>{a.complete&&s()}),a.addEventListener("error",s),a.addEventListener("load",s)})))}E(OG,"configureLabelImages");var iKe=E(t=>{const{handDrawnSeed:e}=Ye();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),e2=E(t=>{const e=sKe([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),sKe=E(t=>{const e=new Map;return t.forEach(r=>{const[n,a]=r.split(":");e.set(n.trim(),a?.trim())}),e},"styles2Map"),DG=E(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=E(t=>{const{stylesArray:e}=e2(t),r=[],n=[],a=[],i=[];return e.forEach(s=>{const o=s[0];DG(o)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),o.includes("stroke")&&a.push(s.join(":")+" !important"),o==="fill"&&i.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:i}},"styles2String"),mr=E((t,e)=>{const{themeVariables:r,handDrawnSeed:n}=Ye(),{nodeBorder:a,mainBkg:i}=r,{stylesMap:s}=e2(t);return Object.assign({roughness:.7,fill:s.get("fill")||i,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||a,seed:n,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:oKe(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),oKe=E(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const a=isNaN(e[0])?0:e[0];return[a,a]}const r=isNaN(e[0])?0:e[0],n=isNaN(e[1])?0:e[1];return[r,n]},"getStrokeDashArray");const lKe=Object.freeze({left:0,top:0,width:16,height:16}),h6=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Rpe=Object.freeze({...lKe,...h6}),cKe=Object.freeze({...Rpe,body:"",hidden:!1}),uKe=Object.freeze({width:null,height:null}),dKe=Object.freeze({...uKe,...h6}),hKe=(t,e,r,n="")=>{const a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const o=a.pop(),l=a.pop(),u={provider:a.length>0?a[0]:n,prefix:l,name:o};return PR(u)?u:null}const i=a[0],s=i.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:i};return PR(o,r)?o:null}return null},PR=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function fKe(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 lQ(t,e){const r=fKe(t,e);for(const n in cKe)n in h6?n in t&&!(n in r)&&(r[n]=h6[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function pKe(t,e){const r=t.icons,n=t.aliases||Object.create(null),a=Object.create(null);function i(s){if(r[s])return a[s]=[];if(!(s in a)){a[s]=null;const o=n[s]&&n[s].parent,l=o&&i(o);l&&(a[s]=[o].concat(l))}return a[s]}return(e||Object.keys(r).concat(Object.keys(n))).forEach(i),a}function cQ(t,e,r){const n=t.icons,a=t.aliases||Object.create(null);let i={};function s(o){i=lQ(n[o]||a[o],i)}return s(e),r.forEach(s),lQ(t,i)}function gKe(t,e){if(t.icons[e])return cQ(t,e,[]);const r=pKe(t,[e])[e];return r?cQ(t,e,r):null}const mKe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,vKe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function uQ(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(mKe);if(n===null||!n.length)return t;const a=[];let i=n.shift(),s=vKe.test(i);for(;;){if(s){const o=parseFloat(i);isNaN(o)?a.push(i):a.push(Math.ceil(o*e*r)/r)}else a.push(i);if(i=n.shift(),i===void 0)return a.join("");s=!s}}function yKe(t,e="defs"){let r="";const n=t.indexOf("<"+e);for(;n>=0;){const a=t.indexOf(">",n),i=t.indexOf("",i);if(s===-1)break;r+=t.slice(a+1,i).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}function _Ke(t,e){return t?""+t+""+e:e}function bKe(t,e,r){const n=yKe(t);return _Ke(n.defs,e+n.content+r)}const EKe=t=>t==="unset"||t==="undefined"||t==="none";function SKe(t,e){const r={...Rpe,...t},n={...dKe,...e},a={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(m=>{const v=[],y=m.hFlip,b=m.vFlip;let _=m.rotate;y?b?_+=2:(v.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),v.push("scale(-1 1)"),a.top=a.left=0):b&&(v.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),v.push("scale(1 -1)"),a.top=a.left=0);let S;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:S=a.height/2+a.top,v.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:v.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:S=a.width/2+a.left,v.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}_%2===1&&(a.left!==a.top&&(S=a.left,a.left=a.top,a.top=S),a.width!==a.height&&(S=a.width,a.width=a.height,a.height=S)),v.length&&(i=bKe(i,'',""))});const s=n.width,o=n.height,l=a.width,u=a.height;let d,h;s===null?(h=o===null?"1em":o==="auto"?u:o,d=uQ(h,l/u)):(d=s==="auto"?l:s,h=o===null?uQ(d,u/l):o==="auto"?u:o);const f={},p=(m,v)=>{EKe(v)||(f[m]=v.toString())};p("width",d),p("height",h);const g=[a.left,a.top,l,u];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:i}}const TKe=/\sid="(\S+)"/g,dQ=new Map;function xKe(t){t=t.replace(/[0-9]+$/,"")||"a";const e=dQ.get(t)||0;return dQ.set(t,e+1),e?`${t}${e}`:t}function CKe(t){const e=[];let r;for(;r=TKe.exec(t);)e.push(r[1]);if(!e.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(a=>{const i=xKe(a),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+i+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}function wKe(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 ag=LG();function Npe(t){ag=t}var uS={exec:()=>null};function xn(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Bs.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var kKe=(()=>{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")},AKe=/^(?:[ \t]*(?:\n|$))+/,RKe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,NKe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bT=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,IKe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,MG=/(?:[*+-]|\d{1,9}[.)])/,Ipe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ope=xn(Ipe).replace(/bull/g,MG).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(),OKe=xn(Ipe).replace(/bull/g,MG).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(),PG=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,DKe=/^[^\n]+/,BG=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,LKe=xn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",BG).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),MKe=xn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,MG).getRegex(),Qk="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",FG=/|$))/,PKe=xn("^ {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",FG).replace("tag",Qk).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dpe=xn(PG).replace("hr",bT).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",Qk).getRegex(),BKe=xn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Dpe).getRegex(),$G={blockquote:BKe,code:RKe,def:LKe,fences:NKe,heading:IKe,hr:bT,html:PKe,lheading:Ope,list:MKe,newline:AKe,paragraph:Dpe,table:uS,text:DKe},hQ=xn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",bT).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",Qk).getRegex(),FKe={...$G,lheading:OKe,table:hQ,paragraph:xn(PG).replace("hr",bT).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hQ).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",Qk).getRegex()},$Ke={...$G,html:xn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",FG).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:uS,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:xn(PG).replace("hr",bT).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Ope).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zKe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,UKe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lpe=/^( {2,}|\\)\n(?!\s*$)/,GKe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",kKe?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Bpe=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,WKe=xn(Bpe,"u").replace(/punct/g,Zk).getRegex(),KKe=xn(Bpe,"u").replace(/punct/g,Ppe).getRegex(),Fpe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",XKe=xn(Fpe,"gu").replace(/notPunctSpace/g,Mpe).replace(/punctSpace/g,zG).replace(/punct/g,Zk).getRegex(),jKe=xn(Fpe,"gu").replace(/notPunctSpace/g,HKe).replace(/punctSpace/g,YKe).replace(/punct/g,Ppe).getRegex(),QKe=xn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Mpe).replace(/punctSpace/g,zG).replace(/punct/g,Zk).getRegex(),ZKe=xn(/\\(punct)/,"gu").replace(/punct/g,Zk).getRegex(),JKe=xn(/^<(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(),eXe=xn(FG).replace("(?:-->|$)","-->").getRegex(),tXe=xn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",eXe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),f6=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,rXe=xn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",f6).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$pe=xn(/^!?\[(label)\]\[(ref)\]/).replace("label",f6).replace("ref",BG).getRegex(),zpe=xn(/^!?\[(ref)\](?:\[\])?/).replace("ref",BG).getRegex(),nXe=xn("reflink|nolink(?!\\()","g").replace("reflink",$pe).replace("nolink",zpe).getRegex(),fQ=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,UG={_backpedal:uS,anyPunctuation:ZKe,autolink:JKe,blockSkip:VKe,br:Lpe,code:UKe,del:uS,emStrongLDelim:WKe,emStrongRDelimAst:XKe,emStrongRDelimUnd:QKe,escape:zKe,link:rXe,nolink:zpe,punctuation:qKe,reflink:$pe,reflinkSearch:nXe,tag:tXe,text:GKe,url:uS},aXe={...UG,link:xn(/^!?\[(label)\]\((.*?)\)/).replace("label",f6).getRegex(),reflink:xn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",f6).getRegex()},GP={...UG,emStrongRDelimAst:jKe,emStrongLDelim:KKe,url:xn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fQ).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:xn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},pQ=t=>sXe[t];function Nc(t,e){if(e){if(Bs.escapeTest.test(t))return t.replace(Bs.escapeReplace,pQ)}else if(Bs.escapeTestNoEncode.test(t))return t.replace(Bs.escapeReplaceNoEncode,pQ);return t}function gQ(t){try{t=encodeURI(t).replace(Bs.percentDecode,"%")}catch{return null}return t}function mQ(t,e){let r=t.replace(Bs.findPipe,(i,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(Bs.splitPipe),a=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 vQ(t,e,r,n,a){let i=e.href,s=e.title||null,o=t[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function lXe(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let a=n[1];return e.split(` `).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(` `)}var p6=class{options;rules;lexer;constructor(e){this.options=e||ag}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:V2(n,` -`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],a=oXe(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:a}}}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 a=V2(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.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:V2(r[0],` +`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],a=lXe(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:a}}}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 a=V2(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.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:V2(r[0],` `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=V2(r[0],` `).split(` `),a="",i="",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));i.loose=h}if(i.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=V2(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=sXe(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 a=r[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],i=s[3])}else i=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),vQ(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.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 a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=r[a.toLowerCase()];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return vQ(n,i,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...a[0]].length-1,s,o,l=i,u=0,d=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+i);(a=d.exec(r))!=null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s)continue;if(o=[...s].length,a[3]||a[4]){l+=o;continue}else if((a[5]||a[6])&&i%3&&!((i+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);let h=[...a[0]][0].length,f=e.slice(0,i+a.index+h+o);if(Math.min(i,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," "),a=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&i&&(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,a;return r[2]==="@"?(n=r[1],a="mailto:"+n):(n=r[1],a=n),{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,a;if(r[2]==="@")n=r[0],a="mailto:"+n;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(i!==r[0]);n=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,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}}}},Kl=class qP{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ag,this.options.tokenizer=this.options.tokenizer||new p6,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:Bs,block:$x.normal,inline:H2.normal};this.options.pedantic?(r.block=$x.pedantic,r.inline=H2.pedantic):this.options.gfm&&(r.block=$x.gfm,this.options.breaks?r.inline=H2.breaks:r.inline=H2.gfm),this.tokenizer.rules=r}static get rules(){return{block:$x,inline:H2}}static lex(e,r){return new qP(r).lex(e)}static lexInline(e,r){return new qP(r).inlineTokens(e)}lex(e){e=e.replace(Bs.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=V2(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=oXe(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 a=r[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],i=s[3])}else i=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),vQ(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.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 a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=r[a.toLowerCase()];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return vQ(n,i,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...a[0]].length-1,s,o,l=i,u=0,d=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+i);(a=d.exec(r))!=null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s)continue;if(o=[...s].length,a[3]||a[4]){l+=o;continue}else if((a[5]||a[6])&&i%3&&!((i+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);let h=[...a[0]][0].length,f=e.slice(0,i+a.index+h+o);if(Math.min(i,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," "),a=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&i&&(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,a;return r[2]==="@"?(n=r[1],a="mailto:"+n):(n=r[1],a=n),{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,a;if(r[2]==="@")n=r[0],a="mailto:"+n;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(i!==r[0]);n=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,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}}}},Kl=class qP{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ag,this.options.tokenizer=this.options.tokenizer||new p6,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:Bs,block:$x.normal,inline:H2.normal};this.options.pedantic?(r.block=$x.pedantic,r.inline=H2.pedantic):this.options.gfm&&(r.block=$x.gfm,this.options.breaks?r.inline=H2.breaks:r.inline=H2.gfm),this.tokenizer.rules=r}static get rules(){return{block:$x,inline:H2}}static lex(e,r){return new qP(r).lex(e)}static lexInline(e,r){return new qP(r).inlineTokens(e)}lex(e){e=e.replace(Bs.carriageReturn,` `),this.blockTokens(e,this.tokens);for(let r=0;r(a=s.call({lexer:this},e,r))?(e=e.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let s=r.at(-1);a.raw.length===1&&s!==void 0?s.raw+=` `:r.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` `)?"":` @@ -2773,27 +2778,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`${Nc(e,!0)}`}br(e){return"
"}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,tokens:n}){let a=this.parser.parseInline(n),i=gQ(e);if(i===null)return a;e=i;let s='
",s}image({href:e,title:r,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let i=gQ(e);if(i===null)return Nc(n);e=i;let s=`${n}{let o=i[s].flat(1/0);n=n.concat(this.walkTokens(o,r))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=r.renderers[i.name];s?r.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[i.level];s?s.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),a.extensions=r),n.renderer){let i=this.defaults.renderer||new g6(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=n.renderer[o],u=i[o];i[o]=(...d)=>{let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h||""}}a.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new p6(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=n.tokenizer[o],u=i[o];i[o]=(...d)=>{let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h}}a.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new xE;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=n.hooks[o],u=i[o];xE.passThroughHooks.has(s)?i[o]=d=>{if(this.defaults.async&&xE.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(i,d);return u.call(i,f)})();let h=l.call(i,d);return u.call(i,h)}:i[o]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(i,d);return f===!1&&(f=await u.apply(i,d)),f})();let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h}}a.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;a.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return Kl.lex(e,r??this.defaults)}parser(e,r){return Xl.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let a={...n},i={...this.defaults,...a},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.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(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let o=i.hooks?await i.hooks.preprocess(r):r,l=await(i.hooks?await i.hooks.provideLexer():e?Kl.lex:Kl.lexInline)(o,i),u=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser():e?Xl.parse:Xl.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(s);try{i.hooks&&(r=i.hooks.preprocess(r));let o=(i.hooks?i.hooks.provideLexer():e?Kl.lex:Kl.lexInline)(r,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let l=(i.hooks?i.hooks.provideParser():e?Xl.parse:Xl.parseInline)(o,i);return i.hooks&&(l=i.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 a="

An error occurred:

"+Nc(n.message+"",!0)+"
";return r?Promise.resolve(a):a}if(r)return Promise.reject(n);throw n}}},Pp=new lXe;function Ln(t,e){return Pp.parse(t,e)}Ln.options=Ln.setOptions=function(t){return Pp.setOptions(t),Ln.defaults=Pp.defaults,Npe(Ln.defaults),Ln};Ln.getDefaults=LG;Ln.defaults=ag;Ln.use=function(...t){return Pp.use(...t),Ln.defaults=Pp.defaults,Npe(Ln.defaults),Ln};Ln.walkTokens=function(t,e){return Pp.walkTokens(t,e)};Ln.parseInline=Pp.parseInline;Ln.Parser=Xl;Ln.parser=Xl.parse;Ln.Renderer=g6;Ln.TextRenderer=GG;Ln.Lexer=Kl;Ln.lexer=Kl.lex;Ln.Tokenizer=p6;Ln.Hooks=xE;Ln.parse=Ln;Ln.options;Ln.setOptions;Ln.use;Ln.walkTokens;Ln.parseInline;Xl.parse;Kl.lex;function Upe(t){for(var e=[],r=1;r{let o=i[s].flat(1/0);n=n.concat(this.walkTokens(o,r))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=r.renderers[i.name];s?r.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[i.level];s?s.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),a.extensions=r),n.renderer){let i=this.defaults.renderer||new g6(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=n.renderer[o],u=i[o];i[o]=(...d)=>{let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h||""}}a.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new p6(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=n.tokenizer[o],u=i[o];i[o]=(...d)=>{let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h}}a.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new xE;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=n.hooks[o],u=i[o];xE.passThroughHooks.has(s)?i[o]=d=>{if(this.defaults.async&&xE.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(i,d);return u.call(i,f)})();let h=l.call(i,d);return u.call(i,h)}:i[o]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(i,d);return f===!1&&(f=await u.apply(i,d)),f})();let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h}}a.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;a.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return Kl.lex(e,r??this.defaults)}parser(e,r){return Xl.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let a={...n},i={...this.defaults,...a},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.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(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let o=i.hooks?await i.hooks.preprocess(r):r,l=await(i.hooks?await i.hooks.provideLexer():e?Kl.lex:Kl.lexInline)(o,i),u=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser():e?Xl.parse:Xl.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(s);try{i.hooks&&(r=i.hooks.preprocess(r));let o=(i.hooks?i.hooks.provideLexer():e?Kl.lex:Kl.lexInline)(r,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let l=(i.hooks?i.hooks.provideParser():e?Xl.parse:Xl.parseInline)(o,i);return i.hooks&&(l=i.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 a="

An error occurred:

"+Nc(n.message+"",!0)+"
";return r?Promise.resolve(a):a}if(r)return Promise.reject(n);throw n}}},Pp=new cXe;function Ln(t,e){return Pp.parse(t,e)}Ln.options=Ln.setOptions=function(t){return Pp.setOptions(t),Ln.defaults=Pp.defaults,Npe(Ln.defaults),Ln};Ln.getDefaults=LG;Ln.defaults=ag;Ln.use=function(...t){return Pp.use(...t),Ln.defaults=Pp.defaults,Npe(Ln.defaults),Ln};Ln.walkTokens=function(t,e){return Pp.walkTokens(t,e)};Ln.parseInline=Pp.parseInline;Ln.Parser=Xl;Ln.parser=Xl.parse;Ln.Renderer=g6;Ln.TextRenderer=GG;Ln.Lexer=Kl;Ln.lexer=Kl.lex;Ln.Tokenizer=p6;Ln.Hooks=xE;Ln.parse=Ln;Ln.options;Ln.setOptions;Ln.use;Ln.walkTokens;Ln.parseInline;Xl.parse;Kl.lex;function Upe(t){for(var e=[],r=1;r?',height:80,width:80},HP=new Map,qpe=new Map,Ype=E(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(oe.debug("Registering icon pack:",e.name),"loader"in e)qpe.set(e.name,e.loader);else if("icons"in e)HP.set(e.name,e.icons);else throw oe.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Hpe=E(async(t,e)=>{const r=dKe(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 a=HP.get(n);if(!a){const s=qpe.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{a={...await s(),prefix:n},HP.set(n,a)}catch(o){throw oe.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const i=pKe(a,r.name);if(!i)throw new Error(`Icon not found: ${t}`);return i},"getRegisteredIconData"),cXe=E(async t=>{try{return await Hpe(t),!0}catch{return!1}},"isIconAvailable"),fh=E(async(t,e,r)=>{let n;try{n=await Hpe(t,e?.fallbackPrefix)}catch(s){oe.error(s),n=Gpe}const a=EKe(n,e),i=CKe(xKe(a.body),{...a.attributes,...r});return dn(i,xr())},"getIconSVG");function Vpe(t,{markdownAutoWrap:e}){const n=t.replace(//g,` +`)),s+=h+n[l+1]}),s}var Gpe={body:'?',height:80,width:80},HP=new Map,qpe=new Map,Ype=E(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(oe.debug("Registering icon pack:",e.name),"loader"in e)qpe.set(e.name,e.loader);else if("icons"in e)HP.set(e.name,e.icons);else throw oe.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Hpe=E(async(t,e)=>{const r=hKe(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 a=HP.get(n);if(!a){const s=qpe.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{a={...await s(),prefix:n},HP.set(n,a)}catch(o){throw oe.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const i=gKe(a,r.name);if(!i)throw new Error(`Icon not found: ${t}`);return i},"getRegisteredIconData"),uXe=E(async t=>{try{return await Hpe(t),!0}catch{return!1}},"isIconAvailable"),fh=E(async(t,e,r)=>{let n;try{n=await Hpe(t,e?.fallbackPrefix)}catch(s){oe.error(s),n=Gpe}const a=SKe(n,e),i=wKe(CKe(a.body),{...a.attributes,...r});return dn(i,xr())},"getIconSVG");function Vpe(t,{markdownAutoWrap:e}){const n=t.replace(//g,` `).replace(/\n{2,}/g,` `);return Upe(n)}E(Vpe,"preprocessMarkdown");function Wpe(t){return t.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}E(Wpe,"nonMarkdownToLines");function Kpe(t,e={}){const r=Vpe(t,e),n=Ln.lexer(r),a=[[]];let i=0;function s(o,l="normal"){o.type==="text"?o.text.split(` `).forEach((d,h)=>{h!==0&&(i++,a.push([])),d.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&a[i].push({content:f,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(u=>{s(u,o.type)}):o.type==="html"&&a[i].push({content:o.text,type:"normal"})}return E(s,"processNode"),n.forEach(o=>{o.type==="paragraph"?o.tokens?.forEach(l=>{s(l)}):o.type==="html"?a[i].push({content:o.text,type:"normal"}):a[i].push({content:o.raw,type:"normal"})}),a}E(Kpe,"markdownToLines");function Xpe(t){return t?`

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

`:""}E(Xpe,"nonMarkdownToHTML");function jpe(t,{markdownAutoWrap:e}={}){const r=Ln.lexer(t);function n(a){return a.type==="text"?e===!1?a.text.replace(/\n */g,"
").replace(/ /g," "):a.text.replace(/\n */g,"
"):a.type==="strong"?`${a.tokens?.map(n).join("")}`:a.type==="em"?`${a.tokens?.map(n).join("")}`:a.type==="paragraph"?`

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

`:a.type==="space"?"":a.type==="html"?`${a.text}`:a.type==="escape"?a.text:(oe.warn(`Unsupported markdown: ${a.type}`),a.raw)}return E(n,"output"),r.map(n).join("")}E(jpe,"markdownToHTML");function Qpe(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}E(Qpe,"splitTextToChars");function Zpe(t,e){const r=Qpe(e.content);return qG(t,[],r,e.type)}E(Zpe,"splitWordToFitWidth");function qG(t,e,r,n){if(r.length===0)return[{content:e.join(""),type:n},{content:"",type:n}];const[a,...i]=r,s=[...e,a];return t([{content:s.join(""),type:n}])?qG(t,s,i,n):(e.length===0&&a&&(e.push(a),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}E(qG,"splitWordToFitWidthRecursion");function Jpe(t,e){if(t.some(({content:r})=>r.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return m6(t,e)}E(Jpe,"splitLineToFitWidth");function m6(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let a="";t[0].content===" "&&(a=" ",t.shift());const i=t.shift()??{content:" ",type:"normal"},s=[...n];if(a!==""&&s.push({content:a,type:"normal"}),s.push(i),e(s))return m6(t,e,r,s);if(n.length>0)r.push(n),t.unshift(i);else if(i.content){const[o,l]=Zpe(e,i);r.push([o]),l.content&&t.unshift(l)}return m6(t,e,r)}E(m6,"splitLineToFitWidthRecursion");function VP(t,e){e&&t.attr("style",e)}E(VP,"applyStyle");var yQ=16384;async function ege(t,e,r,n,a=!1,i=xr()){const s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,yQ)}px`),s.attr("height",`${Math.min(10*r,yQ)}px`);const o=s.append("xhtml:div"),l=Xa(e.label)?await Dk(e.label.replace(qt.lineBreakRegex,` -`),i):dn(e.label,i),u=e.isNode?"nodeLabel":"edgeLabel",d=o.append("span");d.html(l),VP(d,e.labelStyle),d.attr("class",`${u} ${n}`),VP(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"),a&&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()}E(ege,"addHtmlSpan");function Jk(t,e,r,n=!1){const a=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&a.attr("text-anchor","middle"),a}E(Jk,"createTspan");function tge(t,e,r){const n=t.append("text"),a=Jk(n,1,e);e7(a,r);const i=a.node().getComputedTextLength();return n.remove(),i}E(tge,"computeWidthOfText");function rge(t,e,r){const n=t.append("text"),a=Jk(n,1,e);e7(a,[{content:r,type:"normal"}]);const i=a.node()?.getBoundingClientRect();return i&&n.remove(),i}E(rge,"computeDimensionOfText");function nge(t,e,r,n=!1,a=!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");a&&l.attr("text-anchor","middle");let u=0;for(const d of r){const h=E(p=>tge(s,1.1,p)<=t,"checkWidth"),f=h(d)?[d]:Jpe(d,h);for(const p of f){const g=Jk(l,u,1.1,a);e7(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()}E(nge,"createFormattedText");function WP(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}})}E(WP,"decodeHTMLEntities");function e7(t,e){t.text(""),e.forEach((r,n)=>{const a=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?a.text(WP(r.content)):a.text(" "+WP(r.content))})}E(e7,"updateTextContentAndStyles");async function age(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(a,i,s)=>(r.push((async()=>{const o=`${i}:${s}`;return await cXe(o)?await fh(o,void 0,{class:"label-icon"}):``})()),a));const n=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}E(age,"replaceIconSubstring");var eo=E(async(t,e="",{style:r="",isTitle:n=!1,classes:a="",useHtmlLabels:i=!0,markdown:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},d)=>{if(oe.debug("XYZ createText",e,r,n,a,i,o,"addSvgBackground: ",u),i){const h=s?jpe(e,d):Xpe(e),f=await age(R0(h),d),p=e.replace(/\\\\/g,"\\"),g={isNode:o,label:Xa(e)?p:f,labelStyle:r.replace("fill:","color:")};return await ege(t,g,l,a,u,d)}else{const h=R0(e.replace(//g,"
")),f=s?Kpe(h.replace("
","
"),d):Wpe(h),p=nge(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 BR(t,e,r){if(t&&t.length){const[n,a]=e,i=Math.PI/180*r,s=Math.cos(i),o=Math.sin(i);for(const l of t){const[u,d]=l;l[0]=(u-n)*s-(d-a)*o+n,l[1]=(u-n)*o+(d-a)*s+a}}}function uXe(t,e){return t[0]===e[0]&&t[1]===e[1]}function dXe(t,e,r,n=1){const a=r,i=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,o=[0,0];if(a)for(const u of s)BR(u,o,a);const l=(function(u,d,h){const f=[];for(const b of u){const _=[...b];uXe(_[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=[],v=g[0].ymin,y=0;for(;m.length||g.length;){if(g.length){let b=-1;for(let _=0;_v);_++)b=_;g.splice(0,b+1).forEach((_=>{m.push({s:v,edge:_})}))}if(m=m.filter((b=>!(b.edge.ymax<=v))),m.sort(((b,_)=>b.edge.x===_.edge.x?0:(b.edge.x-_.edge.x)/Math.abs(b.edge.x-_.edge.x))),(h!==1||y%d==0)&&m.length>1)for(let b=0;b=m.length)break;const S=m[b].edge,x=m[_].edge;p.push([[Math.round(S.x),v],[Math.round(x.x),v]])}v+=h,m.forEach((b=>{b.edge.x=b.edge.x+h*b.edge.islope})),y++}return p})(s,i,n);if(a){for(const u of s)BR(u,o,-a);(function(u,d,h){const f=[];u.forEach((p=>f.push(...p))),BR(f,d,h)})(l,o,-a)}return l}function ET(t,e){var r;const n=e.hachureAngle+90;let a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let i=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(i=a),dXe(t,a,n,i||1)}class YG{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const n=ET(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){const n=[];for(const a of e)n.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],r));return n}}function t7(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 hXe extends YG{fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const a=ET(e,Object.assign({},r,{hachureGap:n})),i=Math.PI/180*r.hachureAngle,s=[],o=.5*n*Math.cos(i),l=.5*n*Math.sin(i);for(const[u,d]of a)t7([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 fXe extends YG{fillPolygons(e,r){const n=this._fillPolygons(e,r),a=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),i=this._fillPolygons(e,a);return n.ops=n.ops.concat(i.ops),n}}let pXe=class{constructor(e){this.helper=e}fillPolygons(e,r){const n=ET(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){const n=[];let a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,.1);let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const s=a/4;for(const o of e){const l=t7(o),u=l/a,d=Math.ceil(u)-1,h=l-d*a,f=(o[0][0]+o[1][0])/2-a/4,p=Math.min(o[0][1],o[1][1]);for(let g=0;g{const o=t7(s),l=Math.floor(o/(n+a)),u=(o+a-l*(n+a))/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=t7(i),o=Math.round(s/(2*r));let l=i[0],u=i[1];l[0]>u[0]&&(l=i[1],u=i[0]);const d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let h=0;hd%2?u+r:u+e));i.push({key:"C",data:l}),e=l[4],r=l[5];break}case"Q":i.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));i.push({key:"Q",data:l}),e=l[2],r=l[3];break}case"A":i.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],i.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":i.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],i.push({key:"H",data:[e]});break;case"V":i.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],i.push({key:"V",data:[r]});break;case"S":i.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));i.push({key:"S",data:l}),e=l[2],r=l[3];break}case"T":i.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],i.push({key:"T",data:[e,r]});break;case"Z":case"z":i.push({key:"Z",data:[]}),e=n,r=a}return i}function sge(t){const e=[];let r="",n=0,a=0,i=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,a]=d,[i,s]=d;break;case"C":e.push({key:"C",data:[...d]}),n=d[4],a=d[5],o=d[2],l=d[3];break;case"L":e.push({key:"L",data:[...d]}),[n,a]=d;break;case"H":n=d[0],e.push({key:"L",data:[n,a]});break;case"V":a=d[0],e.push({key:"L",data:[n,a]});break;case"S":{let h=0,f=0;r==="C"||r==="S"?(h=n+(n-o),f=a+(a-l)):(h=n,f=a),e.push({key:"C",data:[h,f,...d]}),o=d[0],l=d[1],n=d[2],a=d[3];break}case"T":{const[h,f]=d;let p=0,g=0;r==="Q"||r==="T"?(p=n+(n-o),g=a+(a-l)):(p=n,g=a);const m=n+2*(p-n)/3,v=a+2*(g-a)/3,y=h+2*(p-h)/3,b=f+2*(g-f)/3;e.push({key:"C",data:[m,v,y,b,h,f]}),o=p,l=g,n=h,a=f;break}case"Q":{const[h,f,p,g]=d,m=n+2*(h-n)/3,v=a+2*(f-a)/3,y=p+2*(h-p)/3,b=g+2*(f-g)/3;e.push({key:"C",data:[m,v,y,b,p,g]}),o=h,l=f,n=p,a=g;break}case"A":{const h=Math.abs(d[0]),f=Math.abs(d[1]),p=d[2],g=d[3],m=d[4],v=d[5],y=d[6];h===0||f===0?(e.push({key:"C",data:[n,a,v,y,v,y]}),n=v,a=y):(n!==v||a!==y)&&(oge(n,a,v,y,h,f,p,g,m).forEach((function(b){e.push({key:"C",data:b})})),n=v,a=y);break}case"Z":e.push({key:"Z",data:[]}),n=i,a=s}r=u}return e}function W2(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function oge(t,e,r,n,a,i,s,o,l,u){const d=(h=s,Math.PI*h/180);var h;let f=[],p=0,g=0,m=0,v=0;if(u)[p,g,m,v]=u;else{[t,e]=W2(t,e,-d),[r,n]=W2(r,n,-d);const F=(t-r)/2,A=(e-n)/2;let I=F*F/(a*a)+A*A/(i*i);I>1&&(I=Math.sqrt(I),a*=I,i*=I);const D=a*a,L=i*i,N=D*L-D*A*A-L*F*F,P=D*A*A+L*F*F,z=(o===l?-1:1)*Math.sqrt(Math.abs(N/P));m=z*a*A/i+(t+r)/2,v=z*-i*F/a+(e+n)/2,p=Math.asin(parseFloat(((e-v)/i).toFixed(9))),g=Math.asin(parseFloat(((n-v)/i).toFixed(9))),tg&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let y=g-p;if(Math.abs(y)>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=oge(r=m+a*Math.cos(g),n=v+i*Math.sin(g),A,I,a,i,s,0,l,[g,F,m,v])}y=g-p;const b=Math.cos(p),_=Math.sin(p),S=Math.cos(g),x=Math.sin(g),C=Math.tan(y/4),T=4/3*a*C,w=4/3*i*C,R=[t,e],O=[t+T*_,e-w*b],M=[r+T*x,n-w*S],$=[r,n];if(O[0]=2*R[0]-O[0],O[1]=2*R[1]-O[1],u)return[O,M,$].concat(f);{f=[O,M,$].concat(f);const F=[];for(let A=0;A2){const a=[];for(let i=0;i2*Math.PI&&(p=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,v=Math.min(m/2,(g-p)/2),y=CQ(v,u,d,h,f,p,g,1,l);if(!l.disableMultiStroke){const b=CQ(v,u,d,h,f,p,g,1.5,l);y.push(...b)}return s&&(o?y.push(...ph(u,d,u+h*Math.cos(p),d+f*Math.sin(p),l),...ph(u,d,u+h*Math.cos(g),d+f*Math.sin(g),l)):y.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+h*Math.cos(p),d+f*Math.sin(p)]})),{type:"path",ops:y}}function SQ(t,e){const r=sge(ige(HG(t))),n=[];let a=[0,0],i=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":i=[o[0],o[1]],a=[o[0],o[1]];break;case"L":n.push(...ph(i[0],i[1],o[0],o[1],e)),i=[o[0],o[1]];break;case"C":{const[l,u,d,h,f,p]=o;n.push(...EXe(l,u,d,h,f,p,i,e)),i=[f,p];break}case"Z":n.push(...ph(i[0],i[1],a[0],a[1],e)),i=[a[0],a[1]]}return{type:"path",ops:n}}function zR(t,e){const r=[];for(const n of t)if(n.length){const a=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+Fr(a,e),n[0][1]+Fr(a,e)]});for(let s=1;s500?.4:-.0016668*l+1.233334;let d=a.maxRandomnessOffset||0;d*d*100>o&&(d=l/10);const h=d/2,f=.2+.2*uge(a);let p=a.bowing*a.maxRandomnessOffset*(n-e)/200,g=a.bowing*a.maxRandomnessOffset*(t-r)/200;p=Fr(p,a,u),g=Fr(g,a,u);const m=[],v=()=>Fr(h,a,u),y=()=>Fr(d,a,u),b=a.preserveVertices;return s?m.push({op:"move",data:[t+(b?0:v()),e+(b?0:v())]}):m.push({op:"move",data:[t+(b?0:Fr(d,a,u)),e+(b?0:Fr(d,a,u))]}),s?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.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}function Ux(t,e,r){if(!t.length)return[];const n=[];n.push([t[0][0]+Fr(e,r),t[0][1]+Fr(e,r)]),n.push([t[0][0]+Fr(e,r),t[0][1]+Fr(e,r)]);for(let a=1;a3){const i=[],s=1-r.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let o=1;o+21&&a.push(o)):a.push(o),a.push(t[e+3])}else{const l=t[e+0],u=t[e+1],d=t[e+2],h=t[e+3],f=Af(l,u,.5),p=Af(u,d,.5),g=Af(d,h,.5),m=Af(f,p,.5),v=Af(p,g,.5),y=Af(m,v,.5);jP([l,f,m,y],0,r,a),jP([y,v,g,h],0,r,a)}var i,s;return a}function TXe(t,e){return _6(t,0,t.length,e)}function _6(t,e,r,n,a){const i=a||[],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?(_6(t,e,u+1,n,i),_6(t,u,r,n,i)):(i.length||i.push(s),i.push(o)),i}function UR(t,e=.15,r){const n=[],a=(t.length-1)/3;for(let i=0;i0?_6(n,0,n.length,r):n}const No="none";class b6{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,a,i){const s=this._o(i);return this._d("line",[lge(e,r,n,a,s)],s)}rectangle(e,r,n,a,i){const s=this._o(i),o=[],l=bXe(e,r,n,a,s);if(s.fill){const u=[[e,r],[e+n,r],[e+n,r+a],[e,r+a]];s.fillStyle==="solid"?o.push(zR([u],s)):o.push(qg([u],s))}return s.stroke!==No&&o.push(l),this._d("rectangle",o,s)}ellipse(e,r,n,a,i){const s=this._o(i),o=[],l=cge(n,a,s),u=KP(e,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const d=KP(e,r,s,l).opset;d.type="fillPath",o.push(d)}else o.push(qg([u.estimatedPoints],s));return s.stroke!==No&&o.push(u.opset),this._d("ellipse",o,s)}circle(e,r,n,a){const i=this.ellipse(e,r,n,n,a);return i.shape="circle",i}linearPath(e,r){const n=this._o(r);return this._d("linearPath",[h5(e,!1,n)],n)}arc(e,r,n,a,i,s,o=!1,l){const u=this._o(l),d=[],h=EQ(e,r,n,a,i,s,o,!0,u);if(o&&u.fill)if(u.fillStyle==="solid"){const f=Object.assign({},u);f.disableMultiStroke=!0;const p=EQ(e,r,n,a,i,s,!0,!1,f);p.type="fillPath",d.push(p)}else d.push((function(f,p,g,m,v,y,b){const _=f,S=p;let x=Math.abs(g/2),C=Math.abs(m/2);x+=Fr(.01*x,b),C+=Fr(.01*C,b);let T=v,w=y;for(;T<0;)T+=2*Math.PI,w+=2*Math.PI;w-T>2*Math.PI&&(T=0,w=2*Math.PI);const R=(w-T)/b.curveStepCount,O=[];for(let M=T;M<=w;M+=R)O.push([_+x*Math.cos(M),S+C*Math.sin(M)]);return O.push([_+x*Math.cos(w),S+C*Math.sin(w)]),O.push([_,S]),qg([O],b)})(e,r,n,a,i,s,u));return u.stroke!==No&&d.push(h),this._d("arc",d,u)}curve(e,r){const n=this._o(r),a=[],i=bQ(e,n);if(n.fill&&n.fill!==No)if(n.fillStyle==="solid"){const s=bQ(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));a.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(...UR(wQ([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):s.push(...UR(wQ(u),10,(1+n.roughness)/2))}s.length&&a.push(qg([s],n))}return n.stroke!==No&&a.push(i),this._d("curve",a,n)}polygon(e,r){const n=this._o(r),a=[],i=h5(e,!0,n);return n.fill&&(n.fillStyle==="solid"?a.push(zR([e],n)):a.push(qg([e],n))),n.stroke!==No&&a.push(i),this._d("polygon",a,n)}path(e,r){const n=this._o(r),a=[];if(!e)return this._d("path",a,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&n.fill!=="transparent"&&n.fill!==No,s=n.stroke!==No,o=!!(n.simplification&&n.simplification<1),l=(function(d,h,f){const p=sge(ige(HG(d))),g=[];let m=[],v=[0,0],y=[];const b=()=>{y.length>=4&&m.push(...UR(y,h)),y=[]},_=()=>{b(),m.length&&(g.push(m),m=[])};for(const{key:x,data:C}of p)switch(x){case"M":_(),v=[C[0],C[1]],m.push(v);break;case"L":b(),m.push([C[0],C[1]]);break;case"C":if(!y.length){const T=m.length?m[m.length-1]:v;y.push([T[0],T[1]])}y.push([C[0],C[1]]),y.push([C[2],C[3]]),y.push([C[4],C[5]]);break;case"Z":b(),m.push([v[0],v[1]])}if(_(),!f)return g;const S=[];for(const x of g){const C=TXe(x,f);C.length&&S.push(C)}return S})(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),u=SQ(e,n);if(i)if(n.fillStyle==="solid")if(l.length===1){const d=SQ(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else a.push(zR(l,n));else a.push(qg(l,n));return s&&(o?l.forEach((d=>{a.push(h5(d,!1,n))})):a.push(u)),this._d("path",a,n)}opsToPath(e,r){let n="";for(const a of e.ops){const i=typeof r=="number"&&r>=0?a.data.map((s=>+s.toFixed(r))):a.data;switch(a.op){case"move":n+=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `}}return n.trim()}toPaths(e){const r=e.sets||[],n=e.options||this.defaultOptions,a=[];for(const i of r){let s=null;switch(i.type){case"path":s={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:No};break;case"fillPath":s={d:this.opsToPath(i),stroke:No,strokeWidth:0,fill:n.fill||No};break;case"fillSketch":s=this.fillSketch(i,n)}s&&a.push(s)}return a}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||No,strokeWidth:n,fill:No}}_mergedShape(e){return e.filter(((r,n)=>n===0||r.op!=="move"))}}class xXe{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new b6(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),a=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":a.save(),a.strokeStyle=n.stroke==="none"?"transparent":n.stroke,a.lineWidth=n.strokeWidth,n.strokeLineDash&&a.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(a.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(a,s,i),a.restore();break;case"fillPath":{a.save(),a.fillStyle=n.fill||"";const o=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,s,i,o),a.restore();break}case"fillSketch":this.fillSketch(a,s,n)}}fillSketch(e,r,n){let a=n.fillWeight;a<0&&(a=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=a,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,a="nonzero"){e.beginPath();for(const i of r.ops){const s=typeof n=="number"&&n>=0?i.data.map((o=>+o.toFixed(n))):i.data;switch(i.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(a):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,a,i){const s=this.gen.line(e,r,n,a,i);return this.draw(s),s}rectangle(e,r,n,a,i){const s=this.gen.rectangle(e,r,n,a,i);return this.draw(s),s}ellipse(e,r,n,a,i){const s=this.gen.ellipse(e,r,n,a,i);return this.draw(s),s}circle(e,r,n,a){const i=this.gen.circle(e,r,n,a);return this.draw(i),i}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,a,i,s,o=!1,l){const u=this.gen.arc(e,r,n,a,i,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 Gx="http://www.w3.org/2000/svg";class CXe{constructor(e,r){this.svg=e,this.gen=new b6(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,i=a.createElementNS(Gx,"g"),s=e.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=a.createElementNS(Gx,"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=a.createElementNS(Gx,"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(a,o,n)}l&&i.appendChild(l)}return i}fillSketch(e,r,n){let a=n.fillWeight;a<0&&(a=n.strokeWidth/2);const i=e.createElementNS(Gx,"path");return i.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",a+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,a,i){const s=this.gen.line(e,r,n,a,i);return this.draw(s)}rectangle(e,r,n,a,i){const s=this.gen.rectangle(e,r,n,a,i);return this.draw(s)}ellipse(e,r,n,a,i){const s=this.gen.ellipse(e,r,n,a,i);return this.draw(s)}circle(e,r,n,a){const i=this.gen.circle(e,r,n,a);return this.draw(i)}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,a,i,s,o=!1,l){const u=this.gen.arc(e,r,n,a,i,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 xXe(t,e),svg:(t,e)=>new CXe(t,e),generator:t=>new b6(t),newSeed:()=>b6.newSeed()},Pr=E(async(t,e,r)=>{let n;const a=e.useHtmlLabels||K0(Ye()?.htmlLabels);r?n=r:n="node default";const i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=i.insert("g").attr("class","label").attr("style",Fi(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 eo(s,dn(R0(o),Ye()),{useHtmlLabels:a,width:e.width||Ye().flowchart?.wrappingWidth,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:l,markdown:u},Ye());let h=d.getBBox();const f=(e?.padding??0)/2;if(a){const p=d.children[0],g=At(d);await OG(p,o),h=p.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return a?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:i,bbox:h,halfPadding:f,label:s}},"labelHelper"),GR=E(async(t,e,r)=>{const n=r.useHtmlLabels??On(Ye()),a=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),i=await eo(a,dn(R0(e),Ye()),{useHtmlLabels:n,width:r.width||Ye()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=i.getBBox();const o=r.padding/2;if(On(Ye())){const l=i.children[0],u=At(i);s=l.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}return n?a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):a.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:o,label:a}},"insertLabel"),vr=E((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Dr=E((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function fn(t){const e=t.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}E(fn,"createPathFromPoints");function gh(t,e,r,n,a,i){const s=[],l=r-t,u=n-e,d=l/i,h=2*Math.PI/d,f=e+u/2;for(let p=0;p<=50;p++){const g=p/50,m=t+g*l,v=f+a*Math.sin(h*(m-t));s.push({x:m,y:v})}return s}E(gh,"generateFullSineWavePoints");function i4(t,e,r,n,a,i){const s=[],o=a*Math.PI/180,d=(i*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 a=e.find(l=>l.getAttribute("fill")!=="none"),i=e.find(l=>l.getAttribute("stroke")!=="none"),s=E((l,u)=>l?.getAttribute(u)??void 0,"getAttr");if(a){const l={fill:s(a,"fill"),"fill-opacity":s(a,"fill-opacity")??"1"};Object.entries(l).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}if(i){const l={stroke:s(i,"stroke"),"stroke-width":s(i,"stroke-width")??"1","stroke-opacity":s(i,"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}E(QP,"mergePaths");var wXe=E((t,e)=>{var r=t.x,n=t.y,a=e.x-r,i=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(i)*s>Math.abs(a)*o?(i<0&&(o=-o),l=i===0?0:o*a/i,u=o):(a<0&&(s=-s),l=s,u=a===0?0:s*i/a),{x:r+l,y:n+u}},"intersectRect"),t2=wXe,kXe=E(async(t,e,r,n=!1,a=!1)=>{let i=e||"";typeof i=="object"&&(i=i[0]);const s=Ye(),o=On(s);return await eo(t,i,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Gd=kXe,Bh=E((t,e,r,n,a)=>["M",t+a,e,"H",t+r-a,"A",a,a,0,0,1,t+r,e+a,"V",e+n-a,"A",a,a,0,0,1,t+r-a,e+n,"H",t+a,"A",a,a,0,0,1,t,e+n-a,"V",e+a,"A",a,a,0,0,1,t+a,e,"Z"].join(" "),"createRoundedRectPathD"),dge=E(async(t,e)=>{oe.info("Creating subgraph rect for ",e.id,e);const r=Ye(),{themeVariables:n,handDrawnSeed:a}=r,{clusterBkg:i,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=On(r),p=h.insert("g").attr("class","cluster-label ");let g;e.labelType==="markdown"?g=await eo(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width}):g=await Gd(p,e.label,e.labelStyle||"",!1,!0);let m=g.getBBox();if(On(r)){const T=g.children[0],w=At(g);m=T.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}const v=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,b=e.x-v/2,_=e.y-y/2;oe.trace("Data ",e,JSON.stringify(e));let S;if(e.look==="handDrawn"){const T=gr.svg(h),w=mr(e,{roughness:.7,fill:i,stroke:s,fillWeight:3,seed:a}),R=T.path(Bh(b,_,v,y,0),w);S=h.insert(()=>(oe.debug("Rough node insert CXC",R),R),":first-child"),S.select("path:nth-child(2)").attr("style",u.join(";")),S.select("path").attr("style",d.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),S.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",_).attr("width",v).attr("height",y);const{subGraphTitleTopMargin:x}=_T(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=S.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 t2(e,T)},{cluster:h,labelBBox:m}},"rect"),AXe=E((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),a=0*e.padding,i=a/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-i).attr("y",e.y-e.height/2-i).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");const s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(o){return t2(e,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),RXe=E(async(t,e)=>{const r=Ye(),{themeVariables:n,handDrawnSeed:a}=r,{altBackground:i,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 Gd(h,e.label,e.labelStyle,void 0,!0);let g=p.getBBox();if(On(r)){const R=p.children[0],O=At(p);g=R.getBoundingClientRect(),O.attr("width",g.width),O.attr("height",g.height)}const m=0*e.padding,v=m/2,y=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+m;e.width<=g.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const b=e.height+m,_=e.height+m-g.height-6,S=e.x-y/2,x=e.y-b/2;e.width=y;const C=e.y-e.height/2-v+g.height+2;let T;if(e.look==="handDrawn"){const R=e.cssClasses.includes("statediagram-cluster-alt"),O=gr.svg(u),M=e.rx||e.ry?O.path(Bh(S,x,y,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:a}):O.rectangle(S,x,y,b,{seed:a});T=u.insert(()=>M,":first-child");const $=O.rectangle(S,C,y,_,{fill:R?i:s,fillStyle:R?"hachure":"solid",stroke:l,seed:a});T=u.insert(()=>M,":first-child"),f=u.insert(()=>$)}else T=d.insert("rect",":first-child"),T.attr("class","outer").attr("x",S).attr("y",x).attr("width",y).attr("height",b).attr("data-look",e.look),f.attr("class","inner").attr("x",S).attr("y",C).attr("width",y).attr("height",_);h.attr("transform",`translate(${e.x-g.width/2}, ${x+1-(On(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(R){return t2(e,R)},{cluster:u,labelBBox:g}},"roundedWithTitle"),NXe=E(async(t,e)=>{oe.info("Creating subgraph rect for ",e.id,e);const r=Ye(),{themeVariables:n,handDrawnSeed:a}=r,{clusterBkg:i,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=On(r),p=h.insert("g").attr("class","cluster-label "),g=await eo(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width});let m=g.getBBox();if(On(r)){const T=g.children[0],w=At(g);m=T.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}const v=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,b=e.x-v/2,_=e.y-y/2;oe.trace("Data ",e,JSON.stringify(e));let S;if(e.look==="handDrawn"){const T=gr.svg(h),w=mr(e,{roughness:.7,fill:i,stroke:s,fillWeight:4,seed:a}),R=T.path(Bh(b,_,v,y,e.rx),w);S=h.insert(()=>(oe.debug("Rough node insert CXC",R),R),":first-child"),S.select("path:nth-child(2)").attr("style",u.join(";")),S.select("path").attr("style",d.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),S.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",_).attr("width",v).attr("height",y);const{subGraphTitleTopMargin:x}=_T(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=S.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 t2(e,T)},{cluster:h,labelBBox:m}},"kanbanSection"),IXe=E((t,e)=>{const r=Ye(),{themeVariables:n,handDrawnSeed:a}=r,{nodeBorder:i}=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 v=gr.svg(s).rectangle(h,f,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:i,seed:a});p=s.insert(()=>v,":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 t2(e,m)},{cluster:s,labelBBox:{}}},"divider"),OXe=dge,DXe={rect:dge,squareRect:OXe,roundedWithTitle:RXe,noteGroup:AXe,divider:IXe,kanbanSection:NXe},hge=new Map,VG=E(async(t,e)=>{const r=e.shape||"rect",n=await DXe[r](t,e);return hge.set(e.id,n),n},"insertCluster"),LXe=E(()=>{hge=new Map},"clear");function fge(t,e){return t.intersect(e)}E(fge,"intersectNode");var MXe=fge;function pge(t,e,r,n){var a=t.x,i=t.y,s=a-n.x,o=i-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x0}E(ZP,"sameSign");var BXe=vge;function yge(t,e,r){let n=t.x,a=t.y,i=[],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=a-t.height/2-o;for(let d=0;d1&&i.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,v=h.y-r.y,y=Math.sqrt(m*m+v*v);return gd,":first-child");return h.attr("class","anchor").attr("style",Fi(o)),vr(e,h),e.intersect=function(f){return oe.info("Circle intersect",e,s,f),lr.circle(e,s,f)},i}E(_ge,"anchor");function JP(t,e,r,n,a,i,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/a,g=f/i,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 v=Math.sqrt(1-m**2),y=l+v*i*Math.sin(d)*(s?-1:1),b=u-v*a*Math.cos(d)*(s?-1:1),_=Math.atan2((e-b)/i,(t-y)/a);let x=Math.atan2((n-b)/i,(r-y)/a)-_;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,R=_+w*x,O=y+a*Math.cos(R),M=b+i*Math.sin(R);C.push({x:O,y:M})}return C}E(JP,"generateArcPoints");function bge(t,e,r){const[n,a]=[e,r].sort((i,s)=>s-i);return a*(1-Math.sqrt(1-(t/n/2)**2))}E(bge,"calculateArcSagitta");async function Ege(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a,o=E(R=>R+s,"calcTotalHeight"),l=E(R=>{const O=R/2;return[O/(2.5+R/50),O]},"calcEllipseRadius"),{shapeSvg:u,bbox:d}=await Pr(t,e,Dr(e)),h=o(e?.height?e?.height:d.height),[f,p]=l(h),g=bge(h,f,p),v=(e?.width?e?.width:d.width)+i*2+g-g,y=h,{cssStyles:b}=e,_=[{x:v/2,y:-y/2},{x:-v/2,y:-y/2},...JP(-v/2,-y/2,-v/2,y/2,f,p,!1),{x:v/2,y:y/2},...JP(v/2,y/2,v/2,-y/2,f,p,!0)],S=gr.svg(u),x=mr(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=fn(_),T=S.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)`),vr(e,w),e.intersect=function(R){return lr.polygon(e,_,R)},u}E(Ege,"bowTieRect");function j0(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}E(j0,"insertPolygonShape");var qx=12;async function Sge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?28:a,s=e.look==="neo"?24:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.width??l.width)+(e.look==="neo"?i*2:i+qx),d=(e?.height??l.height)+(e.look==="neo"?s*2:s),h=0,f=u,p=-d,g=0,m=[{x:h+qx,y:p},{x:f,y:p},{x:f,y:g},{x:h,y:g},{x:h,y:p+qx},{x:h+qx,y:p}];let v;const{cssStyles:y}=e;if(e.look==="handDrawn"){const b=gr.svg(o),_=mr(e,{}),S=fn(m),x=b.path(S,_);v=o.insert(()=>x,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),y&&v.attr("style",y)}else v=j0(o,u,d,m);return n&&v.attr("style",n),vr(e,v),e.intersect=function(b){return lr.polygon(e,m,b)},o}E(Sge,"card");function Tge(t,e){const{nodeStyles:r}=hr(e);e.label="";const n=t.insert("g").attr("class",Dr(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,i=Math.max(28,e.width??0),s=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}],o=gr.svg(n),l=mr(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=fn(s),d=o.path(u,l),h=n.insert(()=>d,":first-child");return a&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",a),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}E(Tge,"choice");async function WG(t,e,r){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,halfPadding:o}=await Pr(t,e,Dr(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(i),g=mr(e,{}),m=p.circle(0,0,d*2,g);h=i.insert(()=>m,":first-child"),h.attr("class","basic label-container").attr("style",Fi(f))}else h=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",d).attr("cx",0).attr("cy",0);return vr(e,h),e.calcIntersect=function(p,g){const m=p.width/2;return lr.circle(p,m,g)},e.intersect=function(p){return oe.info("Circle intersect",e,d,p),lr.circle(e,d,p)},i}E(WG,"circle");function xge(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=t*2,a={x:n/2*e,y:n/2*r},i={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 ${i.x},${i.y} L ${o.x},${o.y} - M ${a.x},${a.y} L ${s.x},${s.y}`}E(xge,"createLine");function Cge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r,e.label="";const a=t.insert("g").attr("class",Dr(e)).attr("id",e.domId??e.id),i=Math.max(30,e?.width??0),{cssStyles:s}=e,o=gr.svg(a),l=mr(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=o.circle(0,0,i*2,l),d=xge(i),h=o.path(d,l),f=a.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),vr(e,f),e.intersect=function(p){return oe.info("crossedCircle intersect",e,{radius:i,point:p}),lr.circle(e,i,p)},a}E(Cge,"crossedCircle");function Ku(t,e,r,n=100,a=0,i=180){const s=[],o=a*Math.PI/180,d=(i*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-(i.x-(i.left??0))},${-d/2+(e.padding??0)/2-(i.y-(i.top??0))})`),vr(e,C),e.intersect=function(T){return lr.polygon(e,g,T)},a}E(wge,"curlyBraceLeft");function Xu(t,e,r,n=100,a=0,i=180){const s=[],o=a*Math.PI/180,d=(i*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-(i.x-(i.left??0))},${-d/2+(e.padding??0)/2-(i.y-(i.top??0))})`),vr(e,C),e.intersect=function(T){return lr.polygon(e,g,T)},a}E(kge,"curlyBraceRight");function Yi(t,e,r,n=100,a=0,i=180){const s=[],o=a*Math.PI/180,d=(i*Math.PI/180-o)/(n-1);for(let h=0;hR,":first-child").attr("stroke-opacity",0),O.insert(()=>S,":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-(i.x-(i.left??0))},${-d/2+(e.padding??0)/2-(i.y-(i.top??0))})`),vr(e,O),e.intersect=function(M){return lr.polygon(e,m,M)},a}E(Age,"curlyBraces");async function Rge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a,o=20,l=5,{shapeSvg:u,bbox:d}=await Pr(t,e,Dr(e)),h=Math.max(o,(d.width+i*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),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=h,b=f,_=y-p,S=b/4,x=[{x:_,y:0},{x:S,y:0},{x:0,y:b/2},{x:S,y:b},{x:_,y:b},...i4(-_,-b/2,p,50,270,90)],C=fn(x),T=m.path(C,v),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})`),vr(e,w),e.intersect=function(R){return lr.polygon(e,x,R)},u}E(Rge,"curvedTrapezoid");var $Xe=E((t,e,r,n,a,i)=>[`M${t},${e+i}`,`a${a},${i} 0,0,0 ${r},0`,`a${a},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${a},${i} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),zXe=E((t,e,r,n,a,i)=>[`M${t},${e+i}`,`M${t+r},${e+i}`,`a${a},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${a},${i} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),UXe=E((t,e,r,n,a,i)=>[`M${t-r/2},${-n/2}`,`a${a},${i} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),kQ=8,AQ=8;async function Nge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?24:a,s=e.look==="neo"?24:a;if(e.width||e.height){const v=e.width??0;e.width=(e.width??0)-s,e.widthx,":first-child"),g=o.insert(()=>S,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{const v=$Xe(0,0,d,p,h,f);g=o.insert("path",":first-child").attr("d",v).attr("class","basic label-container outer-path").attr("style",Fi(m)).attr("style",n)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),vr(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(v){const y=lr.rect(e,v),b=y.x-(e.x??0);if(h!=0&&(Math.abs(b)<(e.width??0)/2||Math.abs(b)==(e.width??0)/2&&Math.abs(y.y-(e.y??0))>(e.height??0)/2-f)){let _=f*f*(1-b*b/(h*h));_>0&&(_=Math.sqrt(_)),_=f-_,v.y-(e.y??0)>0&&(_=-_),y.y+=_}return y},o}E(Nge,"cylinder");async function r2(t,e,r){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Pr(t,e,Dr(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(i),v=mr(e,{}),y=f||p?m.path(Bh(u,d,o,l,f||0),v):m.rectangle(u,d,o,l,v);h=i.insert(()=>y,":first-child"),h.attr("class","basic label-container").attr("style",Fi(g))}else h=i.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",a).attr("rx",Fi(f)).attr("ry",Fi(p)).attr("x",u).attr("y",d).attr("width",o).attr("height",l);return vr(e,h),e.calcIntersect=function(m,v){return lr.rect(m,v)},e.intersect=function(m){return lr.rect(e,m)},i}E(r2,"drawRect");async function Ige(t,e){const{cssClasses:r,labelPaddingX:n,labelPaddingY:a,padding:i,width:s,height:o}=e,l={rx:0,ry:0,labelPaddingX:n??(i??0)*2,labelPaddingY:a??i??0},u=await r2(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)"),v=m.node();if(!v)return u;let y=null;if(v instanceof SVGGraphicsElement)y=v.getBBox();else return u;return u.insert(()=>p.line(y.x,y.y,y.x+y.width,y.y,g),".basic.label-container g.label"),u.insert(()=>p.line(y.x,y.y+y.height,y.x+y.width,y.y+y.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}E(Ige,"datastore");async function Oge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.look==="neo"?16:e.padding??0,i=e.look==="neo"?16:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Pr(t,e,Dr(e)),u=o.width+a,d=o.height+i,h=d*.2,f=-u/2,p=-d/2-h/2,{cssStyles:g}=e,m=gr.svg(s),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=[{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(y.map(S=>[S.x,S.y]),v),_=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))})`),vr(e,_),e.intersect=function(S){return lr.rect(e,S)},s}E(Oge,"dividedRectangle");async function Dge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e),a=e.look==="neo"?12:5;e.labelStyle=r;const i=e.padding??0,s=e.look==="neo"?16:i,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.width?e?.width/2:l.width/2)+(s??0),d=u-a;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}),v=p.circle(0,0,u*2,g),y=p.circle(0,0,d*2,m);h=o.insert("g",":first-child"),h.attr("class",Fi(e.cssClasses)).attr("style",Fi(f)),h.node()?.appendChild(v),h.node()?.appendChild(y)}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 vr(e,h),e.intersect=function(p){return oe.info("DoubleCircle intersect",e,u,p),lr.circle(e,u,p)},o}E(Dge,"doublecircle");function Lge(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:a}=hr(e);e.label="",e.labelStyle=n;const i=t.insert("g").attr("class",Dr(e)).attr("id",e.domId??e.id),s=7,{cssStyles:o}=e,l=gr.svg(i),{nodeBorder:u}=r,d=mr(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(d.roughness=0);const h=l.circle(0,0,s*2,d),f=i.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),a&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",a),vr(e,f),e.intersect=function(p){return oe.info("filledCircle intersect",e,{radius:s,point:p}),lr.circle(e,s,p)},i}E(Lge,"filledCircle");var RQ=10,NQ=10;async function Mge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?a*2:a;(e.width||e.height)&&(e.height=e?.height??0,e.heighty,":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,vr(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 oe.info("Triangle intersect",e,f,_),lr.polygon(e,f,_)},s}E(Mge,"flippedTriangle");function Pge(t,e,{dir:r,config:{state:n,themeVariables:a}}){const{nodeStyles:i}=hr(e);e.label="";const s=t.insert("g").attr("class",Dr(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:a.lineColor,fill:a.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),i&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",i),vr(e,m);const v=n?.padding??0;return e.width&&e.height&&(e.width+=v/2||0,e.height+=v/2||0),e.intersect=function(y){return lr.rect(e,y)},s}E(Pge,"forkJoin");async function Bge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=15,i=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),vr(e,_),e.intersect=function(S){return oe.info("Pill intersect",e,{radius:f,point:S}),lr.polygon(e,v,S)},l}E(Bge,"halfRoundedRectangle");var GXe=E((t,e,r,n,a)=>[`M${t+a},${e}`,`L${t+r-a},${e}`,`L${t+r},${e-n/2}`,`L${t+r-a},${e-n}`,`L${t+a},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD");async function Fge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e),a=e.look==="neo"?3.5:4;e.labelStyle=r;const i=e.padding??0,s=70,o=32,l=e.look==="neo"?s:i,u=e.look==="neo"?o:i;if(e.width||e.height){const _=(e.height??0)/a;e.width=(e?.width??0)-2*_-u,e.height=(e.height??0)-l}const{shapeSvg:d,bbox:h}=await Pr(t,e,Dr(e)),f=(e?.height?e?.height:h.height)+l,p=f/a,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 v;const{cssStyles:y}=e;if(e.look==="handDrawn"){const b=gr.svg(d),_=mr(e,{}),S=GXe(0,0,g,f,p),x=b.path(S,_);v=d.insert(()=>x,":first-child").attr("transform",`translate(${-g/2}, ${f/2})`),y&&v.attr("style",y)}else v=j0(d,g,f,m);return n&&v.attr("style",n),e.width=g,e.height=f,vr(e,v),e.intersect=function(b){return lr.polygon(e,m,b)},d}E(Fge,"hexagon");async function $ge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.label="",e.labelStyle=r;const{shapeSvg:a}=await Pr(t,e,Dr(e)),i=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,l=gr.svg(a),u=mr(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=[{x:0,y:0},{x:i,y:0},{x:0,y:s},{x:i,y:s}],h=fn(d),f=l.path(h,u),p=a.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(${-i/2}, ${-s/2})`),vr(e,p),e.intersect=function(g){return oe.info("Pill intersect",e,{points:d}),lr.polygon(e,d,g)},a}E($ge,"hourglass");async function zge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:a}=hr(e);e.labelStyle=a;const i=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(i,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Pr(t,e,"icon-shape default"),f=e.pos==="t",p=o,g=o,{nodeBorder:m}=r,{stylesMap:v}=e2(e),y=-g/2,b=-p/2,_=e.label?8:0,S=gr.svg(u),x=mr(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=S.rectangle(y,b,g,p,x),T=Math.max(g,d.width),w=p+d.height+_,R=S.rectangle(-T/2,-w/2,T,w,{...x,fill:"transparent",stroke:"none"}),O=u.insert(()=>C,":first-child"),M=u.insert(()=>R);if(e.icon){const $=u.append("g");$.html(`${await fh(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: ${v.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})`),vr(e,M),e.intersect=function($){if(oe.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}E(zge,"icon");async function Uge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:a}=hr(e);e.labelStyle=a;const i=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(i,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Pr(t,e,"icon-shape default"),f=20,p=e.label?8:0,g=e.pos==="t",{nodeBorder:m,mainBkg:v}=r,{stylesMap:y}=e2(e),b=gr.svg(u),_=mr(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=y.get("fill");_.stroke=S??v;const x=u.append("g");e.icon&&x.html(`${await fh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const C=x.node().getBBox(),T=C.width,w=C.height,R=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-R},${g?d.height/2+p/2-w/2-O:-d.height/2-p/2-w/2-O})`),x.attr("style",`color: ${y.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})`),vr(e,L),e.intersect=function(N){return oe.info("iconSquare intersect",e,N),lr.rect(e,N)},u}E(Uge,"iconCircle");async function Gge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:a}=hr(e);e.labelStyle=a;const i=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(i,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Pr(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:v,mainBkg:y}=r,{stylesMap:b}=e2(e),_=-m/2,S=-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??y;const R=C.path(Bh(_,S,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(()=>R,":first-child").attr("class","icon-shape2"),A=u.insert(()=>$);if(e.icon){const I=u.append("g");I.html(`${await fh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const D=I.node().getBBox(),L=D.width,N=D.height,P=D.x,z=D.y;I.attr("transform",`translate(${-L/2-P},${p?d.height/2+x/2-N/2-z:-d.height/2-x/2-N/2-z})`),I.attr("style",`color: ${b.get("stroke")??v};`)}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})`),vr(e,A),e.intersect=function(I){if(oe.info("iconSquare intersect",e,I),!e.label)return lr.rect(e,I);const D=e.x??0,L=e.y??0,N=e.height??0;let P=[];return p?P=[{x:D-d.width/2,y:L-N/2},{x:D+d.width/2,y:L-N/2},{x:D+d.width/2,y:L-N/2+d.height+x},{x:D+m/2,y:L-N/2+d.height+x},{x:D+m/2,y:L+N/2},{x:D-m/2,y:L+N/2},{x:D-m/2,y:L-N/2+d.height+x},{x:D-d.width/2,y:L-N/2+d.height+x}]:P=[{x:D-m/2,y:L-N/2},{x:D+m/2,y:L-N/2},{x:D+m/2,y:L-N/2+g},{x:D+d.width/2,y:L-N/2+g},{x:D+d.width/2/2,y:L+N/2},{x:D-d.width/2,y:L+N/2},{x:D-d.width/2,y:L-N/2+g},{x:D-m/2,y:L-N/2+g}],lr.polygon(e,P,I)},u}E(Gge,"iconRounded");async function qge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:a}=hr(e);e.labelStyle=a;const i=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(i,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Pr(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:v,mainBkg:y}=r,{stylesMap:b}=e2(e),_=-m/2,S=-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??y;const R=C.path(Bh(_,S,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(()=>R,":first-child"),A=u.insert(()=>$);if(e.icon){const I=u.append("g");I.html(`${await fh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const D=I.node().getBBox(),L=D.width,N=D.height,P=D.x,z=D.y;I.attr("transform",`translate(${-L/2-P},${p?d.height/2+x/2-N/2-z:-d.height/2-x/2-N/2-z})`),I.attr("style",`color: ${b.get("stroke")??v};`)}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})`),vr(e,A),e.intersect=function(I){if(oe.info("iconSquare intersect",e,I),!e.label)return lr.rect(e,I);const D=e.x??0,L=e.y??0,N=e.height??0;let P=[];return p?P=[{x:D-d.width/2,y:L-N/2},{x:D+d.width/2,y:L-N/2},{x:D+d.width/2,y:L-N/2+d.height+x},{x:D+m/2,y:L-N/2+d.height+x},{x:D+m/2,y:L+N/2},{x:D-m/2,y:L+N/2},{x:D-m/2,y:L-N/2+d.height+x},{x:D-d.width/2,y:L-N/2+d.height+x}]:P=[{x:D-m/2,y:L-N/2},{x:D+m/2,y:L-N/2},{x:D+m/2,y:L-N/2+g},{x:D+d.width/2,y:L-N/2+g},{x:D+d.width/2/2,y:L+N/2},{x:D-d.width/2,y:L+N/2},{x:D-d.width/2,y:L-N/2+g},{x:D-m/2,y:L-N/2+g}],lr.polygon(e,P,I)},u}E(qge,"iconSquare");async function Yge(t,e,{config:{flowchart:r}}){const n=new Image;n.src=e?.img??"",await n.decode();const a=Number(n.naturalWidth.toString().replace("px","")),i=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/i;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??a),u=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:l,d=e.constraint==="on"?u/e.imageAspectRatio:e?.assetHeight??i;e.width=Math.max(u,o??0);const{shapeSvg:h,bbox:f,label:p}=await Pr(t,e,"image-shape default"),g=e.pos==="t",m=-u/2,v=-d/2,y=e.label?8:0,b=gr.svg(h),_=mr(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=b.rectangle(m,v,u,d,_),x=Math.max(u,f.width),C=d+f.height+y,T=b.rectangle(-x/2,-C/2,x,C,{..._,fill:"none",stroke:"none"}),w=h.insert(()=>S,":first-child"),R=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-y/2:d/2-f.height/2+y/2})`),w.attr("transform",`translate(0,${g?f.height/2+y/2:-f.height/2-y/2})`),vr(e,R),e.intersect=function(O){if(oe.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+y},{x:M+u/2,y:$-F/2+f.height+y},{x:M+u/2,y:$+F/2},{x:M-u/2,y:$+F/2},{x:M-u/2,y:$-F/2+f.height+y},{x:M-f.width/2,y:$-F/2+f.height+y}]: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}E(Yge,"imageSquare");async function Hge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=a,s=e.look==="neo"?a*2:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=Math.max(l.width+(s??0)*2,e?.width??0),d=Math.max(l.height+(i??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,{}),v=fn(h),y=g.path(v,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),p&&f.attr("style",p)}else f=j0(o,u,d,h);return n&&f.attr("style",n),e.width=u,e.height=d,vr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}E(Hge,"inv_trapezoid");async function Vge(t,e){const{shapeSvg:r,bbox:n,label:a}=await Pr(t,e,"label"),i=r.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),vr(e,i),e.intersect=function(l){return lr.rect(e,l)},r}E(Vge,"labelRect");async function Wge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=a,s=e.look==="neo"?a*2:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.height??l.height)+i,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,{}),v=fn(h),y=g.path(v,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=j0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,vr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}E(Wge,"lean_left");async function Kge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=a,s=e.look==="neo"?a*2:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.height??l.height)+i,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,{}),v=fn(h),y=g.path(v,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=j0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,vr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}E(Kge,"lean_right");function Xge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.label="",e.labelStyle=r;const a=t.insert("g").attr("class",Dr(e)).attr("id",e.domId??e.id),{cssStyles:i}=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(a),h=mr(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=fn(u),p=d.path(f,h),g=a.insert(()=>p,":first-child");return g.attr("class","outer-path"),i&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",i),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${s/2},${-o})`),vr(e,g),e.intersect=function(m){return oe.info("lightningBolt intersect",e,m),lr.polygon(e,u,m)},a}E(Xge,"lightningBolt");var qXe=E((t,e,r,n,a,i,s)=>[`M${t},${e+i}`,`a${a},${i} 0,0,0 ${r},0`,`a${a},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${a},${i} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+i+s}`,`a${a},${i} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),YXe=E((t,e,r,n,a,i,s)=>[`M${t},${e+i}`,`M${t+r},${e+i}`,`a${a},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${a},${i} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+i+s}`,`a${a},${i} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),HXe=E((t,e,r,n,a,i)=>[`M${t-r/2},${-n/2}`,`a${a},${i} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),IQ=10,OQ=10;async function jge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?24:a;if(e.width||e.height){const y=e.width??0;e.width=(e.width??0)-i,e.widthC,":first-child").attr("class","line"),m=o.insert(()=>x,":first-child"),m.attr("class","basic label-container"),v&&m.attr("style",v)}else{const y=qXe(0,0,d,p,h,f,g);m=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",Fi(v)).attr("style",n)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),vr(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(y){const b=lr.rect(e,y),_=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 S=f*f*(1-_*_/(h*h));S>0&&(S=Math.sqrt(S)),S=f-S,y.y-(e.y??0)>0&&(S=-S),b.y+=S}return b},o}E(jge,"linedCylinder");async function Qge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a;if(e.width||e.height){const S=e.width;e.width=(S??0)*10/11-i*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 Pr(t,e,Dr(e)),d=(e?.width?e?.width:l.width)+(i??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),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=[{x:-d/2-d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:p/2},...gh(-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(y.map(S=>[S.x,S.y]),v),_=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))})`),vr(e,_),e.intersect=function(S){return lr.polygon(e,y,S)},o}E(Qge,"linedWaveEdgedRect");async function Zge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a,o=e.look==="neo"?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-i*2-2*o,10),e.height=Math.max((e?.height??0)-s*2-2*o,10));const{shapeSvg:l,bbox:u,label:d}=await Pr(t,e,Dr(e)),h=(e?.width?e?.width:u.width)+i*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,v=-g/2,{cssStyles:y}=e,b=gr.svg(l),_=mr(e,{}),S=[{x:m-o,y:v+o},{x:m-o,y:v+g+o},{x:m+p-o,y:v+g+o},{x:m+p-o,y:v+g},{x:m+p,y:v+g},{x:m+p,y:v+g-o},{x:m+p+o,y:v+g-o},{x:m+p+o,y:v-o},{x:m+o,y:v-o},{x:m+o,y:v},{x:m,y:v},{x:m,y:v+o}],x=[{x:m,y:v+o},{x:m+p-o,y:v+o},{x:m+p-o,y:v+g},{x:m+p,y:v+g},{x:m+p,y:v},{x:m,y:v}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=fn(S);let T=b.path(C,_);const w=fn(x);let R=b.path(w,_);e.look!=="handDrawn"&&(T=QP(T),R=QP(R));const O=l.insert("g",":first-child");return O.insert(()=>T),O.insert(()=>R),O.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",y),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))})`),vr(e,O),e.intersect=function(M){return lr.polygon(e,S,M)},l}E(Zge,"multiRect");async function Jge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i,label:s}=await Pr(t,e,Dr(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(i.width,e?.width??0)+l*2,f=Math.max(i.height,e?.height??0)+u*3,p=e.look==="neo"?f/4:f/8,g=f+(d?p/2:-p/2),m=-h/2,v=-g/2,y=10,{cssStyles:b}=e,_=gh(m-y,v+g+y,m+h-y,v+g+y,p,.8),S=_?.[_.length-1],x=[{x:m-y,y:v+y},{x:m-y,y:v+g+y},..._,{x:m+h-y,y:S.y-y},{x:m+h,y:S.y-y},{x:m+h,y:S.y-2*y},{x:m+h+y,y:S.y-2*y},{x:m+h+y,y:v-y},{x:m+y,y:v-y},{x:m+y,y:v},{x:m,y:v},{x:m,y:v+y}],C=[{x:m,y:v+y},{x:m+h-y,y:v+y},{x:m+h-y,y:S.y-y},{x:m+h,y:S.y-y},{x:m+h,y:v},{x:m,y:v}],T=gr.svg(a),w=mr(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const R=fn(x),O=T.path(R,w),M=fn(C),$=T.path(M,w),F=a.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(${-(i.width/2)-y-(i.x-(i.left??0))}, ${-(i.height/2)+y-p/2-(i.y-(i.top??0))})`),vr(e,F),e.intersect=function(A){return lr.polygon(e,x,A)},a}E(Jge,"multiWaveEdgedRectangle");async function eme(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n,e.useHtmlLabels||On(xr())||(e.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await Pr(t,e,Dr(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 v=g.rectangle(h,f,u,d,m),y=s.insert(()=>v,":first-child");return y.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),p&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",p),a&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",a),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),vr(e,y),e.intersect=function(b){return lr.rect(e,b)},s}E(eme,"note");var VXe=E((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 tme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i}=await Pr(t,e,Dr(e)),s=i.width+(e.padding??0),o=i.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(a),g=mr(e,{}),m=VXe(0,0,l),v=p.path(m,g);h=a.insert(()=>v,":first-child").attr("transform",`translate(${-l/2+u}, ${l/2})`),f&&h.attr("style",f)}else h=j0(a,l,l,d),h.attr("transform",`translate(${-l/2+u}, ${l/2})`);return n&&h.attr("style",n),vr(e,h),e.calcIntersect=function(p,g){const m=p.width,v=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],y=lr.polygon(p,v,g);return{x:y.x-.5,y:y.y-.5}},e.intersect=function(p){return this.calcIntersect(e,p)},a}E(tme,"question");async function rme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?21:a??0,s=e.look==="neo"?12:a??0,{shapeSvg:o,bbox:l,label:u}=await Pr(t,e,Dr(e)),d=(e?.width??l.width)+(e.look==="neo"?i*2:i),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:v}=e,y=gr.svg(o),b=mr(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=fn(m),S=y.path(_,b),x=o.insert(()=>S,":first-child");return x.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",v),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))})`),vr(e,x),e.intersect=function(C){return lr.polygon(e,m,C)},o}E(rme,"rect_left_inv_arrow");async function nme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;let a;e.cssClasses?a="node "+e.cssClasses:a="node default";const i=t.insert("g").attr("class",a).attr("id",e.domId||e.id),s=i.insert("g"),o=i.insert("g").attr("class","label").attr("style",n),l=e.description,u=e.label,d=await Gd(o,u,e.labelStyle,!0,!0);let h={width:0,height:0};if(On(Ye())){const w=d.children[0],R=At(d);h=w.getBoundingClientRect(),R.attr("width",h.width),R.attr("height",h.height)}oe.info("Text 2",l);const f=l||[],p=d.getBBox(),g=await Gd(o,Array.isArray(f)?f.join("
"):f,e.labelStyle,!0,!0),m=g.children[0],v=At(g);h=m.getBoundingClientRect(),v.attr("width",h.width),v.attr("height",h.height);const y=(e.padding||0)/2;At(g).attr("transform","translate( "+(h.width>p.width?0:(p.width-h.width)/2)+", "+(p.height+y+5)+")"),At(d).attr("transform","translate( "+(h.width(oe.debug("Rough node insert CXC",O),M),":first-child"),C=i.insert(()=>(oe.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-y).attr("y",-h.height/2-y).attr("width",h.width+(e.padding||0)).attr("height",h.height+(e.padding||0)),T.attr("class","divider").attr("x1",-h.width/2-y).attr("x2",h.width/2+y).attr("y1",-h.height/2-y+p.height+y).attr("y2",-h.height/2-y+p.height+y);return vr(e,C),e.intersect=function(w){return lr.rect(e,w)},i}E(nme,"rectWithTitle");async function ame(t,e,{config:{themeVariables:r}}){const n=r?.radius??5,a={rx:n,ry:n,labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return r2(t,e,a)}E(ame,"roundedRect");var df=8;async function ime(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.look==="neo"?16:e.padding??0,i=e.look==="neo"?12:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Pr(t,e,Dr(e)),u=(e?.width??o.width)+a*2+(e.look==="neo"?df:df*2),d=(e?.height??o.height)+i*2,h=u-df,f=d,p=df-u/2,g=-d/2,{cssStyles:m}=e,v=gr.svg(s),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:p,y:g},{x:p+h,y:g},{x:p+h,y:g+f},{x:p-df,y:g+f},{x:p-df,y:g},{x:p,y:g},{x:p,y:g+f}],_=v.polygon(b.map(x=>[x.x,x.y]),y),S=s.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path").attr("style",Fi(m)),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),m&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),l.attr("transform",`translate(${df/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),vr(e,S),e.intersect=function(x){return lr.rect(e,x)},s}E(ime,"shadedProcess");async function sme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-i*2,10),e.height=Math.max((e?.height??0)/1.5-s*2,10));const{shapeSvg:o,bbox:l,label:u}=await Pr(t,e,Dr(e)),d=(e?.width?e?.width:l.width)+i*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:v}=e,y=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}],S=fn(_),x=y.path(S,b),C=o.insert(()=>x,":first-child");return C.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",v),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))})`),vr(e,C),e.intersect=function(T){return lr.polygon(e,_,T)},o}E(sme,"slopedRect");async function ome(t,e){const r=e.padding??0,n=e.look==="neo"?16:r*2,a=e.look==="neo"?12:r,i={rx:0,ry:0,labelPaddingX:e.labelPaddingX??n,labelPaddingY:a};return r2(t,e,i)}E(ome,"squareRect");async function lme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?20:a,s=e.look==="neo"?12:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=l.height+(e.look==="neo"?s*2:s),d=l.width+u/4+(e.look==="neo"?i*2:i),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},...i4(-d/2+h,0,h,50,90,270),{x:d/2-h,y:u/2},...i4(d/2-h,0,h,50,270,450)],v=fn(m),y=p.path(v,g),b=o.insert(()=>y,":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),vr(e,b),e.intersect=function(_){return lr.polygon(e,m,_)},o}E(lme,"stadium");async function cme(t,e){const r={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5};return r2(t,e,r)}E(cme,"state");function ume(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n;const{cssStyles:i}=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,v=h.circle(0,0,m,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),y=d.insert(()=>p,":first-child");if(y.insert(()=>v),e.look!=="handDrawn"&&y.attr("class","outer-path"),i&&y.selectAll("path").attr("style",i),a&&y.selectAll("path").attr("style",a),e.width<25&&u&&e.look!=="handDrawn"){const b=t.node()?.ownerSVGElement?.id??"",_=b?`${b}-drop-shadow-small`:"drop-shadow-small";y.attr("style",`filter:url(#${_})`)}return vr(e,y),e.intersect=function(b){return lr.circle(e,(e.width??0)/2,b)},d}E(ume,"stateEnd");function dme(t,e,{config:{themeVariables:r}}){const{lineColor:n,nodeShadow:a}=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 i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if(e.look==="handDrawn"){const l=gr.svg(i).circle(0,0,e.width,aKe(n));s=i.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=i.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&&a&&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 vr(e,s),e.intersect=function(o){return lr.circle(e,(e.width??7)/2,o)},i}E(dme,"stateStart");var Yg=8;async function hme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e?.padding??8,i=e.look==="neo"?28:a,s=e.look==="neo"?12:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.width??l.width)+2*Yg+i,d=(e?.height??l.height)+s,h=u-2*Yg,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 v=gr.svg(o),y=mr(e,{}),b=v.rectangle(p,g,h+16,f,y),_=v.line(p+Yg,g,p+Yg,g+f,y),S=v.line(p+Yg+h,g,p+Yg+h,g+f,y);o.insert(()=>_,":first-child"),o.insert(()=>S,":first-child");const x=o.insert(()=>b,":first-child"),{cssStyles:C}=e;x.attr("class","basic label-container").attr("style",Fi(C)),vr(e,x)}else{const v=j0(o,h,f,m);n&&v.attr("style",n),vr(e,v)}return e.intersect=function(v){return lr.polygon(e,m,v)},o}E(hme,"subroutine");var qR=.2;async function fme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-s*2,10),e.width=Math.max((e?.width??0)-i*2-qR*(e.height+s*2),10));const{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.height?e?.height:l.height)+s*2,d=qR*u,h=qR*u,p=(e?.width?e?.width:l.width)+i*2+d-d,g=u,m=-p/2,v=-g/2,{cssStyles:y}=e,b=gr.svg(o),_=mr(e,{}),S=[{x:m-d/2,y:v},{x:m+p+d/2,y:v},{x:m+p+d/2,y:v+g},{x:m-d/2,y:v+g}],x=[{x:m+p-d/2,y:v+g},{x:m+p+d/2,y:v+g},{x:m+p+d/2,y:v+g-h}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=fn(S),T=b.path(C,_),w=fn(x),R=b.path(w,{..._,fillStyle:"solid"}),O=o.insert(()=>R,":first-child");return O.insert(()=>T,":first-child"),O.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",y),n&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",n),vr(e,O),e.intersect=function(M){return lr.polygon(e,S,M)},o}E(fme,"taggedRect");async function pme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i,label:s}=await Pr(t,e,Dr(e)),o=Math.max(i.width+(e.padding??0)*2,e?.width??0),l=Math.max(i.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(a),m=mr(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const v=[{x:-o/2-o/2*.1,y:f/2},...gh(-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}],y=-o/2+o/2*.1,b=-f/2-h*.4,_=[{x:y+o-d,y:(b+l)*1.3},{x:y+o,y:b+l-h},{x:y+o,y:(b+l)*.9},...gh(y+o,(b+l)*1.25,y+o-d,(b+l)*1.3,-l*.02,.5)],S=fn(v),x=g.path(S,m),C=fn(_),T=g.path(C,{...m,fillStyle:"solid"}),w=a.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)-(i.x-(i.left??0))},${-l/2+(e.padding??0)-u/2-(i.y-(i.top??0))})`),vr(e,w),e.intersect=function(R){return lr.polygon(e,v,R)},a}E(pme,"taggedWaveEdgedRectangle");async function gme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i}=await Pr(t,e,Dr(e)),s=Math.max(i.width+(e.padding??0),e?.width||0),o=Math.max(i.height+(e.padding??0),e?.height||0),l=-s/2,u=-o/2,d=a.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),vr(e,d),e.intersect=function(h){return lr.rect(e,h)},a}E(gme,"text");var WXe=E((t,e,r,n,a,i)=>`M${t},${e} +`),i):dn(e.label,i),u=e.isNode?"nodeLabel":"edgeLabel",d=o.append("span");d.html(l),VP(d,e.labelStyle),d.attr("class",`${u} ${n}`),VP(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"),a&&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()}E(ege,"addHtmlSpan");function Jk(t,e,r,n=!1){const a=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&a.attr("text-anchor","middle"),a}E(Jk,"createTspan");function tge(t,e,r){const n=t.append("text"),a=Jk(n,1,e);e7(a,r);const i=a.node().getComputedTextLength();return n.remove(),i}E(tge,"computeWidthOfText");function rge(t,e,r){const n=t.append("text"),a=Jk(n,1,e);e7(a,[{content:r,type:"normal"}]);const i=a.node()?.getBoundingClientRect();return i&&n.remove(),i}E(rge,"computeDimensionOfText");function nge(t,e,r,n=!1,a=!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");a&&l.attr("text-anchor","middle");let u=0;for(const d of r){const h=E(p=>tge(s,1.1,p)<=t,"checkWidth"),f=h(d)?[d]:Jpe(d,h);for(const p of f){const g=Jk(l,u,1.1,a);e7(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()}E(nge,"createFormattedText");function WP(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}})}E(WP,"decodeHTMLEntities");function e7(t,e){t.text(""),e.forEach((r,n)=>{const a=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?a.text(WP(r.content)):a.text(" "+WP(r.content))})}E(e7,"updateTextContentAndStyles");async function age(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(a,i,s)=>(r.push((async()=>{const o=`${i}:${s}`;return await uXe(o)?await fh(o,void 0,{class:"label-icon"}):``})()),a));const n=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}E(age,"replaceIconSubstring");var eo=E(async(t,e="",{style:r="",isTitle:n=!1,classes:a="",useHtmlLabels:i=!0,markdown:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},d)=>{if(oe.debug("XYZ createText",e,r,n,a,i,o,"addSvgBackground: ",u),i){const h=s?jpe(e,d):Xpe(e),f=await age(R0(h),d),p=e.replace(/\\\\/g,"\\"),g={isNode:o,label:Xa(e)?p:f,labelStyle:r.replace("fill:","color:")};return await ege(t,g,l,a,u,d)}else{const h=R0(e.replace(//g,"
")),f=s?Kpe(h.replace("
","
"),d):Wpe(h),p=nge(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 BR(t,e,r){if(t&&t.length){const[n,a]=e,i=Math.PI/180*r,s=Math.cos(i),o=Math.sin(i);for(const l of t){const[u,d]=l;l[0]=(u-n)*s-(d-a)*o+n,l[1]=(u-n)*o+(d-a)*s+a}}}function dXe(t,e){return t[0]===e[0]&&t[1]===e[1]}function hXe(t,e,r,n=1){const a=r,i=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,o=[0,0];if(a)for(const u of s)BR(u,o,a);const l=(function(u,d,h){const f=[];for(const b of u){const _=[...b];dXe(_[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=[],v=g[0].ymin,y=0;for(;m.length||g.length;){if(g.length){let b=-1;for(let _=0;_v);_++)b=_;g.splice(0,b+1).forEach((_=>{m.push({s:v,edge:_})}))}if(m=m.filter((b=>!(b.edge.ymax<=v))),m.sort(((b,_)=>b.edge.x===_.edge.x?0:(b.edge.x-_.edge.x)/Math.abs(b.edge.x-_.edge.x))),(h!==1||y%d==0)&&m.length>1)for(let b=0;b=m.length)break;const S=m[b].edge,x=m[_].edge;p.push([[Math.round(S.x),v],[Math.round(x.x),v]])}v+=h,m.forEach((b=>{b.edge.x=b.edge.x+h*b.edge.islope})),y++}return p})(s,i,n);if(a){for(const u of s)BR(u,o,-a);(function(u,d,h){const f=[];u.forEach((p=>f.push(...p))),BR(f,d,h)})(l,o,-a)}return l}function ET(t,e){var r;const n=e.hachureAngle+90;let a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let i=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(i=a),hXe(t,a,n,i||1)}class YG{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const n=ET(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){const n=[];for(const a of e)n.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],r));return n}}function t7(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 fXe extends YG{fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const a=ET(e,Object.assign({},r,{hachureGap:n})),i=Math.PI/180*r.hachureAngle,s=[],o=.5*n*Math.cos(i),l=.5*n*Math.sin(i);for(const[u,d]of a)t7([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 pXe extends YG{fillPolygons(e,r){const n=this._fillPolygons(e,r),a=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),i=this._fillPolygons(e,a);return n.ops=n.ops.concat(i.ops),n}}let gXe=class{constructor(e){this.helper=e}fillPolygons(e,r){const n=ET(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){const n=[];let a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,.1);let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const s=a/4;for(const o of e){const l=t7(o),u=l/a,d=Math.ceil(u)-1,h=l-d*a,f=(o[0][0]+o[1][0])/2-a/4,p=Math.min(o[0][1],o[1][1]);for(let g=0;g{const o=t7(s),l=Math.floor(o/(n+a)),u=(o+a-l*(n+a))/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=t7(i),o=Math.round(s/(2*r));let l=i[0],u=i[1];l[0]>u[0]&&(l=i[1],u=i[0]);const d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let h=0;hd%2?u+r:u+e));i.push({key:"C",data:l}),e=l[4],r=l[5];break}case"Q":i.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));i.push({key:"Q",data:l}),e=l[2],r=l[3];break}case"A":i.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],i.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":i.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],i.push({key:"H",data:[e]});break;case"V":i.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],i.push({key:"V",data:[r]});break;case"S":i.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));i.push({key:"S",data:l}),e=l[2],r=l[3];break}case"T":i.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],i.push({key:"T",data:[e,r]});break;case"Z":case"z":i.push({key:"Z",data:[]}),e=n,r=a}return i}function sge(t){const e=[];let r="",n=0,a=0,i=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,a]=d,[i,s]=d;break;case"C":e.push({key:"C",data:[...d]}),n=d[4],a=d[5],o=d[2],l=d[3];break;case"L":e.push({key:"L",data:[...d]}),[n,a]=d;break;case"H":n=d[0],e.push({key:"L",data:[n,a]});break;case"V":a=d[0],e.push({key:"L",data:[n,a]});break;case"S":{let h=0,f=0;r==="C"||r==="S"?(h=n+(n-o),f=a+(a-l)):(h=n,f=a),e.push({key:"C",data:[h,f,...d]}),o=d[0],l=d[1],n=d[2],a=d[3];break}case"T":{const[h,f]=d;let p=0,g=0;r==="Q"||r==="T"?(p=n+(n-o),g=a+(a-l)):(p=n,g=a);const m=n+2*(p-n)/3,v=a+2*(g-a)/3,y=h+2*(p-h)/3,b=f+2*(g-f)/3;e.push({key:"C",data:[m,v,y,b,h,f]}),o=p,l=g,n=h,a=f;break}case"Q":{const[h,f,p,g]=d,m=n+2*(h-n)/3,v=a+2*(f-a)/3,y=p+2*(h-p)/3,b=g+2*(f-g)/3;e.push({key:"C",data:[m,v,y,b,p,g]}),o=h,l=f,n=p,a=g;break}case"A":{const h=Math.abs(d[0]),f=Math.abs(d[1]),p=d[2],g=d[3],m=d[4],v=d[5],y=d[6];h===0||f===0?(e.push({key:"C",data:[n,a,v,y,v,y]}),n=v,a=y):(n!==v||a!==y)&&(oge(n,a,v,y,h,f,p,g,m).forEach((function(b){e.push({key:"C",data:b})})),n=v,a=y);break}case"Z":e.push({key:"Z",data:[]}),n=i,a=s}r=u}return e}function W2(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function oge(t,e,r,n,a,i,s,o,l,u){const d=(h=s,Math.PI*h/180);var h;let f=[],p=0,g=0,m=0,v=0;if(u)[p,g,m,v]=u;else{[t,e]=W2(t,e,-d),[r,n]=W2(r,n,-d);const F=(t-r)/2,A=(e-n)/2;let I=F*F/(a*a)+A*A/(i*i);I>1&&(I=Math.sqrt(I),a*=I,i*=I);const D=a*a,L=i*i,N=D*L-D*A*A-L*F*F,P=D*A*A+L*F*F,z=(o===l?-1:1)*Math.sqrt(Math.abs(N/P));m=z*a*A/i+(t+r)/2,v=z*-i*F/a+(e+n)/2,p=Math.asin(parseFloat(((e-v)/i).toFixed(9))),g=Math.asin(parseFloat(((n-v)/i).toFixed(9))),tg&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let y=g-p;if(Math.abs(y)>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=oge(r=m+a*Math.cos(g),n=v+i*Math.sin(g),A,I,a,i,s,0,l,[g,F,m,v])}y=g-p;const b=Math.cos(p),_=Math.sin(p),S=Math.cos(g),x=Math.sin(g),C=Math.tan(y/4),T=4/3*a*C,w=4/3*i*C,R=[t,e],O=[t+T*_,e-w*b],M=[r+T*x,n-w*S],$=[r,n];if(O[0]=2*R[0]-O[0],O[1]=2*R[1]-O[1],u)return[O,M,$].concat(f);{f=[O,M,$].concat(f);const F=[];for(let A=0;A2){const a=[];for(let i=0;i2*Math.PI&&(p=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,v=Math.min(m/2,(g-p)/2),y=CQ(v,u,d,h,f,p,g,1,l);if(!l.disableMultiStroke){const b=CQ(v,u,d,h,f,p,g,1.5,l);y.push(...b)}return s&&(o?y.push(...ph(u,d,u+h*Math.cos(p),d+f*Math.sin(p),l),...ph(u,d,u+h*Math.cos(g),d+f*Math.sin(g),l)):y.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+h*Math.cos(p),d+f*Math.sin(p)]})),{type:"path",ops:y}}function SQ(t,e){const r=sge(ige(HG(t))),n=[];let a=[0,0],i=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":i=[o[0],o[1]],a=[o[0],o[1]];break;case"L":n.push(...ph(i[0],i[1],o[0],o[1],e)),i=[o[0],o[1]];break;case"C":{const[l,u,d,h,f,p]=o;n.push(...SXe(l,u,d,h,f,p,i,e)),i=[f,p];break}case"Z":n.push(...ph(i[0],i[1],a[0],a[1],e)),i=[a[0],a[1]]}return{type:"path",ops:n}}function zR(t,e){const r=[];for(const n of t)if(n.length){const a=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+Fr(a,e),n[0][1]+Fr(a,e)]});for(let s=1;s500?.4:-.0016668*l+1.233334;let d=a.maxRandomnessOffset||0;d*d*100>o&&(d=l/10);const h=d/2,f=.2+.2*uge(a);let p=a.bowing*a.maxRandomnessOffset*(n-e)/200,g=a.bowing*a.maxRandomnessOffset*(t-r)/200;p=Fr(p,a,u),g=Fr(g,a,u);const m=[],v=()=>Fr(h,a,u),y=()=>Fr(d,a,u),b=a.preserveVertices;return s?m.push({op:"move",data:[t+(b?0:v()),e+(b?0:v())]}):m.push({op:"move",data:[t+(b?0:Fr(d,a,u)),e+(b?0:Fr(d,a,u))]}),s?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.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}function Ux(t,e,r){if(!t.length)return[];const n=[];n.push([t[0][0]+Fr(e,r),t[0][1]+Fr(e,r)]),n.push([t[0][0]+Fr(e,r),t[0][1]+Fr(e,r)]);for(let a=1;a3){const i=[],s=1-r.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let o=1;o+21&&a.push(o)):a.push(o),a.push(t[e+3])}else{const l=t[e+0],u=t[e+1],d=t[e+2],h=t[e+3],f=Af(l,u,.5),p=Af(u,d,.5),g=Af(d,h,.5),m=Af(f,p,.5),v=Af(p,g,.5),y=Af(m,v,.5);jP([l,f,m,y],0,r,a),jP([y,v,g,h],0,r,a)}var i,s;return a}function xXe(t,e){return _6(t,0,t.length,e)}function _6(t,e,r,n,a){const i=a||[],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?(_6(t,e,u+1,n,i),_6(t,u,r,n,i)):(i.length||i.push(s),i.push(o)),i}function UR(t,e=.15,r){const n=[],a=(t.length-1)/3;for(let i=0;i0?_6(n,0,n.length,r):n}const No="none";class b6{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,a,i){const s=this._o(i);return this._d("line",[lge(e,r,n,a,s)],s)}rectangle(e,r,n,a,i){const s=this._o(i),o=[],l=EXe(e,r,n,a,s);if(s.fill){const u=[[e,r],[e+n,r],[e+n,r+a],[e,r+a]];s.fillStyle==="solid"?o.push(zR([u],s)):o.push(qg([u],s))}return s.stroke!==No&&o.push(l),this._d("rectangle",o,s)}ellipse(e,r,n,a,i){const s=this._o(i),o=[],l=cge(n,a,s),u=KP(e,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const d=KP(e,r,s,l).opset;d.type="fillPath",o.push(d)}else o.push(qg([u.estimatedPoints],s));return s.stroke!==No&&o.push(u.opset),this._d("ellipse",o,s)}circle(e,r,n,a){const i=this.ellipse(e,r,n,n,a);return i.shape="circle",i}linearPath(e,r){const n=this._o(r);return this._d("linearPath",[h5(e,!1,n)],n)}arc(e,r,n,a,i,s,o=!1,l){const u=this._o(l),d=[],h=EQ(e,r,n,a,i,s,o,!0,u);if(o&&u.fill)if(u.fillStyle==="solid"){const f=Object.assign({},u);f.disableMultiStroke=!0;const p=EQ(e,r,n,a,i,s,!0,!1,f);p.type="fillPath",d.push(p)}else d.push((function(f,p,g,m,v,y,b){const _=f,S=p;let x=Math.abs(g/2),C=Math.abs(m/2);x+=Fr(.01*x,b),C+=Fr(.01*C,b);let T=v,w=y;for(;T<0;)T+=2*Math.PI,w+=2*Math.PI;w-T>2*Math.PI&&(T=0,w=2*Math.PI);const R=(w-T)/b.curveStepCount,O=[];for(let M=T;M<=w;M+=R)O.push([_+x*Math.cos(M),S+C*Math.sin(M)]);return O.push([_+x*Math.cos(w),S+C*Math.sin(w)]),O.push([_,S]),qg([O],b)})(e,r,n,a,i,s,u));return u.stroke!==No&&d.push(h),this._d("arc",d,u)}curve(e,r){const n=this._o(r),a=[],i=bQ(e,n);if(n.fill&&n.fill!==No)if(n.fillStyle==="solid"){const s=bQ(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));a.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(...UR(wQ([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):s.push(...UR(wQ(u),10,(1+n.roughness)/2))}s.length&&a.push(qg([s],n))}return n.stroke!==No&&a.push(i),this._d("curve",a,n)}polygon(e,r){const n=this._o(r),a=[],i=h5(e,!0,n);return n.fill&&(n.fillStyle==="solid"?a.push(zR([e],n)):a.push(qg([e],n))),n.stroke!==No&&a.push(i),this._d("polygon",a,n)}path(e,r){const n=this._o(r),a=[];if(!e)return this._d("path",a,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&n.fill!=="transparent"&&n.fill!==No,s=n.stroke!==No,o=!!(n.simplification&&n.simplification<1),l=(function(d,h,f){const p=sge(ige(HG(d))),g=[];let m=[],v=[0,0],y=[];const b=()=>{y.length>=4&&m.push(...UR(y,h)),y=[]},_=()=>{b(),m.length&&(g.push(m),m=[])};for(const{key:x,data:C}of p)switch(x){case"M":_(),v=[C[0],C[1]],m.push(v);break;case"L":b(),m.push([C[0],C[1]]);break;case"C":if(!y.length){const T=m.length?m[m.length-1]:v;y.push([T[0],T[1]])}y.push([C[0],C[1]]),y.push([C[2],C[3]]),y.push([C[4],C[5]]);break;case"Z":b(),m.push([v[0],v[1]])}if(_(),!f)return g;const S=[];for(const x of g){const C=xXe(x,f);C.length&&S.push(C)}return S})(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),u=SQ(e,n);if(i)if(n.fillStyle==="solid")if(l.length===1){const d=SQ(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else a.push(zR(l,n));else a.push(qg(l,n));return s&&(o?l.forEach((d=>{a.push(h5(d,!1,n))})):a.push(u)),this._d("path",a,n)}opsToPath(e,r){let n="";for(const a of e.ops){const i=typeof r=="number"&&r>=0?a.data.map((s=>+s.toFixed(r))):a.data;switch(a.op){case"move":n+=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `}}return n.trim()}toPaths(e){const r=e.sets||[],n=e.options||this.defaultOptions,a=[];for(const i of r){let s=null;switch(i.type){case"path":s={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:No};break;case"fillPath":s={d:this.opsToPath(i),stroke:No,strokeWidth:0,fill:n.fill||No};break;case"fillSketch":s=this.fillSketch(i,n)}s&&a.push(s)}return a}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||No,strokeWidth:n,fill:No}}_mergedShape(e){return e.filter(((r,n)=>n===0||r.op!=="move"))}}class CXe{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new b6(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),a=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":a.save(),a.strokeStyle=n.stroke==="none"?"transparent":n.stroke,a.lineWidth=n.strokeWidth,n.strokeLineDash&&a.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(a.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(a,s,i),a.restore();break;case"fillPath":{a.save(),a.fillStyle=n.fill||"";const o=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,s,i,o),a.restore();break}case"fillSketch":this.fillSketch(a,s,n)}}fillSketch(e,r,n){let a=n.fillWeight;a<0&&(a=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=a,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,a="nonzero"){e.beginPath();for(const i of r.ops){const s=typeof n=="number"&&n>=0?i.data.map((o=>+o.toFixed(n))):i.data;switch(i.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(a):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,a,i){const s=this.gen.line(e,r,n,a,i);return this.draw(s),s}rectangle(e,r,n,a,i){const s=this.gen.rectangle(e,r,n,a,i);return this.draw(s),s}ellipse(e,r,n,a,i){const s=this.gen.ellipse(e,r,n,a,i);return this.draw(s),s}circle(e,r,n,a){const i=this.gen.circle(e,r,n,a);return this.draw(i),i}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,a,i,s,o=!1,l){const u=this.gen.arc(e,r,n,a,i,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 Gx="http://www.w3.org/2000/svg";class wXe{constructor(e,r){this.svg=e,this.gen=new b6(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,i=a.createElementNS(Gx,"g"),s=e.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=a.createElementNS(Gx,"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=a.createElementNS(Gx,"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(a,o,n)}l&&i.appendChild(l)}return i}fillSketch(e,r,n){let a=n.fillWeight;a<0&&(a=n.strokeWidth/2);const i=e.createElementNS(Gx,"path");return i.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",a+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,a,i){const s=this.gen.line(e,r,n,a,i);return this.draw(s)}rectangle(e,r,n,a,i){const s=this.gen.rectangle(e,r,n,a,i);return this.draw(s)}ellipse(e,r,n,a,i){const s=this.gen.ellipse(e,r,n,a,i);return this.draw(s)}circle(e,r,n,a){const i=this.gen.circle(e,r,n,a);return this.draw(i)}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,a,i,s,o=!1,l){const u=this.gen.arc(e,r,n,a,i,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 CXe(t,e),svg:(t,e)=>new wXe(t,e),generator:t=>new b6(t),newSeed:()=>b6.newSeed()},Pr=E(async(t,e,r)=>{let n;const a=e.useHtmlLabels||K0(Ye()?.htmlLabels);r?n=r:n="node default";const i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=i.insert("g").attr("class","label").attr("style",Fi(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 eo(s,dn(R0(o),Ye()),{useHtmlLabels:a,width:e.width||Ye().flowchart?.wrappingWidth,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:l,markdown:u},Ye());let h=d.getBBox();const f=(e?.padding??0)/2;if(a){const p=d.children[0],g=At(d);await OG(p,o),h=p.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return a?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:i,bbox:h,halfPadding:f,label:s}},"labelHelper"),GR=E(async(t,e,r)=>{const n=r.useHtmlLabels??On(Ye()),a=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),i=await eo(a,dn(R0(e),Ye()),{useHtmlLabels:n,width:r.width||Ye()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=i.getBBox();const o=r.padding/2;if(On(Ye())){const l=i.children[0],u=At(i);s=l.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}return n?a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):a.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:o,label:a}},"insertLabel"),vr=E((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Dr=E((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function fn(t){const e=t.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}E(fn,"createPathFromPoints");function gh(t,e,r,n,a,i){const s=[],l=r-t,u=n-e,d=l/i,h=2*Math.PI/d,f=e+u/2;for(let p=0;p<=50;p++){const g=p/50,m=t+g*l,v=f+a*Math.sin(h*(m-t));s.push({x:m,y:v})}return s}E(gh,"generateFullSineWavePoints");function i4(t,e,r,n,a,i){const s=[],o=a*Math.PI/180,d=(i*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 a=e.find(l=>l.getAttribute("fill")!=="none"),i=e.find(l=>l.getAttribute("stroke")!=="none"),s=E((l,u)=>l?.getAttribute(u)??void 0,"getAttr");if(a){const l={fill:s(a,"fill"),"fill-opacity":s(a,"fill-opacity")??"1"};Object.entries(l).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}if(i){const l={stroke:s(i,"stroke"),"stroke-width":s(i,"stroke-width")??"1","stroke-opacity":s(i,"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}E(QP,"mergePaths");var kXe=E((t,e)=>{var r=t.x,n=t.y,a=e.x-r,i=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(i)*s>Math.abs(a)*o?(i<0&&(o=-o),l=i===0?0:o*a/i,u=o):(a<0&&(s=-s),l=s,u=a===0?0:s*i/a),{x:r+l,y:n+u}},"intersectRect"),t2=kXe,AXe=E(async(t,e,r,n=!1,a=!1)=>{let i=e||"";typeof i=="object"&&(i=i[0]);const s=Ye(),o=On(s);return await eo(t,i,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Gd=AXe,Bh=E((t,e,r,n,a)=>["M",t+a,e,"H",t+r-a,"A",a,a,0,0,1,t+r,e+a,"V",e+n-a,"A",a,a,0,0,1,t+r-a,e+n,"H",t+a,"A",a,a,0,0,1,t,e+n-a,"V",e+a,"A",a,a,0,0,1,t+a,e,"Z"].join(" "),"createRoundedRectPathD"),dge=E(async(t,e)=>{oe.info("Creating subgraph rect for ",e.id,e);const r=Ye(),{themeVariables:n,handDrawnSeed:a}=r,{clusterBkg:i,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=On(r),p=h.insert("g").attr("class","cluster-label ");let g;e.labelType==="markdown"?g=await eo(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width}):g=await Gd(p,e.label,e.labelStyle||"",!1,!0);let m=g.getBBox();if(On(r)){const T=g.children[0],w=At(g);m=T.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}const v=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,b=e.x-v/2,_=e.y-y/2;oe.trace("Data ",e,JSON.stringify(e));let S;if(e.look==="handDrawn"){const T=gr.svg(h),w=mr(e,{roughness:.7,fill:i,stroke:s,fillWeight:3,seed:a}),R=T.path(Bh(b,_,v,y,0),w);S=h.insert(()=>(oe.debug("Rough node insert CXC",R),R),":first-child"),S.select("path:nth-child(2)").attr("style",u.join(";")),S.select("path").attr("style",d.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),S.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",_).attr("width",v).attr("height",y);const{subGraphTitleTopMargin:x}=_T(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=S.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 t2(e,T)},{cluster:h,labelBBox:m}},"rect"),RXe=E((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),a=0*e.padding,i=a/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-i).attr("y",e.y-e.height/2-i).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");const s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(o){return t2(e,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),NXe=E(async(t,e)=>{const r=Ye(),{themeVariables:n,handDrawnSeed:a}=r,{altBackground:i,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 Gd(h,e.label,e.labelStyle,void 0,!0);let g=p.getBBox();if(On(r)){const R=p.children[0],O=At(p);g=R.getBoundingClientRect(),O.attr("width",g.width),O.attr("height",g.height)}const m=0*e.padding,v=m/2,y=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+m;e.width<=g.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const b=e.height+m,_=e.height+m-g.height-6,S=e.x-y/2,x=e.y-b/2;e.width=y;const C=e.y-e.height/2-v+g.height+2;let T;if(e.look==="handDrawn"){const R=e.cssClasses.includes("statediagram-cluster-alt"),O=gr.svg(u),M=e.rx||e.ry?O.path(Bh(S,x,y,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:a}):O.rectangle(S,x,y,b,{seed:a});T=u.insert(()=>M,":first-child");const $=O.rectangle(S,C,y,_,{fill:R?i:s,fillStyle:R?"hachure":"solid",stroke:l,seed:a});T=u.insert(()=>M,":first-child"),f=u.insert(()=>$)}else T=d.insert("rect",":first-child"),T.attr("class","outer").attr("x",S).attr("y",x).attr("width",y).attr("height",b).attr("data-look",e.look),f.attr("class","inner").attr("x",S).attr("y",C).attr("width",y).attr("height",_);h.attr("transform",`translate(${e.x-g.width/2}, ${x+1-(On(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(R){return t2(e,R)},{cluster:u,labelBBox:g}},"roundedWithTitle"),IXe=E(async(t,e)=>{oe.info("Creating subgraph rect for ",e.id,e);const r=Ye(),{themeVariables:n,handDrawnSeed:a}=r,{clusterBkg:i,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=On(r),p=h.insert("g").attr("class","cluster-label "),g=await eo(p,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width});let m=g.getBBox();if(On(r)){const T=g.children[0],w=At(g);m=T.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}const v=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,b=e.x-v/2,_=e.y-y/2;oe.trace("Data ",e,JSON.stringify(e));let S;if(e.look==="handDrawn"){const T=gr.svg(h),w=mr(e,{roughness:.7,fill:i,stroke:s,fillWeight:4,seed:a}),R=T.path(Bh(b,_,v,y,e.rx),w);S=h.insert(()=>(oe.debug("Rough node insert CXC",R),R),":first-child"),S.select("path:nth-child(2)").attr("style",u.join(";")),S.select("path").attr("style",d.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),S.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",_).attr("width",v).attr("height",y);const{subGraphTitleTopMargin:x}=_T(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=S.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 t2(e,T)},{cluster:h,labelBBox:m}},"kanbanSection"),OXe=E((t,e)=>{const r=Ye(),{themeVariables:n,handDrawnSeed:a}=r,{nodeBorder:i}=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 v=gr.svg(s).rectangle(h,f,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:i,seed:a});p=s.insert(()=>v,":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 t2(e,m)},{cluster:s,labelBBox:{}}},"divider"),DXe=dge,LXe={rect:dge,squareRect:DXe,roundedWithTitle:NXe,noteGroup:RXe,divider:OXe,kanbanSection:IXe},hge=new Map,VG=E(async(t,e)=>{const r=e.shape||"rect",n=await LXe[r](t,e);return hge.set(e.id,n),n},"insertCluster"),MXe=E(()=>{hge=new Map},"clear");function fge(t,e){return t.intersect(e)}E(fge,"intersectNode");var PXe=fge;function pge(t,e,r,n){var a=t.x,i=t.y,s=a-n.x,o=i-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x0}E(ZP,"sameSign");var FXe=vge;function yge(t,e,r){let n=t.x,a=t.y,i=[],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=a-t.height/2-o;for(let d=0;d1&&i.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,v=h.y-r.y,y=Math.sqrt(m*m+v*v);return gd,":first-child");return h.attr("class","anchor").attr("style",Fi(o)),vr(e,h),e.intersect=function(f){return oe.info("Circle intersect",e,s,f),lr.circle(e,s,f)},i}E(_ge,"anchor");function JP(t,e,r,n,a,i,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/a,g=f/i,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 v=Math.sqrt(1-m**2),y=l+v*i*Math.sin(d)*(s?-1:1),b=u-v*a*Math.cos(d)*(s?-1:1),_=Math.atan2((e-b)/i,(t-y)/a);let x=Math.atan2((n-b)/i,(r-y)/a)-_;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,R=_+w*x,O=y+a*Math.cos(R),M=b+i*Math.sin(R);C.push({x:O,y:M})}return C}E(JP,"generateArcPoints");function bge(t,e,r){const[n,a]=[e,r].sort((i,s)=>s-i);return a*(1-Math.sqrt(1-(t/n/2)**2))}E(bge,"calculateArcSagitta");async function Ege(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a,o=E(R=>R+s,"calcTotalHeight"),l=E(R=>{const O=R/2;return[O/(2.5+R/50),O]},"calcEllipseRadius"),{shapeSvg:u,bbox:d}=await Pr(t,e,Dr(e)),h=o(e?.height?e?.height:d.height),[f,p]=l(h),g=bge(h,f,p),v=(e?.width?e?.width:d.width)+i*2+g-g,y=h,{cssStyles:b}=e,_=[{x:v/2,y:-y/2},{x:-v/2,y:-y/2},...JP(-v/2,-y/2,-v/2,y/2,f,p,!1),{x:v/2,y:y/2},...JP(v/2,y/2,v/2,-y/2,f,p,!0)],S=gr.svg(u),x=mr(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=fn(_),T=S.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)`),vr(e,w),e.intersect=function(R){return lr.polygon(e,_,R)},u}E(Ege,"bowTieRect");function j0(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}E(j0,"insertPolygonShape");var qx=12;async function Sge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?28:a,s=e.look==="neo"?24:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.width??l.width)+(e.look==="neo"?i*2:i+qx),d=(e?.height??l.height)+(e.look==="neo"?s*2:s),h=0,f=u,p=-d,g=0,m=[{x:h+qx,y:p},{x:f,y:p},{x:f,y:g},{x:h,y:g},{x:h,y:p+qx},{x:h+qx,y:p}];let v;const{cssStyles:y}=e;if(e.look==="handDrawn"){const b=gr.svg(o),_=mr(e,{}),S=fn(m),x=b.path(S,_);v=o.insert(()=>x,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),y&&v.attr("style",y)}else v=j0(o,u,d,m);return n&&v.attr("style",n),vr(e,v),e.intersect=function(b){return lr.polygon(e,m,b)},o}E(Sge,"card");function Tge(t,e){const{nodeStyles:r}=hr(e);e.label="";const n=t.insert("g").attr("class",Dr(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,i=Math.max(28,e.width??0),s=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}],o=gr.svg(n),l=mr(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=fn(s),d=o.path(u,l),h=n.insert(()=>d,":first-child");return a&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",a),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}E(Tge,"choice");async function WG(t,e,r){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,halfPadding:o}=await Pr(t,e,Dr(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(i),g=mr(e,{}),m=p.circle(0,0,d*2,g);h=i.insert(()=>m,":first-child"),h.attr("class","basic label-container").attr("style",Fi(f))}else h=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",d).attr("cx",0).attr("cy",0);return vr(e,h),e.calcIntersect=function(p,g){const m=p.width/2;return lr.circle(p,m,g)},e.intersect=function(p){return oe.info("Circle intersect",e,d,p),lr.circle(e,d,p)},i}E(WG,"circle");function xge(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=t*2,a={x:n/2*e,y:n/2*r},i={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 ${i.x},${i.y} L ${o.x},${o.y} + M ${a.x},${a.y} L ${s.x},${s.y}`}E(xge,"createLine");function Cge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r,e.label="";const a=t.insert("g").attr("class",Dr(e)).attr("id",e.domId??e.id),i=Math.max(30,e?.width??0),{cssStyles:s}=e,o=gr.svg(a),l=mr(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=o.circle(0,0,i*2,l),d=xge(i),h=o.path(d,l),f=a.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),vr(e,f),e.intersect=function(p){return oe.info("crossedCircle intersect",e,{radius:i,point:p}),lr.circle(e,i,p)},a}E(Cge,"crossedCircle");function Ku(t,e,r,n=100,a=0,i=180){const s=[],o=a*Math.PI/180,d=(i*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-(i.x-(i.left??0))},${-d/2+(e.padding??0)/2-(i.y-(i.top??0))})`),vr(e,C),e.intersect=function(T){return lr.polygon(e,g,T)},a}E(wge,"curlyBraceLeft");function Xu(t,e,r,n=100,a=0,i=180){const s=[],o=a*Math.PI/180,d=(i*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-(i.x-(i.left??0))},${-d/2+(e.padding??0)/2-(i.y-(i.top??0))})`),vr(e,C),e.intersect=function(T){return lr.polygon(e,g,T)},a}E(kge,"curlyBraceRight");function Yi(t,e,r,n=100,a=0,i=180){const s=[],o=a*Math.PI/180,d=(i*Math.PI/180-o)/(n-1);for(let h=0;hR,":first-child").attr("stroke-opacity",0),O.insert(()=>S,":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-(i.x-(i.left??0))},${-d/2+(e.padding??0)/2-(i.y-(i.top??0))})`),vr(e,O),e.intersect=function(M){return lr.polygon(e,m,M)},a}E(Age,"curlyBraces");async function Rge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a,o=20,l=5,{shapeSvg:u,bbox:d}=await Pr(t,e,Dr(e)),h=Math.max(o,(d.width+i*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),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=h,b=f,_=y-p,S=b/4,x=[{x:_,y:0},{x:S,y:0},{x:0,y:b/2},{x:S,y:b},{x:_,y:b},...i4(-_,-b/2,p,50,270,90)],C=fn(x),T=m.path(C,v),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})`),vr(e,w),e.intersect=function(R){return lr.polygon(e,x,R)},u}E(Rge,"curvedTrapezoid");var zXe=E((t,e,r,n,a,i)=>[`M${t},${e+i}`,`a${a},${i} 0,0,0 ${r},0`,`a${a},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${a},${i} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),UXe=E((t,e,r,n,a,i)=>[`M${t},${e+i}`,`M${t+r},${e+i}`,`a${a},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${a},${i} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),GXe=E((t,e,r,n,a,i)=>[`M${t-r/2},${-n/2}`,`a${a},${i} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),kQ=8,AQ=8;async function Nge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?24:a,s=e.look==="neo"?24:a;if(e.width||e.height){const v=e.width??0;e.width=(e.width??0)-s,e.widthx,":first-child"),g=o.insert(()=>S,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{const v=zXe(0,0,d,p,h,f);g=o.insert("path",":first-child").attr("d",v).attr("class","basic label-container outer-path").attr("style",Fi(m)).attr("style",n)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),vr(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(v){const y=lr.rect(e,v),b=y.x-(e.x??0);if(h!=0&&(Math.abs(b)<(e.width??0)/2||Math.abs(b)==(e.width??0)/2&&Math.abs(y.y-(e.y??0))>(e.height??0)/2-f)){let _=f*f*(1-b*b/(h*h));_>0&&(_=Math.sqrt(_)),_=f-_,v.y-(e.y??0)>0&&(_=-_),y.y+=_}return y},o}E(Nge,"cylinder");async function r2(t,e,r){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Pr(t,e,Dr(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(i),v=mr(e,{}),y=f||p?m.path(Bh(u,d,o,l,f||0),v):m.rectangle(u,d,o,l,v);h=i.insert(()=>y,":first-child"),h.attr("class","basic label-container").attr("style",Fi(g))}else h=i.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",a).attr("rx",Fi(f)).attr("ry",Fi(p)).attr("x",u).attr("y",d).attr("width",o).attr("height",l);return vr(e,h),e.calcIntersect=function(m,v){return lr.rect(m,v)},e.intersect=function(m){return lr.rect(e,m)},i}E(r2,"drawRect");async function Ige(t,e){const{cssClasses:r,labelPaddingX:n,labelPaddingY:a,padding:i,width:s,height:o}=e,l={rx:0,ry:0,labelPaddingX:n??(i??0)*2,labelPaddingY:a??i??0},u=await r2(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)"),v=m.node();if(!v)return u;let y=null;if(v instanceof SVGGraphicsElement)y=v.getBBox();else return u;return u.insert(()=>p.line(y.x,y.y,y.x+y.width,y.y,g),".basic.label-container g.label"),u.insert(()=>p.line(y.x,y.y+y.height,y.x+y.width,y.y+y.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}E(Ige,"datastore");async function Oge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.look==="neo"?16:e.padding??0,i=e.look==="neo"?16:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Pr(t,e,Dr(e)),u=o.width+a,d=o.height+i,h=d*.2,f=-u/2,p=-d/2-h/2,{cssStyles:g}=e,m=gr.svg(s),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=[{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(y.map(S=>[S.x,S.y]),v),_=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))})`),vr(e,_),e.intersect=function(S){return lr.rect(e,S)},s}E(Oge,"dividedRectangle");async function Dge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e),a=e.look==="neo"?12:5;e.labelStyle=r;const i=e.padding??0,s=e.look==="neo"?16:i,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.width?e?.width/2:l.width/2)+(s??0),d=u-a;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}),v=p.circle(0,0,u*2,g),y=p.circle(0,0,d*2,m);h=o.insert("g",":first-child"),h.attr("class",Fi(e.cssClasses)).attr("style",Fi(f)),h.node()?.appendChild(v),h.node()?.appendChild(y)}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 vr(e,h),e.intersect=function(p){return oe.info("DoubleCircle intersect",e,u,p),lr.circle(e,u,p)},o}E(Dge,"doublecircle");function Lge(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:a}=hr(e);e.label="",e.labelStyle=n;const i=t.insert("g").attr("class",Dr(e)).attr("id",e.domId??e.id),s=7,{cssStyles:o}=e,l=gr.svg(i),{nodeBorder:u}=r,d=mr(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(d.roughness=0);const h=l.circle(0,0,s*2,d),f=i.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),a&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",a),vr(e,f),e.intersect=function(p){return oe.info("filledCircle intersect",e,{radius:s,point:p}),lr.circle(e,s,p)},i}E(Lge,"filledCircle");var RQ=10,NQ=10;async function Mge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?a*2:a;(e.width||e.height)&&(e.height=e?.height??0,e.heighty,":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,vr(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 oe.info("Triangle intersect",e,f,_),lr.polygon(e,f,_)},s}E(Mge,"flippedTriangle");function Pge(t,e,{dir:r,config:{state:n,themeVariables:a}}){const{nodeStyles:i}=hr(e);e.label="";const s=t.insert("g").attr("class",Dr(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:a.lineColor,fill:a.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),i&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",i),vr(e,m);const v=n?.padding??0;return e.width&&e.height&&(e.width+=v/2||0,e.height+=v/2||0),e.intersect=function(y){return lr.rect(e,y)},s}E(Pge,"forkJoin");async function Bge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=15,i=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),vr(e,_),e.intersect=function(S){return oe.info("Pill intersect",e,{radius:f,point:S}),lr.polygon(e,v,S)},l}E(Bge,"halfRoundedRectangle");var qXe=E((t,e,r,n,a)=>[`M${t+a},${e}`,`L${t+r-a},${e}`,`L${t+r},${e-n/2}`,`L${t+r-a},${e-n}`,`L${t+a},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD");async function Fge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e),a=e.look==="neo"?3.5:4;e.labelStyle=r;const i=e.padding??0,s=70,o=32,l=e.look==="neo"?s:i,u=e.look==="neo"?o:i;if(e.width||e.height){const _=(e.height??0)/a;e.width=(e?.width??0)-2*_-u,e.height=(e.height??0)-l}const{shapeSvg:d,bbox:h}=await Pr(t,e,Dr(e)),f=(e?.height?e?.height:h.height)+l,p=f/a,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 v;const{cssStyles:y}=e;if(e.look==="handDrawn"){const b=gr.svg(d),_=mr(e,{}),S=qXe(0,0,g,f,p),x=b.path(S,_);v=d.insert(()=>x,":first-child").attr("transform",`translate(${-g/2}, ${f/2})`),y&&v.attr("style",y)}else v=j0(d,g,f,m);return n&&v.attr("style",n),e.width=g,e.height=f,vr(e,v),e.intersect=function(b){return lr.polygon(e,m,b)},d}E(Fge,"hexagon");async function $ge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.label="",e.labelStyle=r;const{shapeSvg:a}=await Pr(t,e,Dr(e)),i=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,l=gr.svg(a),u=mr(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=[{x:0,y:0},{x:i,y:0},{x:0,y:s},{x:i,y:s}],h=fn(d),f=l.path(h,u),p=a.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(${-i/2}, ${-s/2})`),vr(e,p),e.intersect=function(g){return oe.info("Pill intersect",e,{points:d}),lr.polygon(e,d,g)},a}E($ge,"hourglass");async function zge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:a}=hr(e);e.labelStyle=a;const i=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(i,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Pr(t,e,"icon-shape default"),f=e.pos==="t",p=o,g=o,{nodeBorder:m}=r,{stylesMap:v}=e2(e),y=-g/2,b=-p/2,_=e.label?8:0,S=gr.svg(u),x=mr(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=S.rectangle(y,b,g,p,x),T=Math.max(g,d.width),w=p+d.height+_,R=S.rectangle(-T/2,-w/2,T,w,{...x,fill:"transparent",stroke:"none"}),O=u.insert(()=>C,":first-child"),M=u.insert(()=>R);if(e.icon){const $=u.append("g");$.html(`${await fh(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: ${v.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})`),vr(e,M),e.intersect=function($){if(oe.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}E(zge,"icon");async function Uge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:a}=hr(e);e.labelStyle=a;const i=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(i,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,label:h}=await Pr(t,e,"icon-shape default"),f=20,p=e.label?8:0,g=e.pos==="t",{nodeBorder:m,mainBkg:v}=r,{stylesMap:y}=e2(e),b=gr.svg(u),_=mr(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=y.get("fill");_.stroke=S??v;const x=u.append("g");e.icon&&x.html(`${await fh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const C=x.node().getBBox(),T=C.width,w=C.height,R=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-R},${g?d.height/2+p/2-w/2-O:-d.height/2-p/2-w/2-O})`),x.attr("style",`color: ${y.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})`),vr(e,L),e.intersect=function(N){return oe.info("iconSquare intersect",e,N),lr.rect(e,N)},u}E(Uge,"iconCircle");async function Gge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:a}=hr(e);e.labelStyle=a;const i=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(i,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Pr(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:v,mainBkg:y}=r,{stylesMap:b}=e2(e),_=-m/2,S=-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??y;const R=C.path(Bh(_,S,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(()=>R,":first-child").attr("class","icon-shape2"),A=u.insert(()=>$);if(e.icon){const I=u.append("g");I.html(`${await fh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const D=I.node().getBBox(),L=D.width,N=D.height,P=D.x,z=D.y;I.attr("transform",`translate(${-L/2-P},${p?d.height/2+x/2-N/2-z:-d.height/2-x/2-N/2-z})`),I.attr("style",`color: ${b.get("stroke")??v};`)}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})`),vr(e,A),e.intersect=function(I){if(oe.info("iconSquare intersect",e,I),!e.label)return lr.rect(e,I);const D=e.x??0,L=e.y??0,N=e.height??0;let P=[];return p?P=[{x:D-d.width/2,y:L-N/2},{x:D+d.width/2,y:L-N/2},{x:D+d.width/2,y:L-N/2+d.height+x},{x:D+m/2,y:L-N/2+d.height+x},{x:D+m/2,y:L+N/2},{x:D-m/2,y:L+N/2},{x:D-m/2,y:L-N/2+d.height+x},{x:D-d.width/2,y:L-N/2+d.height+x}]:P=[{x:D-m/2,y:L-N/2},{x:D+m/2,y:L-N/2},{x:D+m/2,y:L-N/2+g},{x:D+d.width/2,y:L-N/2+g},{x:D+d.width/2/2,y:L+N/2},{x:D-d.width/2,y:L+N/2},{x:D-d.width/2,y:L-N/2+g},{x:D-m/2,y:L-N/2+g}],lr.polygon(e,P,I)},u}E(Gge,"iconRounded");async function qge(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:a}=hr(e);e.labelStyle=a;const i=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(i,s),l=n?.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:u,bbox:d,halfPadding:h,label:f}=await Pr(t,e,"icon-shape default"),p=e.pos==="t",g=o+h*2,m=o+h*2,{nodeBorder:v,mainBkg:y}=r,{stylesMap:b}=e2(e),_=-m/2,S=-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??y;const R=C.path(Bh(_,S,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(()=>R,":first-child"),A=u.insert(()=>$);if(e.icon){const I=u.append("g");I.html(`${await fh(e.icon,{height:o,width:o,fallbackPrefix:""})}`);const D=I.node().getBBox(),L=D.width,N=D.height,P=D.x,z=D.y;I.attr("transform",`translate(${-L/2-P},${p?d.height/2+x/2-N/2-z:-d.height/2-x/2-N/2-z})`),I.attr("style",`color: ${b.get("stroke")??v};`)}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})`),vr(e,A),e.intersect=function(I){if(oe.info("iconSquare intersect",e,I),!e.label)return lr.rect(e,I);const D=e.x??0,L=e.y??0,N=e.height??0;let P=[];return p?P=[{x:D-d.width/2,y:L-N/2},{x:D+d.width/2,y:L-N/2},{x:D+d.width/2,y:L-N/2+d.height+x},{x:D+m/2,y:L-N/2+d.height+x},{x:D+m/2,y:L+N/2},{x:D-m/2,y:L+N/2},{x:D-m/2,y:L-N/2+d.height+x},{x:D-d.width/2,y:L-N/2+d.height+x}]:P=[{x:D-m/2,y:L-N/2},{x:D+m/2,y:L-N/2},{x:D+m/2,y:L-N/2+g},{x:D+d.width/2,y:L-N/2+g},{x:D+d.width/2/2,y:L+N/2},{x:D-d.width/2,y:L+N/2},{x:D-d.width/2,y:L-N/2+g},{x:D-m/2,y:L-N/2+g}],lr.polygon(e,P,I)},u}E(qge,"iconSquare");async function Yge(t,e,{config:{flowchart:r}}){const n=new Image;n.src=e?.img??"",await n.decode();const a=Number(n.naturalWidth.toString().replace("px","")),i=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/i;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??a),u=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:l,d=e.constraint==="on"?u/e.imageAspectRatio:e?.assetHeight??i;e.width=Math.max(u,o??0);const{shapeSvg:h,bbox:f,label:p}=await Pr(t,e,"image-shape default"),g=e.pos==="t",m=-u/2,v=-d/2,y=e.label?8:0,b=gr.svg(h),_=mr(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=b.rectangle(m,v,u,d,_),x=Math.max(u,f.width),C=d+f.height+y,T=b.rectangle(-x/2,-C/2,x,C,{..._,fill:"none",stroke:"none"}),w=h.insert(()=>S,":first-child"),R=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-y/2:d/2-f.height/2+y/2})`),w.attr("transform",`translate(0,${g?f.height/2+y/2:-f.height/2-y/2})`),vr(e,R),e.intersect=function(O){if(oe.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+y},{x:M+u/2,y:$-F/2+f.height+y},{x:M+u/2,y:$+F/2},{x:M-u/2,y:$+F/2},{x:M-u/2,y:$-F/2+f.height+y},{x:M-f.width/2,y:$-F/2+f.height+y}]: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}E(Yge,"imageSquare");async function Hge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=a,s=e.look==="neo"?a*2:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=Math.max(l.width+(s??0)*2,e?.width??0),d=Math.max(l.height+(i??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,{}),v=fn(h),y=g.path(v,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),p&&f.attr("style",p)}else f=j0(o,u,d,h);return n&&f.attr("style",n),e.width=u,e.height=d,vr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}E(Hge,"inv_trapezoid");async function Vge(t,e){const{shapeSvg:r,bbox:n,label:a}=await Pr(t,e,"label"),i=r.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),vr(e,i),e.intersect=function(l){return lr.rect(e,l)},r}E(Vge,"labelRect");async function Wge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=a,s=e.look==="neo"?a*2:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.height??l.height)+i,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,{}),v=fn(h),y=g.path(v,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=j0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,vr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}E(Wge,"lean_left");async function Kge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=a,s=e.look==="neo"?a*2:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.height??l.height)+i,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,{}),v=fn(h),y=g.path(v,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=j0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,vr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}E(Kge,"lean_right");function Xge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.label="",e.labelStyle=r;const a=t.insert("g").attr("class",Dr(e)).attr("id",e.domId??e.id),{cssStyles:i}=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(a),h=mr(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=fn(u),p=d.path(f,h),g=a.insert(()=>p,":first-child");return g.attr("class","outer-path"),i&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",i),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${s/2},${-o})`),vr(e,g),e.intersect=function(m){return oe.info("lightningBolt intersect",e,m),lr.polygon(e,u,m)},a}E(Xge,"lightningBolt");var YXe=E((t,e,r,n,a,i,s)=>[`M${t},${e+i}`,`a${a},${i} 0,0,0 ${r},0`,`a${a},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${a},${i} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+i+s}`,`a${a},${i} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),HXe=E((t,e,r,n,a,i,s)=>[`M${t},${e+i}`,`M${t+r},${e+i}`,`a${a},${i} 0,0,0 ${-r},0`,`l0,${n}`,`a${a},${i} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+i+s}`,`a${a},${i} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),VXe=E((t,e,r,n,a,i)=>[`M${t-r/2},${-n/2}`,`a${a},${i} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),IQ=10,OQ=10;async function jge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?24:a;if(e.width||e.height){const y=e.width??0;e.width=(e.width??0)-i,e.widthC,":first-child").attr("class","line"),m=o.insert(()=>x,":first-child"),m.attr("class","basic label-container"),v&&m.attr("style",v)}else{const y=YXe(0,0,d,p,h,f,g);m=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",Fi(v)).attr("style",n)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-d/2}, ${-(p/2+f)})`),vr(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(y){const b=lr.rect(e,y),_=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 S=f*f*(1-_*_/(h*h));S>0&&(S=Math.sqrt(S)),S=f-S,y.y-(e.y??0)>0&&(S=-S),b.y+=S}return b},o}E(jge,"linedCylinder");async function Qge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a;if(e.width||e.height){const S=e.width;e.width=(S??0)*10/11-i*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 Pr(t,e,Dr(e)),d=(e?.width?e?.width:l.width)+(i??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),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=[{x:-d/2-d/2*.1,y:-p/2},{x:-d/2-d/2*.1,y:p/2},...gh(-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(y.map(S=>[S.x,S.y]),v),_=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))})`),vr(e,_),e.intersect=function(S){return lr.polygon(e,y,S)},o}E(Qge,"linedWaveEdgedRect");async function Zge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a,o=e.look==="neo"?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-i*2-2*o,10),e.height=Math.max((e?.height??0)-s*2-2*o,10));const{shapeSvg:l,bbox:u,label:d}=await Pr(t,e,Dr(e)),h=(e?.width?e?.width:u.width)+i*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,v=-g/2,{cssStyles:y}=e,b=gr.svg(l),_=mr(e,{}),S=[{x:m-o,y:v+o},{x:m-o,y:v+g+o},{x:m+p-o,y:v+g+o},{x:m+p-o,y:v+g},{x:m+p,y:v+g},{x:m+p,y:v+g-o},{x:m+p+o,y:v+g-o},{x:m+p+o,y:v-o},{x:m+o,y:v-o},{x:m+o,y:v},{x:m,y:v},{x:m,y:v+o}],x=[{x:m,y:v+o},{x:m+p-o,y:v+o},{x:m+p-o,y:v+g},{x:m+p,y:v+g},{x:m+p,y:v},{x:m,y:v}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=fn(S);let T=b.path(C,_);const w=fn(x);let R=b.path(w,_);e.look!=="handDrawn"&&(T=QP(T),R=QP(R));const O=l.insert("g",":first-child");return O.insert(()=>T),O.insert(()=>R),O.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",y),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))})`),vr(e,O),e.intersect=function(M){return lr.polygon(e,S,M)},l}E(Zge,"multiRect");async function Jge(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i,label:s}=await Pr(t,e,Dr(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(i.width,e?.width??0)+l*2,f=Math.max(i.height,e?.height??0)+u*3,p=e.look==="neo"?f/4:f/8,g=f+(d?p/2:-p/2),m=-h/2,v=-g/2,y=10,{cssStyles:b}=e,_=gh(m-y,v+g+y,m+h-y,v+g+y,p,.8),S=_?.[_.length-1],x=[{x:m-y,y:v+y},{x:m-y,y:v+g+y},..._,{x:m+h-y,y:S.y-y},{x:m+h,y:S.y-y},{x:m+h,y:S.y-2*y},{x:m+h+y,y:S.y-2*y},{x:m+h+y,y:v-y},{x:m+y,y:v-y},{x:m+y,y:v},{x:m,y:v},{x:m,y:v+y}],C=[{x:m,y:v+y},{x:m+h-y,y:v+y},{x:m+h-y,y:S.y-y},{x:m+h,y:S.y-y},{x:m+h,y:v},{x:m,y:v}],T=gr.svg(a),w=mr(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const R=fn(x),O=T.path(R,w),M=fn(C),$=T.path(M,w),F=a.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(${-(i.width/2)-y-(i.x-(i.left??0))}, ${-(i.height/2)+y-p/2-(i.y-(i.top??0))})`),vr(e,F),e.intersect=function(A){return lr.polygon(e,x,A)},a}E(Jge,"multiWaveEdgedRectangle");async function eme(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n,e.useHtmlLabels||On(xr())||(e.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await Pr(t,e,Dr(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 v=g.rectangle(h,f,u,d,m),y=s.insert(()=>v,":first-child");return y.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),p&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",p),a&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",a),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),vr(e,y),e.intersect=function(b){return lr.rect(e,b)},s}E(eme,"note");var WXe=E((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 tme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i}=await Pr(t,e,Dr(e)),s=i.width+(e.padding??0),o=i.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(a),g=mr(e,{}),m=WXe(0,0,l),v=p.path(m,g);h=a.insert(()=>v,":first-child").attr("transform",`translate(${-l/2+u}, ${l/2})`),f&&h.attr("style",f)}else h=j0(a,l,l,d),h.attr("transform",`translate(${-l/2+u}, ${l/2})`);return n&&h.attr("style",n),vr(e,h),e.calcIntersect=function(p,g){const m=p.width,v=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],y=lr.polygon(p,v,g);return{x:y.x-.5,y:y.y-.5}},e.intersect=function(p){return this.calcIntersect(e,p)},a}E(tme,"question");async function rme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?21:a??0,s=e.look==="neo"?12:a??0,{shapeSvg:o,bbox:l,label:u}=await Pr(t,e,Dr(e)),d=(e?.width??l.width)+(e.look==="neo"?i*2:i),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:v}=e,y=gr.svg(o),b=mr(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=fn(m),S=y.path(_,b),x=o.insert(()=>S,":first-child");return x.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",v),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))})`),vr(e,x),e.intersect=function(C){return lr.polygon(e,m,C)},o}E(rme,"rect_left_inv_arrow");async function nme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;let a;e.cssClasses?a="node "+e.cssClasses:a="node default";const i=t.insert("g").attr("class",a).attr("id",e.domId||e.id),s=i.insert("g"),o=i.insert("g").attr("class","label").attr("style",n),l=e.description,u=e.label,d=await Gd(o,u,e.labelStyle,!0,!0);let h={width:0,height:0};if(On(Ye())){const w=d.children[0],R=At(d);h=w.getBoundingClientRect(),R.attr("width",h.width),R.attr("height",h.height)}oe.info("Text 2",l);const f=l||[],p=d.getBBox(),g=await Gd(o,Array.isArray(f)?f.join("
"):f,e.labelStyle,!0,!0),m=g.children[0],v=At(g);h=m.getBoundingClientRect(),v.attr("width",h.width),v.attr("height",h.height);const y=(e.padding||0)/2;At(g).attr("transform","translate( "+(h.width>p.width?0:(p.width-h.width)/2)+", "+(p.height+y+5)+")"),At(d).attr("transform","translate( "+(h.width(oe.debug("Rough node insert CXC",O),M),":first-child"),C=i.insert(()=>(oe.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-y).attr("y",-h.height/2-y).attr("width",h.width+(e.padding||0)).attr("height",h.height+(e.padding||0)),T.attr("class","divider").attr("x1",-h.width/2-y).attr("x2",h.width/2+y).attr("y1",-h.height/2-y+p.height+y).attr("y2",-h.height/2-y+p.height+y);return vr(e,C),e.intersect=function(w){return lr.rect(e,w)},i}E(nme,"rectWithTitle");async function ame(t,e,{config:{themeVariables:r}}){const n=r?.radius??5,a={rx:n,ry:n,labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return r2(t,e,a)}E(ame,"roundedRect");var df=8;async function ime(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.look==="neo"?16:e.padding??0,i=e.look==="neo"?12:e.padding??0,{shapeSvg:s,bbox:o,label:l}=await Pr(t,e,Dr(e)),u=(e?.width??o.width)+a*2+(e.look==="neo"?df:df*2),d=(e?.height??o.height)+i*2,h=u-df,f=d,p=df-u/2,g=-d/2,{cssStyles:m}=e,v=gr.svg(s),y=mr(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:p,y:g},{x:p+h,y:g},{x:p+h,y:g+f},{x:p-df,y:g+f},{x:p-df,y:g},{x:p,y:g},{x:p,y:g+f}],_=v.polygon(b.map(x=>[x.x,x.y]),y),S=s.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path").attr("style",Fi(m)),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),m&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),l.attr("transform",`translate(${df/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),vr(e,S),e.intersect=function(x){return lr.rect(e,x)},s}E(ime,"shadedProcess");async function sme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-i*2,10),e.height=Math.max((e?.height??0)/1.5-s*2,10));const{shapeSvg:o,bbox:l,label:u}=await Pr(t,e,Dr(e)),d=(e?.width?e?.width:l.width)+i*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:v}=e,y=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}],S=fn(_),x=y.path(S,b),C=o.insert(()=>x,":first-child");return C.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",v),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))})`),vr(e,C),e.intersect=function(T){return lr.polygon(e,_,T)},o}E(sme,"slopedRect");async function ome(t,e){const r=e.padding??0,n=e.look==="neo"?16:r*2,a=e.look==="neo"?12:r,i={rx:0,ry:0,labelPaddingX:e.labelPaddingX??n,labelPaddingY:a};return r2(t,e,i)}E(ome,"squareRect");async function lme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?20:a,s=e.look==="neo"?12:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=l.height+(e.look==="neo"?s*2:s),d=l.width+u/4+(e.look==="neo"?i*2:i),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},...i4(-d/2+h,0,h,50,90,270),{x:d/2-h,y:u/2},...i4(d/2-h,0,h,50,270,450)],v=fn(m),y=p.path(v,g),b=o.insert(()=>y,":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),vr(e,b),e.intersect=function(_){return lr.polygon(e,m,_)},o}E(lme,"stadium");async function cme(t,e){const r={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5};return r2(t,e,r)}E(cme,"state");function ume(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n;const{cssStyles:i}=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,v=h.circle(0,0,m,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),y=d.insert(()=>p,":first-child");if(y.insert(()=>v),e.look!=="handDrawn"&&y.attr("class","outer-path"),i&&y.selectAll("path").attr("style",i),a&&y.selectAll("path").attr("style",a),e.width<25&&u&&e.look!=="handDrawn"){const b=t.node()?.ownerSVGElement?.id??"",_=b?`${b}-drop-shadow-small`:"drop-shadow-small";y.attr("style",`filter:url(#${_})`)}return vr(e,y),e.intersect=function(b){return lr.circle(e,(e.width??0)/2,b)},d}E(ume,"stateEnd");function dme(t,e,{config:{themeVariables:r}}){const{lineColor:n,nodeShadow:a}=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 i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if(e.look==="handDrawn"){const l=gr.svg(i).circle(0,0,e.width,iKe(n));s=i.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=i.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&&a&&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 vr(e,s),e.intersect=function(o){return lr.circle(e,(e.width??7)/2,o)},i}E(dme,"stateStart");var Yg=8;async function hme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e?.padding??8,i=e.look==="neo"?28:a,s=e.look==="neo"?12:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.width??l.width)+2*Yg+i,d=(e?.height??l.height)+s,h=u-2*Yg,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 v=gr.svg(o),y=mr(e,{}),b=v.rectangle(p,g,h+16,f,y),_=v.line(p+Yg,g,p+Yg,g+f,y),S=v.line(p+Yg+h,g,p+Yg+h,g+f,y);o.insert(()=>_,":first-child"),o.insert(()=>S,":first-child");const x=o.insert(()=>b,":first-child"),{cssStyles:C}=e;x.attr("class","basic label-container").attr("style",Fi(C)),vr(e,x)}else{const v=j0(o,h,f,m);n&&v.attr("style",n),vr(e,v)}return e.intersect=function(v){return lr.polygon(e,m,v)},o}E(hme,"subroutine");var qR=.2;async function fme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-s*2,10),e.width=Math.max((e?.width??0)-i*2-qR*(e.height+s*2),10));const{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.height?e?.height:l.height)+s*2,d=qR*u,h=qR*u,p=(e?.width?e?.width:l.width)+i*2+d-d,g=u,m=-p/2,v=-g/2,{cssStyles:y}=e,b=gr.svg(o),_=mr(e,{}),S=[{x:m-d/2,y:v},{x:m+p+d/2,y:v},{x:m+p+d/2,y:v+g},{x:m-d/2,y:v+g}],x=[{x:m+p-d/2,y:v+g},{x:m+p+d/2,y:v+g},{x:m+p+d/2,y:v+g-h}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=fn(S),T=b.path(C,_),w=fn(x),R=b.path(w,{..._,fillStyle:"solid"}),O=o.insert(()=>R,":first-child");return O.insert(()=>T,":first-child"),O.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",y),n&&e.look!=="handDrawn"&&O.selectAll("path").attr("style",n),vr(e,O),e.intersect=function(M){return lr.polygon(e,S,M)},o}E(fme,"taggedRect");async function pme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i,label:s}=await Pr(t,e,Dr(e)),o=Math.max(i.width+(e.padding??0)*2,e?.width??0),l=Math.max(i.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(a),m=mr(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const v=[{x:-o/2-o/2*.1,y:f/2},...gh(-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}],y=-o/2+o/2*.1,b=-f/2-h*.4,_=[{x:y+o-d,y:(b+l)*1.3},{x:y+o,y:b+l-h},{x:y+o,y:(b+l)*.9},...gh(y+o,(b+l)*1.25,y+o-d,(b+l)*1.3,-l*.02,.5)],S=fn(v),x=g.path(S,m),C=fn(_),T=g.path(C,{...m,fillStyle:"solid"}),w=a.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)-(i.x-(i.left??0))},${-l/2+(e.padding??0)-u/2-(i.y-(i.top??0))})`),vr(e,w),e.intersect=function(R){return lr.polygon(e,v,R)},a}E(pme,"taggedWaveEdgedRectangle");async function gme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i}=await Pr(t,e,Dr(e)),s=Math.max(i.width+(e.padding??0),e?.width||0),o=Math.max(i.height+(e.padding??0),e?.height||0),l=-s/2,u=-o/2,d=a.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),vr(e,d),e.intersect=function(h){return lr.rect(e,h)},a}E(gme,"text");var KXe=E((t,e,r,n,a,i)=>`M${t},${e} a${a},${i} 0,0,1 0,${-n} l${r},0 a${a},${i} 0,0,1 0,${n} M${r},${-n} a${a},${i} 0,0,0 0,${n} - l${-r},0`,"createCylinderPathD"),KXe=E((t,e,r,n,a,i)=>[`M${t},${e}`,`M${t+r},${e}`,`a${a},${i} 0,0,0 0,${-n}`,`l${-r},0`,`a${a},${i} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),XXe=E((t,e,r,n,a,i)=>[`M${t+r/2},${-n/2}`,`a${a},${i} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),DQ=5,LQ=10;async function mme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?12:a/2;if(e.width||e.height){const m=e.height??0;e.height=(e.height??0)-i,e.height_,":first-child"),g=s.insert(()=>b,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const m=WXe(0,0,f,u,h,d);g=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Fi(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))})`),vr(e,g),e.intersect=function(m){const v=lr.rect(e,m),y=v.y-(e.y??0);if(d!=0&&(Math.abs(y)<(e.height??0)/2||Math.abs(y)==(e.height??0)/2&&Math.abs(v.x-(e.x??0))>(e.width??0)/2-h)){let b=h*h*(1-y*y/(d*d));b!=0&&(b=Math.sqrt(Math.abs(b))),b=h-b,m.x-(e.x??0)>0&&(b=-b),v.x+=b}return v},s}E(mme,"tiltedCylinder");async function vme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=(e.look==="neo",a),s=e.look==="neo"?a*2:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.height??l.height)+i,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,{}),v=fn(h),y=g.path(v,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=j0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,vr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}E(vme,"trapezoid");async function yme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a,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),vr(e,_),e.intersect=function(S){return lr.polygon(e,v,S)},u}E(yme,"trapezoidalPentagon");var MQ=10,PQ=10;async function _me(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?a*2:a;(e.width||e.height)&&(e.width=((e?.width??0)-i)/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,vr(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(S){return oe.info("Triangle intersect",e,p,S),lr.polygon(e,p,S)},s}E(_me,"triangle");async function bme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a;let o=!0;(e.width||e.height)&&(o=!1,e.width=(e?.width??0)-i*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 Pr(t,e,Dr(e)),h=(e?.width?e?.width:u.width)+(i??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,y=14-h,b=y>0?y/2:0,_=gr.svg(l),S=mr(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const x=[{x:-h/2-b,y:g/2},...gh(-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=fn(x),T=_.path(C,S),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))})`),vr(e,w),e.intersect=function(R){return lr.polygon(e,x,R)},l}E(bme,"waveEdgedRectangle");async function Eme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?20:a;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 S=Math.min(e.height*.2,e.height/4);e.height=Math.ceil(e.height-s-S*(20/9)),e.width=e.width-i*2}const{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.width?e?.width:l.width)+i*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 v=[{x:-u/2,y:f/2},...gh(-u/2,f/2,u/2,f/2,h,1),{x:u/2,y:-f/2},...gh(u/2,-f/2,-u/2,-f/2,h,-1)],y=fn(v),b=g.path(y,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),vr(e,_),e.intersect=function(S){return lr.polygon(e,v,S)},o}E(Eme,"waveRectangle");var Da=10;async function Sme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.look==="neo"?16:e.padding??0,i=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2-Da,10),e.height=Math.max((e?.height??0)-i*2-Da,10));const{shapeSvg:s,bbox:o,label:l}=await Pr(t,e,Dr(e)),u=(e?.width?e?.width:o.width)+a*2+Da,d=(e?.height?e?.height:o.height)+i*2+Da,h=u-Da,f=d-Da,p=-h/2,g=-f/2,{cssStyles:m}=e,v=gr.svg(s),y=mr(e,{}),b=[{x:p-Da,y:g-Da},{x:p-Da,y:g+f},{x:p+h,y:g+f},{x:p+h,y:g-Da}],_=`M${p-Da},${g-Da} L${p+h},${g-Da} L${p+h},${g+f} L${p-Da},${g+f} L${p-Da},${g-Da} + l${-r},0`,"createCylinderPathD"),XXe=E((t,e,r,n,a,i)=>[`M${t},${e}`,`M${t+r},${e}`,`a${a},${i} 0,0,0 0,${-n}`,`l${-r},0`,`a${a},${i} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),jXe=E((t,e,r,n,a,i)=>[`M${t+r/2},${-n/2}`,`a${a},${i} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),DQ=5,LQ=10;async function mme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?12:a/2;if(e.width||e.height){const m=e.height??0;e.height=(e.height??0)-i,e.height_,":first-child"),g=s.insert(()=>b,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const m=KXe(0,0,f,u,h,d);g=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Fi(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))})`),vr(e,g),e.intersect=function(m){const v=lr.rect(e,m),y=v.y-(e.y??0);if(d!=0&&(Math.abs(y)<(e.height??0)/2||Math.abs(y)==(e.height??0)/2&&Math.abs(v.x-(e.x??0))>(e.width??0)/2-h)){let b=h*h*(1-y*y/(d*d));b!=0&&(b=Math.sqrt(Math.abs(b))),b=h-b,m.x-(e.x??0)>0&&(b=-b),v.x+=b}return v},s}E(mme,"tiltedCylinder");async function vme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=(e.look==="neo",a),s=e.look==="neo"?a*2:a,{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.height??l.height)+i,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,{}),v=fn(h),y=g.path(v,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),p&&f.attr("style",p)}else f=j0(o,d,u,h);return n&&f.attr("style",n),e.width=d,e.height=u,vr(e,f),e.intersect=function(g){return lr.polygon(e,h,g)},o}E(vme,"trapezoid");async function yme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a,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),vr(e,_),e.intersect=function(S){return lr.polygon(e,v,S)},u}E(yme,"trapezoidalPentagon");var MQ=10,PQ=10;async function _me(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?a*2:a;(e.width||e.height)&&(e.width=((e?.width??0)-i)/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,vr(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(S){return oe.info("Triangle intersect",e,p,S),lr.polygon(e,p,S)},s}E(_me,"triangle");async function bme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?12:a;let o=!0;(e.width||e.height)&&(o=!1,e.width=(e?.width??0)-i*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 Pr(t,e,Dr(e)),h=(e?.width?e?.width:u.width)+(i??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,y=14-h,b=y>0?y/2:0,_=gr.svg(l),S=mr(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const x=[{x:-h/2-b,y:g/2},...gh(-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=fn(x),T=_.path(C,S),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))})`),vr(e,w),e.intersect=function(R){return lr.polygon(e,x,R)},l}E(bme,"waveEdgedRectangle");async function Eme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.padding??0,i=e.look==="neo"?16:a,s=e.look==="neo"?20:a;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 S=Math.min(e.height*.2,e.height/4);e.height=Math.ceil(e.height-s-S*(20/9)),e.width=e.width-i*2}const{shapeSvg:o,bbox:l}=await Pr(t,e,Dr(e)),u=(e?.width?e?.width:l.width)+i*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 v=[{x:-u/2,y:f/2},...gh(-u/2,f/2,u/2,f/2,h,1),{x:u/2,y:-f/2},...gh(u/2,-f/2,-u/2,-f/2,h,-1)],y=fn(v),b=g.path(y,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),vr(e,_),e.intersect=function(S){return lr.polygon(e,v,S)},o}E(Eme,"waveRectangle");var Da=10;async function Sme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e.look==="neo"?16:e.padding??0,i=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-a*2-Da,10),e.height=Math.max((e?.height??0)-i*2-Da,10));const{shapeSvg:s,bbox:o,label:l}=await Pr(t,e,Dr(e)),u=(e?.width?e?.width:o.width)+a*2+Da,d=(e?.height?e?.height:o.height)+i*2+Da,h=u-Da,f=d-Da,p=-h/2,g=-f/2,{cssStyles:m}=e,v=gr.svg(s),y=mr(e,{}),b=[{x:p-Da,y:g-Da},{x:p-Da,y:g+f},{x:p+h,y:g+f},{x:p+h,y:g-Da}],_=`M${p-Da},${g-Da} L${p+h},${g-Da} L${p+h},${g+f} L${p-Da},${g+f} L${p-Da},${g-Da} M${p-Da},${g} L${p+h},${g} - M${p},${g-Da} L${p},${g+f}`;e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const S=v.path(_,y),x=s.insert(()=>S,":first-child");return x.attr("transform",`translate(${Da/2}, ${Da/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)+Da/2-(o.x-(o.left??0))}, ${-(o.height/2)+Da/2-(o.y-(o.top??0))})`),vr(e,x),e.intersect=function(C){return lr.polygon(e,b,C)},s}E(Sme,"windowPane");var BQ=new Set(["redux-color","redux-dark-color"]),jXe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function KG(t,e){const r=e;r.alias&&(e.label=r.alias);const{theme:n,themeVariables:a}=xr(),{rowEven:i,rowOdd:s,nodeBorder:o,borderColorArray:l}=a;if(e.look==="handDrawn"){const{themeVariables:ee}=xr(),{background:X}=ee,le={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${X}`]};await KG(t,le)}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 ee={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5};Gs(e.label,u)+ee.labelPaddingX*20){const ee=y.width+d*2-(x+C+T+w);x+=ee/M,C+=ee/M,T>0&&(T+=ee/M),w>0&&(w+=ee/M)}const F=x+C+T+w,A=gr.svg(v),I=mr(e,{});e.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let D=0;S.length>0&&(D=S.reduce((ee,X)=>ee+(X?.rowHeight??0),0));const L=Math.max($.width+d*2,e?.width||0,F),N=Math.max((D??0)+y.height,e?.height||0),P=-L/2,z=-N/2;if(v.selectAll("g:not(:first-child)").each((ee,X,le)=>{const te=At(le[X]),ne=te.attr("transform");let ae=0,re=0;if(ne){const pe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ne);pe&&(ae=parseFloat(pe[1]),re=parseFloat(pe[2]),te.attr("class").includes("attribute-name")?ae+=x:te.attr("class").includes("attribute-keys")?ae+=x+C:te.attr("class").includes("attribute-comment")&&(ae+=x+C+T))}te.attr("transform",`translate(${P+d/2+ae}, ${re+z+y.height+h/2})`)}),v.select(".name").attr("transform","translate("+-y.width/2+", "+(z+h/2)+")"),n!=null&&BQ.has(n)){const ee=r.colorIndex??0;v.attr("data-color-id",`color-${ee%l.length}`)}const B=A.rectangle(P,z,L,N,I),U=v.insert(()=>B,":first-child").attr("class","outer-path").attr("style",f.join(""));_.push(0);for(const[ee,X]of S.entries()){const te=(ee+1)%2===0&&X.yOffset!==0,ne=A.rectangle(P,y.height+z+X?.yOffset,L,X?.rowHeight,{...I,fill:te?i:s,stroke:o});v.insert(()=>ne,"g.label").attr("style",f.join("")).attr("class",`row-rect-${te?"even":"odd"}`)}const G=1e-4;let K=fm(P,y.height+z,L+P,y.height+z,G),Y=A.polygon(K.map(ee=>[ee.x,ee.y]),I);if(v.insert(()=>Y).attr("class","divider"),K=fm(x+P,y.height+z,x+P,N+z,G),Y=A.polygon(K.map(ee=>[ee.x,ee.y]),I),v.insert(()=>Y).attr("class","divider"),R){const ee=x+C+P;K=fm(ee,y.height+z,ee,N+z,G),Y=A.polygon(K.map(X=>[X.x,X.y]),I),v.insert(()=>Y).attr("class","divider")}if(O){const ee=x+C+T+P;K=fm(ee,y.height+z,ee,N+z,G),Y=A.polygon(K.map(X=>[X.x,X.y]),I),v.insert(()=>Y).attr("class","divider")}for(const ee of _){const X=y.height+z+ee;K=fm(P,X,L+P,X,G),Y=A.polygon(K.map(le=>[le.x,le.y]),I),v.insert(()=>Y).attr("class","divider")}if(vr(e,U),g&&e.look!=="handDrawn")if(n!=null&&jXe.has(n))v.selectAll("path").attr("style",g);else{const X=g.split(";")?.filter(le=>le.includes("stroke"))?.map(le=>`${le}`).join("; ");v.selectAll("path").attr("style",X??""),v.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(ee){return lr.rect(e,ee)},v}E(KG,"erBox");async function hm(t,e,r,n=0,a=0,i=[],s=""){const o=t.insert("g").attr("class",`label ${i.join(" ")}`).attr("transform",`translate(${n}, ${a})`).attr("style",s);e!==Ad(e)&&(e=Ad(e),e=e.replaceAll("<","<").replaceAll(">",">"));const l=o.node().appendChild(await eo(o,e,{width:Gs(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(K0(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}E(hm,"addText");function fm(t,e,r,n,a){return t===r?[{x:t-a/2,y:e},{x:t+a/2,y:e},{x:r+a/2,y:n},{x:r-a/2,y:n}]:[{x:t,y:e-a/2},{x:t,y:e+a/2},{x:r,y:n+a/2},{x:r,y:n-a/2}]}E(fm,"lineToPolygon");async function Tme(t,e,r,n,a=r.class.padding??12){const i=n?0:3,s=t.insert("g").attr("class",Dr(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 CE(o,{text:`«${b}»`},0),h=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await CE(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 CE(u,b,m,[b.parseClassifier()]);m+=_+i}p=u.node().getBBox().height,p<=0&&(p=a/2),d=s.insert("g").attr("class","methods-group text");let v=0;for(const b of e.methods){const _=await CE(d,b,v,[b.parseClassifier()]);v+=_+i}let y=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})`),y=s.node().getBBox(),u.attr("transform",`translate(0, ${h+f+a*2})`),y=s.node().getBBox(),d.attr("transform",`translate(0, ${h+f+(p?p+a*4:a*2)})`),y=s.node().getBBox(),{shapeSvg:s,bbox:y}}E(Tme,"textHelper");async function CE(t,e,r,n=[]){const a=t.insert("g").attr("class","label").attr("style",n.join("; ")),i=xr();let s="useHtmlLabels"in e?e.useHtmlLabels:K0(i.htmlLabels)??!0,o="";"text"in e?o=e.text:o=e.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Xa(o)&&(s=!0);const l=await eo(a,VU(R0(o)),{width:Gs(o,i)+50,classes:"markdown-node-label",useHtmlLabels:s},i);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(v=>{function y(){if(m.style.display="flex",m.style.flexDirection="column",g){const b=i.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,S=parseInt(b,10)*5+"px";m.style.minWidth=S,m.style.maxWidth=S}else m.style.width="100%";v(m)}E(y,"setupImage"),setTimeout(()=>{m.complete&&y()}),m.addEventListener("error",y),m.addEventListener("load",y)})))}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 a.attr("transform","translate(0,"+(-u.height/(2*d)+r)+")"),u.height}E(CE,"addText");async function xme(t,e){const r=Ye(),{themeVariables:n}=r,{useGradient:a}=n,i=r.class.padding??12,s=i,o=e.useHtmlLabels??K0(r.htmlLabels)??!0,l=e;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:u,bbox:d}=await Tme(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),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=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 S=-y/2,x=-b/2;let C=g?i*2:l.members.length===0&&l.methods.length===0?-i:0;_&&(C=i*2);const T=m.rectangle(S-i,x-i-(g?i:l.members.length===0&&l.methods.length===0?-i/2:0),y+2*i,b+2*i+C,v),w=u.insert(()=>T,":first-child");w.attr("class","basic label-container outer-path");const R=w.node().getBBox(),O=u.select(".annotation-group").node().getBBox().height-(g?i/2:0)||0,M=u.select(".label-group").node().getBBox().height-(g?i/2:0)||0,$=u.select(".members-group").node().getBBox().height-(g?i/2:0)||0,F=(O+M+x+i-(x-i-(g?i:l.members.length===0&&l.methods.length===0?-i/2:0)))/2;if(u.selectAll(".text").each((A,I,D)=>{const L=At(D[I]),N=L.attr("transform");let P=0;if(N){const G=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(N);G&&(P=parseFloat(G[2]))}let z=P+x+i-(g?i:l.members.length===0&&l.methods.length===0?-i/2:0);if(L.attr("class").includes("methods-group")){const U=Math.max($,s/2);_?z=Math.max(F,O+M+U+x+s*2+i)+s*2:z=O+M+U+x+s*4+i}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=S;(L.attr("class").includes("label-group")||L.attr("class").includes("annotation-group"))&&(B=-L.node()?.getBBox().width/2||0,u.selectAll("text").each(function(U,G,K){window.getComputedStyle(K[G]).textAnchor==="middle"&&(B=0)})),L.attr("transform",`translate(${B}, ${z})`)}),l.members.length>0||l.methods.length>0||g){const A=O+M+x+i,I=m.line(R.x,A,R.x+R.width,A+.001,v);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!a?" neo-line":""}`).attr("style",p)}if(g||l.members.length>0||l.methods.length>0){const A=O+M+$+x+s*2+i,I=m.line(R.x,_?Math.max(F,A):A,R.x+R.width,(_?Math.max(F,A):A)+.001,v);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!a?" 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 vr(e,w),e.intersect=function(A){return lr.rect(e,A)},u}E(xme,"classBox");async function Cme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e,i=e,s=20,o=20,l="verifyMethod"in e,u=Dr(e),{themeVariables:d}=Ye(),{borderColorArray:h,requirementEdgeLabelBackground:f}=d,p=t.insert("g").attr("class",u).attr("id",e.domId??e.id);let g;l?g=await Ic(p,`<<${a.type}>>`,0,e.labelStyle):g=await Ic(p,"<<Element>>",0,e.labelStyle);let m=g;const v=await Ic(p,a.name,m,e.labelStyle+"; font-weight: bold;");if(m+=v+o,l){const R=await Ic(p,`${a.requirementId?`ID: ${a.requirementId}`:""}`,m,e.labelStyle);m+=R;const O=await Ic(p,`${a.text?`Text: ${a.text}`:""}`,m,e.labelStyle);m+=O;const M=await Ic(p,`${a.risk?`Risk: ${a.risk}`:""}`,m,e.labelStyle);m+=M,await Ic(p,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,m,e.labelStyle)}else{const R=await Ic(p,`${i.type?`Type: ${i.type}`:""}`,m,e.labelStyle);m+=R,await Ic(p,`${i.docRef?`Doc Ref: ${i.docRef}`:""}`,m,e.labelStyle)}const y=(p.node()?.getBBox().width??200)+s,b=(p.node()?.getBBox().height??200)+s,_=-y/2,S=-b/2,x=gr.svg(p),C=mr(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=x.rectangle(_,S,y,b,C),w=p.insert(()=>T,":first-child");if(w.attr("class","basic label-container outer-path").attr("style",n),h?.length){const R=e.colorIndex??0;p.attr("data-color-id",`color-${R%h.length}`)}if(p.selectAll(".label").each((R,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+v+o){const R=S+g+v+o;let O;if(e.look==="neo"){const F=[[_,R],[_+y,R],[_+y,R+.001],[_,R+.001]];O=x.polygon(F,C)}else O=x.line(_,R,_+y,R,C);p.insert(()=>O).attr("class","divider")}return vr(e,w),e.intersect=function(R){return lr.rect(e,R)},n&&e.look!=="handDrawn"&&(f||h?.length)&&p.selectAll("path").attr("style",n),p}E(Cme,"requirementBox");async function Ic(t,e,r,n=""){if(e==="")return 0;const a=t.insert("g").attr("class","label").attr("style",n),i=Ye(),s=i.htmlLabels??!0,o=await eo(a,VU(R0(e)),{width:Gs(e,i)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},i);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 a.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}E(Ic,"addText");var QXe=E(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 wme(t,e,{config:r}){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n||"";const i=10,s=e.width;e.width=(e.width??200)-10;const{shapeSvg:o,bbox:l,label:u}=await Pr(t,e,Dr(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 GR(f,"ticket"in e&&e.ticket||"",p):{label:g,bbox:m}=await GR(o,"ticket"in e&&e.ticket||"",p);const{label:v,bbox:y}=await GR(o,"assigned"in e&&e.assigned||"",p);e.width=s;const b=10,_=e?.width||0,S=Math.max(m.height,y.height)/2,x=Math.max(l.height+b*2,e?.height||0)+S,C=-_/2,T=-x/2;u.attr("transform","translate("+(d-_/2)+", "+(-S-l.height/2)+")"),g.attr("transform","translate("+(d-_/2)+", "+(-S+l.height/2)+")"),v.attr("transform","translate("+(d+_/2-y.width-2*i)+", "+(-S+l.height/2)+")");let w;const{rx:R,ry:O}=e,{cssStyles:M}=e;if(e.look==="handDrawn"){const $=gr.svg(o),F=mr(e,{}),A=R||O?$.path(Bh(C,T,_,x,R||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",a).attr("rx",R??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((R??0)/2),D=T+x-Math.floor((R??0)/2);F.attr("x1",A).attr("y1",I).attr("x2",A).attr("y2",D).attr("stroke-width","4").attr("stroke",QXe($))}}return vr(e,w),e.height=x,e.intersect=function($){return lr.rect(e,$)},o}E(wme,"kanbanItem");async function kme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i,halfPadding:s,label:o}=await Pr(t,e,Dr(e)),l=i.width+10*s,u=i.height+8*s,d=.15*l,{cssStyles:h}=e,f=i.width+20,p=i.height+20,g=Math.max(l,f),m=Math.max(u,p);o.attr("transform",`translate(${-i.width/2}, ${-i.height/2})`);let v;const y=`M0 0 + M${p},${g-Da} L${p},${g+f}`;e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const S=v.path(_,y),x=s.insert(()=>S,":first-child");return x.attr("transform",`translate(${Da/2}, ${Da/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)+Da/2-(o.x-(o.left??0))}, ${-(o.height/2)+Da/2-(o.y-(o.top??0))})`),vr(e,x),e.intersect=function(C){return lr.polygon(e,b,C)},s}E(Sme,"windowPane");var BQ=new Set(["redux-color","redux-dark-color"]),QXe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function KG(t,e){const r=e;r.alias&&(e.label=r.alias);const{theme:n,themeVariables:a}=xr(),{rowEven:i,rowOdd:s,nodeBorder:o,borderColorArray:l}=a;if(e.look==="handDrawn"){const{themeVariables:ee}=xr(),{background:X}=ee,le={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${X}`]};await KG(t,le)}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 ee={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5};Gs(e.label,u)+ee.labelPaddingX*20){const ee=y.width+d*2-(x+C+T+w);x+=ee/M,C+=ee/M,T>0&&(T+=ee/M),w>0&&(w+=ee/M)}const F=x+C+T+w,A=gr.svg(v),I=mr(e,{});e.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let D=0;S.length>0&&(D=S.reduce((ee,X)=>ee+(X?.rowHeight??0),0));const L=Math.max($.width+d*2,e?.width||0,F),N=Math.max((D??0)+y.height,e?.height||0),P=-L/2,z=-N/2;if(v.selectAll("g:not(:first-child)").each((ee,X,le)=>{const te=At(le[X]),ne=te.attr("transform");let ae=0,re=0;if(ne){const pe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ne);pe&&(ae=parseFloat(pe[1]),re=parseFloat(pe[2]),te.attr("class").includes("attribute-name")?ae+=x:te.attr("class").includes("attribute-keys")?ae+=x+C:te.attr("class").includes("attribute-comment")&&(ae+=x+C+T))}te.attr("transform",`translate(${P+d/2+ae}, ${re+z+y.height+h/2})`)}),v.select(".name").attr("transform","translate("+-y.width/2+", "+(z+h/2)+")"),n!=null&&BQ.has(n)){const ee=r.colorIndex??0;v.attr("data-color-id",`color-${ee%l.length}`)}const B=A.rectangle(P,z,L,N,I),U=v.insert(()=>B,":first-child").attr("class","outer-path").attr("style",f.join(""));_.push(0);for(const[ee,X]of S.entries()){const te=(ee+1)%2===0&&X.yOffset!==0,ne=A.rectangle(P,y.height+z+X?.yOffset,L,X?.rowHeight,{...I,fill:te?i:s,stroke:o});v.insert(()=>ne,"g.label").attr("style",f.join("")).attr("class",`row-rect-${te?"even":"odd"}`)}const G=1e-4;let K=fm(P,y.height+z,L+P,y.height+z,G),Y=A.polygon(K.map(ee=>[ee.x,ee.y]),I);if(v.insert(()=>Y).attr("class","divider"),K=fm(x+P,y.height+z,x+P,N+z,G),Y=A.polygon(K.map(ee=>[ee.x,ee.y]),I),v.insert(()=>Y).attr("class","divider"),R){const ee=x+C+P;K=fm(ee,y.height+z,ee,N+z,G),Y=A.polygon(K.map(X=>[X.x,X.y]),I),v.insert(()=>Y).attr("class","divider")}if(O){const ee=x+C+T+P;K=fm(ee,y.height+z,ee,N+z,G),Y=A.polygon(K.map(X=>[X.x,X.y]),I),v.insert(()=>Y).attr("class","divider")}for(const ee of _){const X=y.height+z+ee;K=fm(P,X,L+P,X,G),Y=A.polygon(K.map(le=>[le.x,le.y]),I),v.insert(()=>Y).attr("class","divider")}if(vr(e,U),g&&e.look!=="handDrawn")if(n!=null&&QXe.has(n))v.selectAll("path").attr("style",g);else{const X=g.split(";")?.filter(le=>le.includes("stroke"))?.map(le=>`${le}`).join("; ");v.selectAll("path").attr("style",X??""),v.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(ee){return lr.rect(e,ee)},v}E(KG,"erBox");async function hm(t,e,r,n=0,a=0,i=[],s=""){const o=t.insert("g").attr("class",`label ${i.join(" ")}`).attr("transform",`translate(${n}, ${a})`).attr("style",s);e!==Ad(e)&&(e=Ad(e),e=e.replaceAll("<","<").replaceAll(">",">"));const l=o.node().appendChild(await eo(o,e,{width:Gs(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(K0(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}E(hm,"addText");function fm(t,e,r,n,a){return t===r?[{x:t-a/2,y:e},{x:t+a/2,y:e},{x:r+a/2,y:n},{x:r-a/2,y:n}]:[{x:t,y:e-a/2},{x:t,y:e+a/2},{x:r,y:n+a/2},{x:r,y:n-a/2}]}E(fm,"lineToPolygon");async function Tme(t,e,r,n,a=r.class.padding??12){const i=n?0:3,s=t.insert("g").attr("class",Dr(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 CE(o,{text:`«${b}»`},0),h=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await CE(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 CE(u,b,m,[b.parseClassifier()]);m+=_+i}p=u.node().getBBox().height,p<=0&&(p=a/2),d=s.insert("g").attr("class","methods-group text");let v=0;for(const b of e.methods){const _=await CE(d,b,v,[b.parseClassifier()]);v+=_+i}let y=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})`),y=s.node().getBBox(),u.attr("transform",`translate(0, ${h+f+a*2})`),y=s.node().getBBox(),d.attr("transform",`translate(0, ${h+f+(p?p+a*4:a*2)})`),y=s.node().getBBox(),{shapeSvg:s,bbox:y}}E(Tme,"textHelper");async function CE(t,e,r,n=[]){const a=t.insert("g").attr("class","label").attr("style",n.join("; ")),i=xr();let s="useHtmlLabels"in e?e.useHtmlLabels:K0(i.htmlLabels)??!0,o="";"text"in e?o=e.text:o=e.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Xa(o)&&(s=!0);const l=await eo(a,VU(R0(o)),{width:Gs(o,i)+50,classes:"markdown-node-label",useHtmlLabels:s},i);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(v=>{function y(){if(m.style.display="flex",m.style.flexDirection="column",g){const b=i.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,S=parseInt(b,10)*5+"px";m.style.minWidth=S,m.style.maxWidth=S}else m.style.width="100%";v(m)}E(y,"setupImage"),setTimeout(()=>{m.complete&&y()}),m.addEventListener("error",y),m.addEventListener("load",y)})))}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 a.attr("transform","translate(0,"+(-u.height/(2*d)+r)+")"),u.height}E(CE,"addText");async function xme(t,e){const r=Ye(),{themeVariables:n}=r,{useGradient:a}=n,i=r.class.padding??12,s=i,o=e.useHtmlLabels??K0(r.htmlLabels)??!0,l=e;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:u,bbox:d}=await Tme(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),v=mr(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const y=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 S=-y/2,x=-b/2;let C=g?i*2:l.members.length===0&&l.methods.length===0?-i:0;_&&(C=i*2);const T=m.rectangle(S-i,x-i-(g?i:l.members.length===0&&l.methods.length===0?-i/2:0),y+2*i,b+2*i+C,v),w=u.insert(()=>T,":first-child");w.attr("class","basic label-container outer-path");const R=w.node().getBBox(),O=u.select(".annotation-group").node().getBBox().height-(g?i/2:0)||0,M=u.select(".label-group").node().getBBox().height-(g?i/2:0)||0,$=u.select(".members-group").node().getBBox().height-(g?i/2:0)||0,F=(O+M+x+i-(x-i-(g?i:l.members.length===0&&l.methods.length===0?-i/2:0)))/2;if(u.selectAll(".text").each((A,I,D)=>{const L=At(D[I]),N=L.attr("transform");let P=0;if(N){const G=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(N);G&&(P=parseFloat(G[2]))}let z=P+x+i-(g?i:l.members.length===0&&l.methods.length===0?-i/2:0);if(L.attr("class").includes("methods-group")){const U=Math.max($,s/2);_?z=Math.max(F,O+M+U+x+s*2+i)+s*2:z=O+M+U+x+s*4+i}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=S;(L.attr("class").includes("label-group")||L.attr("class").includes("annotation-group"))&&(B=-L.node()?.getBBox().width/2||0,u.selectAll("text").each(function(U,G,K){window.getComputedStyle(K[G]).textAnchor==="middle"&&(B=0)})),L.attr("transform",`translate(${B}, ${z})`)}),l.members.length>0||l.methods.length>0||g){const A=O+M+x+i,I=m.line(R.x,A,R.x+R.width,A+.001,v);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!a?" neo-line":""}`).attr("style",p)}if(g||l.members.length>0||l.methods.length>0){const A=O+M+$+x+s*2+i,I=m.line(R.x,_?Math.max(F,A):A,R.x+R.width,(_?Math.max(F,A):A)+.001,v);u.insert(()=>I).attr("class",`divider${e.look==="neo"&&!a?" 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 vr(e,w),e.intersect=function(A){return lr.rect(e,A)},u}E(xme,"classBox");async function Cme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const a=e,i=e,s=20,o=20,l="verifyMethod"in e,u=Dr(e),{themeVariables:d}=Ye(),{borderColorArray:h,requirementEdgeLabelBackground:f}=d,p=t.insert("g").attr("class",u).attr("id",e.domId??e.id);let g;l?g=await Ic(p,`<<${a.type}>>`,0,e.labelStyle):g=await Ic(p,"<<Element>>",0,e.labelStyle);let m=g;const v=await Ic(p,a.name,m,e.labelStyle+"; font-weight: bold;");if(m+=v+o,l){const R=await Ic(p,`${a.requirementId?`ID: ${a.requirementId}`:""}`,m,e.labelStyle);m+=R;const O=await Ic(p,`${a.text?`Text: ${a.text}`:""}`,m,e.labelStyle);m+=O;const M=await Ic(p,`${a.risk?`Risk: ${a.risk}`:""}`,m,e.labelStyle);m+=M,await Ic(p,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,m,e.labelStyle)}else{const R=await Ic(p,`${i.type?`Type: ${i.type}`:""}`,m,e.labelStyle);m+=R,await Ic(p,`${i.docRef?`Doc Ref: ${i.docRef}`:""}`,m,e.labelStyle)}const y=(p.node()?.getBBox().width??200)+s,b=(p.node()?.getBBox().height??200)+s,_=-y/2,S=-b/2,x=gr.svg(p),C=mr(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=x.rectangle(_,S,y,b,C),w=p.insert(()=>T,":first-child");if(w.attr("class","basic label-container outer-path").attr("style",n),h?.length){const R=e.colorIndex??0;p.attr("data-color-id",`color-${R%h.length}`)}if(p.selectAll(".label").each((R,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+v+o){const R=S+g+v+o;let O;if(e.look==="neo"){const F=[[_,R],[_+y,R],[_+y,R+.001],[_,R+.001]];O=x.polygon(F,C)}else O=x.line(_,R,_+y,R,C);p.insert(()=>O).attr("class","divider")}return vr(e,w),e.intersect=function(R){return lr.rect(e,R)},n&&e.look!=="handDrawn"&&(f||h?.length)&&p.selectAll("path").attr("style",n),p}E(Cme,"requirementBox");async function Ic(t,e,r,n=""){if(e==="")return 0;const a=t.insert("g").attr("class","label").attr("style",n),i=Ye(),s=i.htmlLabels??!0,o=await eo(a,VU(R0(e)),{width:Gs(e,i)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},i);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 a.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}E(Ic,"addText");var ZXe=E(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 wme(t,e,{config:r}){const{labelStyles:n,nodeStyles:a}=hr(e);e.labelStyle=n||"";const i=10,s=e.width;e.width=(e.width??200)-10;const{shapeSvg:o,bbox:l,label:u}=await Pr(t,e,Dr(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 GR(f,"ticket"in e&&e.ticket||"",p):{label:g,bbox:m}=await GR(o,"ticket"in e&&e.ticket||"",p);const{label:v,bbox:y}=await GR(o,"assigned"in e&&e.assigned||"",p);e.width=s;const b=10,_=e?.width||0,S=Math.max(m.height,y.height)/2,x=Math.max(l.height+b*2,e?.height||0)+S,C=-_/2,T=-x/2;u.attr("transform","translate("+(d-_/2)+", "+(-S-l.height/2)+")"),g.attr("transform","translate("+(d-_/2)+", "+(-S+l.height/2)+")"),v.attr("transform","translate("+(d+_/2-y.width-2*i)+", "+(-S+l.height/2)+")");let w;const{rx:R,ry:O}=e,{cssStyles:M}=e;if(e.look==="handDrawn"){const $=gr.svg(o),F=mr(e,{}),A=R||O?$.path(Bh(C,T,_,x,R||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",a).attr("rx",R??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((R??0)/2),D=T+x-Math.floor((R??0)/2);F.attr("x1",A).attr("y1",I).attr("x2",A).attr("y2",D).attr("stroke-width","4").attr("stroke",ZXe($))}}return vr(e,w),e.height=x,e.intersect=function($){return lr.rect(e,$)},o}E(wme,"kanbanItem");async function kme(t,e){const{labelStyles:r,nodeStyles:n}=hr(e);e.labelStyle=r;const{shapeSvg:a,bbox:i,halfPadding:s,label:o}=await Pr(t,e,Dr(e)),l=i.width+10*s,u=i.height+8*s,d=.15*l,{cssStyles:h}=e,f=i.width+20,p=i.height+20,g=Math.max(l,f),m=Math.max(u,p);o.attr("transform",`translate(${-i.width/2}, ${-i.height/2})`);let v;const y=`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 @@ -2845,23 +2850,23 @@ Please report this to https://github.com/markedjs/marked.`,e){let a="

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=a.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",n).attr("d",h);return a.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(${-i.width/2}, ${-i.height/2})`),a.append(()=>o.node()),vr(e,f),e.calcIntersect=function(p,g){return lr.rect(p,g)},e.intersect=function(p){return lr.rect(e,p)},a}E(Rme,"defaultMindmapNode");async function Nme(t,e){const r={padding:e.padding??0};return WG(t,e,r)}E(Nme,"mindmapCircle");var ZXe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ome},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:ame},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:lme},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:hme},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Nge},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Ige},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:WG},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:kme},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Ame},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tme},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Fge},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Kge},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Wge},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:vme},{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:Hge},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Dge},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:gme},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Sge},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ime},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:dme},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ume},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Pge},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:$ge},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:wge},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:kge},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Age},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Xge},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:bme},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Bge},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:mme},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:jge},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Rge},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Oge},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:_me},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Sme},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Lge},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:yme},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Mge},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:sme},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Jge},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Zge},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Ege},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Cge},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:pme},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:fme},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Eme},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:rme},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Qge}],JXe=E(()=>{const e=[...Object.entries({state:cme,choice:Tge,note:eme,rectWithTitle:nme,labelRect:Vge,iconSquare:qge,iconCircle:Uge,icon:zge,iconRounded:Gge,imageSquare:Yge,anchor:_ge,kanbanItem:wme,mindmapCircle:Nme,defaultMindmapNode:Rme,classBox:xme,erBox:KG,requirementBox:Cme}),...ZXe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(a=>[a,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Ime=JXe();function Ome(t){return t in Ime}E(Ome,"isValidShape");var r7=new Map;async function n7(t,e,r){let n,a;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const i=e.shape?Ime[e.shape]:void 0;if(!i)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),a=await i(n,e,r)}else a=await i(t,e,r),n=a;return n.attr("data-look",Fi(e.look)),e.tooltip&&a.attr("title",e.tooltip),r7.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}E(n7,"insertNode");var eje=E((t,e)=>{r7.set(e.id,t)},"setNodeElem"),tje=E(()=>{r7.clear()},"clear"),eB=E(t=>{const e=r7.get(t.id);oe.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"),rje=E((t,e,r,n,a,i=!1,s)=>{e.arrowTypeStart&&FQ(t,"start",e.arrowTypeStart,r,n,a,i,s),e.arrowTypeEnd&&FQ(t,"end",e.arrowTypeEnd,r,n,a,i,s)},"addEdgeMarkers"),nje={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}},aje=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],FQ=E((t,e,r,n,a,i,s=!1,o)=>{const l=nje[r],u=l&&aje.includes(l.type);if(!l){oe.warn(`Unknown arrow type: ${r}`);return}const d=l.type,p=`${a}_${i}-${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 v=document.getElementById(p);if(v){const y=v.cloneNode(!0);y.id=m,y.querySelectorAll("path, circle, line").forEach(_=>{_.setAttribute("stroke",o),l.fill&&_.setAttribute("fill",o)}),v.parentNode?.appendChild(y)}}t.attr(`marker-${e}`,`url(${n}#${m})`)}else t.attr(`marker-${e}`,`url(${n}#${p})`)},"addEdgeMarker"),ije=E(t=>typeof t=="string"?t:Ye()?.flowchart?.curve,"resolveEdgeCurveType"),E6=new Map,Xi=new Map,sje=E(()=>{E6.clear(),Xi.clear()},"clear"),X2=E(t=>t?typeof t=="string"?t:t.reduce((e,r)=>e+";"+r,""):"","getLabelStyles"),Dme=E(async(t,e)=>{const r=Ye();let n=On(r);const{labelStyles:a}=hr(e);e.labelStyle=a;const i=t.insert("g").attr("class","edgeLabel"),s=i.insert("g").attr("class","label").attr("data-id",e.id),o=e.labelType==="markdown",u=await eo(t,e.label,{style:X2(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);s.node().appendChild(u),oe.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",Hc(h,n)),E6.set(e.id,i),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 Gd(g,e.startLabelLeft,X2(e.labelStyle)||"",!1,!1);f=m;let v=m.getBBox();if(n){const y=m.children[0],b=At(m);v=y.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",Hc(v,n)),Xi.get(e.id)||Xi.set(e.id,{}),Xi.get(e.id).startLeft=p,wE(f,e.startLabelLeft)}if(e.startLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Gd(g,e.startLabelRight,X2(e.labelStyle)||"",!1,!1);f=m;let v=m.getBBox();if(n){const y=m.children[0],b=At(m);v=y.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",Hc(v,n)),Xi.get(e.id)||Xi.set(e.id,{}),Xi.get(e.id).startRight=p,wE(f,e.startLabelRight)}if(e.endLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Gd(p,e.endLabelLeft,X2(e.labelStyle)||"",!1,!1);f=m;let v=m.getBBox();if(n){const y=m.children[0],b=At(m);v=y.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",Hc(v,n)),Xi.get(e.id)||Xi.set(e.id,{}),Xi.get(e.id).endLeft=p,wE(f,e.endLabelLeft)}if(e.endLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Gd(p,e.endLabelRight,X2(e.labelStyle)||"",!1,!1);f=m;let v=m.getBBox();if(n){const y=m.children[0],b=At(m);v=y.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",Hc(v,n)),Xi.get(e.id)||Xi.set(e.id,{}),Xi.get(e.id).endRight=p,wE(f,e.endLabelRight)}return u},"insertEdgeLabel");function wE(t,e){On(Ye())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}E(wE,"setTerminalWidth");var Lme=E((t,e)=>{oe.debug("Moving label abc88 ",t.id,t.label,E6.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=Ye(),{subGraphTitleTotalMargin:a}=_T(n);if(t.label){const i=E6.get(t.id);let s=t.x,o=t.y;if(r){const l=Kr.calcLabelPosition(r);oe.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}i.attr("transform",`translate(${s}, ${o+a/2})`)}if(t.startLabelLeft){const i=Xi.get(t.id).startLeft;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const i=Xi.get(t.id).startRight;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const i=Xi.get(t.id).endLeft;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const i=Xi.get(t.id).endRight;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),oje=E((t,e)=>{const r=t.x,n=t.y,a=Math.abs(e.x-r),i=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return a>=s||i>=o},"outsideNode"),lje=E((t,e,r)=>{oe.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=a.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",n).attr("d",h);return a.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(${-i.width/2}, ${-i.height/2})`),a.append(()=>o.node()),vr(e,f),e.calcIntersect=function(p,g){return lr.rect(p,g)},e.intersect=function(p){return lr.rect(e,p)},a}E(Rme,"defaultMindmapNode");async function Nme(t,e){const r={padding:e.padding??0};return WG(t,e,r)}E(Nme,"mindmapCircle");var JXe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ome},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:ame},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:lme},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:hme},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Nge},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Ige},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:WG},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:kme},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Ame},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tme},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Fge},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Kge},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Wge},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:vme},{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:Hge},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Dge},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:gme},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Sge},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ime},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:dme},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ume},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Pge},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:$ge},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:wge},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:kge},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Age},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Xge},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:bme},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Bge},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:mme},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:jge},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Rge},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Oge},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:_me},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Sme},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Lge},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:yme},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Mge},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:sme},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Jge},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Zge},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Ege},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Cge},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:pme},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:fme},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Eme},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:rme},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Qge}],eje=E(()=>{const e=[...Object.entries({state:cme,choice:Tge,note:eme,rectWithTitle:nme,labelRect:Vge,iconSquare:qge,iconCircle:Uge,icon:zge,iconRounded:Gge,imageSquare:Yge,anchor:_ge,kanbanItem:wme,mindmapCircle:Nme,defaultMindmapNode:Rme,classBox:xme,erBox:KG,requirementBox:Cme}),...JXe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(a=>[a,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Ime=eje();function Ome(t){return t in Ime}E(Ome,"isValidShape");var r7=new Map;async function n7(t,e,r){let n,a;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const i=e.shape?Ime[e.shape]:void 0;if(!i)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),a=await i(n,e,r)}else a=await i(t,e,r),n=a;return n.attr("data-look",Fi(e.look)),e.tooltip&&a.attr("title",e.tooltip),r7.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}E(n7,"insertNode");var tje=E((t,e)=>{r7.set(e.id,t)},"setNodeElem"),rje=E(()=>{r7.clear()},"clear"),eB=E(t=>{const e=r7.get(t.id);oe.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"),nje=E((t,e,r,n,a,i=!1,s)=>{e.arrowTypeStart&&FQ(t,"start",e.arrowTypeStart,r,n,a,i,s),e.arrowTypeEnd&&FQ(t,"end",e.arrowTypeEnd,r,n,a,i,s)},"addEdgeMarkers"),aje={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}},ije=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],FQ=E((t,e,r,n,a,i,s=!1,o)=>{const l=aje[r],u=l&&ije.includes(l.type);if(!l){oe.warn(`Unknown arrow type: ${r}`);return}const d=l.type,p=`${a}_${i}-${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 v=document.getElementById(p);if(v){const y=v.cloneNode(!0);y.id=m,y.querySelectorAll("path, circle, line").forEach(_=>{_.setAttribute("stroke",o),l.fill&&_.setAttribute("fill",o)}),v.parentNode?.appendChild(y)}}t.attr(`marker-${e}`,`url(${n}#${m})`)}else t.attr(`marker-${e}`,`url(${n}#${p})`)},"addEdgeMarker"),sje=E(t=>typeof t=="string"?t:Ye()?.flowchart?.curve,"resolveEdgeCurveType"),E6=new Map,Xi=new Map,oje=E(()=>{E6.clear(),Xi.clear()},"clear"),X2=E(t=>t?typeof t=="string"?t:t.reduce((e,r)=>e+";"+r,""):"","getLabelStyles"),Dme=E(async(t,e)=>{const r=Ye();let n=On(r);const{labelStyles:a}=hr(e);e.labelStyle=a;const i=t.insert("g").attr("class","edgeLabel"),s=i.insert("g").attr("class","label").attr("data-id",e.id),o=e.labelType==="markdown",u=await eo(t,e.label,{style:X2(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);s.node().appendChild(u),oe.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",Hc(h,n)),E6.set(e.id,i),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 Gd(g,e.startLabelLeft,X2(e.labelStyle)||"",!1,!1);f=m;let v=m.getBBox();if(n){const y=m.children[0],b=At(m);v=y.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",Hc(v,n)),Xi.get(e.id)||Xi.set(e.id,{}),Xi.get(e.id).startLeft=p,wE(f,e.startLabelLeft)}if(e.startLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Gd(g,e.startLabelRight,X2(e.labelStyle)||"",!1,!1);f=m;let v=m.getBBox();if(n){const y=m.children[0],b=At(m);v=y.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",Hc(v,n)),Xi.get(e.id)||Xi.set(e.id,{}),Xi.get(e.id).startRight=p,wE(f,e.startLabelRight)}if(e.endLabelLeft){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Gd(p,e.endLabelLeft,X2(e.labelStyle)||"",!1,!1);f=m;let v=m.getBBox();if(n){const y=m.children[0],b=At(m);v=y.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",Hc(v,n)),Xi.get(e.id)||Xi.set(e.id,{}),Xi.get(e.id).endLeft=p,wE(f,e.endLabelLeft)}if(e.endLabelRight){const p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),m=await Gd(p,e.endLabelRight,X2(e.labelStyle)||"",!1,!1);f=m;let v=m.getBBox();if(n){const y=m.children[0],b=At(m);v=y.getBoundingClientRect(),b.attr("width",v.width),b.attr("height",v.height)}g.attr("transform",Hc(v,n)),Xi.get(e.id)||Xi.set(e.id,{}),Xi.get(e.id).endRight=p,wE(f,e.endLabelRight)}return u},"insertEdgeLabel");function wE(t,e){On(Ye())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}E(wE,"setTerminalWidth");var Lme=E((t,e)=>{oe.debug("Moving label abc88 ",t.id,t.label,E6.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=Ye(),{subGraphTitleTotalMargin:a}=_T(n);if(t.label){const i=E6.get(t.id);let s=t.x,o=t.y;if(r){const l=Kr.calcLabelPosition(r);oe.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}i.attr("transform",`translate(${s}, ${o+a/2})`)}if(t.startLabelLeft){const i=Xi.get(t.id).startLeft;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const i=Xi.get(t.id).startRight;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const i=Xi.get(t.id).endLeft;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const i=Xi.get(t.id).endRight;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),lje=E((t,e)=>{const r=t.x,n=t.y,a=Math.abs(e.x-r),i=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return a>=s||i>=o},"outsideNode"),cje=E((t,e,r)=>{oe.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,a=t.y,i=Math.abs(n-r.x),s=t.width/2;let o=r.xMath.abs(n-e.x)*l){let h=r.y{oe.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],a=!1;return t.forEach(i=>{if(oe.info("abc88 checking point",i,e),!oje(e,i)&&!a){const s=lje(e,n,i);oe.debug("abc88 inside",i,n,s),oe.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)?oe.warn("abc88 no intersect",s,r):r.push(s),a=!0}else oe.warn("abc88 outside",i,n),n=i,a||r.push(i)}),oe.debug("returning points",r),r},"cutPathAtIntersect");function Mme(t){const e=[],r=[];for(let n=1;n5&&Math.abs(i.y-a.y)>5||a.y===i.y&&i.x===s.x&&Math.abs(i.x-a.x)>5&&Math.abs(i.y-s.y)>5)&&(e.push(i),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}E(Mme,"extractCornerPoints");var zQ=E(function(t,e,r){const n=e.x-t.x,a=e.y-t.y,i=Math.sqrt(n*n+a*a),s=r/i;return{x:e.x-s*n,y:e.y-s*a}},"findAdjacentPoint"),cje=E(function(t){const{cornerPointPositions:e}=Mme(t),r=[];for(let n=0;n10&&Math.abs(i.y-a.y)>=10){oe.debug("Corner point fixing",Math.abs(i.x-a.x),Math.abs(i.y-a.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 oe.debug("Corner point skipping fixing",Math.abs(i.x-a.x),Math.abs(i.y-a.y));r.push(f,l)}else r.push(t[n]);return r},"fixCorners"),uje=E((t,e,r)=>{const n=t-e-r,a=2,i=2,s=a+i,o=Math.floor(n/s),l=Array(o).fill(`${a} ${i}`).join(" ");return`0 ${e} ${l} ${r}`},"generateDashArray"),Pme=E(function(t,e,r,n,a,i,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}=Ye();let u=e.points,d=!1;const h=a;var f=i;const p=[];for(const L in e.cssCompiledStyles)DG(L)||p.push(e.cssCompiledStyles[L]);oe.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])),oe.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&&(oe.info("to cluster abc88",r.get(e.toCluster)),u=$Q(e.points,r.get(e.toCluster).node),d=!0),e.fromCluster&&(oe.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=$Q(u.reverse(),r.get(e.fromCluster).node).reverse(),d=!0);let m=u.filter(L=>!Number.isNaN(L.y));const v=ije(e.curve);v!=="rounded"&&(m=cje(m));let y=oS;switch(v){case"linear":y=oS;break;case"basis":y=JS;break;case"cardinal":y=uhe;break;case"bumpX":y=ihe;break;case"bumpY":y=she;break;case"catmullRom":y=hhe;break;case"monotoneX":y=yhe;break;case"monotoneY":y=_he;break;case"natural":y=Ehe;break;case"step":y=She;break;case"stepAfter":y=xhe;break;case"stepBefore":y=The;break;case"rounded":y=oS;break;default:y=JS}const{x:b,y:_}=spe(e),S=ZS().x(b).y(_).curve(y);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=v==="rounded"?Bme(Fme(m,e),5):S(m);const w=Array.isArray(e.style)?e.style:[e.style];let R=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 N=L.path(T,{roughness:.3,seed:l});x+=" transition",C=At(N).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(";"),N=w?w.reduce((K,Y)=>K+Y+";",""):"",P=(L?L+";"+N+";":N)+";"+(w?w.reduce((K,Y)=>K+";"+Y,""):"");C=t.append("path").attr("d",T).attr("id",`${s}-${e.id}`).attr("class"," "+x+(e.classes?" "+e.classes:"")+(O?" "+O:"")).attr("style",P),R=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,U=eQ[e.arrowTypeStart]||0,G=eQ[e.arrowTypeEnd]||0;if(e.look==="neo"&&!M){const Y=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?uje(B,U,G):`0 ${U} ${B-U-G} ${G}`}; stroke-dashoffset: 0;`;C.attr("style",Y+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",Fi(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 $="";(Ye().flowchart.arrowMarkerAbsolute||Ye().state.arrowMarkerAbsolute)&&($=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,$=$.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),oe.info("arrowTypeStart",e.arrowTypeStart),oe.info("arrowTypeEnd",e.arrowTypeEnd);const F=!M&&e?.look==="neo";rje(C,e,$,s,n,F,R);const A=Math.floor(u.length/2),I=u[A];Kr.isLabelCoordinateInPath(I,C.attr("d"))||(d=!0);let D={};return d&&(D.updatedPath=u),D.originalPath=e.points,D},"insertEdge");function Bme(t,e){if(t.length<2)return"";let r="";const n=t.length,a=1e-5;for(let i=0;i({...a}));if(t.length>=2&&ss[e.arrowTypeStart]){const a=ss[e.arrowTypeStart],i=t[0],s=t[1],{angle:o}=tB(i,s),l=a*Math.cos(o),u=a*Math.sin(o);r[0].x=i.x+l,r[0].y=i.y+u}const n=t.length;if(n>=2&&ss[e.arrowTypeEnd]){const a=ss[e.arrowTypeEnd],i=t[n-1],s=t[n-2],{angle:o}=tB(s,i),l=a*Math.cos(o),u=a*Math.sin(o);r[n-1].x=i.x-l,r[n-1].y=i.y-u}return r}E(Fme,"applyMarkerOffsetsToPoints");var dje=E((t,e,r,n)=>{e.forEach(a=>{Lje[a](t,r,n)})},"insertMarkers"),hje=E((t,e,r)=>{oe.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"),fje=E((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"),pje=E((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"),gje=E((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"),mje=E((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"),vje=E((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"),yje=E((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"),_je=E((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"),bje=E((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"),Eje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{transitionColor:i}=a;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",`${i}`)},"barbNeo"),Sje=E((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"),Tje=E((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 a=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");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),xje=E((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"),Cje=E((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 a=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");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),wje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i}=a;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",`${i}`),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",`${i}`)},"only_one_neo"),kje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i,mainBkg:s}=a,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",`${i}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${i}`);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",`${i}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${i}`)},"zero_or_one_neo"),Aje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i}=a;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",`${i}`),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",`${i}`)},"one_or_more_neo"),Rje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i,mainBkg:s}=a,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",`${i}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${i}`);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",`${i}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${i}`)},"zero_or_more_neo"),Nje=E((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,a=t.y,i=Math.abs(n-r.x),s=t.width/2;let o=r.xMath.abs(n-e.x)*l){let h=r.y{oe.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],a=!1;return t.forEach(i=>{if(oe.info("abc88 checking point",i,e),!lje(e,i)&&!a){const s=cje(e,n,i);oe.debug("abc88 inside",i,n,s),oe.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)?oe.warn("abc88 no intersect",s,r):r.push(s),a=!0}else oe.warn("abc88 outside",i,n),n=i,a||r.push(i)}),oe.debug("returning points",r),r},"cutPathAtIntersect");function Mme(t){const e=[],r=[];for(let n=1;n5&&Math.abs(i.y-a.y)>5||a.y===i.y&&i.x===s.x&&Math.abs(i.x-a.x)>5&&Math.abs(i.y-s.y)>5)&&(e.push(i),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}E(Mme,"extractCornerPoints");var zQ=E(function(t,e,r){const n=e.x-t.x,a=e.y-t.y,i=Math.sqrt(n*n+a*a),s=r/i;return{x:e.x-s*n,y:e.y-s*a}},"findAdjacentPoint"),uje=E(function(t){const{cornerPointPositions:e}=Mme(t),r=[];for(let n=0;n10&&Math.abs(i.y-a.y)>=10){oe.debug("Corner point fixing",Math.abs(i.x-a.x),Math.abs(i.y-a.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 oe.debug("Corner point skipping fixing",Math.abs(i.x-a.x),Math.abs(i.y-a.y));r.push(f,l)}else r.push(t[n]);return r},"fixCorners"),dje=E((t,e,r)=>{const n=t-e-r,a=2,i=2,s=a+i,o=Math.floor(n/s),l=Array(o).fill(`${a} ${i}`).join(" ");return`0 ${e} ${l} ${r}`},"generateDashArray"),Pme=E(function(t,e,r,n,a,i,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}=Ye();let u=e.points,d=!1;const h=a;var f=i;const p=[];for(const L in e.cssCompiledStyles)DG(L)||p.push(e.cssCompiledStyles[L]);oe.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])),oe.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&&(oe.info("to cluster abc88",r.get(e.toCluster)),u=$Q(e.points,r.get(e.toCluster).node),d=!0),e.fromCluster&&(oe.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=$Q(u.reverse(),r.get(e.fromCluster).node).reverse(),d=!0);let m=u.filter(L=>!Number.isNaN(L.y));const v=sje(e.curve);v!=="rounded"&&(m=uje(m));let y=oS;switch(v){case"linear":y=oS;break;case"basis":y=JS;break;case"cardinal":y=uhe;break;case"bumpX":y=ihe;break;case"bumpY":y=she;break;case"catmullRom":y=hhe;break;case"monotoneX":y=yhe;break;case"monotoneY":y=_he;break;case"natural":y=Ehe;break;case"step":y=She;break;case"stepAfter":y=xhe;break;case"stepBefore":y=The;break;case"rounded":y=oS;break;default:y=JS}const{x:b,y:_}=spe(e),S=ZS().x(b).y(_).curve(y);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=v==="rounded"?Bme(Fme(m,e),5):S(m);const w=Array.isArray(e.style)?e.style:[e.style];let R=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 N=L.path(T,{roughness:.3,seed:l});x+=" transition",C=At(N).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(";"),N=w?w.reduce((K,Y)=>K+Y+";",""):"",P=(L?L+";"+N+";":N)+";"+(w?w.reduce((K,Y)=>K+";"+Y,""):"");C=t.append("path").attr("d",T).attr("id",`${s}-${e.id}`).attr("class"," "+x+(e.classes?" "+e.classes:"")+(O?" "+O:"")).attr("style",P),R=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,U=eQ[e.arrowTypeStart]||0,G=eQ[e.arrowTypeEnd]||0;if(e.look==="neo"&&!M){const Y=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?dje(B,U,G):`0 ${U} ${B-U-G} ${G}`}; stroke-dashoffset: 0;`;C.attr("style",Y+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",Fi(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 $="";(Ye().flowchart.arrowMarkerAbsolute||Ye().state.arrowMarkerAbsolute)&&($=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,$=$.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),oe.info("arrowTypeStart",e.arrowTypeStart),oe.info("arrowTypeEnd",e.arrowTypeEnd);const F=!M&&e?.look==="neo";nje(C,e,$,s,n,F,R);const A=Math.floor(u.length/2),I=u[A];Kr.isLabelCoordinateInPath(I,C.attr("d"))||(d=!0);let D={};return d&&(D.updatedPath=u),D.originalPath=e.points,D},"insertEdge");function Bme(t,e){if(t.length<2)return"";let r="";const n=t.length,a=1e-5;for(let i=0;i({...a}));if(t.length>=2&&ss[e.arrowTypeStart]){const a=ss[e.arrowTypeStart],i=t[0],s=t[1],{angle:o}=tB(i,s),l=a*Math.cos(o),u=a*Math.sin(o);r[0].x=i.x+l,r[0].y=i.y+u}const n=t.length;if(n>=2&&ss[e.arrowTypeEnd]){const a=ss[e.arrowTypeEnd],i=t[n-1],s=t[n-2],{angle:o}=tB(s,i),l=a*Math.cos(o),u=a*Math.sin(o);r[n-1].x=i.x-l,r[n-1].y=i.y-u}return r}E(Fme,"applyMarkerOffsetsToPoints");var hje=E((t,e,r,n)=>{e.forEach(a=>{Mje[a](t,r,n)})},"insertMarkers"),fje=E((t,e,r)=>{oe.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"),pje=E((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"),gje=E((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"),mje=E((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"),vje=E((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"),yje=E((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"),_je=E((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"),bje=E((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"),Eje=E((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"),Sje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{transitionColor:i}=a;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",`${i}`)},"barbNeo"),Tje=E((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"),xje=E((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 a=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");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Cje=E((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"),wje=E((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 a=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");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),kje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i}=a;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",`${i}`),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",`${i}`)},"only_one_neo"),Aje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i,mainBkg:s}=a,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",`${i}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${i}`);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",`${i}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${i}`)},"zero_or_one_neo"),Rje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i}=a;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",`${i}`),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",`${i}`)},"one_or_more_neo"),Nje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i,mainBkg:s}=a,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",`${i}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${i}`);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",`${i}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${i}`)},"zero_or_more_neo"),Ije=E((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"),Ije=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i}=a;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",`${i}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 + L0,20`)},"requirement_arrow"),Oje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i}=a;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",`${i}`).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"),Oje=E((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"),Dje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i}=a,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",`${i}`)},"requirement_contains_neo"),Lje={extension:hje,composition:fje,aggregation:pje,dependency:gje,lollipop:mje,point:vje,circle:yje,cross:_je,barb:bje,barbNeo:Eje,only_one:Sje,zero_or_one:Tje,one_or_more:xje,zero_or_more:Cje,only_one_neo:wje,zero_or_one_neo:kje,one_or_more_neo:Aje,zero_or_more_neo:Rje,requirement_arrow:Nje,requirement_contains:Oje,requirement_arrow_neo:Ije,requirement_contains_neo:Dje},$me=dje,Mje={common:qt,getConfig:xr,insertCluster:VG,insertEdge:Pme,insertEdgeLabel:Dme,insertMarkers:$me,insertNode:n7,interpolateToCurve:kG,labelHelper:Pr,log:oe,positionEdgeLabel:Lme},s4={},zme=E(t=>{for(const e of t)s4[e.name]=e},"registerLayoutLoaders"),Pje=E(()=>{zme([{name:"dagre",loader:E(async()=>await Promise.resolve().then(()=>apt),"loader")},{name:"cose-bilkent",loader:E(async()=>await Promise.resolve().then(()=>H_t),"loader")}])},"registerDefaultLayoutLoaders");Pje();var n2=E(async(t,e)=>{if(!(t.layoutAlgorithm in s4))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=s4[t.layoutAlgorithm],n=await r.loader(),{theme:a,themeVariables:i}=t.config,{useGradient:s,gradientStart:o,gradientStop:l}=i,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",`${a?.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",`${a?.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,Mje,{algorithm:r.algorithm})},"render"),ST=E((t="",{fallback:e="dagre"}={})=>{if(t in s4)return t;if(e in s4)return oe.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"),XG="comm",Ume="rule",Gme="decl",Bje="@media",Fje="@import",$je="@supports",zje="@namespace",rB="@keyframes",qme="@layer",Uje="@scope",Yme=Math.abs,jG=String.fromCharCode;function Hme(t){return t.trim()}function p5(t,e,r){return t.replace(e,r)}function Gje(t,e,r){return t.indexOf(e,r)}function a1(t,e){return t.charCodeAt(e)|0}function hb(t,e,r){return t.slice(e,r)}function Pc(t){return t.length}function Vme(t){return t.length}function Yx(t,e){return e.push(t),t}var a7=1,fb=1,Wme=0,Il=0,Ja=0,a2="";function QG(t,e,r,n,a,i,s,o){return{value:t,root:e,parent:r,type:n,props:a,children:i,line:a7,column:fb,length:s,return:"",siblings:o}}function qje(){return Ja}function Yje(){return Ja=Il>0?a1(a2,--Il):0,fb--,Ja===10&&(fb=1,a7--),Ja}function ac(){return Ja=Il2||o4(Ja)>3?"":" "}function Kje(t,e){for(;--e&&ac()&&!(Ja<48||Ja>102||Ja>57&&Ja<65||Ja>70&&Ja<97););return i7(t,g5()+(e<6&&qd()==32&&ac()==32))}function nB(t){for(;ac();)switch(Ja){case t:return Il;case 34:case 39:t!==34&&t!==39&&nB(Ja);break;case 40:t===41&&nB(t);break;case 92:ac();break}return Il}function Xje(t,e){for(;ac()&&t+Ja!==57;)if(t+Ja===84&&qd()===47)break;return"/*"+i7(e,Il-1)+"*"+jG(t===47?t:ac())}function jje(t){for(;!o4(qd());)ac();return i7(t,Il)}function Qje(t){return Vje(m5("",null,null,null,[""],t=Hje(t),0,[0],t))}function m5(t,e,r,n,a,i,s,o,l){for(var u=0,d=0,h=s,f=0,p=0,g=0,m=1,v=1,y=1,b=0,_="",S=a,x=i,C=n,T=_;v;)switch(g=b,b=ac()){case 40:if(g!=108&&a1(T,h-1)==58){Gje(T+=p5(YR(b),"&","&\f"),"&\f",Yme(u?o[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:T+=YR(b);break;case 9:case 10:case 13:case 32:T+=Wje(g);break;case 92:T+=Kje(g5()-1,7);continue;case 47:switch(qd()){case 42:case 47:Yx(Zje(Xje(ac(),g5()),e,r,l),l),(o4(g||1)==5||o4(qd()||1)==5)&&Pc(T)&&hb(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*m:o[u++]=Pc(T)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+d:y==-1&&(T=p5(T,/\f/g,"")),p>0&&(Pc(T)-h||m===0&&g===47)&&Yx(p>32?GQ(T+";",n,r,h-1,l):GQ(p5(T," ","")+";",n,r,h-2,l),l);break;case 59:T+=";";default:if(Yx(C=UQ(T,e,r,u,d,a,o,_,S=[],x=[],h,i),i),b===123)if(d===0)m5(T,e,C,C,S,i,h,o,x);else{switch(f){case 99:if(a1(T,3)===110)break;case 108:if(a1(T,2)===97)break;default:d=0;case 100:case 109:case 115:}d?m5(t,C,C,n&&Yx(UQ(t,C,C,0,0,a,o,_,a,S=[],h,x),x),a,x,h,o,n?S:x):m5(T,C,C,C,[""],x,0,o,x)}}u=d=p=0,m=y=1,_=T="",h=s;break;case 58:h=1+Pc(T),p=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Yje()==125)continue}switch(T+=jG(b),b*m){case 38:y=d>0?1:(T+="\f",-1);break;case 44:o[u++]=(Pc(T)-1)*y,y=1;break;case 64:qd()===45&&(T+=YR(ac())),f=qd(),d=h=Pc(_=T+=jje(g5())),b++;break;case 45:g===45&&Pc(T)==2&&(m=0)}}return i}function UQ(t,e,r,n,a,i,s,o,l,u,d,h){for(var f=a-1,p=a===0?i:[""],g=Vme(p),m=0,v=0,y=0;m0?p[b]+" "+_:p5(_,/&\f/g,p[b])))&&(l[y++]=S);return QG(t,e,r,a===0?Ume:o,l,u,d,h)}function Zje(t,e,r,n){return QG(t,e,r,XG,jG(qje()),hb(t,2,-2),0,n)}function GQ(t,e,r,n,a){return QG(t,e,r,Gme,hb(t,0,n),hb(t,n+1,-1),n,a)}function aB(t,e){for(var r="",n=0;n/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),rQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>zbt);return{id:Kme,diagram:t}},"loader"),nQe={id:Kme,detector:tQe,loader:rQe},aQe=nQe,Xme="flowchart",iQe=E((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),sQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MY);return{id:Xme,diagram:t}},"loader"),oQe={id:Xme,detector:iQe,loader:sQe},lQe=oQe,jme="flowchart-v2",cQe=E((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"),uQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MY);return{id:jme,diagram:t}},"loader"),dQe={id:jme,detector:cQe,loader:uQe},hQe=dQe,Qme="er",fQe=E(t=>/^\s*erDiagram/.test(t),"detector"),pQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>s2t);return{id:Qme,diagram:t}},"loader"),gQe={id:Qme,detector:fQe,loader:pQe},mQe=gQe,Zme="gitGraph",vQe=E(t=>/^\s*gitGraph/.test(t),"detector"),yQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>O8t);return{id:Zme,diagram:t}},"loader"),_Qe={id:Zme,detector:vQe,loader:yQe},bQe=_Qe,Jme="gantt",EQe=E(t=>/^\s*gantt/.test(t),"detector"),SQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>zRt);return{id:Jme,diagram:t}},"loader"),TQe={id:Jme,detector:EQe,loader:SQe},xQe=TQe,e1e="info",CQe=E(t=>/^\s*info/.test(t),"detector"),wQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>KRt);return{id:e1e,diagram:t}},"loader"),kQe={id:e1e,detector:CQe,loader:wQe},t1e="pie",AQe=E(t=>/^\s*pie/.test(t),"detector"),RQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>dNt);return{id:t1e,diagram:t}},"loader"),NQe={id:t1e,detector:AQe,loader:RQe},r1e="quadrantChart",IQe=E(t=>/^\s*quadrantChart/.test(t),"detector"),OQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>bNt);return{id:r1e,diagram:t}},"loader"),DQe={id:r1e,detector:IQe,loader:OQe},LQe=DQe,n1e="xychart",MQe=E(t=>/^\s*xychart(-beta)?/.test(t),"detector"),PQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MNt);return{id:n1e,diagram:t}},"loader"),BQe={id:n1e,detector:MQe,loader:PQe},FQe=BQe,a1e="requirement",$Qe=E(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),zQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qNt);return{id:a1e,diagram:t}},"loader"),UQe={id:a1e,detector:$Qe,loader:zQe},GQe=UQe,i1e="sequence",qQe=E(t=>/^\s*sequenceDiagram/.test(t),"detector"),YQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>FIt);return{id:i1e,diagram:t}},"loader"),HQe={id:i1e,detector:qQe,loader:YQe},VQe=HQe,s1e="class",WQe=E((t,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),KQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>YIt);return{id:s1e,diagram:t}},"loader"),XQe={id:s1e,detector:WQe,loader:KQe},jQe=XQe,o1e="classDiagram",QQe=E((t,e)=>/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),ZQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>VIt);return{id:o1e,diagram:t}},"loader"),JQe={id:o1e,detector:QQe,loader:ZQe},eZe=JQe,l1e="state",tZe=E((t,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),rZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MOt);return{id:l1e,diagram:t}},"loader"),nZe={id:l1e,detector:tZe,loader:rZe},aZe=nZe,c1e="stateDiagram",iZe=E((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),sZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>BOt);return{id:c1e,diagram:t}},"loader"),oZe={id:c1e,detector:iZe,loader:sZe},lZe=oZe,u1e="journey",cZe=E(t=>/^\s*journey/.test(t),"detector"),uZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>i9t);return{id:u1e,diagram:t}},"loader"),dZe={id:u1e,detector:cZe,loader:uZe},hZe=dZe,fZe=E((t,e,r)=>{oe.debug(`rendering svg for syntax error -`);const n=wo(e),a=n.append("g");n.attr("viewBox","0 0 2412 512"),di(n,100,512,!0),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),d1e={draw:fZe},pZe=d1e,gZe={db:{},renderer:d1e,parser:{parse:E(()=>{},"parse")}},mZe=gZe,h1e="flowchart-elk",vZe=E((t,e={})=>/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),yZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MY);return{id:h1e,diagram:t}},"loader"),_Ze={id:h1e,detector:vZe,loader:yZe},bZe=_Ze,f1e="timeline",EZe=E(t=>/^\s*timeline/.test(t),"detector"),SZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>L9t);return{id:f1e,diagram:t}},"loader"),TZe={id:f1e,detector:EZe,loader:SZe},xZe=TZe,p1e="mindmap",CZe=E(t=>/^\s*mindmap/.test(t),"detector"),wZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>j9t);return{id:p1e,diagram:t}},"loader"),kZe={id:p1e,detector:CZe,loader:wZe},AZe=kZe,g1e="kanban",RZe=E(t=>/^\s*kanban/.test(t),"detector"),NZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>mDt);return{id:g1e,diagram:t}},"loader"),IZe={id:g1e,detector:RZe,loader:NZe},OZe=IZe,m1e="sankey",DZe=E(t=>/^\s*sankey(-beta)?/.test(t),"detector"),LZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>tLt);return{id:m1e,diagram:t}},"loader"),MZe={id:m1e,detector:DZe,loader:LZe},PZe=MZe,v1e="packet",BZe=E(t=>/^\s*packet(-beta)?/.test(t),"detector"),FZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>hLt);return{id:v1e,diagram:t}},"loader"),$Ze={id:v1e,detector:BZe,loader:FZe},y1e="radar",zZe=E(t=>/^\s*radar-beta/.test(t),"detector"),UZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>DLt);return{id:y1e,diagram:t}},"loader"),GZe={id:y1e,detector:zZe,loader:UZe},_1e="block",qZe=E(t=>/^\s*block(-beta)?/.test(t),"detector"),YZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>oPt);return{id:_1e,diagram:t}},"loader"),HZe={id:_1e,detector:qZe,loader:YZe},VZe=HZe,b1e="treeView",WZe=E(t=>/^\s*treeView-beta/.test(t),"detector"),KZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>wPt);return{id:b1e,diagram:t}},"loader"),XZe={id:b1e,detector:WZe,loader:KZe},jZe=XZe,E1e="architecture",QZe=E(t=>/^\s*architecture/.test(t),"detector"),ZZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>eBt);return{id:E1e,diagram:t}},"loader"),JZe={id:E1e,detector:QZe,loader:ZZe},eJe=JZe,S1e="eventmodeling",tJe=E(t=>/^\s*eventmodeling/.test(t),"detector"),rJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>vBt);return{id:S1e,diagram:t}},"loader"),nJe={id:S1e,detector:tJe,loader:rJe},aJe=nJe,T1e="ishikawa",iJe=E(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),sJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>LBt);return{id:T1e,diagram:t}},"loader"),oJe={id:T1e,detector:iJe,loader:sJe},x1e="venn",lJe=E(t=>/^\s*venn-beta/.test(t),"detector"),cJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>_Ft);return{id:x1e,diagram:t}},"loader"),uJe={id:x1e,detector:lJe,loader:cJe},dJe=uJe,C1e="treemap",hJe=E(t=>/^\s*treemap/.test(t),"detector"),fJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>NFt);return{id:C1e,diagram:t}},"loader"),pJe={id:C1e,detector:hJe,loader:fJe},w1e="wardley-beta",gJe=E(t=>/^\s*wardley-beta/i.test(t),"detector"),mJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>GFt);return{id:w1e,diagram:t}},"loader"),vJe={id:w1e,detector:gJe,loader:mJe},yJe=vJe,qQ=!1,s7=E(()=>{qQ||(qQ=!0,$C("error",mZe,t=>t.toLowerCase().trim()==="error"),$C("---",{db:{clear:E(()=>{},"clear")},styles:{},renderer:{draw:E(()=>{},"draw")},parser:{parse:E(()=>{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:E(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),nP(bZe,AZe,eJe),nP(aQe,OZe,eZe,jQe,mQe,xQe,kQe,NQe,GQe,VQe,hQe,lQe,xZe,bQe,lZe,aZe,hZe,LQe,PZe,$Ze,FQe,VZe,aJe,jZe,GZe,oJe,pJe,dJe,yJe))},"addDiagrams"),_Je=E(async()=>{oe.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ap).map(async([r,{detector:n,loader:a}])=>{if(a)try{cP(r)}catch{try{const{diagram:i,id:s}=await a();$C(s,i,n)}catch(i){throw oe.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ap[r],i}}}))).filter(r=>r.status==="rejected");if(e.length>0){oe.error(`Failed to load ${e.length} external diagrams`);for(const r of e)oe.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),bJe="graphics-document document";function k1e(t,e){t.attr("role",bJe),e!==""&&t.attr("aria-roledescription",e)}E(k1e,"setA11yDiagramInfo");function A1e(t,e,r,n){if(t.insert!==void 0){if(r){const a=`chart-desc-${n}`;t.attr("aria-describedby",a),t.insert("desc",":first-child").attr("id",a).text(r)}if(e){const a=`chart-title-${n}`;t.attr("aria-labelledby",a),t.insert("title",":first-child").attr("id",a).text(e)}}}E(A1e,"addSVGa11yTitleDescription");var xp,iB=(xp=class{constructor(e,r,n,a,i){this.type=e,this.text=r,this.db=n,this.parser=a,this.renderer=i}static async fromText(e,r={}){const n=xr(),a=zU(e,n);e=nKe(e)+` -`;try{cP(a)}catch{const u=jFe(a);if(!u)throw new W0e(`Diagram ${a} not found.`);const{id:d,diagram:h}=await u();$C(d,h)}const{db:i,parser:s,renderer:o,init:l}=cP(a);return s.parser&&(s.parser.yy=i),i.clear?.(),l?.(n),r.title&&i.setDiagramTitle?.(r.title),await s.parse(e),new xp(a,e,i,s,o)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},E(xp,"Diagram"),xp),YQ=[],EJe=E(()=>{YQ.forEach(t=>{t()}),YQ=[]},"attachFunctions"),SJe=E(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function R1e(t){const e=t.match(V0e);if(!e)return{text:t,metadata:{}};let r=Hk(e[1],{schema:Yk})??{};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}}E(R1e,"extractFrontMatter");var TJe=E(t=>t.replace(/\r\n?/g,` -`).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),xJe=E(t=>{const{text:e,metadata:r}=R1e(t),{displayMode:n,title:a,config:i={}}=r;return n&&(i.gantt||(i.gantt={}),i.gantt.displayMode=n),{title:a,config:i,text:e}},"processFrontmatter"),CJe=E(t=>{const e=Kr.detectInit(t)??{},r=Kr.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:WWe(t),directive:e}},"processDirectives");function ZG(t){const e=TJe(t),r=xJe(e),n=CJe(r.text),a=$a(r.config,n.directive);return t=SJe(n.text),{code:t,title:r.title,config:a}}E(ZG,"preprocessDiagram");function N1e(t){const e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}E(N1e,"toBase64");var wJe=5e4,kJe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",AJe="sandbox",RJe="loose",NJe="http://www.w3.org/2000/svg",IJe="http://www.w3.org/1999/xlink",OJe="http://www.w3.org/1999/xhtml",DJe="100%",LJe="100%",MJe="border:0;margin:0;",PJe="margin:0",BJe="allow-top-navigation-by-user-activation allow-popups",FJe='The "iframe" tag is not supported by your browser.',$Je=["foreignobject"],zJe=["dominant-baseline"];function JG(t){const e=ZG(t);return BC(),S$e(e.config??{}),e}E(JG,"processAndSetConfigs");async function I1e(t,e){s7();try{const{code:r,config:n}=JG(t);return{diagramType:(await D1e(r)).type,config:n}}catch(r){if(e?.suppressErrors)return!1;throw r}}E(I1e,"parse");var HQ=E((t,e,r=[])=>{const n=Q0e(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),UJe=E((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=On(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{iQ(l.styles)||o.forEach(u=>{r.insertRule(HQ(l.id,u,l.styles),r.cssRules.length)}),iQ(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 a=new CSSStyleSheet;a.replaceSync(t.themeCSS),n=oP(a)+` + L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),Dje=E((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"),Lje=E((t,e,r)=>{const n=xr(),{themeVariables:a}=n,{strokeWidth:i}=a,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",`${i}`)},"requirement_contains_neo"),Mje={extension:fje,composition:pje,aggregation:gje,dependency:mje,lollipop:vje,point:yje,circle:_je,cross:bje,barb:Eje,barbNeo:Sje,only_one:Tje,zero_or_one:xje,one_or_more:Cje,zero_or_more:wje,only_one_neo:kje,zero_or_one_neo:Aje,one_or_more_neo:Rje,zero_or_more_neo:Nje,requirement_arrow:Ije,requirement_contains:Dje,requirement_arrow_neo:Oje,requirement_contains_neo:Lje},$me=hje,Pje={common:qt,getConfig:xr,insertCluster:VG,insertEdge:Pme,insertEdgeLabel:Dme,insertMarkers:$me,insertNode:n7,interpolateToCurve:kG,labelHelper:Pr,log:oe,positionEdgeLabel:Lme},s4={},zme=E(t=>{for(const e of t)s4[e.name]=e},"registerLayoutLoaders"),Bje=E(()=>{zme([{name:"dagre",loader:E(async()=>await Promise.resolve().then(()=>ipt),"loader")},{name:"cose-bilkent",loader:E(async()=>await Promise.resolve().then(()=>V_t),"loader")}])},"registerDefaultLayoutLoaders");Bje();var n2=E(async(t,e)=>{if(!(t.layoutAlgorithm in s4))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=s4[t.layoutAlgorithm],n=await r.loader(),{theme:a,themeVariables:i}=t.config,{useGradient:s,gradientStart:o,gradientStop:l}=i,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",`${a?.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",`${a?.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,Pje,{algorithm:r.algorithm})},"render"),ST=E((t="",{fallback:e="dagre"}={})=>{if(t in s4)return t;if(e in s4)return oe.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"),XG="comm",Ume="rule",Gme="decl",Fje="@media",$je="@import",zje="@supports",Uje="@namespace",rB="@keyframes",qme="@layer",Gje="@scope",Yme=Math.abs,jG=String.fromCharCode;function Hme(t){return t.trim()}function p5(t,e,r){return t.replace(e,r)}function qje(t,e,r){return t.indexOf(e,r)}function a1(t,e){return t.charCodeAt(e)|0}function hb(t,e,r){return t.slice(e,r)}function Pc(t){return t.length}function Vme(t){return t.length}function Yx(t,e){return e.push(t),t}var a7=1,fb=1,Wme=0,Il=0,Ja=0,a2="";function QG(t,e,r,n,a,i,s,o){return{value:t,root:e,parent:r,type:n,props:a,children:i,line:a7,column:fb,length:s,return:"",siblings:o}}function Yje(){return Ja}function Hje(){return Ja=Il>0?a1(a2,--Il):0,fb--,Ja===10&&(fb=1,a7--),Ja}function ac(){return Ja=Il2||o4(Ja)>3?"":" "}function Xje(t,e){for(;--e&&ac()&&!(Ja<48||Ja>102||Ja>57&&Ja<65||Ja>70&&Ja<97););return i7(t,g5()+(e<6&&qd()==32&&ac()==32))}function nB(t){for(;ac();)switch(Ja){case t:return Il;case 34:case 39:t!==34&&t!==39&&nB(Ja);break;case 40:t===41&&nB(t);break;case 92:ac();break}return Il}function jje(t,e){for(;ac()&&t+Ja!==57;)if(t+Ja===84&&qd()===47)break;return"/*"+i7(e,Il-1)+"*"+jG(t===47?t:ac())}function Qje(t){for(;!o4(qd());)ac();return i7(t,Il)}function Zje(t){return Wje(m5("",null,null,null,[""],t=Vje(t),0,[0],t))}function m5(t,e,r,n,a,i,s,o,l){for(var u=0,d=0,h=s,f=0,p=0,g=0,m=1,v=1,y=1,b=0,_="",S=a,x=i,C=n,T=_;v;)switch(g=b,b=ac()){case 40:if(g!=108&&a1(T,h-1)==58){qje(T+=p5(YR(b),"&","&\f"),"&\f",Yme(u?o[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:T+=YR(b);break;case 9:case 10:case 13:case 32:T+=Kje(g);break;case 92:T+=Xje(g5()-1,7);continue;case 47:switch(qd()){case 42:case 47:Yx(Jje(jje(ac(),g5()),e,r,l),l),(o4(g||1)==5||o4(qd()||1)==5)&&Pc(T)&&hb(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*m:o[u++]=Pc(T)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+d:y==-1&&(T=p5(T,/\f/g,"")),p>0&&(Pc(T)-h||m===0&&g===47)&&Yx(p>32?GQ(T+";",n,r,h-1,l):GQ(p5(T," ","")+";",n,r,h-2,l),l);break;case 59:T+=";";default:if(Yx(C=UQ(T,e,r,u,d,a,o,_,S=[],x=[],h,i),i),b===123)if(d===0)m5(T,e,C,C,S,i,h,o,x);else{switch(f){case 99:if(a1(T,3)===110)break;case 108:if(a1(T,2)===97)break;default:d=0;case 100:case 109:case 115:}d?m5(t,C,C,n&&Yx(UQ(t,C,C,0,0,a,o,_,a,S=[],h,x),x),a,x,h,o,n?S:x):m5(T,C,C,C,[""],x,0,o,x)}}u=d=p=0,m=y=1,_=T="",h=s;break;case 58:h=1+Pc(T),p=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Hje()==125)continue}switch(T+=jG(b),b*m){case 38:y=d>0?1:(T+="\f",-1);break;case 44:o[u++]=(Pc(T)-1)*y,y=1;break;case 64:qd()===45&&(T+=YR(ac())),f=qd(),d=h=Pc(_=T+=Qje(g5())),b++;break;case 45:g===45&&Pc(T)==2&&(m=0)}}return i}function UQ(t,e,r,n,a,i,s,o,l,u,d,h){for(var f=a-1,p=a===0?i:[""],g=Vme(p),m=0,v=0,y=0;m0?p[b]+" "+_:p5(_,/&\f/g,p[b])))&&(l[y++]=S);return QG(t,e,r,a===0?Ume:o,l,u,d,h)}function Jje(t,e,r,n){return QG(t,e,r,XG,jG(Yje()),hb(t,2,-2),0,n)}function GQ(t,e,r,n,a){return QG(t,e,r,Gme,hb(t,0,n),hb(t,n+1,-1),n,a)}function aB(t,e){for(var r="",n=0;n/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),nQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Ubt);return{id:Kme,diagram:t}},"loader"),aQe={id:Kme,detector:rQe,loader:nQe},iQe=aQe,Xme="flowchart",sQe=E((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),oQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MY);return{id:Xme,diagram:t}},"loader"),lQe={id:Xme,detector:sQe,loader:oQe},cQe=lQe,jme="flowchart-v2",uQe=E((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"),dQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MY);return{id:jme,diagram:t}},"loader"),hQe={id:jme,detector:uQe,loader:dQe},fQe=hQe,Qme="er",pQe=E(t=>/^\s*erDiagram/.test(t),"detector"),gQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>o2t);return{id:Qme,diagram:t}},"loader"),mQe={id:Qme,detector:pQe,loader:gQe},vQe=mQe,Zme="gitGraph",yQe=E(t=>/^\s*gitGraph/.test(t),"detector"),_Qe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>D8t);return{id:Zme,diagram:t}},"loader"),bQe={id:Zme,detector:yQe,loader:_Qe},EQe=bQe,Jme="gantt",SQe=E(t=>/^\s*gantt/.test(t),"detector"),TQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>URt);return{id:Jme,diagram:t}},"loader"),xQe={id:Jme,detector:SQe,loader:TQe},CQe=xQe,e1e="info",wQe=E(t=>/^\s*info/.test(t),"detector"),kQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>XRt);return{id:e1e,diagram:t}},"loader"),AQe={id:e1e,detector:wQe,loader:kQe},t1e="pie",RQe=E(t=>/^\s*pie/.test(t),"detector"),NQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>hNt);return{id:t1e,diagram:t}},"loader"),IQe={id:t1e,detector:RQe,loader:NQe},r1e="quadrantChart",OQe=E(t=>/^\s*quadrantChart/.test(t),"detector"),DQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>ENt);return{id:r1e,diagram:t}},"loader"),LQe={id:r1e,detector:OQe,loader:DQe},MQe=LQe,n1e="xychart",PQe=E(t=>/^\s*xychart(-beta)?/.test(t),"detector"),BQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>PNt);return{id:n1e,diagram:t}},"loader"),FQe={id:n1e,detector:PQe,loader:BQe},$Qe=FQe,a1e="requirement",zQe=E(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),UQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>YNt);return{id:a1e,diagram:t}},"loader"),GQe={id:a1e,detector:zQe,loader:UQe},qQe=GQe,i1e="sequence",YQe=E(t=>/^\s*sequenceDiagram/.test(t),"detector"),HQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>$It);return{id:i1e,diagram:t}},"loader"),VQe={id:i1e,detector:YQe,loader:HQe},WQe=VQe,s1e="class",KQe=E((t,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),XQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>HIt);return{id:s1e,diagram:t}},"loader"),jQe={id:s1e,detector:KQe,loader:XQe},QQe=jQe,o1e="classDiagram",ZQe=E((t,e)=>/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),JQe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>WIt);return{id:o1e,diagram:t}},"loader"),eZe={id:o1e,detector:ZQe,loader:JQe},tZe=eZe,l1e="state",rZe=E((t,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),nZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>POt);return{id:l1e,diagram:t}},"loader"),aZe={id:l1e,detector:rZe,loader:nZe},iZe=aZe,c1e="stateDiagram",sZe=E((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),oZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>FOt);return{id:c1e,diagram:t}},"loader"),lZe={id:c1e,detector:sZe,loader:oZe},cZe=lZe,u1e="journey",uZe=E(t=>/^\s*journey/.test(t),"detector"),dZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>s9t);return{id:u1e,diagram:t}},"loader"),hZe={id:u1e,detector:uZe,loader:dZe},fZe=hZe,pZe=E((t,e,r)=>{oe.debug(`rendering svg for syntax error +`);const n=wo(e),a=n.append("g");n.attr("viewBox","0 0 2412 512"),di(n,100,512,!0),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),d1e={draw:pZe},gZe=d1e,mZe={db:{},renderer:d1e,parser:{parse:E(()=>{},"parse")}},vZe=mZe,h1e="flowchart-elk",yZe=E((t,e={})=>/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),_Ze=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MY);return{id:h1e,diagram:t}},"loader"),bZe={id:h1e,detector:yZe,loader:_Ze},EZe=bZe,f1e="timeline",SZe=E(t=>/^\s*timeline/.test(t),"detector"),TZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>M9t);return{id:f1e,diagram:t}},"loader"),xZe={id:f1e,detector:SZe,loader:TZe},CZe=xZe,p1e="mindmap",wZe=E(t=>/^\s*mindmap/.test(t),"detector"),kZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>Q9t);return{id:p1e,diagram:t}},"loader"),AZe={id:p1e,detector:wZe,loader:kZe},RZe=AZe,g1e="kanban",NZe=E(t=>/^\s*kanban/.test(t),"detector"),IZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>vDt);return{id:g1e,diagram:t}},"loader"),OZe={id:g1e,detector:NZe,loader:IZe},DZe=OZe,m1e="sankey",LZe=E(t=>/^\s*sankey(-beta)?/.test(t),"detector"),MZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>rLt);return{id:m1e,diagram:t}},"loader"),PZe={id:m1e,detector:LZe,loader:MZe},BZe=PZe,v1e="packet",FZe=E(t=>/^\s*packet(-beta)?/.test(t),"detector"),$Ze=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>fLt);return{id:v1e,diagram:t}},"loader"),zZe={id:v1e,detector:FZe,loader:$Ze},y1e="radar",UZe=E(t=>/^\s*radar-beta/.test(t),"detector"),GZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>LLt);return{id:y1e,diagram:t}},"loader"),qZe={id:y1e,detector:UZe,loader:GZe},_1e="block",YZe=E(t=>/^\s*block(-beta)?/.test(t),"detector"),HZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>lPt);return{id:_1e,diagram:t}},"loader"),VZe={id:_1e,detector:YZe,loader:HZe},WZe=VZe,b1e="treeView",KZe=E(t=>/^\s*treeView-beta/.test(t),"detector"),XZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>kPt);return{id:b1e,diagram:t}},"loader"),jZe={id:b1e,detector:KZe,loader:XZe},QZe=jZe,E1e="architecture",ZZe=E(t=>/^\s*architecture/.test(t),"detector"),JZe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>tBt);return{id:E1e,diagram:t}},"loader"),eJe={id:E1e,detector:ZZe,loader:JZe},tJe=eJe,S1e="eventmodeling",rJe=E(t=>/^\s*eventmodeling/.test(t),"detector"),nJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>yBt);return{id:S1e,diagram:t}},"loader"),aJe={id:S1e,detector:rJe,loader:nJe},iJe=aJe,T1e="ishikawa",sJe=E(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),oJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>MBt);return{id:T1e,diagram:t}},"loader"),lJe={id:T1e,detector:sJe,loader:oJe},x1e="venn",cJe=E(t=>/^\s*venn-beta/.test(t),"detector"),uJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>bFt);return{id:x1e,diagram:t}},"loader"),dJe={id:x1e,detector:cJe,loader:uJe},hJe=dJe,C1e="treemap",fJe=E(t=>/^\s*treemap/.test(t),"detector"),pJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>IFt);return{id:C1e,diagram:t}},"loader"),gJe={id:C1e,detector:fJe,loader:pJe},w1e="wardley-beta",mJe=E(t=>/^\s*wardley-beta/i.test(t),"detector"),vJe=E(async()=>{const{diagram:t}=await Promise.resolve().then(()=>qFt);return{id:w1e,diagram:t}},"loader"),yJe={id:w1e,detector:mJe,loader:vJe},_Je=yJe,qQ=!1,s7=E(()=>{qQ||(qQ=!0,$C("error",vZe,t=>t.toLowerCase().trim()==="error"),$C("---",{db:{clear:E(()=>{},"clear")},styles:{},renderer:{draw:E(()=>{},"draw")},parser:{parse:E(()=>{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:E(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),nP(EZe,RZe,tJe),nP(iQe,DZe,tZe,QQe,vQe,CQe,AQe,IQe,qQe,WQe,fQe,cQe,CZe,EQe,cZe,iZe,fZe,MQe,BZe,zZe,$Qe,WZe,iJe,QZe,qZe,lJe,gJe,hJe,_Je))},"addDiagrams"),bJe=E(async()=>{oe.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ap).map(async([r,{detector:n,loader:a}])=>{if(a)try{cP(r)}catch{try{const{diagram:i,id:s}=await a();$C(s,i,n)}catch(i){throw oe.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ap[r],i}}}))).filter(r=>r.status==="rejected");if(e.length>0){oe.error(`Failed to load ${e.length} external diagrams`);for(const r of e)oe.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),EJe="graphics-document document";function k1e(t,e){t.attr("role",EJe),e!==""&&t.attr("aria-roledescription",e)}E(k1e,"setA11yDiagramInfo");function A1e(t,e,r,n){if(t.insert!==void 0){if(r){const a=`chart-desc-${n}`;t.attr("aria-describedby",a),t.insert("desc",":first-child").attr("id",a).text(r)}if(e){const a=`chart-title-${n}`;t.attr("aria-labelledby",a),t.insert("title",":first-child").attr("id",a).text(e)}}}E(A1e,"addSVGa11yTitleDescription");var xp,iB=(xp=class{constructor(e,r,n,a,i){this.type=e,this.text=r,this.db=n,this.parser=a,this.renderer=i}static async fromText(e,r={}){const n=xr(),a=zU(e,n);e=aKe(e)+` +`;try{cP(a)}catch{const u=QFe(a);if(!u)throw new W0e(`Diagram ${a} not found.`);const{id:d,diagram:h}=await u();$C(d,h)}const{db:i,parser:s,renderer:o,init:l}=cP(a);return s.parser&&(s.parser.yy=i),i.clear?.(),l?.(n),r.title&&i.setDiagramTitle?.(r.title),await s.parse(e),new xp(a,e,i,s,o)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},E(xp,"Diagram"),xp),YQ=[],SJe=E(()=>{YQ.forEach(t=>{t()}),YQ=[]},"attachFunctions"),TJe=E(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function R1e(t){const e=t.match(V0e);if(!e)return{text:t,metadata:{}};let r=Hk(e[1],{schema:Yk})??{};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}}E(R1e,"extractFrontMatter");var xJe=E(t=>t.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),CJe=E(t=>{const{text:e,metadata:r}=R1e(t),{displayMode:n,title:a,config:i={}}=r;return n&&(i.gantt||(i.gantt={}),i.gantt.displayMode=n),{title:a,config:i,text:e}},"processFrontmatter"),wJe=E(t=>{const e=Kr.detectInit(t)??{},r=Kr.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:KWe(t),directive:e}},"processDirectives");function ZG(t){const e=xJe(t),r=CJe(e),n=wJe(r.text),a=$a(r.config,n.directive);return t=TJe(n.text),{code:t,title:r.title,config:a}}E(ZG,"preprocessDiagram");function N1e(t){const e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}E(N1e,"toBase64");var kJe=5e4,AJe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",RJe="sandbox",NJe="loose",IJe="http://www.w3.org/2000/svg",OJe="http://www.w3.org/1999/xlink",DJe="http://www.w3.org/1999/xhtml",LJe="100%",MJe="100%",PJe="border:0;margin:0;",BJe="margin:0",FJe="allow-top-navigation-by-user-activation allow-popups",$Je='The "iframe" tag is not supported by your browser.',zJe=["foreignobject"],UJe=["dominant-baseline"];function JG(t){const e=ZG(t);return BC(),T$e(e.config??{}),e}E(JG,"processAndSetConfigs");async function I1e(t,e){s7();try{const{code:r,config:n}=JG(t);return{diagramType:(await D1e(r)).type,config:n}}catch(r){if(e?.suppressErrors)return!1;throw r}}E(I1e,"parse");var HQ=E((t,e,r=[])=>{const n=Q0e(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),GJe=E((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=On(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{iQ(l.styles)||o.forEach(u=>{r.insertRule(HQ(l.id,u,l.styles),r.cssRules.length)}),iQ(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 a=new CSSStyleSheet;a.replaceSync(t.themeCSS),n=oP(a)+` `}else n+=`${t.themeCSS} -`;return n+oP(r)},"createCssStyles"),GJe=E((t,e)=>aB(Qje(`${t}{${e}}`),eQe([E(function(n,a,i,s){if(n.type==="rule"&&Array.isArray(n.props)){if(n.parent&&n.parent.type===rB)return;n.props=n.props.map(o=>o.startsWith(t)?o:`${t} ${o}`)}else n.type.startsWith("@")&&([...[Bje,$je,qme,Uje,"@container","@starting-style"],rB].includes(n.type)||(oe.warn(`Removing unsupported at-rule ${n.type} from CSS`),n.type=XG))},"addNamespace"),Jje])),"compileCSS"),qJe=E((t,e,r,n)=>{const a=UJe(t,r),i=z$e(e,a,{...t.themeVariables,theme:t.theme,look:t.look},n);return GJe(n,i)},"createUserStyles"),YJe=E((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=R0(n),n=n.replace(/
/g,"
"),n},"cleanUpSvgCode"),HJe=E((t="",e)=>{const r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":LJe,n=N1e(`${t}`);return``},"putIntoIFrame"),VQ=E((t,e,r,n,a)=>{const i=t.append("div");i.attr("id",r),n&&i.attr("style",n);const s=i.append("svg").attr("id",e).attr("width","100%").attr("xmlns",NJe);return a&&s.attr("xmlns:xlink",a),s.append("g"),t},"appendDivSvgG");function sB(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}E(sB,"sandboxedIframe");var VJe=E((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),WJe=E(async function(t,e,r){s7();const n=JG(e);e=n.code;const a=xr();oe.debug(a),e.length>(a?.maxTextSize??wJe)&&(e=kJe);const i=`#${t}`,s="i"+t,o="#"+s,l="d"+t,u="#"+l,d=E(()=>{const F=At(f?o:u).node();F&&"remove"in F&&F.remove()},"removeTempElements");let h=At(document.body);const f=a.securityLevel===AJe,p=a.securityLevel===RJe,g=a.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const $=sB(At(r),s);h=At($.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=At(r);VQ(h,t,l,`font-family: ${g}`,IJe)}else{if(VJe(document,t,l,s),f){const $=sB(At(document.body),s);h=At($.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=At("body");VQ(h,t,l)}let m,v;try{m=await iB.fromText(e,{title:n.title})}catch($){if(a.suppressErrorRendering)throw d(),$;m=await iB.fromText("error"),v=$}const y=h.select(u).node(),b=m.type,_=y.firstChild,S=_.firstChild,x=m.renderer.getClasses?.(e,m),C=qJe(a,b,x,i),T=document.createElement("style");T.innerHTML=C,_.insertBefore(T,S);try{await m.renderer.draw(e,t,"11.15.0",m)}catch($){throw a.suppressErrorRendering?d():pZe.draw(e,t,"11.15.0"),$}const w=h.select(`${u} svg`),R=m.db.getAccTitle?.(),O=m.db.getAccDescription?.();L1e(b,w,R,O),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",OJe);let M=h.select(u).node().innerHTML;if(oe.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),M=YJe(M,f,K0(a.arrowMarkerAbsolute)),f){const $=h.select(u+" svg").node();M=HJe(M,$)}else p||(M=uh.sanitize(M,{ADD_TAGS:$Je,ADD_ATTR:zJe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(EJe(),v)throw v;return d(),{diagramType:b,svg:M,bindFunctions:m.db.bindFunctions}},"render");function O1e(t={}){const e=Va({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),b$e(e),e?.theme&&e.theme in b0?e.themeVariables=b0[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=b0.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?_$e(e):Z0e();BU(r.logLevel),s7()}E(O1e,"initialize");var D1e=E((t,e={})=>{const{code:r}=ZG(t);return iB.fromText(r,e)},"getDiagramFromText");function L1e(t,e,r,n){k1e(e,t),A1e(e,r,n,e.attr("id"))}E(L1e,"addA11yInfo");var Bp=Object.freeze({render:WJe,parse:I1e,getDiagramFromText:D1e,initialize:O1e,getConfig:xr,setConfig:J0e,getSiteConfig:Z0e,updateSiteConfig:E$e,reset:E(()=>{BC()},"reset"),globalReset:E(()=>{BC(rb)},"globalReset"),defaultConfig:rb});BU(xr().logLevel);BC(xr());var KJe=E((t,e,r)=>{oe.warn(t),IG(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"),M1e=E(async function(t={querySelector:".mermaid"}){try{await XJe(t)}catch(e){if(IG(e)&&oe.error(e.str),N0.parseError&&N0.parseError(e),!t.suppressErrors)throw oe.error("Use the suppressErrors option to suppress these errors"),e}},"run"),XJe=E(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=Bp.getConfig();oe.debug(`${t?"":"No "}Callback function found`);let a;if(r)a=r;else if(e)a=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");oe.debug(`Found ${a.length} diagrams`),n?.startOnLoad!==void 0&&(oe.debug("Start On Load: "+n?.startOnLoad),Bp.updateSiteConfig({startOnLoad:n?.startOnLoad}));const i=new Kr.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const o=[];for(const l of Array.from(a)){if(oe.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${i.next()}`;s=l.innerHTML,s=Upe(Kr.entityDecode(s)).trim().replace(//gi,"
");const d=Kr.detectInit(s);d&&oe.debug("Detected early reinit: ",d);try{const{svg:h,bindFunctions:f}=await $1e(u,s,l);l.innerHTML=h,t&&await t(u),f&&f(l)}catch(h){KJe(h,o,N0.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),P1e=E(function(t){Bp.initialize(t)},"initialize"),jJe=E(async function(t,e,r){oe.warn("mermaid.init is deprecated. Please use run instead."),t&&P1e(t);const n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await M1e(n)},"init"),QJe=E(async(t,{lazyLoad:e=!0}={})=>{s7(),nP(...t),e===!1&&await _Je()},"registerExternalDiagrams"),B1e=E(function(){if(N0.startOnLoad){const{startOnLoad:t}=Bp.getConfig();t&&N0.run().catch(e=>oe.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",B1e,!1);var ZJe=E(function(t){N0.parseError=t},"setParseErrorHandler"),S6=[],HR=!1,F1e=E(async()=>{if(!HR){for(HR=!0;S6.length>0;){const t=S6.shift();if(t)try{await t()}catch(e){oe.error("Error executing queue",e)}}HR=!1}},"executeQueue"),JJe=E(async(t,e)=>new Promise((r,n)=>{const a=E(()=>new Promise((i,s)=>{Bp.parse(t,e).then(o=>{i(o),r(o)},o=>{oe.error("Error parsing",o),N0.parseError?.(o),s(o),n(o)})}),"performCall");S6.push(a),F1e().catch(n)}),"parse"),$1e=E((t,e,r)=>new Promise((n,a)=>{const i=E(()=>new Promise((s,o)=>{Bp.render(t,e,r).then(l=>{s(l),n(l)},l=>{oe.error("Error parsing",l),N0.parseError?.(l),o(l),a(l)})}),"performCall");S6.push(i),F1e().catch(a)}),"render"),eet=E(()=>Object.keys(Ap).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),N0={startOnLoad:!0,mermaidAPI:Bp,parse:JJe,render:$1e,init:jJe,run:M1e,registerExternalDiagrams:QJe,registerLayoutLoaders:zme,initialize:P1e,parseError:void 0,contentLoaded:B1e,setParseErrorHandler:ZJe,detectType:zU,registerIconPacks:Ype,getRegisteredDiagramsMetadata:eet},tet=N0;const ret=Object.freeze(Object.defineProperty({__proto__:null,default:tet},Symbol.toStringTag,{value:"Module"})),net=`/* stylelint-disable font-family-no-missing-generic-family-keyword */ +`;return n+oP(r)},"createCssStyles"),qJe=E((t,e)=>aB(Zje(`${t}{${e}}`),tQe([E(function(n,a,i,s){if(n.type==="rule"&&Array.isArray(n.props)){if(n.parent&&n.parent.type===rB)return;n.props=n.props.map(o=>o.startsWith(t)?o:`${t} ${o}`)}else n.type.startsWith("@")&&([...[Fje,zje,qme,Gje,"@container","@starting-style"],rB].includes(n.type)||(oe.warn(`Removing unsupported at-rule ${n.type} from CSS`),n.type=XG))},"addNamespace"),eQe])),"compileCSS"),YJe=E((t,e,r,n)=>{const a=GJe(t,r),i=U$e(e,a,{...t.themeVariables,theme:t.theme,look:t.look},n);return qJe(n,i)},"createUserStyles"),HJe=E((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=R0(n),n=n.replace(/
/g,"
"),n},"cleanUpSvgCode"),VJe=E((t="",e)=>{const r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":MJe,n=N1e(`${t}`);return``},"putIntoIFrame"),VQ=E((t,e,r,n,a)=>{const i=t.append("div");i.attr("id",r),n&&i.attr("style",n);const s=i.append("svg").attr("id",e).attr("width","100%").attr("xmlns",IJe);return a&&s.attr("xmlns:xlink",a),s.append("g"),t},"appendDivSvgG");function sB(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}E(sB,"sandboxedIframe");var WJe=E((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),KJe=E(async function(t,e,r){s7();const n=JG(e);e=n.code;const a=xr();oe.debug(a),e.length>(a?.maxTextSize??kJe)&&(e=AJe);const i=`#${t}`,s="i"+t,o="#"+s,l="d"+t,u="#"+l,d=E(()=>{const F=At(f?o:u).node();F&&"remove"in F&&F.remove()},"removeTempElements");let h=At(document.body);const f=a.securityLevel===RJe,p=a.securityLevel===NJe,g=a.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const $=sB(At(r),s);h=At($.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=At(r);VQ(h,t,l,`font-family: ${g}`,OJe)}else{if(WJe(document,t,l,s),f){const $=sB(At(document.body),s);h=At($.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=At("body");VQ(h,t,l)}let m,v;try{m=await iB.fromText(e,{title:n.title})}catch($){if(a.suppressErrorRendering)throw d(),$;m=await iB.fromText("error"),v=$}const y=h.select(u).node(),b=m.type,_=y.firstChild,S=_.firstChild,x=m.renderer.getClasses?.(e,m),C=YJe(a,b,x,i),T=document.createElement("style");T.innerHTML=C,_.insertBefore(T,S);try{await m.renderer.draw(e,t,"11.15.0",m)}catch($){throw a.suppressErrorRendering?d():gZe.draw(e,t,"11.15.0"),$}const w=h.select(`${u} svg`),R=m.db.getAccTitle?.(),O=m.db.getAccDescription?.();L1e(b,w,R,O),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",DJe);let M=h.select(u).node().innerHTML;if(oe.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),M=HJe(M,f,K0(a.arrowMarkerAbsolute)),f){const $=h.select(u+" svg").node();M=VJe(M,$)}else p||(M=uh.sanitize(M,{ADD_TAGS:zJe,ADD_ATTR:UJe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(SJe(),v)throw v;return d(),{diagramType:b,svg:M,bindFunctions:m.db.bindFunctions}},"render");function O1e(t={}){const e=Va({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),E$e(e),e?.theme&&e.theme in b0?e.themeVariables=b0[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=b0.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?b$e(e):Z0e();BU(r.logLevel),s7()}E(O1e,"initialize");var D1e=E((t,e={})=>{const{code:r}=ZG(t);return iB.fromText(r,e)},"getDiagramFromText");function L1e(t,e,r,n){k1e(e,t),A1e(e,r,n,e.attr("id"))}E(L1e,"addA11yInfo");var Bp=Object.freeze({render:KJe,parse:I1e,getDiagramFromText:D1e,initialize:O1e,getConfig:xr,setConfig:J0e,getSiteConfig:Z0e,updateSiteConfig:S$e,reset:E(()=>{BC()},"reset"),globalReset:E(()=>{BC(rb)},"globalReset"),defaultConfig:rb});BU(xr().logLevel);BC(xr());var XJe=E((t,e,r)=>{oe.warn(t),IG(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"),M1e=E(async function(t={querySelector:".mermaid"}){try{await jJe(t)}catch(e){if(IG(e)&&oe.error(e.str),N0.parseError&&N0.parseError(e),!t.suppressErrors)throw oe.error("Use the suppressErrors option to suppress these errors"),e}},"run"),jJe=E(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=Bp.getConfig();oe.debug(`${t?"":"No "}Callback function found`);let a;if(r)a=r;else if(e)a=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");oe.debug(`Found ${a.length} diagrams`),n?.startOnLoad!==void 0&&(oe.debug("Start On Load: "+n?.startOnLoad),Bp.updateSiteConfig({startOnLoad:n?.startOnLoad}));const i=new Kr.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const o=[];for(const l of Array.from(a)){if(oe.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${i.next()}`;s=l.innerHTML,s=Upe(Kr.entityDecode(s)).trim().replace(//gi,"
");const d=Kr.detectInit(s);d&&oe.debug("Detected early reinit: ",d);try{const{svg:h,bindFunctions:f}=await $1e(u,s,l);l.innerHTML=h,t&&await t(u),f&&f(l)}catch(h){XJe(h,o,N0.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),P1e=E(function(t){Bp.initialize(t)},"initialize"),QJe=E(async function(t,e,r){oe.warn("mermaid.init is deprecated. Please use run instead."),t&&P1e(t);const n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await M1e(n)},"init"),ZJe=E(async(t,{lazyLoad:e=!0}={})=>{s7(),nP(...t),e===!1&&await bJe()},"registerExternalDiagrams"),B1e=E(function(){if(N0.startOnLoad){const{startOnLoad:t}=Bp.getConfig();t&&N0.run().catch(e=>oe.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",B1e,!1);var JJe=E(function(t){N0.parseError=t},"setParseErrorHandler"),S6=[],HR=!1,F1e=E(async()=>{if(!HR){for(HR=!0;S6.length>0;){const t=S6.shift();if(t)try{await t()}catch(e){oe.error("Error executing queue",e)}}HR=!1}},"executeQueue"),eet=E(async(t,e)=>new Promise((r,n)=>{const a=E(()=>new Promise((i,s)=>{Bp.parse(t,e).then(o=>{i(o),r(o)},o=>{oe.error("Error parsing",o),N0.parseError?.(o),s(o),n(o)})}),"performCall");S6.push(a),F1e().catch(n)}),"parse"),$1e=E((t,e,r)=>new Promise((n,a)=>{const i=E(()=>new Promise((s,o)=>{Bp.render(t,e,r).then(l=>{s(l),n(l)},l=>{oe.error("Error parsing",l),N0.parseError?.(l),o(l),a(l)})}),"performCall");S6.push(i),F1e().catch(a)}),"render"),tet=E(()=>Object.keys(Ap).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),N0={startOnLoad:!0,mermaidAPI:Bp,parse:eet,render:$1e,init:QJe,run:M1e,registerExternalDiagrams:ZJe,registerLayoutLoaders:zme,initialize:P1e,parseError:void 0,contentLoaded:B1e,setParseErrorHandler:JJe,detectType:zU,registerIconPacks:Ype,getRegisteredDiagramsMetadata:tet},ret=N0;const net=Object.freeze(Object.defineProperty({__proto__:null,default:ret},Symbol.toStringTag,{value:"Module"})),aet=`/* stylelint-disable font-family-no-missing-generic-family-keyword */ @font-face { font-family: "KaTeX_AMS"; src: url(https://cdn.jsdelivr.net/npm/katex@0.16.47/dist/fonts/KaTeX_AMS-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.16.47/dist/fonts/KaTeX_AMS-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.16.47/dist/fonts/KaTeX_AMS-Regular.ttf) format("truetype"); @@ -4102,16 +4107,16 @@ Please report this to https://github.com/markedjs/marked.`,e){let a="

An error body { counter-reset: katexEqnNo mmlEqnNo; } -`,z1e=Object.freeze(Object.defineProperty({__proto__:null,default:net},Symbol.toStringTag,{value:"Module"}));var VR,WQ;function aet(){if(WQ)return VR;WQ=1;function t(me){return me instanceof Map?me.clear=me.delete=me.set=function(){throw new Error("map is read-only")}:me instanceof Set&&(me.add=me.clear=me.delete=function(){throw new Error("set is read-only")}),Object.freeze(me),Object.getOwnPropertyNames(me).forEach(ie=>{const Ve=me[ie],ve=typeof Ve;(ve==="object"||ve==="function")&&!Object.isFrozen(Ve)&&t(Ve)}),me}class e{constructor(ie){ie.data===void 0&&(ie.data={}),this.data=ie.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(me){return me.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function n(me,...ie){const Ve=Object.create(null);for(const ve in me)Ve[ve]=me[ve];return ie.forEach(function(ve){for(const Tt in ve)Ve[Tt]=ve[Tt]}),Ve}const a="",i=me=>!!me.scope,s=(me,{prefix:ie})=>{if(me.startsWith("language:"))return me.replace("language:","language-");if(me.includes(".")){const Ve=me.split(".");return[`${ie}${Ve.shift()}`,...Ve.map((ve,Tt)=>`${ve}${"_".repeat(Tt+1)}`)].join(" ")}return`${ie}${me}`};class o{constructor(ie,Ve){this.buffer="",this.classPrefix=Ve.classPrefix,ie.walk(this)}addText(ie){this.buffer+=r(ie)}openNode(ie){if(!i(ie))return;const Ve=s(ie.scope,{prefix:this.classPrefix});this.span(Ve)}closeNode(ie){i(ie)&&(this.buffer+=a)}value(){return this.buffer}span(ie){this.buffer+=``}}const l=(me={})=>{const ie={children:[]};return Object.assign(ie,me),ie};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(ie){this.top.children.push(ie)}openNode(ie){const Ve=l({scope:ie});this.add(Ve),this.stack.push(Ve)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ie){return this.constructor._walk(ie,this.rootNode)}static _walk(ie,Ve){return typeof Ve=="string"?ie.addText(Ve):Ve.children&&(ie.openNode(Ve),Ve.children.forEach(ve=>this._walk(ie,ve)),ie.closeNode(Ve)),ie}static _collapse(ie){typeof ie!="string"&&ie.children&&(ie.children.every(Ve=>typeof Ve=="string")?ie.children=[ie.children.join("")]:ie.children.forEach(Ve=>{u._collapse(Ve)}))}}class d extends u{constructor(ie){super(),this.options=ie}addText(ie){ie!==""&&this.add(ie)}startScope(ie){this.openNode(ie)}endScope(){this.closeNode()}__addSublanguage(ie,Ve){const ve=ie.root;Ve&&(ve.scope=`language:${Ve}`),this.add(ve)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(me){return me?typeof me=="string"?me:me.source:null}function f(me){return m("(?=",me,")")}function p(me){return m("(?:",me,")*")}function g(me){return m("(?:",me,")?")}function m(...me){return me.map(Ve=>h(Ve)).join("")}function v(me){const ie=me[me.length-1];return typeof ie=="object"&&ie.constructor===Object?(me.splice(me.length-1,1),ie):{}}function y(...me){return"("+(v(me).capture?"":"?:")+me.map(ve=>h(ve)).join("|")+")"}function b(me){return new RegExp(me.toString()+"|").exec("").length-1}function _(me,ie){const Ve=me&&me.exec(ie);return Ve&&Ve.index===0}const S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function x(me,{joinWith:ie}){let Ve=0;return me.map(ve=>{Ve+=1;const Tt=Ve;let St=h(ve),nt="";for(;St.length>0;){const dt=S.exec(St);if(!dt){nt+=St;break}nt+=St.substring(0,dt.index),St=St.substring(dt.index+dt[0].length),dt[0][0]==="\\"&&dt[1]?nt+="\\"+String(Number(dt[1])+Tt):(nt+=dt[0],dt[0]==="("&&Ve++)}return nt}).map(ve=>`(${ve})`).join(ie)}const C=/\b\B/,T="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",R="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=(me={})=>{const ie=/^#![ ]*\//;return me.binary&&(me.begin=m(ie,/.*\b/,me.binary,/\b.*/)),n({scope:"meta",begin:ie,end:/$/,relevance:0,"on:begin":(Ve,ve)=>{Ve.index!==0&&ve.ignoreMatch()}},me)},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/},N=function(me,ie,Ve={}){const ve=n({scope:"comment",begin:me,end:ie,contains:[]},Ve);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 Tt=y("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(/[ ]+/,"(",Tt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ve},P=N("//","$"),z=N("/\\*","\\*/"),B=N("#","$"),U={scope:"number",begin:R,relevance:0},G={scope:"number",begin:O,relevance:0},K={scope:"number",begin:M,relevance:0},Y={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},ee={scope:"title",begin:T,relevance:0},X={scope:"title",begin:w,relevance:0},le={begin:"\\.\\s*"+w,relevance:0};var ne=Object.freeze({__proto__:null,APOS_STRING_MODE:I,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:K,BINARY_NUMBER_RE:M,COMMENT:N,C_BLOCK_COMMENT_MODE:z,C_LINE_COMMENT_MODE:P,C_NUMBER_MODE:G,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(me){return Object.assign(me,{"on:begin":(ie,Ve)=>{Ve.data._beginMatch=ie[1]},"on:end":(ie,Ve)=>{Ve.data._beginMatch!==ie[1]&&Ve.ignoreMatch()}})},HASH_COMMENT_MODE:B,IDENT_RE:T,MATCH_NOTHING_RE:C,METHOD_GUARD:le,NUMBER_MODE:U,NUMBER_RE:R,PHRASAL_WORDS_MODE:L,QUOTE_STRING_MODE:D,REGEXP_MODE:Y,RE_STARTERS_RE:$,SHEBANG:F,TITLE_MODE:ee,UNDERSCORE_IDENT_RE:w,UNDERSCORE_TITLE_MODE:X});function ae(me,ie){me.input[me.index-1]==="."&&ie.ignoreMatch()}function re(me,ie){me.className!==void 0&&(me.scope=me.className,delete me.className)}function ge(me,ie){ie&&me.beginKeywords&&(me.begin="\\b("+me.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",me.__beforeBegin=ae,me.keywords=me.keywords||me.beginKeywords,delete me.beginKeywords,me.relevance===void 0&&(me.relevance=0))}function pe(me,ie){Array.isArray(me.illegal)&&(me.illegal=y(...me.illegal))}function Be(me,ie){if(me.match){if(me.begin||me.end)throw new Error("begin & end are not supported with match");me.begin=me.match,delete me.match}}function Le(me,ie){me.relevance===void 0&&(me.relevance=1)}const He=(me,ie)=>{if(!me.beforeMatch)return;if(me.starts)throw new Error("beforeMatch cannot be used with starts");const Ve=Object.assign({},me);Object.keys(me).forEach(ve=>{delete me[ve]}),me.keywords=Ve.keywords,me.begin=m(Ve.beforeMatch,f(Ve.begin)),me.starts={relevance:0,contains:[Object.assign(Ve,{endsParent:!0})]},me.relevance=0,delete Ve.beforeMatch},Re=["of","and","for","in","not","or","if","then","parent","list","value"],xe="keyword";function $e(me,ie,Ve=xe){const ve=Object.create(null);return typeof me=="string"?Tt(Ve,me.split(" ")):Array.isArray(me)?Tt(Ve,me):Object.keys(me).forEach(function(St){Object.assign(ve,$e(me[St],ie,St))}),ve;function Tt(St,nt){ie&&(nt=nt.map(dt=>dt.toLowerCase())),nt.forEach(function(dt){const ft=dt.split("|");ve[ft[0]]=[St,Ce(ft[0],ft[1])]})}}function Ce(me,ie){return ie?Number(ie):ut(me)?0:1}function ut(me){return Re.includes(me.toLowerCase())}const Ae={},je=me=>{console.error(me)},ot=(me,...ie)=>{console.log(`WARN: ${me}`,...ie)},lt=(me,ie)=>{Ae[`${me}/${ie}`]||(console.log(`Deprecated as of ${me}. ${ie}`),Ae[`${me}/${ie}`]=!0)},ct=new Error;function it(me,ie,{key:Ve}){let ve=0;const Tt=me[Ve],St={},nt={};for(let dt=1;dt<=ie.length;dt++)nt[dt+ve]=Tt[dt],St[dt+ve]=!0,ve+=b(ie[dt-1]);me[Ve]=nt,me[Ve]._emit=St,me[Ve]._multi=!0}function ke(me){if(Array.isArray(me.begin)){if(me.skip||me.excludeBegin||me.returnBegin)throw je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ct;if(typeof me.beginScope!="object"||me.beginScope===null)throw je("beginScope must be object"),ct;it(me,me.begin,{key:"beginScope"}),me.begin=x(me.begin,{joinWith:""})}}function Qe(me){if(Array.isArray(me.end)){if(me.skip||me.excludeEnd||me.returnEnd)throw je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ct;if(typeof me.endScope!="object"||me.endScope===null)throw je("endScope must be object"),ct;it(me,me.end,{key:"endScope"}),me.end=x(me.end,{joinWith:""})}}function _e(me){me.scope&&typeof me.scope=="object"&&me.scope!==null&&(me.beginScope=me.scope,delete me.scope)}function ye(me){_e(me),typeof me.beginScope=="string"&&(me.beginScope={_wrap:me.beginScope}),typeof me.endScope=="string"&&(me.endScope={_wrap:me.endScope}),ke(me),Qe(me)}function q(me){function ie(nt,dt){return new RegExp(h(nt),"m"+(me.case_insensitive?"i":"")+(me.unicodeRegex?"u":"")+(dt?"g":""))}class Ve{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=ie(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 gt=ft.findIndex((It,bt)=>bt>0&&It!==void 0),se=this.matchIndexes[gt];return ft.splice(0,gt),Object.assign(ft,se)}}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 Ve;return this.rules.slice(dt).forEach(([gt,se])=>ft.addRule(gt,se)),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 gt=ft.exec(dt);if(this.resumingScanAtSamePosition()&&!(gt&>.index===this.lastIndex)){const se=this.getMatcher(0);se.lastIndex=this.lastIndex+1,gt=se.exec(dt)}return gt&&(this.regexIndex+=gt.position+1,this.regexIndex===this.count&&this.considerAll()),gt}}function Tt(nt){const dt=new ve;return nt.contains.forEach(ft=>dt.addRule(ft.begin,{rule:ft,type:"begin"})),nt.terminatorEnd&&dt.addRule(nt.terminatorEnd,{type:"end"}),nt.illegal&&dt.addRule(nt.illegal,{type:"illegal"}),dt}function St(nt,dt){const ft=nt;if(nt.isCompiled)return ft;[re,Be,ye,He].forEach(se=>se(nt,dt)),me.compilerExtensions.forEach(se=>se(nt,dt)),nt.__beforeBegin=null,[ge,pe,Le].forEach(se=>se(nt,dt)),nt.isCompiled=!0;let gt=null;return typeof nt.keywords=="object"&&nt.keywords.$pattern&&(nt.keywords=Object.assign({},nt.keywords),gt=nt.keywords.$pattern,delete nt.keywords.$pattern),gt=gt||/\w+/,nt.keywords&&(nt.keywords=$e(nt.keywords,me.case_insensitive)),ft.keywordPatternRe=ie(gt,!0),dt&&(nt.begin||(nt.begin=/\B|\b/),ft.beginRe=ie(ft.begin),!nt.end&&!nt.endsWithParent&&(nt.end=/\B|\b/),nt.end&&(ft.endRe=ie(ft.end)),ft.terminatorEnd=h(ft.end)||"",nt.endsWithParent&&dt.terminatorEnd&&(ft.terminatorEnd+=(nt.end?"|":"")+dt.terminatorEnd)),nt.illegal&&(ft.illegalRe=ie(nt.illegal)),nt.contains||(nt.contains=[]),nt.contains=[].concat(...nt.contains.map(function(se){return j(se==="self"?nt:se)})),nt.contains.forEach(function(se){St(se,ft)}),nt.starts&&St(nt.starts,dt),ft.matcher=Tt(ft),ft}if(me.compilerExtensions||(me.compilerExtensions=[]),me.contains&&me.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return me.classNameAliases=n(me.classNameAliases||{}),St(me)}function fe(me){return me?me.endsWithParent||fe(me.starts):!1}function j(me){return me.variants&&!me.cachedVariants&&(me.cachedVariants=me.variants.map(function(ie){return n(me,{variants:null},ie)})),me.cachedVariants?me.cachedVariants:fe(me)?n(me,{starts:me.starts?n(me.starts):null}):Object.isFrozen(me)?n(me):me}var we="11.11.1";class Te extends Error{constructor(ie,Ve){super(ie),this.name="HTMLInjectionError",this.html=Ve}}const rt=r,Oe=n,Pe=Symbol("nomatch"),Ie=7,Ze=function(me){const ie=Object.create(null),Ve=Object.create(null),ve=[];let Tt=!0;const St="Could not find the language '{}', did you forget to load/include a language module?",nt={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 gt(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||(ot(St.replace("{}",kt[1])),ot("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 se(Mt,Xt,kt){let xt="",$t="";typeof Xt=="object"?(xt=Mt,kt=Xt.ignoreIllegals,$t=Xt.language):(lt("10.7.0","highlight(lang, code, ...args) has been deprecated."),lt("10.7.0",`Please use highlight(code, options) instead. +`,z1e=Object.freeze(Object.defineProperty({__proto__:null,default:aet},Symbol.toStringTag,{value:"Module"}));var VR,WQ;function iet(){if(WQ)return VR;WQ=1;function t(me){return me instanceof Map?me.clear=me.delete=me.set=function(){throw new Error("map is read-only")}:me instanceof Set&&(me.add=me.clear=me.delete=function(){throw new Error("set is read-only")}),Object.freeze(me),Object.getOwnPropertyNames(me).forEach(ie=>{const Ve=me[ie],ve=typeof Ve;(ve==="object"||ve==="function")&&!Object.isFrozen(Ve)&&t(Ve)}),me}class e{constructor(ie){ie.data===void 0&&(ie.data={}),this.data=ie.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(me){return me.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function n(me,...ie){const Ve=Object.create(null);for(const ve in me)Ve[ve]=me[ve];return ie.forEach(function(ve){for(const Tt in ve)Ve[Tt]=ve[Tt]}),Ve}const a="",i=me=>!!me.scope,s=(me,{prefix:ie})=>{if(me.startsWith("language:"))return me.replace("language:","language-");if(me.includes(".")){const Ve=me.split(".");return[`${ie}${Ve.shift()}`,...Ve.map((ve,Tt)=>`${ve}${"_".repeat(Tt+1)}`)].join(" ")}return`${ie}${me}`};class o{constructor(ie,Ve){this.buffer="",this.classPrefix=Ve.classPrefix,ie.walk(this)}addText(ie){this.buffer+=r(ie)}openNode(ie){if(!i(ie))return;const Ve=s(ie.scope,{prefix:this.classPrefix});this.span(Ve)}closeNode(ie){i(ie)&&(this.buffer+=a)}value(){return this.buffer}span(ie){this.buffer+=``}}const l=(me={})=>{const ie={children:[]};return Object.assign(ie,me),ie};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(ie){this.top.children.push(ie)}openNode(ie){const Ve=l({scope:ie});this.add(Ve),this.stack.push(Ve)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ie){return this.constructor._walk(ie,this.rootNode)}static _walk(ie,Ve){return typeof Ve=="string"?ie.addText(Ve):Ve.children&&(ie.openNode(Ve),Ve.children.forEach(ve=>this._walk(ie,ve)),ie.closeNode(Ve)),ie}static _collapse(ie){typeof ie!="string"&&ie.children&&(ie.children.every(Ve=>typeof Ve=="string")?ie.children=[ie.children.join("")]:ie.children.forEach(Ve=>{u._collapse(Ve)}))}}class d extends u{constructor(ie){super(),this.options=ie}addText(ie){ie!==""&&this.add(ie)}startScope(ie){this.openNode(ie)}endScope(){this.closeNode()}__addSublanguage(ie,Ve){const ve=ie.root;Ve&&(ve.scope=`language:${Ve}`),this.add(ve)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(me){return me?typeof me=="string"?me:me.source:null}function f(me){return m("(?=",me,")")}function p(me){return m("(?:",me,")*")}function g(me){return m("(?:",me,")?")}function m(...me){return me.map(Ve=>h(Ve)).join("")}function v(me){const ie=me[me.length-1];return typeof ie=="object"&&ie.constructor===Object?(me.splice(me.length-1,1),ie):{}}function y(...me){return"("+(v(me).capture?"":"?:")+me.map(ve=>h(ve)).join("|")+")"}function b(me){return new RegExp(me.toString()+"|").exec("").length-1}function _(me,ie){const Ve=me&&me.exec(ie);return Ve&&Ve.index===0}const S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function x(me,{joinWith:ie}){let Ve=0;return me.map(ve=>{Ve+=1;const Tt=Ve;let St=h(ve),nt="";for(;St.length>0;){const dt=S.exec(St);if(!dt){nt+=St;break}nt+=St.substring(0,dt.index),St=St.substring(dt.index+dt[0].length),dt[0][0]==="\\"&&dt[1]?nt+="\\"+String(Number(dt[1])+Tt):(nt+=dt[0],dt[0]==="("&&Ve++)}return nt}).map(ve=>`(${ve})`).join(ie)}const C=/\b\B/,T="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",R="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=(me={})=>{const ie=/^#![ ]*\//;return me.binary&&(me.begin=m(ie,/.*\b/,me.binary,/\b.*/)),n({scope:"meta",begin:ie,end:/$/,relevance:0,"on:begin":(Ve,ve)=>{Ve.index!==0&&ve.ignoreMatch()}},me)},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/},N=function(me,ie,Ve={}){const ve=n({scope:"comment",begin:me,end:ie,contains:[]},Ve);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 Tt=y("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(/[ ]+/,"(",Tt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ve},P=N("//","$"),z=N("/\\*","\\*/"),B=N("#","$"),U={scope:"number",begin:R,relevance:0},G={scope:"number",begin:O,relevance:0},K={scope:"number",begin:M,relevance:0},Y={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]},ee={scope:"title",begin:T,relevance:0},X={scope:"title",begin:w,relevance:0},le={begin:"\\.\\s*"+w,relevance:0};var ne=Object.freeze({__proto__:null,APOS_STRING_MODE:I,BACKSLASH_ESCAPE:A,BINARY_NUMBER_MODE:K,BINARY_NUMBER_RE:M,COMMENT:N,C_BLOCK_COMMENT_MODE:z,C_LINE_COMMENT_MODE:P,C_NUMBER_MODE:G,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(me){return Object.assign(me,{"on:begin":(ie,Ve)=>{Ve.data._beginMatch=ie[1]},"on:end":(ie,Ve)=>{Ve.data._beginMatch!==ie[1]&&Ve.ignoreMatch()}})},HASH_COMMENT_MODE:B,IDENT_RE:T,MATCH_NOTHING_RE:C,METHOD_GUARD:le,NUMBER_MODE:U,NUMBER_RE:R,PHRASAL_WORDS_MODE:L,QUOTE_STRING_MODE:D,REGEXP_MODE:Y,RE_STARTERS_RE:$,SHEBANG:F,TITLE_MODE:ee,UNDERSCORE_IDENT_RE:w,UNDERSCORE_TITLE_MODE:X});function ae(me,ie){me.input[me.index-1]==="."&&ie.ignoreMatch()}function re(me,ie){me.className!==void 0&&(me.scope=me.className,delete me.className)}function ge(me,ie){ie&&me.beginKeywords&&(me.begin="\\b("+me.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",me.__beforeBegin=ae,me.keywords=me.keywords||me.beginKeywords,delete me.beginKeywords,me.relevance===void 0&&(me.relevance=0))}function pe(me,ie){Array.isArray(me.illegal)&&(me.illegal=y(...me.illegal))}function Be(me,ie){if(me.match){if(me.begin||me.end)throw new Error("begin & end are not supported with match");me.begin=me.match,delete me.match}}function Le(me,ie){me.relevance===void 0&&(me.relevance=1)}const He=(me,ie)=>{if(!me.beforeMatch)return;if(me.starts)throw new Error("beforeMatch cannot be used with starts");const Ve=Object.assign({},me);Object.keys(me).forEach(ve=>{delete me[ve]}),me.keywords=Ve.keywords,me.begin=m(Ve.beforeMatch,f(Ve.begin)),me.starts={relevance:0,contains:[Object.assign(Ve,{endsParent:!0})]},me.relevance=0,delete Ve.beforeMatch},Re=["of","and","for","in","not","or","if","then","parent","list","value"],xe="keyword";function $e(me,ie,Ve=xe){const ve=Object.create(null);return typeof me=="string"?Tt(Ve,me.split(" ")):Array.isArray(me)?Tt(Ve,me):Object.keys(me).forEach(function(St){Object.assign(ve,$e(me[St],ie,St))}),ve;function Tt(St,nt){ie&&(nt=nt.map(dt=>dt.toLowerCase())),nt.forEach(function(dt){const ft=dt.split("|");ve[ft[0]]=[St,Ce(ft[0],ft[1])]})}}function Ce(me,ie){return ie?Number(ie):ut(me)?0:1}function ut(me){return Re.includes(me.toLowerCase())}const Ae={},je=me=>{console.error(me)},ot=(me,...ie)=>{console.log(`WARN: ${me}`,...ie)},lt=(me,ie)=>{Ae[`${me}/${ie}`]||(console.log(`Deprecated as of ${me}. ${ie}`),Ae[`${me}/${ie}`]=!0)},ct=new Error;function it(me,ie,{key:Ve}){let ve=0;const Tt=me[Ve],St={},nt={};for(let dt=1;dt<=ie.length;dt++)nt[dt+ve]=Tt[dt],St[dt+ve]=!0,ve+=b(ie[dt-1]);me[Ve]=nt,me[Ve]._emit=St,me[Ve]._multi=!0}function ke(me){if(Array.isArray(me.begin)){if(me.skip||me.excludeBegin||me.returnBegin)throw je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ct;if(typeof me.beginScope!="object"||me.beginScope===null)throw je("beginScope must be object"),ct;it(me,me.begin,{key:"beginScope"}),me.begin=x(me.begin,{joinWith:""})}}function Qe(me){if(Array.isArray(me.end)){if(me.skip||me.excludeEnd||me.returnEnd)throw je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ct;if(typeof me.endScope!="object"||me.endScope===null)throw je("endScope must be object"),ct;it(me,me.end,{key:"endScope"}),me.end=x(me.end,{joinWith:""})}}function _e(me){me.scope&&typeof me.scope=="object"&&me.scope!==null&&(me.beginScope=me.scope,delete me.scope)}function ye(me){_e(me),typeof me.beginScope=="string"&&(me.beginScope={_wrap:me.beginScope}),typeof me.endScope=="string"&&(me.endScope={_wrap:me.endScope}),ke(me),Qe(me)}function q(me){function ie(nt,dt){return new RegExp(h(nt),"m"+(me.case_insensitive?"i":"")+(me.unicodeRegex?"u":"")+(dt?"g":""))}class Ve{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=ie(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 gt=ft.findIndex((It,bt)=>bt>0&&It!==void 0),se=this.matchIndexes[gt];return ft.splice(0,gt),Object.assign(ft,se)}}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 Ve;return this.rules.slice(dt).forEach(([gt,se])=>ft.addRule(gt,se)),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 gt=ft.exec(dt);if(this.resumingScanAtSamePosition()&&!(gt&>.index===this.lastIndex)){const se=this.getMatcher(0);se.lastIndex=this.lastIndex+1,gt=se.exec(dt)}return gt&&(this.regexIndex+=gt.position+1,this.regexIndex===this.count&&this.considerAll()),gt}}function Tt(nt){const dt=new ve;return nt.contains.forEach(ft=>dt.addRule(ft.begin,{rule:ft,type:"begin"})),nt.terminatorEnd&&dt.addRule(nt.terminatorEnd,{type:"end"}),nt.illegal&&dt.addRule(nt.illegal,{type:"illegal"}),dt}function St(nt,dt){const ft=nt;if(nt.isCompiled)return ft;[re,Be,ye,He].forEach(se=>se(nt,dt)),me.compilerExtensions.forEach(se=>se(nt,dt)),nt.__beforeBegin=null,[ge,pe,Le].forEach(se=>se(nt,dt)),nt.isCompiled=!0;let gt=null;return typeof nt.keywords=="object"&&nt.keywords.$pattern&&(nt.keywords=Object.assign({},nt.keywords),gt=nt.keywords.$pattern,delete nt.keywords.$pattern),gt=gt||/\w+/,nt.keywords&&(nt.keywords=$e(nt.keywords,me.case_insensitive)),ft.keywordPatternRe=ie(gt,!0),dt&&(nt.begin||(nt.begin=/\B|\b/),ft.beginRe=ie(ft.begin),!nt.end&&!nt.endsWithParent&&(nt.end=/\B|\b/),nt.end&&(ft.endRe=ie(ft.end)),ft.terminatorEnd=h(ft.end)||"",nt.endsWithParent&&dt.terminatorEnd&&(ft.terminatorEnd+=(nt.end?"|":"")+dt.terminatorEnd)),nt.illegal&&(ft.illegalRe=ie(nt.illegal)),nt.contains||(nt.contains=[]),nt.contains=[].concat(...nt.contains.map(function(se){return j(se==="self"?nt:se)})),nt.contains.forEach(function(se){St(se,ft)}),nt.starts&&St(nt.starts,dt),ft.matcher=Tt(ft),ft}if(me.compilerExtensions||(me.compilerExtensions=[]),me.contains&&me.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return me.classNameAliases=n(me.classNameAliases||{}),St(me)}function fe(me){return me?me.endsWithParent||fe(me.starts):!1}function j(me){return me.variants&&!me.cachedVariants&&(me.cachedVariants=me.variants.map(function(ie){return n(me,{variants:null},ie)})),me.cachedVariants?me.cachedVariants:fe(me)?n(me,{starts:me.starts?n(me.starts):null}):Object.isFrozen(me)?n(me):me}var we="11.11.1";class Te extends Error{constructor(ie,Ve){super(ie),this.name="HTMLInjectionError",this.html=Ve}}const rt=r,Oe=n,Pe=Symbol("nomatch"),Ie=7,Ze=function(me){const ie=Object.create(null),Ve=Object.create(null),ve=[];let Tt=!0;const St="Could not find the language '{}', did you forget to load/include a language module?",nt={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 gt(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||(ot(St.replace("{}",kt[1])),ot("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 se(Mt,Xt,kt){let xt="",$t="";typeof Xt=="object"?(xt=Mt,kt=Xt.ignoreIllegals,$t=Xt.language):(lt("10.7.0","highlight(lang, code, ...args) has been deprecated."),lt("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};qn("before:highlight",wt);const Ar=wt.result?wt.result:It(wt.language,wt.code,kt);return Ar.code=wt.code,qn("after:highlight",Ar),Ar}function It(Mt,Xt,kt,xt){const $t=Object.create(null);function wt(rr,fr){return rr.keywords[fr]}function Ar(){if(!yr.keywords){yn.addText(pn);return}let rr=0;yr.keywordPatternRe.lastIndex=0;let fr=yr.keywordPatternRe.exec(pn),Er="";for(;fr;){Er+=pn.substring(rr,fr.index);const _n=io.case_insensitive?fr[0].toLowerCase():fr[0],pi=wt(yr,_n);if(pi){const[ol,yK]=pi;if(yn.addText(Er),Er="",$t[_n]=($t[_n]||0)+1,$t[_n]<=Ie&&(so+=yK),ol.startsWith("_"))Er+=fr[0];else{const _K=io.classNameAliases[ol]||ol;Me(fr[0],_K)}}else Er+=fr[0];rr=yr.keywordPatternRe.lastIndex,fr=yr.keywordPatternRe.exec(pn)}Er+=pn.substring(rr),yn.addText(Er)}function De(){if(pn==="")return;let rr=null;if(typeof yr.subLanguage=="string"){if(!ie[yr.subLanguage]){yn.addText(pn);return}rr=It(yr.subLanguage,pn,!0,sl[yr.subLanguage]),sl[yr.subLanguage]=rr._top}else rr=Et(pn,yr.subLanguage.length?yr.subLanguage:null);yr.relevance>0&&(so+=rr.relevance),yn.__addSublanguage(rr._emitter,rr.language)}function Yn(){yr.subLanguage!=null?De():Ar(),pn=""}function Me(rr,fr){rr!==""&&(yn.startScope(fr),yn.addText(rr),yn.endScope())}function Hn(rr,fr){let Er=1;const _n=fr.length-1;for(;Er<=_n;){if(!rr._emit[Er]){Er++;continue}const pi=io.classNameAliases[rr[Er]]||rr[Er],ol=fr[Er];pi?Me(ol,pi):(pn=ol,Ar(),pn=""),Er++}}function tf(rr,fr){return rr.scope&&typeof rr.scope=="string"&&yn.openNode(io.classNameAliases[rr.scope]||rr.scope),rr.beginScope&&(rr.beginScope._wrap?(Me(pn,io.classNameAliases[rr.beginScope._wrap]||rr.beginScope._wrap),pn=""):rr.beginScope._multi&&(Hn(rr.beginScope,fr),pn="")),yr=Object.create(rr,{parent:{value:yr}}),yr}function rf(rr,fr,Er){let _n=_(rr.endRe,Er);if(_n){if(rr["on:end"]){const pi=new e(rr);rr["on:end"](fr,pi),pi.isMatchIgnored&&(_n=!1)}if(_n){for(;rr.endsParent&&rr.parent;)rr=rr.parent;return rr}}if(rr.endsWithParent)return rf(rr.parent,fr,Er)}function O2(rr){return yr.matcher.regexIndex===0?(pn+=rr[0],1):(gd=!0,0)}function vx(rr){const fr=rr[0],Er=rr.rule,_n=new e(Er),pi=[Er.__beforeBegin,Er["on:begin"]];for(const ol of pi)if(ol&&(ol(rr,_n),_n.isMatchIgnored))return O2(fr);return Er.skip?pn+=fr:(Er.excludeBegin&&(pn+=fr),Yn(),!Er.returnBegin&&!Er.excludeBegin&&(pn=fr)),tf(Er,rr),Er.returnBegin?0:fr.length}function Ga(rr){const fr=rr[0],Er=Xt.substring(rr.index),_n=rf(yr,rr,Er);if(!_n)return Pe;const pi=yr;yr.endScope&&yr.endScope._wrap?(Yn(),Me(fr,yr.endScope._wrap)):yr.endScope&&yr.endScope._multi?(Yn(),Hn(yr.endScope,rr)):pi.skip?pn+=fr:(pi.returnEnd||pi.excludeEnd||(pn+=fr),Yn(),pi.excludeEnd&&(pn=fr));do yr.scope&&yn.closeNode(),!yr.skip&&!yr.subLanguage&&(so+=yr.relevance),yr=yr.parent;while(yr!==_n.parent);return _n.starts&&tf(_n.starts,rr),pi.returnEnd?0:fr.length}function xc(){const rr=[];for(let fr=yr;fr!==io;fr=fr.parent)fr.scope&&rr.unshift(fr.scope);rr.forEach(fr=>yn.openNode(fr))}let Fu={};function fd(rr,fr){const Er=fr&&fr[0];if(pn+=rr,Er==null)return Yn(),0;if(Fu.type==="begin"&&fr.type==="end"&&Fu.index===fr.index&&Er===""){if(pn+=Xt.slice(fr.index,fr.index+1),!Tt){const _n=new Error(`0 width match regex (${Mt})`);throw _n.languageName=Mt,_n.badRule=Fu.rule,_n}return 1}if(Fu=fr,fr.type==="begin")return vx(fr);if(fr.type==="illegal"&&!kt){const _n=new Error('Illegal lexeme "'+Er+'" for mode "'+(yr.scope||"")+'"');throw _n.mode=yr,_n}else if(fr.type==="end"){const _n=Ga(fr);if(_n!==Pe)return _n}if(fr.type==="illegal"&&Er==="")return pn+=` -`,1;if(bs>1e5&&bs>fr.index*3)throw new Error("potential infinite loop, way more iterations than matches");return pn+=Er,Er.length}const io=pt(Mt);if(!io)throw je(St.replace("{}",Mt)),new Error('Unknown language: "'+Mt+'"');const D2=q(io);let pd="",yr=xt||D2;const sl={},yn=new dt.__emitter(dt);xc();let pn="",so=0,_s=0,bs=0,gd=!1;try{if(io.__emitTokens)io.__emitTokens(Xt,yn);else{for(yr.matcher.considerAll();;){bs++,gd?gd=!1:yr.matcher.considerAll(),yr.matcher.lastIndex=_s;const rr=yr.matcher.exec(Xt);if(!rr)break;const fr=Xt.substring(_s,rr.index),Er=fd(fr,rr);_s=rr.index+Er}fd(Xt.substring(_s))}return yn.finalize(),pd=yn.toHTML(),{language:Mt,value:pd,relevance:so,illegal:!1,_emitter:yn,_top:yr}}catch(rr){if(rr.message&&rr.message.includes("Illegal"))return{language:Mt,value:rt(Xt),illegal:!0,relevance:0,_illegalBy:{message:rr.message,index:_s,context:Xt.slice(_s-100,_s+100),mode:rr.mode,resultSoFar:pd},_emitter:yn};if(Tt)return{language:Mt,value:rt(Xt),illegal:!1,relevance:0,errorRaised:rr,_emitter:yn,_top:yr};throw rr}}function bt(Mt){const Xt={value:rt(Mt),illegal:!1,relevance:0,_top:nt,_emitter:new dt.__emitter(dt)};return Xt._emitter.addText(Mt),Xt}function Et(Mt,Xt){Xt=Xt||dt.languages||Object.keys(ie);const kt=bt(Mt),xt=Xt.filter(pt).filter(Zt).map(Yn=>It(Yn,Mt,!1));xt.unshift(kt);const $t=xt.sort((Yn,Me)=>{if(Yn.relevance!==Me.relevance)return Me.relevance-Yn.relevance;if(Yn.language&&Me.language){if(pt(Yn.language).supersetOf===Me.language)return 1;if(pt(Me.language).supersetOf===Yn.language)return-1}return 0}),[wt,Ar]=$t,De=wt;return De.secondBest=Ar,De}function Nt(Mt,Xt,kt){const xt=Xt&&Ve[Xt]||kt;Mt.classList.add("hljs"),Mt.classList.add(`language-${xt}`)}function Vr(Mt){let Xt=null;const kt=gt(Mt);if(ft(kt))return;if(qn("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 Te("One of your code blocks includes unescaped HTML.",Mt.innerHTML);Xt=Mt;const xt=Xt.textContent,$t=kt?se(xt,{language:kt,ignoreIllegals:!0}):Et(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}),qn("after:highlightElement",{el:Mt,result:$t,text:xt})}function Ne(Mt){dt=Oe(dt,Mt)}const mt=()=>{Qt(),lt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _t(){Qt(),lt("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(Vr)}function br(Mt,Xt){let kt=null;try{kt=Xt(me)}catch(xt){if(je("Language definition for '{}' could not be registered.".replace("{}",Mt)),Tt)je(xt);else throw xt;kt=nt}kt.name||(kt.name=Mt),ie[Mt]=kt,kt.rawDefinition=Xt.bind(null,me),kt.aliases&&Dt(kt.aliases,{languageName:Mt})}function Ct(Mt){delete ie[Mt];for(const Xt of Object.keys(Ve))Ve[Xt]===Mt&&delete Ve[Xt]}function Fe(){return Object.keys(ie)}function pt(Mt){return Mt=(Mt||"").toLowerCase(),ie[Mt]||ie[Ve[Mt]]}function Dt(Mt,{languageName:Xt}){typeof Mt=="string"&&(Mt=[Mt]),Mt.forEach(kt=>{Ve[kt.toLowerCase()]=Xt})}function Zt(Mt){const Xt=pt(Mt);return Xt&&!Xt.disableAutodetect}function kr(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 Wr(Mt){kr(Mt),ve.push(Mt)}function Xr(Mt){const Xt=ve.indexOf(Mt);Xt!==-1&&ve.splice(Xt,1)}function qn(Mt,Xt){const kt=Mt;ve.forEach(function(xt){xt[kt]&&xt[kt](Xt)})}function ja(Mt){return lt("10.7.0","highlightBlock will be removed entirely in v12.0"),lt("10.7.0","Please use highlightElement now."),Vr(Mt)}Object.assign(me,{highlight:se,highlightAuto:Et,highlightAll:Qt,highlightElement:Vr,highlightBlock:ja,configure:Ne,initHighlighting:mt,initHighlightingOnLoad:_t,registerLanguage:br,unregisterLanguage:Ct,listLanguages:Fe,getLanguage:pt,registerAliases:Dt,autoDetection:Zt,inherit:Oe,addPlugin:Wr,removePlugin:Xr}),me.debugMode=function(){Tt=!1},me.safeMode=function(){Tt=!0},me.versionString=we,me.regex={concat:m,lookahead:f,either:y,optional:g,anyNumberOfTimes:p};for(const Mt in ne)typeof ne[Mt]=="object"&&t(ne[Mt]);return Object.assign(me,ne),me},ze=Ze({});return ze.newInstance=()=>Ze({}),VR=ze,ze.HighlightJS=ze,ze.default=ze,VR}var WR,KQ;function iet(){if(KQ)return WR;KQ=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",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 типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",G="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 деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",K="null истина ложь неопределено",Y=e.inherit(e.NUMBER_MODE),ee={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},X={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},le={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},te=e.inherit(e.C_LINE_COMMENT_MODE),ne={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,keyword:i+l},contains:[te]},ae={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},re={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:K},contains:[Y,ee,X]},te]},e.inherit(e.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:i,built_in:p,class:z,type:G,literal:K},contains:[ne,re,te,ae,Y,ee,X,le]}}return WR=t,WR}var KR,XQ;function set(){if(XQ)return KR;XQ=1;function t(e){const r=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,a=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=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:a,contains:[{scope:"operator",match:/=\/?/},d,i,s,o,l,u,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return KR=t,KR}var XR,jQ;function oet(){if(jQ)return XR;jQ=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 XR=t,XR}var jR,QQ;function cet(){if(QQ)return jR;QQ=1;function t(e){const r=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,a=r.concat(n,r.concat("(\\.",n,")*")),i=/([*]|[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+/,a],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*/,i)}]},e.METHOD_GUARD],illegal:/#/}}return jR=t,jR}var QR,ZQ;function uet(){if(ZQ)return QR;ZQ=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,a=r+"(\\."+r+")?("+n+")?",i="\\w+",o="\\b("+(r+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+a+")",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 QR=t,QR}var ZR,JQ;function det(){if(JQ)return ZR;JQ=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_]+@"},a={className:"keyword",begin:"<",end:">",contains:[r,n]};return r.contains=[a],n.contains=[a],{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 ZR=t,ZR}var JR,eZ;function het(){if(eZ)return JR;eZ=1;function t(e){const r={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},a={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={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:[a,i,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]},a,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return JR=t,JR}var eN,tZ;function fet(){if(tZ)return eN;tZ=1;function t(e){const r=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),o=[i,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,a]},...o],illegal:/\/\/|->|=>|\[\[/}}return eN=t,eN}var tN,rZ;function pet(){if(rZ)return tN;rZ=1;function t(e){const r=e.regex,n="[A-Za-z_][0-9A-Za-z_]*",a={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"]},i=["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(...i)},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:a,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:a,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:a,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 tN=t,tN}var rN,nZ;function get(){if(nZ)return rN;nZ=1;function t(r){const n=r.regex,a=r.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+i+"|"+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:/<.*?>/},a,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*\\(",v=["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"],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:y,keyword:v,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,a,r.C_BLOCK_COMMENT_MODE,f,h],R={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:i,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:[a,r.C_BLOCK_COMMENT_MODE,h,f,u,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",a,r.C_BLOCK_COMMENT_MODE,h,f,u]}]},u,a,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"]},a=t(r),i=a.keywords;return i.type=[...i.type,...n.type],i.literal=[...i.literal,...n.literal],i.built_in=[...i.built_in,...n.built_in],i._hints=n._hints,a.name="Arduino",a.aliases=["ino"],a.supersetOf="cpp",a}return rN=e,rN}var nN,aZ;function met(){if(aZ)return nN;aZ=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 nN=t,nN}var aN,iZ;function vet(){if(iZ)return aN;iZ=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),a=/[\p{L}0-9._:-]+/u,i={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},i,{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 aN=t,aN}var iN,sZ;function yet(){if(sZ)return iN;sZ=1;function t(e){const r=e.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},a=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{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,...a,...i,...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 iN=t,iN}var sN,oZ;function _et(){if(oZ)return sN;oZ=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"],a=["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(a),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(a),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 sN=t,sN}var oN,lZ;function bet(){if(lZ)return oN;lZ=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 oN=t,oN}var lN,cZ;function Eet(){if(cZ)return lN;cZ=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"],a="True False And Null Not Or Default",i="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:i,literal:a},contains:[s,o,l,u,d,h,f]}}return lN=t,lN}var cN,uZ;function Tet(){if(uZ)return cN;uZ=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 cN=t,cN}var uN,dZ;function xet(){if(dZ)return uN;dZ=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",a={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,a,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return uN=t,uN}var dN,hZ;function Cet(){if(hZ)return dN;hZ=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 dN=t,dN}var hN,fZ;function wet(){if(fZ)return hN;fZ=1;function t(e){const r=e.regex,n={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const i={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,i]};i.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},v=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],y=["true","false"],b={match:/(\/[a-z._-]+)+/},_=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["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:v,literal:y,built_in:[..._,...S,"set","shopt",...x,...C]},contains:[g,e.SHEBANG(),m,f,s,o,b,l,u,d,h,n]}}return hN=t,hN}var fN,pZ;function ket(){if(pZ)return fN;pZ=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 fN=t,fN}var pN,gZ;function Aet(){if(gZ)return pN;gZ=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 pN=t,pN}var gN,mZ;function Ret(){if(mZ)return gN;mZ=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 gN=t,gN}var mN,vZ;function Net(){if(vZ)return mN;vZ=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+a+"|"+r.optional(i)+"[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(i)+e.IDENT_RE,relevance:0},g=r.optional(i)+e.IDENT_RE+"\\s*\\(",y={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:y,contains:b.concat([{begin:/\(/,end:/\)/,keywords:y,contains:b.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:y,relevance:0},{begin:g,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:y,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:y,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:d,keywords:y}}}return mN=t,mN}var vN,yZ;function Iet(){if(yZ)return vN;yZ=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"],a="false true",i=[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]},...i]},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:a},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,u,e.NUMBER_MODE,f,d]}}return vN=t,vN}var yN,_Z;function Oet(){if(_Z)return yN;_Z=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"],a=["true","false"],i={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:a},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/},i]}}return yN=t,yN}var _N,bZ;function Det(){if(bZ)return _N;bZ=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"],a=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=s,{name:"Ceylon",keywords:{keyword:r.concat(n),meta:a},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 _N=t,_N}var bN,EZ;function Let(){if(EZ)return bN;EZ=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 bN=t,bN}var EN,SZ;function Met(){if(SZ)return EN;SZ=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+r+"]["+r+"0-9/;:$#]*",a="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:a+" 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},v={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},b={keywords:i,className:"name",begin:n,relevance:0,starts:y},_=[h,v,l,u,d,f,m,g,o,p,s],S={beginKeywords:a,keywords:{$pattern:n,keyword:a},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(_)};return v.contains=[S,b,y],y.contains=_,g.contains=_,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[h,v,l,u,d,f,m,g,o,p]}}return EN=t,EN}var SN,TZ;function Pet(){if(TZ)return SN;TZ=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return SN=t,SN}var TN,xZ;function Bet(){if(xZ)return TN;xZ=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 xN,CZ;function Fet(){if(CZ)return xN;CZ=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"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(a,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:i.concat(l)},g="[A-Za-z$_][0-9A-Za-z$_]*",m={className:"subst",begin:/#\{/,end:/\}/,keywords:p},v=[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=v;const y=o.inherit(o.TITLE_MODE,{begin:g}),b="(\\(.*\\)\\s*)?\\B[-=]>",_={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]},S={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:[...v,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+g+"\\s*=\\s*"+b,end:"[-=]>",returnBegin:!0,contains:[y,_]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:b,end:"[-=]>",returnBegin:!0,contains:[_]}]},S,{begin:g+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return xN=s,xN}var CN,wZ;function $et(){if(wZ)return CN;wZ=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 CN=t,CN}var wN,kZ;function zet(){if(kZ)return wN;kZ=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 wN=t,wN}var kN,AZ;function Uet(){if(AZ)return kN;AZ=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+a+"|"+r.optional(i)+"[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(i)+e.IDENT_RE,relevance:0},g=r.optional(i)+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"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["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:v,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},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},R={className:"function",begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,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 kN=t,kN}var AN,RZ;function Get(){if(RZ)return AN;RZ=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 AN=t,AN}var RN,NZ;function qet(){if(NZ)return RN;NZ=1;function t(e){const r="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",a="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:a,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 S=[{begin:b,end:_}];return S[0].contains=S,S}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},v={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},y=[d,f,p,m,g,v,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:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:i}],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=y,d.contains=y.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:y}}return RN=t,RN}var NN,IZ;function Yet(){if(IZ)return NN;IZ=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"],a=["default","false","null","true"],i=["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:i.concat(s),built_in:r,literal:a},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]},v={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},y=e.inherit(v,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[v,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],g.contains=[y,m,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const b={variants:[d,v,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},S=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:"("+S+"\\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 NN=t,NN}var IN,OZ;function Het(){if(OZ)return IN;OZ=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 IN=t,IN}var ON,DZ;function Vet(){if(DZ)return ON;DZ=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],a=["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(),i=["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_-]*",v=[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:":("+i.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,...v,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...v,{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:a.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...v,h.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}return ON=l,ON}var DN,LZ;function Wet(){if(LZ)return DN;LZ=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_]*)",a="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+a+")",u="("+a+"(\\.\\d*|"+l+")|\\d+\\."+a+"|\\."+n+l+"?)",d="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+a+")",h="("+n+"|"+i+"|"+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},v={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},S={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},R={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,_,S,C,m,g,v,T,w,R]}}return DN=t,DN}var LN,MZ;function Ket(){if(MZ)return LN;MZ=1;function t(e){const r=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={begin:"^[-\\*]{3,}",end:"$"},i={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:"$"},i,a,u,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return LN=t,LN}var MN,PZ;function Xet(){if(PZ)return MN;PZ=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"},a={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/}]},i={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=[a,i];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:[i,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]},a,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return MN=t,MN}var PN,BZ;function jet(){if(BZ)return PN;BZ=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})],a={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={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:[i,o,a].concat(n)},a].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,s,l,u,a].concat(n)}}return PN=t,PN}var BN,FZ;function Qet(){if(FZ)return BN;FZ=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 BN=t,BN}var FN,$Z;function Zet(){if($Z)return FN;$Z=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 FN=t,FN}var $N,zZ;function Jet(){if(zZ)return $N;zZ=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 $N=t,$N}var zN,UZ;function ett(){if(UZ)return zN;UZ=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]},i={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,i]},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,i,s,o,u,f,h,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,a,p,{begin:e.IDENT_RE+"::",keywords:""}]}}return qN=t,qN}var YN,HZ;function att(){if(HZ)return YN;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 YN=t,YN}var HN,VZ;function itt(){if(VZ)return HN;VZ=1;function t(e){const r=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={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,i]}}return HN=t,HN}var VN,WZ;function stt(){if(WZ)return VN;WZ=1;function t(e){const r=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",a="[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]}))},v={className:"string",begin:"~[A-Z](?="+f+")",contains:p.map(C=>e.inherit(C,{contains:[g(C.end)]}))},y={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})]},S=e.inherit(_,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),x=[b,y,v,m,e.HASH_COMMENT_MODE,S,_,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[b,{begin:a}],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 VN=t,VN}var WN,KZ;function ott(){if(KZ)return WN;KZ=1;function t(e){const r={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},i={begin:/\{/,end:/\}/,contains:a.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:[a,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[a,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,a,i,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 WN=t,WN}var KN,XZ;function ltt(){if(XZ)return KN;XZ=1;function t(e){const r=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=r.concat(a,/(::\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"}]},v={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},T=[f,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:a,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]},{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,v.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 KN=t,KN}var XN,jZ;function ctt(){if(jZ)return XN;jZ=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return XN=t,XN}var jN,QZ;function utt(){if(QZ)return jN;QZ=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 jN=t,jN}var QN,ZZ;function dtt(){if(ZZ)return QN;ZZ=1;function t(e){const r="[a-z'][a-zA-Z0-9_']*",n="("+r+":"+r+"|"+r+")",a={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"},i=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:/#/}]},v={beginKeywords:"fun receive if try case maybe",end:"end",keywords:a};v.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:""}),v,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];const y=[i,o,v,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];l.contains[1].contains=y,u.contains=y,f.contains[1].contains=y;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:y};return{name:"Erlang",aliases:["erl"],keywords:a,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[_,e.inherit(e.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:a,contains:y}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:b.map(S=>`${S}|1.5`).join(" ")},contains:[_,m,g,e.QUOTE_STRING_MODE]},s,m,g,e.QUOTE_STRING_MODE,f,d,h,u,p,{begin:/\.$/}]}}return QN=t,QN}var ZN,JZ;function htt(){if(JZ)return ZN;JZ=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 ZN=t,ZN}var JN,eJ;function ftt(){if(eJ)return JN;eJ=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 JN=t,JN}var eI,tJ;function ptt(){if(tJ)return eI;tJ=1;function t(e){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},i={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,i,e.C_NUMBER_MODE]}}return eI=t,eI}var tI,rJ;function gtt(){if(rJ)return tI;rJ=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},a={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,s,i)},{begin:r.concat(/\b\d+/,s,i)},{begin:r.concat(/\.\d+/,s,i)}],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},a,o]}}return tI=t,tI}var rI,nJ;function mtt(){if(nJ)return rI;nJ=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 a(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function i(...o){return"("+(a(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},y={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},b=/[a-zA-Z_](\w|')*/,_={scope:"variable",begin:/``/,end:/``/},S=/\B('|\^)/,x={scope:"symbol",variants:[{match:n(S,/``.*?``/)},{match:n(S,o.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:Y}){let ee;Y?ee="!%&*+-/<=>@^|~?":ee="!%&*+-/<>@^|~?";const X=Array.from(ee),le=n("[",...X.map(t),"]"),te=i(le,/\./),ne=n(te,r(te)),ae=i(n(ne,te,"*"),n(le,"+"));return{scope:"operator",match:i(ae,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},T=C({includeEqual:!0}),w=C({includeEqual:!1}),R=function(Y,ee){return{begin:n(Y,r(n(/\s*/,i(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:ee,end:r(i(/\n/,/=/)),relevance:0,keywords:o.inherit(m,{type:p}),contains:[y,x,o.inherit(_,{scope:null}),w]}},O=R(/:/,"operator"),M=R(/\bof\b/,"keyword"),$={begin:[/(^|\s+)/,/type/,/\s+/,b],beginScope:{2:"keyword",4:"title.class"},end:r(/\(|=|$/),keywords:m,contains:[y,o.inherit(_,{scope:null}),x,{scope:"operator",match:/<|>/},O]},F={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},A={begin:[/^\s*/,n(/#/,i(...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]},N={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]},U={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},P],relevance:2},G={scope:"string",match:n(/'/,i(/[^\\']/,/\\(?:.|\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,G,u,y,_,O,F,A,I,x,T],{name:"F#",aliases:["fs","f#"],keywords:m,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[u,{variants:[U,B,z,N,L,D,G]},y,_,$,{scope:"meta",begin:/\[\]/,relevance:2,contains:[_,N,L,D,G,I]},M,O,F,A,I,x,T]}}return rI=s,rI}var nI,aJ;function vtt(){if(aJ)return nI;aJ=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"},a={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={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_]+/},a,i]},e.C_NUMBER_MODE,i]}}return nI=t,nI}var aI,iJ;function ytt(){if(iJ)return aI;iJ=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("@","@"),a={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]},i={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,i]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(p,g,m){const v=e.inherit({className:"function",beginKeywords:p,end:g,excludeEnd:!0,contains:[].concat(s)},{});return v.contains.push(o),v.contains.push(e.C_NUMBER_MODE),v.contains.push(e.C_BLOCK_COMMENT_MODE),v.contains.push(n),v},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,a,{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,i]}}return aI=t,aI}var iI,sJ;function _tt(){if(sJ)return iI;sJ=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"]},a=/\b/;function i(g,m){if(g.index===0)return;const v=g.input[g.index-1];v>="0"&&v<="9"||v!=="_"&&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(a,o)},{begin:o,"on:begin":i},{match:r.concat(a,l)},{begin:l,"on:begin":i}]},{scope:"symbol",variants:[{match:r.concat(a,u)},{begin:u,"on:begin":i},{match:r.concat(a,d)},{begin:d,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:r.concat(a,h,s)},{begin:r.concat(h,s),"on:begin":i}]},{scope:"params",variants:[{match:r.concat(a,f,s)},{begin:r.concat(f,s),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:p}}return iI=t,iI}var sI,oJ;function btt(){if(oJ)return sI;oJ=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 sI=t,sI}var oI,lJ;function Ett(){if(lJ)return oI;lJ=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 oI=t,oI}var lI,cJ;function Stt(){if(cJ)return lI;cJ=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 lI=t,lI}var cI,uJ;function Ttt(){if(uJ)return cI;uJ=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 pI=t,pI}var gI,mJ;function Rtt(){if(mJ)return gI;mJ=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"]},a={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,u=/(\.|\/)/,d=r.either(i,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:a}),m={begin:/\(/,end:/\)/},v={className:"attr",begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,m]}}},y={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},b={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,y,v,g,m],returnEnd:!0},_=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(b,{end:/\)/})});m.contains=[_];const S=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:[S],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[x]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[S]},{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 gI=t,gI}var mI,vJ;function Ntt(){if(vJ)return mI;vJ=1;function t(e){const r="([0-9]_*)+",n="([0-9a-fA-F]_*)+",a="([01]_*)+",i="([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},v={className:"number",relevance:0,variants:[{match:`\\b(${r})(\\.(${r}))?([eE][+-]?(${r}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${r}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${a})\\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,v,p,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${u}--+|--+(?!-)${u}`},d,{begin:"->|<-"}]}}return mI=t,mI}var vI,yJ;function Itt(){if(yJ)return vI;yJ=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 vI=t,vI}var yI,_J;function Ott(){if(_J)return yI;_J=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 yI=t,yI}var _I,bJ;function Dtt(){if(bJ)return _I;bJ=1;function t(e){const r=e.regex,n="HTTP/([32]|1\\.[01])",a=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:r.concat("^",a,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[i,{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(i,{relevance:0})]}}return _I=t,_I}var bI,EJ;function Ltt(){if(EJ)return bI;EJ=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&#'",n="["+r+"]["+r+"0-9/;:]*",a={$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 | |= ~"},i="[-+]?\\d+(\\.\\d+)?",s={begin:n,relevance:0},o={className:"number",begin:i,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:"\\)"},v={endsWithParent:!0,relevance:0},y={className:"name",relevance:0,keywords:a,begin:n,starts:v},b=[m,l,f,p,u,g,h,o,d,s];return m.contains=[e.COMMENT("comment",""),y,v],v.contains=b,h.contains=b,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),m,l,f,p,u,g,h,o,d]}}return bI=t,bI}var EI,SJ;function Mtt(){if(SJ)return EI;SJ=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 EI=t,EI}var SI,TJ;function Ptt(){if(TJ)return SI;TJ=1;function t(e){const r=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={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:[a,s,i,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:[a,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[a,l,s,i,o,n]}}]}}return SI=t,SI}var TI,xJ;function Btt(){if(xJ)return TI;xJ=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},a=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,i,a)},{begin:r.concat(/\b\d+/,i,a)},{begin:r.concat(/\.\d+/,i,a)}],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 xI,CJ;function Ftt(){if(CJ)return xI;CJ=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",a="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Y="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 ",fd="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 ",io="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Дат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",D2="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 ВызовСпособ ИмяОтчета РеквЗнач ",pd="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 ",yr=Y+fd,sl=D2,yn="null true false nil ",pn={className:"number",begin:e.NUMBER_RE,relevance:0},so={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},_s={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},bs={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,_s]},gd={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,_s]},rr={variants:[bs,gd]},fr={$pattern:r,keyword:a,built_in:yr,class:sl,literal:yn},Er={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:fr,relevance:0},_n={className:"type",begin:":[ \\t]*("+pd.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},pi={className:"variable",keywords:fr,begin:r,relevance:0,contains:[_n,Er]},ol=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:fr,illegal:"\\$|\\?|%|,|;$|~|#|@|a(s,o,l-1))}function i(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",u=l+a("(?:<"+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"]}]},v={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:[v,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 CI=i,CI}var wI,kJ;function ztt(){if(kJ)return wI;kJ=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"],a=["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"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(i,n,a);function l(u){const d=u.regex,h=(X,{after:le})=>{const te="",end:""},g=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,le)=>{const te=X[0].length+X.index,ne=X.input[te];if(ne==="<"||ne===","){le.ignoreMatch();return}ne===">"&&(h(X,{after:te})||le.ignoreMatch());let ae;const re=X.input.substring(te);if(ae=re.match(/^\s*=/)){le.ignoreMatch();return}if((ae=re.match(/^\s+extends\s+/))&&ae.index===0){le.ignoreMatch();return}}},v={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},y="[0-9](_?[0-9])*",b=`\\.(${y})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${_})((${b})|\\.)?|(${b}))[eE][+-]?(${y})\\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:v,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"}},R={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,R,{match:/\$\d+/},S];x.contains=$.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat($)});const F=[].concat(M,x.contains),A=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:v,contains:["self"].concat(F)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,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,...a]}},N={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(X){return d.concat("(?!",X.join("|"),")")}const U={match:d.concat(/\b/,B([...i,"super","import"].map(X=>`${X}\\s*\\(`)),f,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},G={begin:d.concat(/\./,d.lookahead(d.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},Y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",ee={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(Y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,C,T,w,R,M,{match:/\$\d+/},S,L,{scope:"attr",match:f+d.lookahead(":"),relevance:0},ee,{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:Y,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:v,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},G,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},U,z,D,K,{match:/\$[(.]/}]}}return wI=l,wI}var kI,AJ;function Utt(){if(AJ)return kI;AJ=1;function t(e){const n={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},a={className:"function",begin:/:[\w\-.]+/,relevance:0},i={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,a,i,n]}}return kI=t,kI}var AI,RJ;function Gtt(){if(RJ)return AI;RJ=1;function t(e){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},a=["true","false","null"],i={scope:"literal",beginKeywords:a.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:a},contains:[r,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return AI=t,AI}var RI,NJ;function qtt(){if(NJ)return RI;NJ=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 RI=t,RI}var NI,IJ;function Ytt(){if(IJ)return NI;IJ=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return NI=t,NI}var II,OJ;function Htt(){if(OJ)return II;OJ=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 a(i){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:i.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},h={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(h);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(h,{className:"string"}),"self"]}]},g=n,m=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),v={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},y=v;return y.variants[1].contains=[v],v.variants[1].contains=[y],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,m,o,l,f,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.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:[v,i.C_LINE_COMMENT_MODE,m],relevance:0},i.C_LINE_COMMENT_MODE,m,f,p,h,i.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.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 II=a,II}var OI,DJ;function Vtt(){if(DJ)return OI;DJ=1;function t(e){const r="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",a="\\]|\\?>",i={$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:i,contains:[{className:"meta",begin:a,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:i,contains:[{className:"meta",begin:a,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 OI=t,OI}var DI,LJ;function Wtt(){if(LJ)return DI;LJ=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@:_])")),a=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("|")),i=[{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:a},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:i}]},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]}),v={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[g,...p]},y={begin:/\s+/,relevance:0},b=[m],_=[v],S=function(M,$){return{contains:[y],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:[y],starts:$}},C=function(M,$){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+M+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},S(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+"\\})"}},R=(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",S(b,{contains:[T()]})),x("mintinline",S(b,{contains:[R(),T()]})),x("url",{contains:[R("link"),R("link")]}),x("hyperref",{contains:[R("link")]}),x("href",S(_,{contains:[R("link")]})),...[].concat(...["","\\*"].map(M=>[C("verbatim"+M,w("verbatim"+M)),C("filecontents"+M,S(b,w("filecontents"+M))),...["","B","L"].map($=>C($+"Verbatim"+M,S(_,w($+"Verbatim"+M))))])),C("minted",S(_,S(b,w("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...O,...p]}}return DI=t,DI}var LI,MJ;function Ktt(){if(MJ)return LI;MJ=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 LI=t,LI}var MI,PJ;function Xtt(){if(PJ)return MI;PJ=1;function t(e){const r=/([A-Za-z_][A-Za-z_0-9]*)?/,a={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:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[r,/(?=\()/],scope:{1:"keyword"},contains:[a]};return a.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,r,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[a]},{match:[/#+/,r,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return MI=t,MI}var PI,BJ;function jtt(){if(BJ)return PI;BJ=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],a=["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(),i=["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=i.concat(s).sort().reverse();function u(d){const h=t(d),f=l,p="and or not only",g="[\\w-]+",m="("+g+"|@\\{"+g+"\\})",v=[],y=[],b=function(F){return{className:"string",begin:"~?"+F+".*?"+F}},_=function(F,A,I){return{className:F,begin:A,relevance:I}},S={$pattern:/[a-z-]+/,keyword:p,attribute:a.join(" ")},x={begin:"\\(",end:"\\)",contains:y,keywords:S,relevance:0};y.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=y.concat({begin:/\{/,end:/\}/,contains:v}),T={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(y)},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:y}}]},R={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:S,returnEnd:!0,contains:y,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:":("+i.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 v.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,R,O,$,w,M,T,h.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:v}}return PI=u,PI}var BI,FJ;function Qtt(){if(FJ)return BI;FJ=1;function t(e){const r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",a="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:a,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)\\("+a+" +"+a,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",i,o,s,h]},h],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},m={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},v={begin:"\\(\\s*",end:"\\)"},y={endsWithParent:!0,relevance:0};return v.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:n}]},y],y.contains=[g,m,v,i,s,o,l,u,d,f,h],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),i,o,l,g,m,v,h]}}return BI=t,BI}var FI,$J;function Ztt(){if($J)return FI;$J=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("[^:]//","$")],a=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=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,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,a],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a]},{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,a].concat(n),illegal:";$|^\\[|^=|&|\\{"}}return FI=t,FI}var $I,zJ;function Jtt(){if(zJ)return $I;zJ=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"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(a,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:i.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},v=[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=v;const y={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(v)}]},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:v.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,b,{className:"function",contains:[p,y],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 $I=s,$I}var zI,UJ;function ert(){if(UJ)return zI;UJ=1;function t(e){const r=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,a={className:"type",begin:/\bi\d+(?=\s|\b)/},i={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:[a,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},d,s,i,u,l,o]}}return zI=t,zI}var UI,GJ;function trt(){if(GJ)return UI;GJ=1;function t(e){const n={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},a={className:"number",relevance:0,begin:e.C_NUMBER_RE},i={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},a,{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,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return UI=t,UI}var GI,qJ;function rrt(){if(qJ)return GI;qJ=1;function t(e){const r="\\[=*\\[",n="\\]=*\\]",a={begin:r,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+r+")","$"),e.COMMENT("--"+r,n,{contains:[a],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:i.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:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:r,end:n,contains:[a],relevance:5}])}}return GI=t,GI}var qI,YJ;function nrt(){if(YJ)return qI;YJ=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}]},y={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$]*)?/},S={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"]}),_,S,C,v,y,r.QUOTE_STRING_MODE,p,b,x]}}return YI=e,YI}var HI,VJ;function irt(){if(VJ)return HI;VJ=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 HI=t,HI}var VI,WJ;function srt(){if(WJ)return VI;WJ=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 VI=t,VI}var WI,KJ;function ort(){if(KJ)return WI;KJ=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,a,e.NUMBER_MODE,i,s,{begin:/:-/},{begin:/\.$/}]}}return KI=t,KI}var XI,jJ;function crt(){if(jJ)return XI;jJ=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 XI=t,XI}var jI,QJ;function urt(){if(QJ)return jI;QJ=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 jI=t,jI}var QI,ZJ;function drt(){if(ZJ)return QI;ZJ=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"],a=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},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=(v,y,b="\\1")=>{const _=b==="\\1"?b:r.concat(b,y);return r.concat(r.concat("(?:",v,")"),y,/(?:\\.|[^\\\/])*?/,_,/(?:\\.|[^\\\/])*?/,b,a)},g=(v,y,b)=>r.concat(r.concat("(?:",v,")"),y,/(?:\\.|[^\\\/])*?/,b,a),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:i,contains:m}}return QI=t,QI}var ZI,JJ;function hrt(){if(JJ)return ZI;JJ=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 ZI=t,ZI}var JI,eee;function frt(){if(eee)return JI;eee=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"}},a={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,a,{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 JI=t,JI}var eO,tee;function prt(){if(tee)return eO;tee=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$_]*",a={className:"subst",begin:/#\{/,end:/\}/,keywords:r},i=[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,a]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];a.contains=i;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(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:i.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 eO=t,eO}var tO,ree;function grt(){if(ree)return tO;ree=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 tO=t,tO}var rO,nee;function mrt(){if(nee)return rO;nee=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"}},a={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={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}),i,a,r,n]}}return rO=t,rO}var nO,aee;function vrt(){if(aee)return nO;aee=1;function t(e){const r=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:r.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={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:i.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:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return nO=t,nO}var aO,iee;function yrt(){if(iee)return aO;iee=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 aO=t,aO}var iO,see;function _rt(){if(see)return iO;see=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"]},a={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},i="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},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(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},g={scope:"char.escape",match:/\\\$/},m={scope:"char.escape",match:/''\$/},v={scope:"subst",begin:/\$\{/,end:/\}/,keywords:n},y={scope:"char.escape",match:/'''/},b={scope:"char.escape",match:/\\(?!\$)./},_={scope:"string",variants:[{begin:"''",end:"''",contains:[m,v,y,b]},{begin:'"',end:'"',contains:[g,v,b]}]},S={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},x=[h,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),a,_,s,l,S,p,f,d];v.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 iO=t,iO}var sO,oee;function brt(){if(oee)return sO;oee=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return sO=t,sO}var oO,lee;function Ert(){if(lee)return oO;lee=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"],a=["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"],i=["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(...a)},h={className:"keyword",begin:r.concat(/!/,r.either(...i))},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"],v=["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"],y={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:v},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),_,y,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},g,h,o,l,u,d,p,e.NUMBER_MODE]}}return oO=t,oO}var lO,cee;function Srt(){if(cee)return lO;cee=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 lO=t,lO}var cO,uee;function Trt(){if(uee)return cO;uee=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 cO=t,cO}var uO,dee;function xrt(){if(dee)return uO;dee=1;function t(e){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},a={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=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",a,i,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,a,s,i,r,l,u]}}return uO=t,uO}var dO,hee;function Crt(){if(hee)return dO;hee=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}),a=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={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:[i,s]},n,a]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,a,e.C_LINE_COMMENT_MODE,i,s,e.NUMBER_MODE,o,l]}}return dO=t,dO}var hO,fee;function wrt(){if(fee)return hO;fee=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 hO=t,hO}var fO,pee;function krt(){if(pee)return fO;pee=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 fO=t,fO}var pO,gee;function Art(){if(gee)return pO;gee=1;function t(e){const r=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",a="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\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(v){return v.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(v){return v.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:a,end:a,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:i,relevance:10}]}}return pO=t,pO}var gO,mee;function Rrt(){if(mee)return gO;mee=1;function t(e){const r=e.regex,n=/(?![A-Za-z0-9])(?![$])/,a=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=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:"\\$+"+a},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]},v={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},y=["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})(y),built_in:_},C=I=>I.map(D=>D.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,r.concat(g,"+"),r.concat("(?!",C(_).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},w=r.concat(a,"\\b(?!\\()"),R={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,r.concat(/::/,r.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[i,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},O={scope:"attr",match:r.concat(a,r.lookahead(":"),r.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[O,o,R,e.C_BLOCK_COMMENT_MODE,m,v,T]},$={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",C(b).join("\\b|"),"|",C(_).join("\\b|"),"\\b)"),a,r.concat(g,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push($);const F=[O,R,e.C_BLOCK_COMMENT_MODE,m,v,T],A={begin:r.concat(/#\[\s*\\?/,r.either(i,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:y,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:y,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",variants:[{match:i},{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,$,R,{match:[/const/,/\s/,a],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,R,e.C_BLOCK_COMMENT_MODE,m,v]}]},{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,v]}}return gO=t,gO}var mO,vee;function Nrt(){if(vee)return mO;vee=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 mO=t,mO}var vO,yee;function Irt(){if(yee)return vO;yee=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return vO=t,vO}var yO,_ee;function Ort(){if(_ee)return yO;_ee=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},a={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},i={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,a,i,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 yO=t,yO}var _O,bee;function Drt(){if(bee)return _O;bee=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",a="-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",i={$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]},v={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]}]},y={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,h,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(a,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},_={className:"selector-tag",begin:/@\B/,relevance:0},S={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},x=[S,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 S.contains.unshift(C),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:x.concat(m,v,y,b,C)}}return _O=t,_O}var bO,Eee;function Lrt(){if(Eee)return bO;Eee=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"],a=e.IDENT_RE,i={variants:[{match:r.concat(r.either(...n),r.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:r.concat(/\b(?!for|if|while)/,a,r.lookahead(/\s*\(/)),className:"title.function"}]},s={match:[/new\s+/,a],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,a],className:{2:"property"}},l={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,a]},{match:[/class/,/\s+/,a]}],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,i,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return bO=t,bO}var EO,See;function Mrt(){if(See)return EO;See=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 EO=t,EO}var SO,Tee;function Prt(){if(Tee)return SO;Tee=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},a={begin:/\(/,end:/\)/,relevance:0},i={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,a,{begin:/:-/},i,s,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,l,u,e.C_NUMBER_MODE];return a.contains=h,i.contains=h,{name:"Prolog",contains:h.concat([{begin:/\.$/}])}}return SO=t,SO}var TO,xee;function Brt(){if(xee)return TO;xee=1;function t(e){const r="[ \\t\\f]*",n="[ \\t\\f]+",a=r+"[:=]"+r,i=n,s="("+a+"|"+i+")",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+a},{begin:o+i}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:l},{className:"attr",begin:o+r+"$"}]}}return TO=t,TO}var xO,Cee;function Frt(){if(Cee)return xO;Cee=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"],a={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,a,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return xO=t,xO}var CO,wee;function $rt(){if(wee)return CO;wee=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("#","$"),a="([A-Za-z_]|::)(\\w|::)*",i=e.inherit(e.TITLE_MODE,{begin:a}),s={className:"variable",begin:"\\$"+a},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:[i,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 CO=t,CO}var wO,kee;function zrt(){if(kee)return wO;kee=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 wO=t,wO}var kO,Aee;function Urt(){if(Aee)return kO;Aee=1;function t(e){const r=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),a=["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:a,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|${a.join("|")}`,v={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})`}]},y={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,v,f,e.HASH_COMMENT_MODE]}]};return d.contains=[f,v,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[u,v,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,y,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:[v,b,f]}]}}return kO=t,kO}var AO,Ree;function Grt(){if(Ree)return AO;Ree=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return AO=t,AO}var RO,Nee;function qrt(){if(Nee)return RO;Nee=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 RO=t,RO}var NO,Iee;function Yrt(){if(Iee)return NO;Iee=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"},a="[a-zA-Z_][a-zA-Z0-9\\._]*",i={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:a,returnEnd:!1}},l={begin:a+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:a,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},u={begin:r.concat(a,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:a})]};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,i,{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 NO=t,NO}var IO,Oee;function Hrt(){if(Oee)return IO;Oee=1;function t(e){const r=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,a=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]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,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:[i,a]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,a]},{scope:{1:"punctuation",2:"number"},match:[s,a]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,a]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return IO=t,IO}var OO,Dee;function Vrt(){if(Dee)return OO;Dee=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 OO=t,OO}var DO,Lee;function Wrt(){if(Lee)return DO;Lee=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("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+a.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 MO=t,MO}var PO,Bee;function jrt(){if(Bee)return PO;Bee=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"],a=["while","for","if","do","return","else","break","extern","continue"],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:a,built_in:r,type:n},illegal:""},s]}}return FO=t,FO}var $O,zee;function Jrt(){if(zee)return $O;zee=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"],a=["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"],i=["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(...i)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:r.either(...a)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return $O=t,$O}var zO,Uee;function ent(){if(Uee)return zO;Uee=1;function t(e){const r=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},a={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,a]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[a],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,i,s,u,l,e.C_NUMBER_MODE,d,h,...f,p,n]}}return zO=t,zO}var UO,Gee;function tnt(){if(Gee)return UO;Gee=1;function t(e){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",a=n+"[+\\-]"+n+"i",i={$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:a,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:i},v={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,v].concat(u),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),o,l,h,p,v].concat(u)}}return UO=t,UO}var GO,qee;function rnt(){if(qee)return GO;qee=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 GO=t,GO}var qO,Yee;function nnt(){if(Yee)return qO;Yee=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],a=["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(),i=["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=i,p="@[a-z-]+",g="and or not only",v={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("|")+")"},v,{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,v,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:a.join(" ")},contains:[{begin:p,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},v,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,d.HEXCOLOR,d.CSS_NUMBER_MODE]},d.FUNCTION_DISPATCH]}}return qO=l,qO}var YO,Hee;function ant(){if(Hee)return YO;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 YO=t,YO}var HO,Vee;function int(){if(Vee)return HO;Vee=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"],a=["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("+a.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 HO=t,HO}var VO,Wee;function snt(){if(Wee)return VO;Wee=1;function t(e){const r="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},a={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,a,n,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,a]}]}}return VO=t,VO}var WO,Kee;function ont(){if(Kee)return WO;Kee=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 WO=t,WO}var KO,Xee;function lnt(){if(Xee)return KO;Xee=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]+/},a={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["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(a,{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:i,built_in:o,literal:s},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,r,n,a,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return KO=t,KO}var XO,jee;function cnt(){if(jee)return XO;jee=1;function t(e){const r=e.regex,n=e.COMMENT("--","$"),a={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={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)),v={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},y={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 S={scope:"keyword",match:_(p),relevance:0};function x(C,{exceptions:T,when:w}={}){const R=w;return T=T||[],C.map(O=>O.match(/\|\d+$/)||T.includes(O)?O:R(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)},S,b,v,a,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,y]}}return XO=t,XO}var jO,Qee;function unt(){if(Qee)return jO;Qee=1;function t(e){const r=e.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],a=["for","in","if","else","while","break","continue","return"],i=["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:i,keyword:a,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 jO=t,jO}var QO,Zee;function dnt(){if(Zee)return QO;Zee=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(bs>1e5&&bs>fr.index*3)throw new Error("potential infinite loop, way more iterations than matches");return pn+=Er,Er.length}const io=pt(Mt);if(!io)throw je(St.replace("{}",Mt)),new Error('Unknown language: "'+Mt+'"');const D2=q(io);let pd="",yr=xt||D2;const sl={},yn=new dt.__emitter(dt);xc();let pn="",so=0,_s=0,bs=0,gd=!1;try{if(io.__emitTokens)io.__emitTokens(Xt,yn);else{for(yr.matcher.considerAll();;){bs++,gd?gd=!1:yr.matcher.considerAll(),yr.matcher.lastIndex=_s;const rr=yr.matcher.exec(Xt);if(!rr)break;const fr=Xt.substring(_s,rr.index),Er=fd(fr,rr);_s=rr.index+Er}fd(Xt.substring(_s))}return yn.finalize(),pd=yn.toHTML(),{language:Mt,value:pd,relevance:so,illegal:!1,_emitter:yn,_top:yr}}catch(rr){if(rr.message&&rr.message.includes("Illegal"))return{language:Mt,value:rt(Xt),illegal:!0,relevance:0,_illegalBy:{message:rr.message,index:_s,context:Xt.slice(_s-100,_s+100),mode:rr.mode,resultSoFar:pd},_emitter:yn};if(Tt)return{language:Mt,value:rt(Xt),illegal:!1,relevance:0,errorRaised:rr,_emitter:yn,_top:yr};throw rr}}function bt(Mt){const Xt={value:rt(Mt),illegal:!1,relevance:0,_top:nt,_emitter:new dt.__emitter(dt)};return Xt._emitter.addText(Mt),Xt}function Et(Mt,Xt){Xt=Xt||dt.languages||Object.keys(ie);const kt=bt(Mt),xt=Xt.filter(pt).filter(Zt).map(Yn=>It(Yn,Mt,!1));xt.unshift(kt);const $t=xt.sort((Yn,Me)=>{if(Yn.relevance!==Me.relevance)return Me.relevance-Yn.relevance;if(Yn.language&&Me.language){if(pt(Yn.language).supersetOf===Me.language)return 1;if(pt(Me.language).supersetOf===Yn.language)return-1}return 0}),[wt,Ar]=$t,De=wt;return De.secondBest=Ar,De}function Nt(Mt,Xt,kt){const xt=Xt&&Ve[Xt]||kt;Mt.classList.add("hljs"),Mt.classList.add(`language-${xt}`)}function Vr(Mt){let Xt=null;const kt=gt(Mt);if(ft(kt))return;if(qn("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 Te("One of your code blocks includes unescaped HTML.",Mt.innerHTML);Xt=Mt;const xt=Xt.textContent,$t=kt?se(xt,{language:kt,ignoreIllegals:!0}):Et(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}),qn("after:highlightElement",{el:Mt,result:$t,text:xt})}function Ne(Mt){dt=Oe(dt,Mt)}const mt=()=>{Qt(),lt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _t(){Qt(),lt("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(Vr)}function br(Mt,Xt){let kt=null;try{kt=Xt(me)}catch(xt){if(je("Language definition for '{}' could not be registered.".replace("{}",Mt)),Tt)je(xt);else throw xt;kt=nt}kt.name||(kt.name=Mt),ie[Mt]=kt,kt.rawDefinition=Xt.bind(null,me),kt.aliases&&Dt(kt.aliases,{languageName:Mt})}function Ct(Mt){delete ie[Mt];for(const Xt of Object.keys(Ve))Ve[Xt]===Mt&&delete Ve[Xt]}function Fe(){return Object.keys(ie)}function pt(Mt){return Mt=(Mt||"").toLowerCase(),ie[Mt]||ie[Ve[Mt]]}function Dt(Mt,{languageName:Xt}){typeof Mt=="string"&&(Mt=[Mt]),Mt.forEach(kt=>{Ve[kt.toLowerCase()]=Xt})}function Zt(Mt){const Xt=pt(Mt);return Xt&&!Xt.disableAutodetect}function kr(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 Wr(Mt){kr(Mt),ve.push(Mt)}function Xr(Mt){const Xt=ve.indexOf(Mt);Xt!==-1&&ve.splice(Xt,1)}function qn(Mt,Xt){const kt=Mt;ve.forEach(function(xt){xt[kt]&&xt[kt](Xt)})}function ja(Mt){return lt("10.7.0","highlightBlock will be removed entirely in v12.0"),lt("10.7.0","Please use highlightElement now."),Vr(Mt)}Object.assign(me,{highlight:se,highlightAuto:Et,highlightAll:Qt,highlightElement:Vr,highlightBlock:ja,configure:Ne,initHighlighting:mt,initHighlightingOnLoad:_t,registerLanguage:br,unregisterLanguage:Ct,listLanguages:Fe,getLanguage:pt,registerAliases:Dt,autoDetection:Zt,inherit:Oe,addPlugin:Wr,removePlugin:Xr}),me.debugMode=function(){Tt=!1},me.safeMode=function(){Tt=!0},me.versionString=we,me.regex={concat:m,lookahead:f,either:y,optional:g,anyNumberOfTimes:p};for(const Mt in ne)typeof ne[Mt]=="object"&&t(ne[Mt]);return Object.assign(me,ne),me},ze=Ze({});return ze.newInstance=()=>Ze({}),VR=ze,ze.HighlightJS=ze,ze.default=ze,VR}var WR,KQ;function set(){if(KQ)return WR;KQ=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",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 типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",G="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 деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",K="null истина ложь неопределено",Y=e.inherit(e.NUMBER_MODE),ee={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},X={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},le={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},te=e.inherit(e.C_LINE_COMMENT_MODE),ne={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,keyword:i+l},contains:[te]},ae={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},re={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:K},contains:[Y,ee,X]},te]},e.inherit(e.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:i,built_in:p,class:z,type:G,literal:K},contains:[ne,re,te,ae,Y,ee,X,le]}}return WR=t,WR}var KR,XQ;function oet(){if(XQ)return KR;XQ=1;function t(e){const r=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,a=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=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:a,contains:[{scope:"operator",match:/=\/?/},d,i,s,o,l,u,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return KR=t,KR}var XR,jQ;function cet(){if(jQ)return XR;jQ=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 XR=t,XR}var jR,QQ;function uet(){if(QQ)return jR;QQ=1;function t(e){const r=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,a=r.concat(n,r.concat("(\\.",n,")*")),i=/([*]|[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+/,a],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*/,i)}]},e.METHOD_GUARD],illegal:/#/}}return jR=t,jR}var QR,ZQ;function det(){if(ZQ)return QR;ZQ=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,a=r+"(\\."+r+")?("+n+")?",i="\\w+",o="\\b("+(r+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+a+")",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 QR=t,QR}var ZR,JQ;function het(){if(JQ)return ZR;JQ=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_]+@"},a={className:"keyword",begin:"<",end:">",contains:[r,n]};return r.contains=[a],n.contains=[a],{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 ZR=t,ZR}var JR,eZ;function fet(){if(eZ)return JR;eZ=1;function t(e){const r={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},a={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={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:[a,i,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]},a,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return JR=t,JR}var eN,tZ;function pet(){if(tZ)return eN;tZ=1;function t(e){const r=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),o=[i,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,a]},...o],illegal:/\/\/|->|=>|\[\[/}}return eN=t,eN}var tN,rZ;function get(){if(rZ)return tN;rZ=1;function t(e){const r=e.regex,n="[A-Za-z_][0-9A-Za-z_]*",a={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"]},i=["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(...i)},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:a,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:a,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:a,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 tN=t,tN}var rN,nZ;function met(){if(nZ)return rN;nZ=1;function t(r){const n=r.regex,a=r.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",l="(?!struct)("+i+"|"+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:/<.*?>/},a,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*\\(",v=["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"],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:y,keyword:v,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,a,r.C_BLOCK_COMMENT_MODE,f,h],R={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:i,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:[a,r.C_BLOCK_COMMENT_MODE,h,f,u,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",a,r.C_BLOCK_COMMENT_MODE,h,f,u]}]},u,a,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"]},a=t(r),i=a.keywords;return i.type=[...i.type,...n.type],i.literal=[...i.literal,...n.literal],i.built_in=[...i.built_in,...n.built_in],i._hints=n._hints,a.name="Arduino",a.aliases=["ino"],a.supersetOf="cpp",a}return rN=e,rN}var nN,aZ;function vet(){if(aZ)return nN;aZ=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 nN=t,nN}var aN,iZ;function yet(){if(iZ)return aN;iZ=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),a=/[\p{L}0-9._:-]+/u,i={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},i,{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 aN=t,aN}var iN,sZ;function _et(){if(sZ)return iN;sZ=1;function t(e){const r=e.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},a=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{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,...a,...i,...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 iN=t,iN}var sN,oZ;function bet(){if(oZ)return sN;oZ=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"],a=["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(a),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(a),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 sN=t,sN}var oN,lZ;function Eet(){if(lZ)return oN;lZ=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 oN=t,oN}var lN,cZ;function Tet(){if(cZ)return lN;cZ=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"],a="True False And Null Not Or Default",i="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:i,literal:a},contains:[s,o,l,u,d,h,f]}}return lN=t,lN}var cN,uZ;function xet(){if(uZ)return cN;uZ=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 cN=t,cN}var uN,dZ;function Cet(){if(dZ)return uN;dZ=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",a={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,a,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return uN=t,uN}var dN,hZ;function wet(){if(hZ)return dN;hZ=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 dN=t,dN}var hN,fZ;function ket(){if(fZ)return hN;fZ=1;function t(e){const r=e.regex,n={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const i={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,i]};i.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},v=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],y=["true","false"],b={match:/(\/[a-z._-]+)+/},_=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["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:v,literal:y,built_in:[..._,...S,"set","shopt",...x,...C]},contains:[g,e.SHEBANG(),m,f,s,o,b,l,u,d,h,n]}}return hN=t,hN}var fN,pZ;function Aet(){if(pZ)return fN;pZ=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 fN=t,fN}var pN,gZ;function Ret(){if(gZ)return pN;gZ=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 pN=t,pN}var gN,mZ;function Net(){if(mZ)return gN;mZ=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 gN=t,gN}var mN,vZ;function Iet(){if(vZ)return mN;vZ=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+a+"|"+r.optional(i)+"[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(i)+e.IDENT_RE,relevance:0},g=r.optional(i)+e.IDENT_RE+"\\s*\\(",y={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:y,contains:b.concat([{begin:/\(/,end:/\)/,keywords:y,contains:b.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:y,relevance:0},{begin:g,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:y,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:y,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:d,keywords:y}}}return mN=t,mN}var vN,yZ;function Oet(){if(yZ)return vN;yZ=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"],a="false true",i=[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]},...i]},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:a},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,l,u,e.NUMBER_MODE,f,d]}}return vN=t,vN}var yN,_Z;function Det(){if(_Z)return yN;_Z=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"],a=["true","false"],i={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:a},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/},i]}}return yN=t,yN}var _N,bZ;function Let(){if(bZ)return _N;bZ=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"],a=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=s,{name:"Ceylon",keywords:{keyword:r.concat(n),meta:a},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 _N=t,_N}var bN,EZ;function Met(){if(EZ)return bN;EZ=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 bN=t,bN}var EN,SZ;function Pet(){if(SZ)return EN;SZ=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+r+"]["+r+"0-9/;:$#]*",a="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:a+" 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},v={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},b={keywords:i,className:"name",begin:n,relevance:0,starts:y},_=[h,v,l,u,d,f,m,g,o,p,s],S={beginKeywords:a,keywords:{$pattern:n,keyword:a},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(_)};return v.contains=[S,b,y],y.contains=_,g.contains=_,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[h,v,l,u,d,f,m,g,o,p]}}return EN=t,EN}var SN,TZ;function Bet(){if(TZ)return SN;TZ=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return SN=t,SN}var TN,xZ;function Fet(){if(xZ)return TN;xZ=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 xN,CZ;function $et(){if(CZ)return xN;CZ=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"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(a,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:i.concat(l)},g="[A-Za-z$_][0-9A-Za-z$_]*",m={className:"subst",begin:/#\{/,end:/\}/,keywords:p},v=[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=v;const y=o.inherit(o.TITLE_MODE,{begin:g}),b="(\\(.*\\)\\s*)?\\B[-=]>",_={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]},S={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:[...v,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+g+"\\s*=\\s*"+b,end:"[-=]>",returnBegin:!0,contains:[y,_]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:b,end:"[-=]>",returnBegin:!0,contains:[_]}]},S,{begin:g+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return xN=s,xN}var CN,wZ;function zet(){if(wZ)return CN;wZ=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 CN=t,CN}var wN,kZ;function Uet(){if(kZ)return wN;kZ=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 wN=t,wN}var kN,AZ;function Get(){if(AZ)return kN;AZ=1;function t(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+a+"|"+r.optional(i)+"[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(i)+e.IDENT_RE,relevance:0},g=r.optional(i)+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"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["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:v,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},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},R={className:"function",begin:"("+o+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,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 kN=t,kN}var AN,RZ;function qet(){if(RZ)return AN;RZ=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 AN=t,AN}var RN,NZ;function Yet(){if(NZ)return RN;NZ=1;function t(e){const r="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",a="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:a,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 S=[{begin:b,end:_}];return S[0].contains=S,S}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},v={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},y=[d,f,p,m,g,v,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:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:i}],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=y,d.contains=y.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:y}}return RN=t,RN}var NN,IZ;function Het(){if(IZ)return NN;IZ=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"],a=["default","false","null","true"],i=["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:i.concat(s),built_in:r,literal:a},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]},v={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},y=e.inherit(v,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[v,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],g.contains=[y,m,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const b={variants:[d,v,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},S=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:"("+S+"\\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 NN=t,NN}var IN,OZ;function Vet(){if(OZ)return IN;OZ=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 IN=t,IN}var ON,DZ;function Wet(){if(DZ)return ON;DZ=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],a=["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(),i=["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_-]*",v=[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:":("+i.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,...v,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...v,{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:a.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...v,h.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}return ON=l,ON}var DN,LZ;function Ket(){if(LZ)return DN;LZ=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_]*)",a="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+a+")",u="("+a+"(\\.\\d*|"+l+")|\\d+\\."+a+"|\\."+n+l+"?)",d="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+a+")",h="("+n+"|"+i+"|"+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},v={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},S={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},R={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,_,S,C,m,g,v,T,w,R]}}return DN=t,DN}var LN,MZ;function Xet(){if(MZ)return LN;MZ=1;function t(e){const r=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={begin:"^[-\\*]{3,}",end:"$"},i={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:"$"},i,a,u,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return LN=t,LN}var MN,PZ;function jet(){if(PZ)return MN;PZ=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"},a={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/}]},i={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=[a,i];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:[i,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]},a,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return MN=t,MN}var PN,BZ;function Qet(){if(BZ)return PN;BZ=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})],a={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={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:[i,o,a].concat(n)},a].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,s,l,u,a].concat(n)}}return PN=t,PN}var BN,FZ;function Zet(){if(FZ)return BN;FZ=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 BN=t,BN}var FN,$Z;function Jet(){if($Z)return FN;$Z=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 FN=t,FN}var $N,zZ;function ett(){if(zZ)return $N;zZ=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 $N=t,$N}var zN,UZ;function ttt(){if(UZ)return zN;UZ=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]},i={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,i]},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,i,s,o,u,f,h,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,a,p,{begin:e.IDENT_RE+"::",keywords:""}]}}return qN=t,qN}var YN,HZ;function itt(){if(HZ)return YN;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 YN=t,YN}var HN,VZ;function stt(){if(VZ)return HN;VZ=1;function t(e){const r=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},i={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,i]}}return HN=t,HN}var VN,WZ;function ott(){if(WZ)return VN;WZ=1;function t(e){const r=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",a="[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]}))},v={className:"string",begin:"~[A-Z](?="+f+")",contains:p.map(C=>e.inherit(C,{contains:[g(C.end)]}))},y={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})]},S=e.inherit(_,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),x=[b,y,v,m,e.HASH_COMMENT_MODE,S,_,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[b,{begin:a}],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 VN=t,VN}var WN,KZ;function ltt(){if(KZ)return WN;KZ=1;function t(e){const r={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},i={begin:/\{/,end:/\}/,contains:a.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:[a,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[a,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,a,i,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 WN=t,WN}var KN,XZ;function ctt(){if(XZ)return KN;XZ=1;function t(e){const r=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=r.concat(a,/(::\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"}]},v={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},T=[f,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:a,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]},{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,v.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 KN=t,KN}var XN,jZ;function utt(){if(jZ)return XN;jZ=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return XN=t,XN}var jN,QZ;function dtt(){if(QZ)return jN;QZ=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 jN=t,jN}var QN,ZZ;function htt(){if(ZZ)return QN;ZZ=1;function t(e){const r="[a-z'][a-zA-Z0-9_']*",n="("+r+":"+r+"|"+r+")",a={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"},i=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:/#/}]},v={beginKeywords:"fun receive if try case maybe",end:"end",keywords:a};v.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:""}),v,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];const y=[i,o,v,l,m,g,e.QUOTE_STRING_MODE,s,u,d,h,f,p];l.contains[1].contains=y,u.contains=y,f.contains[1].contains=y;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:y};return{name:"Erlang",aliases:["erl"],keywords:a,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[_,e.inherit(e.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:a,contains:y}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:b.map(S=>`${S}|1.5`).join(" ")},contains:[_,m,g,e.QUOTE_STRING_MODE]},s,m,g,e.QUOTE_STRING_MODE,f,d,h,u,p,{begin:/\.$/}]}}return QN=t,QN}var ZN,JZ;function ftt(){if(JZ)return ZN;JZ=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 ZN=t,ZN}var JN,eJ;function ptt(){if(eJ)return JN;eJ=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 JN=t,JN}var eI,tJ;function gtt(){if(tJ)return eI;tJ=1;function t(e){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},i={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,i,e.C_NUMBER_MODE]}}return eI=t,eI}var tI,rJ;function mtt(){if(rJ)return tI;rJ=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},a={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,s,i)},{begin:r.concat(/\b\d+/,s,i)},{begin:r.concat(/\.\d+/,s,i)}],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},a,o]}}return tI=t,tI}var rI,nJ;function vtt(){if(nJ)return rI;nJ=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 a(o){const l=o[o.length-1];return typeof l=="object"&&l.constructor===Object?(o.splice(o.length-1,1),l):{}}function i(...o){return"("+(a(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},y={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},b=/[a-zA-Z_](\w|')*/,_={scope:"variable",begin:/``/,end:/``/},S=/\B('|\^)/,x={scope:"symbol",variants:[{match:n(S,/``.*?``/)},{match:n(S,o.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:Y}){let ee;Y?ee="!%&*+-/<=>@^|~?":ee="!%&*+-/<>@^|~?";const X=Array.from(ee),le=n("[",...X.map(t),"]"),te=i(le,/\./),ne=n(te,r(te)),ae=i(n(ne,te,"*"),n(le,"+"));return{scope:"operator",match:i(ae,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},T=C({includeEqual:!0}),w=C({includeEqual:!1}),R=function(Y,ee){return{begin:n(Y,r(n(/\s*/,i(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:ee,end:r(i(/\n/,/=/)),relevance:0,keywords:o.inherit(m,{type:p}),contains:[y,x,o.inherit(_,{scope:null}),w]}},O=R(/:/,"operator"),M=R(/\bof\b/,"keyword"),$={begin:[/(^|\s+)/,/type/,/\s+/,b],beginScope:{2:"keyword",4:"title.class"},end:r(/\(|=|$/),keywords:m,contains:[y,o.inherit(_,{scope:null}),x,{scope:"operator",match:/<|>/},O]},F={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},A={begin:[/^\s*/,n(/#/,i(...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]},N={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]},U={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},P],relevance:2},G={scope:"string",match:n(/'/,i(/[^\\']/,/\\(?:.|\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,G,u,y,_,O,F,A,I,x,T],{name:"F#",aliases:["fs","f#"],keywords:m,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[u,{variants:[U,B,z,N,L,D,G]},y,_,$,{scope:"meta",begin:/\[\]/,relevance:2,contains:[_,N,L,D,G,I]},M,O,F,A,I,x,T]}}return rI=s,rI}var nI,aJ;function ytt(){if(aJ)return nI;aJ=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"},a={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={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_]+/},a,i]},e.C_NUMBER_MODE,i]}}return nI=t,nI}var aI,iJ;function _tt(){if(iJ)return aI;iJ=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("@","@"),a={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]},i={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,i]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(p,g,m){const v=e.inherit({className:"function",beginKeywords:p,end:g,excludeEnd:!0,contains:[].concat(s)},{});return v.contains.push(o),v.contains.push(e.C_NUMBER_MODE),v.contains.push(e.C_BLOCK_COMMENT_MODE),v.contains.push(n),v},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,a,{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,i]}}return aI=t,aI}var iI,sJ;function btt(){if(sJ)return iI;sJ=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"]},a=/\b/;function i(g,m){if(g.index===0)return;const v=g.input[g.index-1];v>="0"&&v<="9"||v!=="_"&&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(a,o)},{begin:o,"on:begin":i},{match:r.concat(a,l)},{begin:l,"on:begin":i}]},{scope:"symbol",variants:[{match:r.concat(a,u)},{begin:u,"on:begin":i},{match:r.concat(a,d)},{begin:d,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:r.concat(a,h,s)},{begin:r.concat(h,s),"on:begin":i}]},{scope:"params",variants:[{match:r.concat(a,f,s)},{begin:r.concat(f,s),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:p}}return iI=t,iI}var sI,oJ;function Ett(){if(oJ)return sI;oJ=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 sI=t,sI}var oI,lJ;function Stt(){if(lJ)return oI;lJ=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 oI=t,oI}var lI,cJ;function Ttt(){if(cJ)return lI;cJ=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 lI=t,lI}var cI,uJ;function xtt(){if(uJ)return cI;uJ=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 pI=t,pI}var gI,mJ;function Ntt(){if(mJ)return gI;mJ=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"]},a={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,u=/(\.|\/)/,d=r.either(i,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:a}),m={begin:/\(/,end:/\)/},v={className:"attr",begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,m]}}},y={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},b={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,y,v,g,m],returnEnd:!0},_=e.inherit(p,{className:"name",keywords:n,starts:e.inherit(b,{end:/\)/})});m.contains=[_];const S=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:[S],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[x]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[S]},{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 gI=t,gI}var mI,vJ;function Itt(){if(vJ)return mI;vJ=1;function t(e){const r="([0-9]_*)+",n="([0-9a-fA-F]_*)+",a="([01]_*)+",i="([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},v={className:"number",relevance:0,variants:[{match:`\\b(${r})(\\.(${r}))?([eE][+-]?(${r}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${r}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${a})\\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,v,p,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${u}--+|--+(?!-)${u}`},d,{begin:"->|<-"}]}}return mI=t,mI}var vI,yJ;function Ott(){if(yJ)return vI;yJ=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 vI=t,vI}var yI,_J;function Dtt(){if(_J)return yI;_J=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 yI=t,yI}var _I,bJ;function Ltt(){if(bJ)return _I;bJ=1;function t(e){const r=e.regex,n="HTTP/([32]|1\\.[01])",a=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:r.concat("^",a,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[i,{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(i,{relevance:0})]}}return _I=t,_I}var bI,EJ;function Mtt(){if(EJ)return bI;EJ=1;function t(e){const r="a-zA-Z_\\-!.?+*=<>&#'",n="["+r+"]["+r+"0-9/;:]*",a={$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 | |= ~"},i="[-+]?\\d+(\\.\\d+)?",s={begin:n,relevance:0},o={className:"number",begin:i,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:"\\)"},v={endsWithParent:!0,relevance:0},y={className:"name",relevance:0,keywords:a,begin:n,starts:v},b=[m,l,f,p,u,g,h,o,d,s];return m.contains=[e.COMMENT("comment",""),y,v],v.contains=b,h.contains=b,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),m,l,f,p,u,g,h,o,d]}}return bI=t,bI}var EI,SJ;function Ptt(){if(SJ)return EI;SJ=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 EI=t,EI}var SI,TJ;function Btt(){if(TJ)return SI;TJ=1;function t(e){const r=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={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:[a,s,i,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:[a,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[a,l,s,i,o,n]}}]}}return SI=t,SI}var TI,xJ;function Ftt(){if(xJ)return TI;xJ=1;function t(e){const r=e.regex,n={className:"params",begin:"\\(",end:"\\)"},a=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:r.concat(/\b\d+/,/\.(\d*)/,i,a)},{begin:r.concat(/\b\d+/,i,a)},{begin:r.concat(/\.\d+/,i,a)}],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 xI,CJ;function $tt(){if(CJ)return xI;CJ=1;function t(e){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",a="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Y="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 ",fd="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 ",io="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Дат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",D2="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 ВызовСпособ ИмяОтчета РеквЗнач ",pd="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 ",yr=Y+fd,sl=D2,yn="null true false nil ",pn={className:"number",begin:e.NUMBER_RE,relevance:0},so={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},_s={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},bs={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,_s]},gd={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,_s]},rr={variants:[bs,gd]},fr={$pattern:r,keyword:a,built_in:yr,class:sl,literal:yn},Er={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:fr,relevance:0},_n={className:"type",begin:":[ \\t]*("+pd.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},pi={className:"variable",keywords:fr,begin:r,relevance:0,contains:[_n,Er]},ol=n+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:fr,illegal:"\\$|\\?|%|,|;$|~|#|@|a(s,o,l-1))}function i(s){const o=s.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",u=l+a("(?:<"+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"]}]},v={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:[v,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 CI=i,CI}var wI,kJ;function Utt(){if(kJ)return wI;kJ=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"],a=["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"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(i,n,a);function l(u){const d=u.regex,h=(X,{after:le})=>{const te="",end:""},g=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,le)=>{const te=X[0].length+X.index,ne=X.input[te];if(ne==="<"||ne===","){le.ignoreMatch();return}ne===">"&&(h(X,{after:te})||le.ignoreMatch());let ae;const re=X.input.substring(te);if(ae=re.match(/^\s*=/)){le.ignoreMatch();return}if((ae=re.match(/^\s+extends\s+/))&&ae.index===0){le.ignoreMatch();return}}},v={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},y="[0-9](_?[0-9])*",b=`\\.(${y})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${_})((${b})|\\.)?|(${b}))[eE][+-]?(${y})\\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:v,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"}},R={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,R,{match:/\$\d+/},S];x.contains=$.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat($)});const F=[].concat(M,x.contains),A=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:v,contains:["self"].concat(F)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,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,...a]}},N={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(X){return d.concat("(?!",X.join("|"),")")}const U={match:d.concat(/\b/,B([...i,"super","import"].map(X=>`${X}\\s*\\(`)),f,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},G={begin:d.concat(/\./,d.lookahead(d.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},Y="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",ee={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(Y)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,C,T,w,R,M,{match:/\$\d+/},S,L,{scope:"attr",match:f+d.lookahead(":"),relevance:0},ee,{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:Y,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:v,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},G,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},U,z,D,K,{match:/\$[(.]/}]}}return wI=l,wI}var kI,AJ;function Gtt(){if(AJ)return kI;AJ=1;function t(e){const n={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},a={className:"function",begin:/:[\w\-.]+/,relevance:0},i={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,a,i,n]}}return kI=t,kI}var AI,RJ;function qtt(){if(RJ)return AI;RJ=1;function t(e){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},a=["true","false","null"],i={scope:"literal",beginKeywords:a.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:a},contains:[r,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return AI=t,AI}var RI,NJ;function Ytt(){if(NJ)return RI;NJ=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 RI=t,RI}var NI,IJ;function Htt(){if(IJ)return NI;IJ=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return NI=t,NI}var II,OJ;function Vtt(){if(OJ)return II;OJ=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 a(i){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:i.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},h={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(h);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(h,{className:"string"}),"self"]}]},g=n,m=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),v={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},y=v;return y.variants[1].contains=[v],v.variants[1].contains=[y],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,m,o,l,f,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.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:[v,i.C_LINE_COMMENT_MODE,m],relevance:0},i.C_LINE_COMMENT_MODE,m,f,p,h,i.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.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 II=a,II}var OI,DJ;function Wtt(){if(DJ)return OI;DJ=1;function t(e){const r="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",a="\\]|\\?>",i={$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:i,contains:[{className:"meta",begin:a,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:i,contains:[{className:"meta",begin:a,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 OI=t,OI}var DI,LJ;function Ktt(){if(LJ)return DI;LJ=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@:_])")),a=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("|")),i=[{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:a},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:i}]},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]}),v={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[g,...p]},y={begin:/\s+/,relevance:0},b=[m],_=[v],S=function(M,$){return{contains:[y],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:[y],starts:$}},C=function(M,$){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+M+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},S(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+"\\})"}},R=(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",S(b,{contains:[T()]})),x("mintinline",S(b,{contains:[R(),T()]})),x("url",{contains:[R("link"),R("link")]}),x("hyperref",{contains:[R("link")]}),x("href",S(_,{contains:[R("link")]})),...[].concat(...["","\\*"].map(M=>[C("verbatim"+M,w("verbatim"+M)),C("filecontents"+M,S(b,w("filecontents"+M))),...["","B","L"].map($=>C($+"Verbatim"+M,S(_,w($+"Verbatim"+M))))])),C("minted",S(_,S(b,w("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...O,...p]}}return DI=t,DI}var LI,MJ;function Xtt(){if(MJ)return LI;MJ=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 LI=t,LI}var MI,PJ;function jtt(){if(PJ)return MI;PJ=1;function t(e){const r=/([A-Za-z_][A-Za-z_0-9]*)?/,a={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:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[r,/(?=\()/],scope:{1:"keyword"},contains:[a]};return a.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,r,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[a]},{match:[/#+/,r,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return MI=t,MI}var PI,BJ;function Qtt(){if(BJ)return PI;BJ=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],a=["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(),i=["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=i.concat(s).sort().reverse();function u(d){const h=t(d),f=l,p="and or not only",g="[\\w-]+",m="("+g+"|@\\{"+g+"\\})",v=[],y=[],b=function(F){return{className:"string",begin:"~?"+F+".*?"+F}},_=function(F,A,I){return{className:F,begin:A,relevance:I}},S={$pattern:/[a-z-]+/,keyword:p,attribute:a.join(" ")},x={begin:"\\(",end:"\\)",contains:y,keywords:S,relevance:0};y.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=y.concat({begin:/\{/,end:/\}/,contains:v}),T={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(y)},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:y}}]},R={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:S,returnEnd:!0,contains:y,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:":("+i.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 v.push(d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,R,O,$,w,M,T,h.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:v}}return PI=u,PI}var BI,FJ;function Ztt(){if(FJ)return BI;FJ=1;function t(e){const r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",a="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:a,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)\\("+a+" +"+a,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",i,o,s,h]},h],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},m={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},v={begin:"\\(\\s*",end:"\\)"},y={endsWithParent:!0,relevance:0};return v.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:n}]},y],y.contains=[g,m,v,i,s,o,l,u,d,f,h],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),i,o,l,g,m,v,h]}}return BI=t,BI}var FI,$J;function Jtt(){if($J)return FI;$J=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("[^:]//","$")],a=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=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,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,a],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,a]},{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,a].concat(n),illegal:";$|^\\[|^=|&|\\{"}}return FI=t,FI}var $I,zJ;function ert(){if(zJ)return $I;zJ=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"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=[].concat(a,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:i.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},v=[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=v;const y={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(v)}]},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:v.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,b,{className:"function",contains:[p,y],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 $I=s,$I}var zI,UJ;function trt(){if(UJ)return zI;UJ=1;function t(e){const r=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,a={className:"type",begin:/\bi\d+(?=\s|\b)/},i={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:[a,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},d,s,i,u,l,o]}}return zI=t,zI}var UI,GJ;function rrt(){if(GJ)return UI;GJ=1;function t(e){const n={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},a={className:"number",relevance:0,begin:e.C_NUMBER_RE},i={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},a,{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,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return UI=t,UI}var GI,qJ;function nrt(){if(qJ)return GI;qJ=1;function t(e){const r="\\[=*\\[",n="\\]=*\\]",a={begin:r,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+r+")","$"),e.COMMENT("--"+r,n,{contains:[a],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:i.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:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:r,end:n,contains:[a],relevance:5}])}}return GI=t,GI}var qI,YJ;function art(){if(YJ)return qI;YJ=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}]},y={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$]*)?/},S={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"]}),_,S,C,v,y,r.QUOTE_STRING_MODE,p,b,x]}}return YI=e,YI}var HI,VJ;function srt(){if(VJ)return HI;VJ=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 HI=t,HI}var VI,WJ;function ort(){if(WJ)return VI;WJ=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 VI=t,VI}var WI,KJ;function lrt(){if(KJ)return WI;KJ=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,a,e.NUMBER_MODE,i,s,{begin:/:-/},{begin:/\.$/}]}}return KI=t,KI}var XI,jJ;function urt(){if(jJ)return XI;jJ=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 XI=t,XI}var jI,QJ;function drt(){if(QJ)return jI;QJ=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 jI=t,jI}var QI,ZJ;function hrt(){if(ZJ)return QI;ZJ=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"],a=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},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=(v,y,b="\\1")=>{const _=b==="\\1"?b:r.concat(b,y);return r.concat(r.concat("(?:",v,")"),y,/(?:\\.|[^\\\/])*?/,_,/(?:\\.|[^\\\/])*?/,b,a)},g=(v,y,b)=>r.concat(r.concat("(?:",v,")"),y,/(?:\\.|[^\\\/])*?/,b,a),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:i,contains:m}}return QI=t,QI}var ZI,JJ;function frt(){if(JJ)return ZI;JJ=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 ZI=t,ZI}var JI,eee;function prt(){if(eee)return JI;eee=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"}},a={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,a,{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 JI=t,JI}var eO,tee;function grt(){if(tee)return eO;tee=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$_]*",a={className:"subst",begin:/#\{/,end:/\}/,keywords:r},i=[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,a]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];a.contains=i;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(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:i.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 eO=t,eO}var tO,ree;function mrt(){if(ree)return tO;ree=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 tO=t,tO}var rO,nee;function vrt(){if(nee)return rO;nee=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"}},a={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={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}),i,a,r,n]}}return rO=t,rO}var nO,aee;function yrt(){if(aee)return nO;aee=1;function t(e){const r=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:r.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={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:i.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:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return nO=t,nO}var aO,iee;function _rt(){if(iee)return aO;iee=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 aO=t,aO}var iO,see;function brt(){if(see)return iO;see=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"]},a={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},i="[A-Za-z_][A-Za-z0-9_'-]*",s={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},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(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},g={scope:"char.escape",match:/\\\$/},m={scope:"char.escape",match:/''\$/},v={scope:"subst",begin:/\$\{/,end:/\}/,keywords:n},y={scope:"char.escape",match:/'''/},b={scope:"char.escape",match:/\\(?!\$)./},_={scope:"string",variants:[{begin:"''",end:"''",contains:[m,v,y,b]},{begin:'"',end:'"',contains:[g,v,b]}]},S={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},x=[h,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),a,_,s,l,S,p,f,d];v.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 iO=t,iO}var sO,oee;function Ert(){if(oee)return sO;oee=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return sO=t,sO}var oO,lee;function Srt(){if(lee)return oO;lee=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"],a=["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"],i=["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(...a)},h={className:"keyword",begin:r.concat(/!/,r.either(...i))},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"],v=["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"],y={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:v},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),_,y,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},g,h,o,l,u,d,p,e.NUMBER_MODE]}}return oO=t,oO}var lO,cee;function Trt(){if(cee)return lO;cee=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 lO=t,lO}var cO,uee;function xrt(){if(uee)return cO;uee=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 cO=t,cO}var uO,dee;function Crt(){if(dee)return uO;dee=1;function t(e){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},a={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=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",a,i,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,a,s,i,r,l,u]}}return uO=t,uO}var dO,hee;function wrt(){if(hee)return dO;hee=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}),a=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={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:[i,s]},n,a]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[n,a,e.C_LINE_COMMENT_MODE,i,s,e.NUMBER_MODE,o,l]}}return dO=t,dO}var hO,fee;function krt(){if(fee)return hO;fee=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 hO=t,hO}var fO,pee;function Art(){if(pee)return fO;pee=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 fO=t,fO}var pO,gee;function Rrt(){if(gee)return pO;gee=1;function t(e){const r=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",a="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\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(v){return v.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(v){return v.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:a,end:a,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:i,relevance:10}]}}return pO=t,pO}var gO,mee;function Nrt(){if(mee)return gO;mee=1;function t(e){const r=e.regex,n=/(?![A-Za-z0-9])(?![$])/,a=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=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:"\\$+"+a},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]},v={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},y=["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})(y),built_in:_},C=I=>I.map(D=>D.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,r.concat(g,"+"),r.concat("(?!",C(_).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},w=r.concat(a,"\\b(?!\\()"),R={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,r.concat(/::/,r.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[i,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},O={scope:"attr",match:r.concat(a,r.lookahead(":"),r.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:x,contains:[O,o,R,e.C_BLOCK_COMMENT_MODE,m,v,T]},$={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",C(b).join("\\b|"),"|",C(_).join("\\b|"),"\\b)"),a,r.concat(g,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push($);const F=[O,R,e.C_BLOCK_COMMENT_MODE,m,v,T],A={begin:r.concat(/#\[\s*\\?/,r.either(i,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:y,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:y,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",variants:[{match:i},{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,$,R,{match:[/const/,/\s/,a],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,R,e.C_BLOCK_COMMENT_MODE,m,v]}]},{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,v]}}return gO=t,gO}var mO,vee;function Irt(){if(vee)return mO;vee=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 mO=t,mO}var vO,yee;function Ort(){if(yee)return vO;yee=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return vO=t,vO}var yO,_ee;function Drt(){if(_ee)return yO;_ee=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},a={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},i={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,a,i,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 yO=t,yO}var _O,bee;function Lrt(){if(bee)return _O;bee=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",a="-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",i={$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]},v={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]}]},y={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,h,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(a,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},_={className:"selector-tag",begin:/@\B/,relevance:0},S={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},x=[S,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 S.contains.unshift(C),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:x.concat(m,v,y,b,C)}}return _O=t,_O}var bO,Eee;function Mrt(){if(Eee)return bO;Eee=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"],a=e.IDENT_RE,i={variants:[{match:r.concat(r.either(...n),r.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:r.concat(/\b(?!for|if|while)/,a,r.lookahead(/\s*\(/)),className:"title.function"}]},s={match:[/new\s+/,a],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,a],className:{2:"property"}},l={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,a]},{match:[/class/,/\s+/,a]}],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,i,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return bO=t,bO}var EO,See;function Prt(){if(See)return EO;See=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 EO=t,EO}var SO,Tee;function Brt(){if(Tee)return SO;Tee=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},a={begin:/\(/,end:/\)/,relevance:0},i={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,a,{begin:/:-/},i,s,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,l,u,e.C_NUMBER_MODE];return a.contains=h,i.contains=h,{name:"Prolog",contains:h.concat([{begin:/\.$/}])}}return SO=t,SO}var TO,xee;function Frt(){if(xee)return TO;xee=1;function t(e){const r="[ \\t\\f]*",n="[ \\t\\f]+",a=r+"[:=]"+r,i=n,s="("+a+"|"+i+")",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+a},{begin:o+i}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:l},{className:"attr",begin:o+r+"$"}]}}return TO=t,TO}var xO,Cee;function $rt(){if(Cee)return xO;Cee=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"],a={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,a,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return xO=t,xO}var CO,wee;function zrt(){if(wee)return CO;wee=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("#","$"),a="([A-Za-z_]|::)(\\w|::)*",i=e.inherit(e.TITLE_MODE,{begin:a}),s={className:"variable",begin:"\\$"+a},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:[i,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 CO=t,CO}var wO,kee;function Urt(){if(kee)return wO;kee=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 wO=t,wO}var kO,Aee;function Grt(){if(Aee)return kO;Aee=1;function t(e){const r=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),a=["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:a,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|${a.join("|")}`,v={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})`}]},y={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,v,f,e.HASH_COMMENT_MODE]}]};return d.contains=[f,v,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[u,v,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,y,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:[v,b,f]}]}}return kO=t,kO}var AO,Ree;function qrt(){if(Ree)return AO;Ree=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return AO=t,AO}var RO,Nee;function Yrt(){if(Nee)return RO;Nee=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 RO=t,RO}var NO,Iee;function Hrt(){if(Iee)return NO;Iee=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"},a="[a-zA-Z_][a-zA-Z0-9\\._]*",i={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:a,returnEnd:!1}},l={begin:a+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:a,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},u={begin:r.concat(a,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:a})]};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,i,{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 NO=t,NO}var IO,Oee;function Vrt(){if(Oee)return IO;Oee=1;function t(e){const r=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,a=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]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,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:[i,a]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,a]},{scope:{1:"punctuation",2:"number"},match:[s,a]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,a]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return IO=t,IO}var OO,Dee;function Wrt(){if(Dee)return OO;Dee=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 OO=t,OO}var DO,Lee;function Krt(){if(Lee)return DO;Lee=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("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+a.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 MO=t,MO}var PO,Bee;function Qrt(){if(Bee)return PO;Bee=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"],a=["while","for","if","do","return","else","break","extern","continue"],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:a,built_in:r,type:n},illegal:""},s]}}return FO=t,FO}var $O,zee;function ent(){if(zee)return $O;zee=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"],a=["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"],i=["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(...i)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:r.either(...a)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return $O=t,$O}var zO,Uee;function tnt(){if(Uee)return zO;Uee=1;function t(e){const r=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},a={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,a]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[a],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,i,s,u,l,e.C_NUMBER_MODE,d,h,...f,p,n]}}return zO=t,zO}var UO,Gee;function rnt(){if(Gee)return UO;Gee=1;function t(e){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",a=n+"[+\\-]"+n+"i",i={$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:a,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:i},v={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,v].concat(u),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),o,l,h,p,v].concat(u)}}return UO=t,UO}var GO,qee;function nnt(){if(qee)return GO;qee=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 GO=t,GO}var qO,Yee;function ant(){if(Yee)return qO;Yee=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],a=["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(),i=["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=i,p="@[a-z-]+",g="and or not only",v={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("|")+")"},v,{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,v,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:a.join(" ")},contains:[{begin:p,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},v,u.QUOTE_STRING_MODE,u.APOS_STRING_MODE,d.HEXCOLOR,d.CSS_NUMBER_MODE]},d.FUNCTION_DISPATCH]}}return qO=l,qO}var YO,Hee;function int(){if(Hee)return YO;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 YO=t,YO}var HO,Vee;function snt(){if(Vee)return HO;Vee=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"],a=["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("+a.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 HO=t,HO}var VO,Wee;function ont(){if(Wee)return VO;Wee=1;function t(e){const r="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},a={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,a,n,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,a]}]}}return VO=t,VO}var WO,Kee;function lnt(){if(Kee)return WO;Kee=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 WO=t,WO}var KO,Xee;function cnt(){if(Xee)return KO;Xee=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]+/},a={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["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(a,{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:i,built_in:o,literal:s},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,r,n,a,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return KO=t,KO}var XO,jee;function unt(){if(jee)return XO;jee=1;function t(e){const r=e.regex,n=e.COMMENT("--","$"),a={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={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)),v={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},y={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 S={scope:"keyword",match:_(p),relevance:0};function x(C,{exceptions:T,when:w}={}){const R=w;return T=T||[],C.map(O=>O.match(/\|\d+$/)||T.includes(O)?O:R(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)},S,b,v,a,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,y]}}return XO=t,XO}var jO,Qee;function dnt(){if(Qee)return jO;Qee=1;function t(e){const r=e.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],a=["for","in","if","else","while","break","continue","return"],i=["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:i,keyword:a,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 jO=t,jO}var QO,Zee;function hnt(){if(Zee)return QO;Zee=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 QO=t,QO}var ZO,Jee;function hnt(){if(Jee)return ZO;Jee=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 ZO=t,ZO}var JO,ete;function fnt(){if(ete)return JO;ete=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],a=["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(),i=["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:"&?:("+i.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:a.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 JO=l,JO}var e9,tte;function pnt(){if(tte)return e9;tte=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 QO=t,QO}var ZO,Jee;function fnt(){if(Jee)return ZO;Jee=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 ZO=t,ZO}var JO,ete;function pnt(){if(ete)return JO;ete=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],a=["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(),i=["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:"&?:("+i.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:a.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 JO=l,JO}var e9,tte;function gnt(){if(tte)return e9;tte=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 e9=t,e9}var t9,rte;function gnt(){if(rte)return t9;rte=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 R=w[w.length-1];return typeof R=="object"&&R.constructor===Object?(w.splice(w.length-1,1),R):{}}function a(...w){return"("+(n(w).capture?"":"?:")+w.map(M=>t(M)).join("|")+")"}const i=w=>r(/\b/,w,/\w$/.test(w)?/\b/:/\B/),s=["Protocol","Type"].map(i),o=["init","self"].map(i),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=a(/[/=\-+!*%<>&|^~?]/,/[\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=a(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=r(g,m,"*"),y=a(/[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=a(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=r(y,b,"*"),S=r(/[A-Z]/,b,"*"),x=["attached","autoclosure",r(/convention\(/,a("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 R={match:/\s+/,relevance:0},O=w.COMMENT("/\\*","\\*/",{contains:["self"]}),M=[w.C_LINE_COMMENT_MODE,O],$={match:[/\./,a(...s,...o)],className:{2:"keyword"}},F={match:r(/\./,a(...u)),relevance:0},A=u.filter(Pe=>typeof Pe=="string").concat(["_|0"]),I=u.filter(Pe=>typeof Pe!="string").concat(l).map(i),D={variants:[{className:"keyword",match:a(...I,...o)}]},L={$pattern:a(/\b\w+/,/#\w+/),keyword:A.concat(f),literal:d},N=[$,F,D],P={match:r(/\./,a(...p)),relevance:0},z={className:"built_in",match:r(/\b/,a(...p),/(?=\()/)},B=[P,z],U={match:/->/,relevance:0},G={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${m})+`}]},K=[U,G],Y="([0-9]_*)+",ee="([0-9a-fA-F]_*)+",X={className:"number",relevance:0,variants:[{match:`\\b(${Y})(\\.(${Y}))?([eE][+-]?(${Y}))?\\b`},{match:`\\b0x(${ee})(\\.(${ee}))?([pP][+-]?(${Y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},le=(Pe="")=>({className:"subst",variants:[{match:r(/\\/,Pe,/[0\\tnr"']/)},{match:r(/\\/,Pe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),te=(Pe="")=>({className:"subst",match:r(/\\/,Pe,/[\t ]*(?:[\r\n]|\r\n)/)}),ne=(Pe="")=>({className:"subst",label:"interpol",begin:r(/\\/,Pe,/\(/),end:/\)/}),ae=(Pe="")=>({begin:r(Pe,/"""/),end:r(/"""/,Pe),contains:[le(Pe),te(Pe),ne(Pe)]}),re=(Pe="")=>({begin:r(Pe,/"/),end:r(/"/,Pe),contains:[le(Pe),ne(Pe)]}),ge={className:"string",variants:[ae(),ae("#"),ae("##"),ae("###"),re(),re("#"),re("##"),re("###")]},pe=[w.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[w.BACKSLASH_ESCAPE]}],Be={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:pe},Le=Pe=>{const Ie=r(Pe,/\//),Ze=r(/\//,Pe);return{begin:Ie,end:Ze,contains:[...pe,{scope:"comment",begin:`#(?!.*${Ze})`,end:/$/}]}},He={scope:"regexp",variants:[Le("###"),Le("##"),Le("#"),Be]},Re={match:r(/`/,_,/`/)},xe={className:"variable",match:/\$\d+/},$e={className:"variable",match:`\\$${b}+`},Ce=[Re,xe,$e],ut={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:C,contains:[...K,X,ge]}]}},Ae={scope:"keyword",match:r(/@/,a(...x),e(a(/\(/,/\s+/)))},je={scope:"meta",match:r(/@/,_)},ot=[ut,Ae,je],lt={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:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,e(S)),relevance:0}]},ct={begin://,keywords:L,contains:[...M,...N,...ot,U,lt]};lt.contains.push(ct);const it={match:r(_,/\s*:/),keywords:"_|0",relevance:0},ke={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",it,...M,He,...N,...B,...K,X,ge,...Ce,...ot,lt]},Qe={begin://,keywords:"repeat each",contains:[...M,lt]},_e={begin:a(e(r(_,/\s*:/)),e(r(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},ye={begin:/\(/,end:/\)/,keywords:L,contains:[_e,...M,...N,...K,X,ge,...ot,lt,ke],endsParent:!0,illegal:/["']/},q={match:[/(func|macro)/,/\s+/,a(Re.match,_,v)],className:{1:"keyword",3:"title.function"},contains:[Qe,ye,R],illegal:[/\[/,/%/]},fe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Qe,ye,R],illegal:/\[|%/},j={match:[/operator/,/\s+/,v],className:{1:"keyword",3:"title"}},we={begin:[/precedencegroup/,/\s+/,S],className:{1:"keyword",3:"title"},contains:[lt],keywords:[...h,...d],end:/}/},Te={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},rt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Oe={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,_,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:L,contains:[Qe,...N,{begin:/:/,end:/\{/,keywords:L,contains:[{scope:"title.class.inherited",match:S},...N],relevance:0}]};for(const Pe of ge.variants){const Ie=Pe.contains.find(ze=>ze.label==="interpol");Ie.keywords=L;const Ze=[...N,...B,...K,X,ge,...Ce];Ie.contains=[...Ze,{begin:/\(/,end:/\)/,contains:["self",...Ze]}]}return{name:"Swift",keywords:L,contains:[...M,q,fe,Te,rt,Oe,j,we,{beginKeywords:"import",end:/$/,contains:[...M],relevance:0},He,...N,...B,...K,X,ge,...Ce,...ot,lt,ke]}}return t9=T,t9}var r9,nte;function mnt(){if(nte)return r9;nte=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 r9=t,r9}var n9,ate;function vnt(){if(ate)return n9;ate=1;function t(e){const r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={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,i]},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},v={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},y=[a,{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,v,s,o],b=[...y];return b.pop(),b.push(l),g.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:y}}return n9=t,n9}var a9,ite;function ynt(){if(ite)return a9;ite=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 a9=t,a9}var i9,ste;function _nt(){if(ste)return i9;ste=1;function t(e){const r=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,a={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:[a]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},a]}}return i9=t,i9}var s9,ote;function bnt(){if(ote)return s9;ote=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 s9=t,s9}var o9,lte;function Ent(){if(lte)return o9;lte=1;function t(e){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},a={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]},i={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:[a,i,{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 o9=t,o9}var l9,cte;function Snt(){if(cte)return l9;cte=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"],a=["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 i=["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"];i=i.concat(i.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:a}]},h=(m,{relevance:v})=>({beginScope:{1:"template-tag",3:"name"},relevance:v||2,endScope:"template-tag",begin:[/\{%/,/\s*/,r.either(...m)],end:/%\}/,keywords:"in",contains:[d,u,s,o]}),f=/[a-z_]+/,p=h(i,{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 l9=t,l9}var c9,ute;function Tnt(){if(ute)return c9;ute=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"],a=["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"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(i,n,a);function l(d){const h=d.regex,f=(le,{after:te})=>{const ne="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(le,te)=>{const ne=le[0].length+le.index,ae=le.input[ne];if(ae==="<"||ae===","){te.ignoreMatch();return}ae===">"&&(f(le,{after:ne})||te.ignoreMatch());let re;const ge=le.input.substring(ne);if(re=ge.match(/^\s*=/)){te.ignoreMatch();return}if((re=ge.match(/^\s+extends\s+/))&&re.index===0){te.ignoreMatch();return}}},y={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},b="[0-9](_?[0-9])*",_=`\\.(${b})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${S})((${_})|\\.)?|(${_}))[eE][+-]?(${b})\\b`},{begin:`\\b(${S})\\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:y,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"}},R={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,R,O,{match:/\$\d+/},x];C.contains=F.concat({begin:/\{/,end:/\}/,keywords:y,contains:["self"].concat(F)});const A=[].concat($,C.contains),I=A.concat([{begin:/(\s*)\(/,end:/\)/,keywords:y,contains:["self"].concat(A)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,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"}}]},N={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,...a]}},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 U(le){return h.concat("(?!",le.join("|"),")")}const G={match:h.concat(/\b/,U([...i,"super","import"].map(le=>`${le}\\s*\\(`)),p,h.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:h.concat(/\./,h.lookahead(h.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:y,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,T,w,R,O,$,{match:/\$\d+/},x,N,{scope:"attr",match:p+h.lookahead(":"),relevance:0},X,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[$,d.REGEXP_MODE,{className:"function",begin:ee,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:y,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:m},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.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},K,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},G,B,L,Y,{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"}},v={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[f.exports.CLASS_REFERENCE]},y={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},S={className:"meta",begin:"@"+p},x=(R,O,M)=>{const $=R.contains.findIndex(F=>F.label===O);if($===-1)throw new Error("can not find mode to replace");R.contains.splice($,1,M)};Object.assign(f.keywords,_),f.exports.PARAMS_CONTAINS.push(S);const C=f.contains.find(R=>R.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([S,m,v,T]),x(f,"shebang",d.SHEBANG()),x(f,"use_strict",y);const w=f.contains.find(R=>R.label==="func.def");return w.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return c9=u,c9}var u9,dte;function xnt(){if(dte)return u9;dte=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 u9=t,u9}var d9,hte;function Cnt(){if(hte)return d9;hte=1;function t(e){const r=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},a={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\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,i),/ *#/)},{begin:r.concat(/# */,l,/ *#/)},{begin:r.concat(/# */,o,/ *#/)},{begin:r.concat(/# */,r.either(s,i),/ +/,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,a,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 d9=t,d9}var h9,fte;function wnt(){if(fte)return h9;fte=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"],a=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],i={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:a,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[i,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return h9=t,h9}var f9,pte;function knt(){if(pte)return f9;pte=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return f9=t,f9}var p9,gte;function Ant(){if(gte)return p9;gte=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"]},a=["__FILE__","__LINE__"],i=["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(...a))},{scope:"meta",begin:r.concat(/`/,r.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}return p9=t,p9}var g9,mte;function Rnt(){if(mte)return g9;mte=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,a=r+"(\\."+r+")?("+n+")?",i="\\w+",o="\\b("+(r+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+a+")";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 g9=t,g9}var m9,vte;function Nnt(){if(vte)return m9;vte=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 m9=t,m9}var v9,yte;function Int(){if(yte)return v9;yte=1;function t(e){e.regex;const r=e.COMMENT(/\(;/,/;\)/);r.contains.push("self");const n=e.COMMENT(/;;/,/$/),a=["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"],i={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:a},contains:[n,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,i,e.QUOTE_STRING_MODE,u,d,l]}}return v9=t,v9}var y9,_te;function Ont(){if(_te)return y9;_te=1;function t(e){const r=e.regex,n=/[a-zA-Z]\w*/,a=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],i=["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:a},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"},v={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:o}},y=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"]}),S={scope:"subst",begin:/%\(/,end:/\)/,contains:[y,v,u,m,f]},x={scope:"string",begin:/"/,end:/"/,contains:[S,{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}/}]}]};S.contains.push(x);const C=[...a,...s,...i],T={relevance:0,match:r.concat("\\b(?!",C.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:a,"variable.language":s,literal:i},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},y,x,p,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,v,h,b,d,u,f,m,g,T]}}return y9=t,y9}var _9,bte;function Dnt(){if(bte)return _9;bte=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 _9=t,_9}var b9,Ete;function Lnt(){if(Ete)return b9;Ete=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"],a=["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(a)},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 b9=t,b9}var E9,Ste;function Mnt(){if(Ste)return E9;Ste=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 E9=t,E9}var S9,Tte;function Pnt(){if(Tte)return S9;Tte=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,a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i="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:i,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:i,contains:["self",e.C_BLOCK_COMMENT_MODE,r,a]}]},{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,a]}}return S9=t,S9}var T9,xte;function Bnt(){if(xte)return T9;xte=1;var t=aet();return t.registerLanguage("1c",iet()),t.registerLanguage("abnf",set()),t.registerLanguage("accesslog",oet()),t.registerLanguage("actionscript",cet()),t.registerLanguage("ada",uet()),t.registerLanguage("angelscript",det()),t.registerLanguage("apache",het()),t.registerLanguage("applescript",fet()),t.registerLanguage("arcade",pet()),t.registerLanguage("arduino",get()),t.registerLanguage("armasm",met()),t.registerLanguage("xml",vet()),t.registerLanguage("asciidoc",yet()),t.registerLanguage("aspectj",_et()),t.registerLanguage("autohotkey",bet()),t.registerLanguage("autoit",Eet()),t.registerLanguage("avrasm",Tet()),t.registerLanguage("awk",xet()),t.registerLanguage("axapta",Cet()),t.registerLanguage("bash",wet()),t.registerLanguage("basic",ket()),t.registerLanguage("bnf",Aet()),t.registerLanguage("brainfuck",Ret()),t.registerLanguage("c",Net()),t.registerLanguage("cal",Iet()),t.registerLanguage("capnproto",Oet()),t.registerLanguage("ceylon",Det()),t.registerLanguage("clean",Let()),t.registerLanguage("clojure",Met()),t.registerLanguage("clojure-repl",Pet()),t.registerLanguage("cmake",Bet()),t.registerLanguage("coffeescript",Fet()),t.registerLanguage("coq",$et()),t.registerLanguage("cos",zet()),t.registerLanguage("cpp",Uet()),t.registerLanguage("crmsh",Get()),t.registerLanguage("crystal",qet()),t.registerLanguage("csharp",Yet()),t.registerLanguage("csp",Het()),t.registerLanguage("css",Vet()),t.registerLanguage("d",Wet()),t.registerLanguage("markdown",Ket()),t.registerLanguage("dart",Xet()),t.registerLanguage("delphi",jet()),t.registerLanguage("diff",Qet()),t.registerLanguage("django",Zet()),t.registerLanguage("dns",Jet()),t.registerLanguage("dockerfile",ett()),t.registerLanguage("dos",ttt()),t.registerLanguage("dsconfig",rtt()),t.registerLanguage("dts",ntt()),t.registerLanguage("dust",att()),t.registerLanguage("ebnf",itt()),t.registerLanguage("elixir",stt()),t.registerLanguage("elm",ott()),t.registerLanguage("ruby",ltt()),t.registerLanguage("erb",ctt()),t.registerLanguage("erlang-repl",utt()),t.registerLanguage("erlang",dtt()),t.registerLanguage("excel",htt()),t.registerLanguage("fix",ftt()),t.registerLanguage("flix",ptt()),t.registerLanguage("fortran",gtt()),t.registerLanguage("fsharp",mtt()),t.registerLanguage("gams",vtt()),t.registerLanguage("gauss",ytt()),t.registerLanguage("gcode",_tt()),t.registerLanguage("gherkin",btt()),t.registerLanguage("glsl",Ett()),t.registerLanguage("gml",Stt()),t.registerLanguage("go",Ttt()),t.registerLanguage("golo",xtt()),t.registerLanguage("gradle",Ctt()),t.registerLanguage("graphql",wtt()),t.registerLanguage("groovy",ktt()),t.registerLanguage("haml",Att()),t.registerLanguage("handlebars",Rtt()),t.registerLanguage("haskell",Ntt()),t.registerLanguage("haxe",Itt()),t.registerLanguage("hsp",Ott()),t.registerLanguage("http",Dtt()),t.registerLanguage("hy",Ltt()),t.registerLanguage("inform7",Mtt()),t.registerLanguage("ini",Ptt()),t.registerLanguage("irpf90",Btt()),t.registerLanguage("isbl",Ftt()),t.registerLanguage("java",$tt()),t.registerLanguage("javascript",ztt()),t.registerLanguage("jboss-cli",Utt()),t.registerLanguage("json",Gtt()),t.registerLanguage("julia",qtt()),t.registerLanguage("julia-repl",Ytt()),t.registerLanguage("kotlin",Htt()),t.registerLanguage("lasso",Vtt()),t.registerLanguage("latex",Wtt()),t.registerLanguage("ldif",Ktt()),t.registerLanguage("leaf",Xtt()),t.registerLanguage("less",jtt()),t.registerLanguage("lisp",Qtt()),t.registerLanguage("livecodeserver",Ztt()),t.registerLanguage("livescript",Jtt()),t.registerLanguage("llvm",ert()),t.registerLanguage("lsl",trt()),t.registerLanguage("lua",rrt()),t.registerLanguage("makefile",nrt()),t.registerLanguage("mathematica",art()),t.registerLanguage("matlab",irt()),t.registerLanguage("maxima",srt()),t.registerLanguage("mel",ort()),t.registerLanguage("mercury",lrt()),t.registerLanguage("mipsasm",crt()),t.registerLanguage("mizar",urt()),t.registerLanguage("perl",drt()),t.registerLanguage("mojolicious",hrt()),t.registerLanguage("monkey",frt()),t.registerLanguage("moonscript",prt()),t.registerLanguage("n1ql",grt()),t.registerLanguage("nestedtext",mrt()),t.registerLanguage("nginx",vrt()),t.registerLanguage("nim",yrt()),t.registerLanguage("nix",_rt()),t.registerLanguage("node-repl",brt()),t.registerLanguage("nsis",Ert()),t.registerLanguage("objectivec",Srt()),t.registerLanguage("ocaml",Trt()),t.registerLanguage("openscad",xrt()),t.registerLanguage("oxygene",Crt()),t.registerLanguage("parser3",wrt()),t.registerLanguage("pf",krt()),t.registerLanguage("pgsql",Art()),t.registerLanguage("php",Rrt()),t.registerLanguage("php-template",Nrt()),t.registerLanguage("plaintext",Irt()),t.registerLanguage("pony",Ort()),t.registerLanguage("powershell",Drt()),t.registerLanguage("processing",Lrt()),t.registerLanguage("profile",Mrt()),t.registerLanguage("prolog",Prt()),t.registerLanguage("properties",Brt()),t.registerLanguage("protobuf",Frt()),t.registerLanguage("puppet",$rt()),t.registerLanguage("purebasic",zrt()),t.registerLanguage("python",Urt()),t.registerLanguage("python-repl",Grt()),t.registerLanguage("q",qrt()),t.registerLanguage("qml",Yrt()),t.registerLanguage("r",Hrt()),t.registerLanguage("reasonml",Vrt()),t.registerLanguage("rib",Wrt()),t.registerLanguage("roboconf",Krt()),t.registerLanguage("routeros",Xrt()),t.registerLanguage("rsl",jrt()),t.registerLanguage("ruleslanguage",Qrt()),t.registerLanguage("rust",Zrt()),t.registerLanguage("sas",Jrt()),t.registerLanguage("scala",ent()),t.registerLanguage("scheme",tnt()),t.registerLanguage("scilab",rnt()),t.registerLanguage("scss",nnt()),t.registerLanguage("shell",ant()),t.registerLanguage("smali",int()),t.registerLanguage("smalltalk",snt()),t.registerLanguage("sml",ont()),t.registerLanguage("sqf",lnt()),t.registerLanguage("sql",cnt()),t.registerLanguage("stan",unt()),t.registerLanguage("stata",dnt()),t.registerLanguage("step21",hnt()),t.registerLanguage("stylus",fnt()),t.registerLanguage("subunit",pnt()),t.registerLanguage("swift",gnt()),t.registerLanguage("taggerscript",mnt()),t.registerLanguage("yaml",vnt()),t.registerLanguage("tap",ynt()),t.registerLanguage("tcl",_nt()),t.registerLanguage("thrift",bnt()),t.registerLanguage("tp",Ent()),t.registerLanguage("twig",Snt()),t.registerLanguage("typescript",Tnt()),t.registerLanguage("vala",xnt()),t.registerLanguage("vbnet",Cnt()),t.registerLanguage("vbscript",wnt()),t.registerLanguage("vbscript-html",knt()),t.registerLanguage("verilog",Ant()),t.registerLanguage("vhdl",Rnt()),t.registerLanguage("vim",Nnt()),t.registerLanguage("wasm",Int()),t.registerLanguage("wren",Ont()),t.registerLanguage("x86asm",Dnt()),t.registerLanguage("xl",Lnt()),t.registerLanguage("xquery",Mnt()),t.registerLanguage("zephir",Pnt()),t.HighlightJS=t,t.default=t,T9=t,T9}var x9,Cte;function Fnt(){if(Cte)return x9;Cte=1;var t=Object.defineProperty,e=Object.defineProperties,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(T,w,R)=>w in T?t(T,w,{enumerable:!0,configurable:!0,writable:!0,value:R}):T[w]=R,u=(T,w)=>{for(var R in w||(w={}))s.call(w,R)&&l(T,R,w[R]);if(i)for(var R of i(w))o.call(w,R)&&l(T,R,w[R]);return T},d=(T,w)=>e(T,n(w)),h=(T,w)=>{for(var R in w)t(T,R,{get:w[R],enumerable:!0})},f=(T,w,R,O)=>{if(w&&typeof w=="object"||typeof w=="function")for(let M of a(w))!s.call(T,M)&&M!==R&&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}),x9=p(g);function m(T,w){for(const[R,O]of Object.entries(w))T.registerLanguage(R,O)}function v(T,w){for(const[R,O]of Object.entries(w))T.registerAliases(O,{languageName:R})}function y(T,w,R,O,M){try{return w.highlight(O,{language:M!==""?M:"plaintext",ignoreIllegals:R}).value}catch{return T.utils.escapeHtml(O)}}function b(T,w,R,O,M){if(M!=="")return y(T,w,R,O,M);try{return w.highlightAuto(O).value}catch{return T.utils.escapeHtml(O)}}function _(T){return function(...R){return T(...R).replace(//g,'')}}function S(T){var w,R;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+=`${(R=T.md.options.langPrefix)!=null?R:"language-"}${I}`,$.attrSet("class",D),$.meta=d(u({},$.meta),{highlightLanguage:I})}}function x(T,w,R,O,M){var $,F;const A=T[w];if(R.highlight==null)throw new Error("`options.highlight` was null, this is not supposed to happen");const I=R.highlight(A.content,(F=($=A.meta)==null?void 0:$.highlightLanguage)!=null?F:"","");return`${I}`}function C(T,w){const R=u(u({},C.defaults),w);if(R.hljs==null)throw new Error("Please pass a highlight.js instance for the required `hljs` option.");R.register!=null&&m(R.hljs,R.register),R.registerAliases!=null&&v(R.hljs,R.registerAliases),T.options.highlight=(R.auto?b:y).bind(null,T,R.hljs,R.ignoreIllegals),T.renderer.rules.fence!=null&&(T.renderer.rules.fence=_(T.renderer.rules.fence)),R.code&&T.renderer.rules.code_block!=null&&(T.renderer.rules.code_block=_(T.renderer.rules.code_block)),R.inline&&(T.core.ruler.before("linkify","inline_code_language",S),T.renderer.rules.code_inline=_(x))}return C.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1},x9}var C9,wte;function $nt(){if(wte)return C9;wte=1;var t=Object.create,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(b,_,S)=>_ in b?e(b,_,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[_]=S,u=(b,_)=>{for(var S in _||(_={}))s.call(_,S)&&l(b,S,_[S]);if(a)for(var S of a(_))o.call(_,S)&&l(b,S,_[S]);return b},d=(b,_)=>{for(var S in _)e(b,S,{get:_[S],enumerable:!0})},h=(b,_,S,x)=>{if(_&&typeof _=="object"||typeof _=="function")for(let C of n(_))!s.call(b,C)&&C!==S&&e(b,C,{get:()=>_[C],enumerable:!(x=r(_,C))||x.enumerable});return b},f=(b,_,S)=>(S=b!=null?t(i(b)):{},h(!b||!b.__esModule?e(S,"default",{value:b,enumerable:!0}):S,b)),p=b=>h(e({},"__esModule",{value:!0}),b),g={};d(g,{default:()=>y}),C9=p(g);var m=f(Bnt()),v=f(Fnt());function y(b,_){return _=u(u({},y.defaults),_),_.hljs==null&&(_.hljs=m.default),(0,v.default)(b,_)}return y.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0},C9}var w9,kte;function znt(){return kte||(kte=1,w9=$nt().default),w9}var U1e=znt();const Unt=Fl(U1e),Gnt=ONe({__proto__:null,default:Unt},[U1e]);let jt=class G1e extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15t.replace(qnt,"-$1").toLowerCase(),Ynt={"&":"&",">":">","<":"<",'"':""","'":"'"},Hnt=/[&><"']/g,hs=t=>String(t).replace(Hnt,e=>Ynt[e]),dS=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?dS(t.body[0]):t:t.type==="font"?dS(t.body):t,Vnt=new Set(["mathord","textord","atom"]),Q0=t=>Vnt.has(dS(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"},oB={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{}}}let tq=class{constructor(e){e===void 0&&(e={}),e=e||{};for(var r of Object.keys(oB)){var n=oB[r],a=e[r];this[r]=a!==void 0?n.processor?n.processor(a):a:Knt(n)}}reportNonstrict(e,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new jt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);a==="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 '"+a+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var a=this.strict;if(typeof a=="function")try{a=a(e,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="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 '"+a+"': "+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}},yd=class{constructor(e,r,n){this.id=e,this.size=r,this.cramped=n}sup(){return Uc[Xnt[this.id]]}sub(){return Uc[jnt[this.id]]}fracNum(){return Uc[Qnt[this.id]]}fracDen(){return Uc[Znt[this.id]]}cramp(){return Uc[Jnt[this.id]]}text(){return Uc[eat[this.id]]}isTight(){return this.size>=2}};var rq=0,T6=1,i1=2,S0=3,l4=4,El=5,pb=6,Fs=7,Uc=[new yd(rq,0,!1),new yd(T6,0,!0),new yd(i1,1,!1),new yd(S0,1,!0),new yd(l4,2,!1),new yd(El,2,!0),new yd(pb,3,!1),new yd(Fs,3,!0)],Xnt=[l4,El,l4,El,pb,Fs,pb,Fs],jnt=[El,El,El,El,Fs,Fs,Fs,Fs],Qnt=[i1,S0,l4,El,pb,Fs,pb,Fs],Znt=[S0,S0,El,El,Fs,Fs,Fs,Fs],Jnt=[T6,T6,S0,S0,El,El,Fs,Fs],eat=[rq,T6,i1,S0,i1,S0,i1,S0],Qr={DISPLAY:Uc[rq],TEXT:Uc[i1],SCRIPT:Uc[l4],SCRIPTSCRIPT:Uc[pb]},lB=[{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 tat(t){for(var e=0;e=a[0]&&t<=a[1])return r.name}return null}var v5=[];lB.forEach(t=>t.blocks.forEach(e=>v5.push(...e)));function q1e(t){for(var e=0;e=v5[e]&&t<=v5[e+1])return!0;return!1}var Hg=80,rat=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 e9=t,e9}var t9,rte;function mnt(){if(rte)return t9;rte=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 R=w[w.length-1];return typeof R=="object"&&R.constructor===Object?(w.splice(w.length-1,1),R):{}}function a(...w){return"("+(n(w).capture?"":"?:")+w.map(M=>t(M)).join("|")+")"}const i=w=>r(/\b/,w,/\w$/.test(w)?/\b/:/\B/),s=["Protocol","Type"].map(i),o=["init","self"].map(i),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=a(/[/=\-+!*%<>&|^~?]/,/[\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=a(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=r(g,m,"*"),y=a(/[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=a(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=r(y,b,"*"),S=r(/[A-Z]/,b,"*"),x=["attached","autoclosure",r(/convention\(/,a("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 R={match:/\s+/,relevance:0},O=w.COMMENT("/\\*","\\*/",{contains:["self"]}),M=[w.C_LINE_COMMENT_MODE,O],$={match:[/\./,a(...s,...o)],className:{2:"keyword"}},F={match:r(/\./,a(...u)),relevance:0},A=u.filter(Pe=>typeof Pe=="string").concat(["_|0"]),I=u.filter(Pe=>typeof Pe!="string").concat(l).map(i),D={variants:[{className:"keyword",match:a(...I,...o)}]},L={$pattern:a(/\b\w+/,/#\w+/),keyword:A.concat(f),literal:d},N=[$,F,D],P={match:r(/\./,a(...p)),relevance:0},z={className:"built_in",match:r(/\b/,a(...p),/(?=\()/)},B=[P,z],U={match:/->/,relevance:0},G={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${m})+`}]},K=[U,G],Y="([0-9]_*)+",ee="([0-9a-fA-F]_*)+",X={className:"number",relevance:0,variants:[{match:`\\b(${Y})(\\.(${Y}))?([eE][+-]?(${Y}))?\\b`},{match:`\\b0x(${ee})(\\.(${ee}))?([pP][+-]?(${Y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},le=(Pe="")=>({className:"subst",variants:[{match:r(/\\/,Pe,/[0\\tnr"']/)},{match:r(/\\/,Pe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),te=(Pe="")=>({className:"subst",match:r(/\\/,Pe,/[\t ]*(?:[\r\n]|\r\n)/)}),ne=(Pe="")=>({className:"subst",label:"interpol",begin:r(/\\/,Pe,/\(/),end:/\)/}),ae=(Pe="")=>({begin:r(Pe,/"""/),end:r(/"""/,Pe),contains:[le(Pe),te(Pe),ne(Pe)]}),re=(Pe="")=>({begin:r(Pe,/"/),end:r(/"/,Pe),contains:[le(Pe),ne(Pe)]}),ge={className:"string",variants:[ae(),ae("#"),ae("##"),ae("###"),re(),re("#"),re("##"),re("###")]},pe=[w.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[w.BACKSLASH_ESCAPE]}],Be={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:pe},Le=Pe=>{const Ie=r(Pe,/\//),Ze=r(/\//,Pe);return{begin:Ie,end:Ze,contains:[...pe,{scope:"comment",begin:`#(?!.*${Ze})`,end:/$/}]}},He={scope:"regexp",variants:[Le("###"),Le("##"),Le("#"),Be]},Re={match:r(/`/,_,/`/)},xe={className:"variable",match:/\$\d+/},$e={className:"variable",match:`\\$${b}+`},Ce=[Re,xe,$e],ut={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:C,contains:[...K,X,ge]}]}},Ae={scope:"keyword",match:r(/@/,a(...x),e(a(/\(/,/\s+/)))},je={scope:"meta",match:r(/@/,_)},ot=[ut,Ae,je],lt={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:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,e(S)),relevance:0}]},ct={begin://,keywords:L,contains:[...M,...N,...ot,U,lt]};lt.contains.push(ct);const it={match:r(_,/\s*:/),keywords:"_|0",relevance:0},ke={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",it,...M,He,...N,...B,...K,X,ge,...Ce,...ot,lt]},Qe={begin://,keywords:"repeat each",contains:[...M,lt]},_e={begin:a(e(r(_,/\s*:/)),e(r(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},ye={begin:/\(/,end:/\)/,keywords:L,contains:[_e,...M,...N,...K,X,ge,...ot,lt,ke],endsParent:!0,illegal:/["']/},q={match:[/(func|macro)/,/\s+/,a(Re.match,_,v)],className:{1:"keyword",3:"title.function"},contains:[Qe,ye,R],illegal:[/\[/,/%/]},fe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Qe,ye,R],illegal:/\[|%/},j={match:[/operator/,/\s+/,v],className:{1:"keyword",3:"title"}},we={begin:[/precedencegroup/,/\s+/,S],className:{1:"keyword",3:"title"},contains:[lt],keywords:[...h,...d],end:/}/},Te={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},rt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Oe={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,_,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:L,contains:[Qe,...N,{begin:/:/,end:/\{/,keywords:L,contains:[{scope:"title.class.inherited",match:S},...N],relevance:0}]};for(const Pe of ge.variants){const Ie=Pe.contains.find(ze=>ze.label==="interpol");Ie.keywords=L;const Ze=[...N,...B,...K,X,ge,...Ce];Ie.contains=[...Ze,{begin:/\(/,end:/\)/,contains:["self",...Ze]}]}return{name:"Swift",keywords:L,contains:[...M,q,fe,Te,rt,Oe,j,we,{beginKeywords:"import",end:/$/,contains:[...M],relevance:0},He,...N,...B,...K,X,ge,...Ce,...ot,lt,ke]}}return t9=T,t9}var r9,nte;function vnt(){if(nte)return r9;nte=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 r9=t,r9}var n9,ate;function ynt(){if(ate)return n9;ate=1;function t(e){const r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={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,i]},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},v={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},y=[a,{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,v,s,o],b=[...y];return b.pop(),b.push(l),g.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:y}}return n9=t,n9}var a9,ite;function _nt(){if(ite)return a9;ite=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 a9=t,a9}var i9,ste;function bnt(){if(ste)return i9;ste=1;function t(e){const r=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,a={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:[a]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},a]}}return i9=t,i9}var s9,ote;function Ent(){if(ote)return s9;ote=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 s9=t,s9}var o9,lte;function Snt(){if(lte)return o9;lte=1;function t(e){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},a={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]},i={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:[a,i,{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 o9=t,o9}var l9,cte;function Tnt(){if(cte)return l9;cte=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"],a=["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 i=["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"];i=i.concat(i.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:a}]},h=(m,{relevance:v})=>({beginScope:{1:"template-tag",3:"name"},relevance:v||2,endScope:"template-tag",begin:[/\{%/,/\s*/,r.either(...m)],end:/%\}/,keywords:"in",contains:[d,u,s,o]}),f=/[a-z_]+/,p=h(i,{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 l9=t,l9}var c9,ute;function xnt(){if(ute)return c9;ute=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"],a=["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"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(i,n,a);function l(d){const h=d.regex,f=(le,{after:te})=>{const ne="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(le,te)=>{const ne=le[0].length+le.index,ae=le.input[ne];if(ae==="<"||ae===","){te.ignoreMatch();return}ae===">"&&(f(le,{after:ne})||te.ignoreMatch());let re;const ge=le.input.substring(ne);if(re=ge.match(/^\s*=/)){te.ignoreMatch();return}if((re=ge.match(/^\s+extends\s+/))&&re.index===0){te.ignoreMatch();return}}},y={$pattern:t,keyword:e,literal:r,built_in:o,"variable.language":s},b="[0-9](_?[0-9])*",_=`\\.(${b})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${S})((${_})|\\.)?|(${_}))[eE][+-]?(${b})\\b`},{begin:`\\b(${S})\\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:y,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"}},R={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,R,O,{match:/\$\d+/},x];C.contains=F.concat({begin:/\{/,end:/\}/,keywords:y,contains:["self"].concat(F)});const A=[].concat($,C.contains),I=A.concat([{begin:/(\s*)\(/,end:/\)/,keywords:y,contains:["self"].concat(A)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,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"}}]},N={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,...a]}},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 U(le){return h.concat("(?!",le.join("|"),")")}const G={match:h.concat(/\b/,U([...i,"super","import"].map(le=>`${le}\\s*\\(`)),p,h.lookahead(/\s*\(/)),className:"title.function",relevance:0},K={begin:h.concat(/\./,h.lookahead(h.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:y,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,T,w,R,O,$,{match:/\$\d+/},x,N,{scope:"attr",match:p+h.lookahead(":"),relevance:0},X,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[$,d.REGEXP_MODE,{className:"function",begin:ee,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:y,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:m},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.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},K,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},G,B,L,Y,{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"}},v={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[f.exports.CLASS_REFERENCE]},y={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},S={className:"meta",begin:"@"+p},x=(R,O,M)=>{const $=R.contains.findIndex(F=>F.label===O);if($===-1)throw new Error("can not find mode to replace");R.contains.splice($,1,M)};Object.assign(f.keywords,_),f.exports.PARAMS_CONTAINS.push(S);const C=f.contains.find(R=>R.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([S,m,v,T]),x(f,"shebang",d.SHEBANG()),x(f,"use_strict",y);const w=f.contains.find(R=>R.label==="func.def");return w.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return c9=u,c9}var u9,dte;function Cnt(){if(dte)return u9;dte=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 u9=t,u9}var d9,hte;function wnt(){if(hte)return d9;hte=1;function t(e){const r=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},a={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\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,i),/ *#/)},{begin:r.concat(/# */,l,/ *#/)},{begin:r.concat(/# */,o,/ *#/)},{begin:r.concat(/# */,r.either(s,i),/ +/,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,a,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 d9=t,d9}var h9,fte;function knt(){if(fte)return h9;fte=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"],a=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],i={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:a,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[i,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return h9=t,h9}var f9,pte;function Ant(){if(pte)return f9;pte=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return f9=t,f9}var p9,gte;function Rnt(){if(gte)return p9;gte=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"]},a=["__FILE__","__LINE__"],i=["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(...a))},{scope:"meta",begin:r.concat(/`/,r.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}return p9=t,p9}var g9,mte;function Nnt(){if(mte)return g9;mte=1;function t(e){const r="\\d(_|\\d)*",n="[eE][-+]?"+r,a=r+"(\\."+r+")?("+n+")?",i="\\w+",o="\\b("+(r+"#"+i+"(\\."+i+")?#("+n+")?")+"|"+a+")";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 g9=t,g9}var m9,vte;function Int(){if(vte)return m9;vte=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 m9=t,m9}var v9,yte;function Ont(){if(yte)return v9;yte=1;function t(e){e.regex;const r=e.COMMENT(/\(;/,/;\)/);r.contains.push("self");const n=e.COMMENT(/;;/,/$/),a=["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"],i={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:a},contains:[n,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,i,e.QUOTE_STRING_MODE,u,d,l]}}return v9=t,v9}var y9,_te;function Dnt(){if(_te)return y9;_te=1;function t(e){const r=e.regex,n=/[a-zA-Z]\w*/,a=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],i=["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:a},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"},v={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:o}},y=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"]}),S={scope:"subst",begin:/%\(/,end:/\)/,contains:[y,v,u,m,f]},x={scope:"string",begin:/"/,end:/"/,contains:[S,{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}/}]}]};S.contains.push(x);const C=[...a,...s,...i],T={relevance:0,match:r.concat("\\b(?!",C.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:a,"variable.language":s,literal:i},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},y,x,p,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,v,h,b,d,u,f,m,g,T]}}return y9=t,y9}var _9,bte;function Lnt(){if(bte)return _9;bte=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 _9=t,_9}var b9,Ete;function Mnt(){if(Ete)return b9;Ete=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"],a=["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(a)},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 b9=t,b9}var E9,Ste;function Pnt(){if(Ste)return E9;Ste=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 E9=t,E9}var S9,Tte;function Bnt(){if(Tte)return S9;Tte=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,a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i="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:i,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:i,contains:["self",e.C_BLOCK_COMMENT_MODE,r,a]}]},{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,a]}}return S9=t,S9}var T9,xte;function Fnt(){if(xte)return T9;xte=1;var t=iet();return t.registerLanguage("1c",set()),t.registerLanguage("abnf",oet()),t.registerLanguage("accesslog",cet()),t.registerLanguage("actionscript",uet()),t.registerLanguage("ada",det()),t.registerLanguage("angelscript",het()),t.registerLanguage("apache",fet()),t.registerLanguage("applescript",pet()),t.registerLanguage("arcade",get()),t.registerLanguage("arduino",met()),t.registerLanguage("armasm",vet()),t.registerLanguage("xml",yet()),t.registerLanguage("asciidoc",_et()),t.registerLanguage("aspectj",bet()),t.registerLanguage("autohotkey",Eet()),t.registerLanguage("autoit",Tet()),t.registerLanguage("avrasm",xet()),t.registerLanguage("awk",Cet()),t.registerLanguage("axapta",wet()),t.registerLanguage("bash",ket()),t.registerLanguage("basic",Aet()),t.registerLanguage("bnf",Ret()),t.registerLanguage("brainfuck",Net()),t.registerLanguage("c",Iet()),t.registerLanguage("cal",Oet()),t.registerLanguage("capnproto",Det()),t.registerLanguage("ceylon",Let()),t.registerLanguage("clean",Met()),t.registerLanguage("clojure",Pet()),t.registerLanguage("clojure-repl",Bet()),t.registerLanguage("cmake",Fet()),t.registerLanguage("coffeescript",$et()),t.registerLanguage("coq",zet()),t.registerLanguage("cos",Uet()),t.registerLanguage("cpp",Get()),t.registerLanguage("crmsh",qet()),t.registerLanguage("crystal",Yet()),t.registerLanguage("csharp",Het()),t.registerLanguage("csp",Vet()),t.registerLanguage("css",Wet()),t.registerLanguage("d",Ket()),t.registerLanguage("markdown",Xet()),t.registerLanguage("dart",jet()),t.registerLanguage("delphi",Qet()),t.registerLanguage("diff",Zet()),t.registerLanguage("django",Jet()),t.registerLanguage("dns",ett()),t.registerLanguage("dockerfile",ttt()),t.registerLanguage("dos",rtt()),t.registerLanguage("dsconfig",ntt()),t.registerLanguage("dts",att()),t.registerLanguage("dust",itt()),t.registerLanguage("ebnf",stt()),t.registerLanguage("elixir",ott()),t.registerLanguage("elm",ltt()),t.registerLanguage("ruby",ctt()),t.registerLanguage("erb",utt()),t.registerLanguage("erlang-repl",dtt()),t.registerLanguage("erlang",htt()),t.registerLanguage("excel",ftt()),t.registerLanguage("fix",ptt()),t.registerLanguage("flix",gtt()),t.registerLanguage("fortran",mtt()),t.registerLanguage("fsharp",vtt()),t.registerLanguage("gams",ytt()),t.registerLanguage("gauss",_tt()),t.registerLanguage("gcode",btt()),t.registerLanguage("gherkin",Ett()),t.registerLanguage("glsl",Stt()),t.registerLanguage("gml",Ttt()),t.registerLanguage("go",xtt()),t.registerLanguage("golo",Ctt()),t.registerLanguage("gradle",wtt()),t.registerLanguage("graphql",ktt()),t.registerLanguage("groovy",Att()),t.registerLanguage("haml",Rtt()),t.registerLanguage("handlebars",Ntt()),t.registerLanguage("haskell",Itt()),t.registerLanguage("haxe",Ott()),t.registerLanguage("hsp",Dtt()),t.registerLanguage("http",Ltt()),t.registerLanguage("hy",Mtt()),t.registerLanguage("inform7",Ptt()),t.registerLanguage("ini",Btt()),t.registerLanguage("irpf90",Ftt()),t.registerLanguage("isbl",$tt()),t.registerLanguage("java",ztt()),t.registerLanguage("javascript",Utt()),t.registerLanguage("jboss-cli",Gtt()),t.registerLanguage("json",qtt()),t.registerLanguage("julia",Ytt()),t.registerLanguage("julia-repl",Htt()),t.registerLanguage("kotlin",Vtt()),t.registerLanguage("lasso",Wtt()),t.registerLanguage("latex",Ktt()),t.registerLanguage("ldif",Xtt()),t.registerLanguage("leaf",jtt()),t.registerLanguage("less",Qtt()),t.registerLanguage("lisp",Ztt()),t.registerLanguage("livecodeserver",Jtt()),t.registerLanguage("livescript",ert()),t.registerLanguage("llvm",trt()),t.registerLanguage("lsl",rrt()),t.registerLanguage("lua",nrt()),t.registerLanguage("makefile",art()),t.registerLanguage("mathematica",irt()),t.registerLanguage("matlab",srt()),t.registerLanguage("maxima",ort()),t.registerLanguage("mel",lrt()),t.registerLanguage("mercury",crt()),t.registerLanguage("mipsasm",urt()),t.registerLanguage("mizar",drt()),t.registerLanguage("perl",hrt()),t.registerLanguage("mojolicious",frt()),t.registerLanguage("monkey",prt()),t.registerLanguage("moonscript",grt()),t.registerLanguage("n1ql",mrt()),t.registerLanguage("nestedtext",vrt()),t.registerLanguage("nginx",yrt()),t.registerLanguage("nim",_rt()),t.registerLanguage("nix",brt()),t.registerLanguage("node-repl",Ert()),t.registerLanguage("nsis",Srt()),t.registerLanguage("objectivec",Trt()),t.registerLanguage("ocaml",xrt()),t.registerLanguage("openscad",Crt()),t.registerLanguage("oxygene",wrt()),t.registerLanguage("parser3",krt()),t.registerLanguage("pf",Art()),t.registerLanguage("pgsql",Rrt()),t.registerLanguage("php",Nrt()),t.registerLanguage("php-template",Irt()),t.registerLanguage("plaintext",Ort()),t.registerLanguage("pony",Drt()),t.registerLanguage("powershell",Lrt()),t.registerLanguage("processing",Mrt()),t.registerLanguage("profile",Prt()),t.registerLanguage("prolog",Brt()),t.registerLanguage("properties",Frt()),t.registerLanguage("protobuf",$rt()),t.registerLanguage("puppet",zrt()),t.registerLanguage("purebasic",Urt()),t.registerLanguage("python",Grt()),t.registerLanguage("python-repl",qrt()),t.registerLanguage("q",Yrt()),t.registerLanguage("qml",Hrt()),t.registerLanguage("r",Vrt()),t.registerLanguage("reasonml",Wrt()),t.registerLanguage("rib",Krt()),t.registerLanguage("roboconf",Xrt()),t.registerLanguage("routeros",jrt()),t.registerLanguage("rsl",Qrt()),t.registerLanguage("ruleslanguage",Zrt()),t.registerLanguage("rust",Jrt()),t.registerLanguage("sas",ent()),t.registerLanguage("scala",tnt()),t.registerLanguage("scheme",rnt()),t.registerLanguage("scilab",nnt()),t.registerLanguage("scss",ant()),t.registerLanguage("shell",int()),t.registerLanguage("smali",snt()),t.registerLanguage("smalltalk",ont()),t.registerLanguage("sml",lnt()),t.registerLanguage("sqf",cnt()),t.registerLanguage("sql",unt()),t.registerLanguage("stan",dnt()),t.registerLanguage("stata",hnt()),t.registerLanguage("step21",fnt()),t.registerLanguage("stylus",pnt()),t.registerLanguage("subunit",gnt()),t.registerLanguage("swift",mnt()),t.registerLanguage("taggerscript",vnt()),t.registerLanguage("yaml",ynt()),t.registerLanguage("tap",_nt()),t.registerLanguage("tcl",bnt()),t.registerLanguage("thrift",Ent()),t.registerLanguage("tp",Snt()),t.registerLanguage("twig",Tnt()),t.registerLanguage("typescript",xnt()),t.registerLanguage("vala",Cnt()),t.registerLanguage("vbnet",wnt()),t.registerLanguage("vbscript",knt()),t.registerLanguage("vbscript-html",Ant()),t.registerLanguage("verilog",Rnt()),t.registerLanguage("vhdl",Nnt()),t.registerLanguage("vim",Int()),t.registerLanguage("wasm",Ont()),t.registerLanguage("wren",Dnt()),t.registerLanguage("x86asm",Lnt()),t.registerLanguage("xl",Mnt()),t.registerLanguage("xquery",Pnt()),t.registerLanguage("zephir",Bnt()),t.HighlightJS=t,t.default=t,T9=t,T9}var x9,Cte;function $nt(){if(Cte)return x9;Cte=1;var t=Object.defineProperty,e=Object.defineProperties,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(T,w,R)=>w in T?t(T,w,{enumerable:!0,configurable:!0,writable:!0,value:R}):T[w]=R,u=(T,w)=>{for(var R in w||(w={}))s.call(w,R)&&l(T,R,w[R]);if(i)for(var R of i(w))o.call(w,R)&&l(T,R,w[R]);return T},d=(T,w)=>e(T,n(w)),h=(T,w)=>{for(var R in w)t(T,R,{get:w[R],enumerable:!0})},f=(T,w,R,O)=>{if(w&&typeof w=="object"||typeof w=="function")for(let M of a(w))!s.call(T,M)&&M!==R&&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}),x9=p(g);function m(T,w){for(const[R,O]of Object.entries(w))T.registerLanguage(R,O)}function v(T,w){for(const[R,O]of Object.entries(w))T.registerAliases(O,{languageName:R})}function y(T,w,R,O,M){try{return w.highlight(O,{language:M!==""?M:"plaintext",ignoreIllegals:R}).value}catch{return T.utils.escapeHtml(O)}}function b(T,w,R,O,M){if(M!=="")return y(T,w,R,O,M);try{return w.highlightAuto(O).value}catch{return T.utils.escapeHtml(O)}}function _(T){return function(...R){return T(...R).replace(//g,'')}}function S(T){var w,R;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+=`${(R=T.md.options.langPrefix)!=null?R:"language-"}${I}`,$.attrSet("class",D),$.meta=d(u({},$.meta),{highlightLanguage:I})}}function x(T,w,R,O,M){var $,F;const A=T[w];if(R.highlight==null)throw new Error("`options.highlight` was null, this is not supposed to happen");const I=R.highlight(A.content,(F=($=A.meta)==null?void 0:$.highlightLanguage)!=null?F:"","");return`${I}`}function C(T,w){const R=u(u({},C.defaults),w);if(R.hljs==null)throw new Error("Please pass a highlight.js instance for the required `hljs` option.");R.register!=null&&m(R.hljs,R.register),R.registerAliases!=null&&v(R.hljs,R.registerAliases),T.options.highlight=(R.auto?b:y).bind(null,T,R.hljs,R.ignoreIllegals),T.renderer.rules.fence!=null&&(T.renderer.rules.fence=_(T.renderer.rules.fence)),R.code&&T.renderer.rules.code_block!=null&&(T.renderer.rules.code_block=_(T.renderer.rules.code_block)),R.inline&&(T.core.ruler.before("linkify","inline_code_language",S),T.renderer.rules.code_inline=_(x))}return C.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1},x9}var C9,wte;function znt(){if(wte)return C9;wte=1;var t=Object.create,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(b,_,S)=>_ in b?e(b,_,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[_]=S,u=(b,_)=>{for(var S in _||(_={}))s.call(_,S)&&l(b,S,_[S]);if(a)for(var S of a(_))o.call(_,S)&&l(b,S,_[S]);return b},d=(b,_)=>{for(var S in _)e(b,S,{get:_[S],enumerable:!0})},h=(b,_,S,x)=>{if(_&&typeof _=="object"||typeof _=="function")for(let C of n(_))!s.call(b,C)&&C!==S&&e(b,C,{get:()=>_[C],enumerable:!(x=r(_,C))||x.enumerable});return b},f=(b,_,S)=>(S=b!=null?t(i(b)):{},h(!b||!b.__esModule?e(S,"default",{value:b,enumerable:!0}):S,b)),p=b=>h(e({},"__esModule",{value:!0}),b),g={};d(g,{default:()=>y}),C9=p(g);var m=f(Fnt()),v=f($nt());function y(b,_){return _=u(u({},y.defaults),_),_.hljs==null&&(_.hljs=m.default),(0,v.default)(b,_)}return y.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0},C9}var w9,kte;function Unt(){return kte||(kte=1,w9=znt().default),w9}var U1e=Unt();const Gnt=Fl(U1e),qnt=ONe({__proto__:null,default:Gnt},[U1e]);let jt=class G1e extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15t.replace(Ynt,"-$1").toLowerCase(),Hnt={"&":"&",">":">","<":"<",'"':""","'":"'"},Vnt=/[&><"']/g,hs=t=>String(t).replace(Vnt,e=>Hnt[e]),dS=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?dS(t.body[0]):t:t.type==="font"?dS(t.body):t,Wnt=new Set(["mathord","textord","atom"]),Q0=t=>Wnt.has(dS(t).type),Knt=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"},oB={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 Xnt(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 tq=class{constructor(e){e===void 0&&(e={}),e=e||{};for(var r of Object.keys(oB)){var n=oB[r],a=e[r];this[r]=a!==void 0?n.processor?n.processor(a):a:Xnt(n)}}reportNonstrict(e,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new jt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);a==="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 '"+a+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var a=this.strict;if(typeof a=="function")try{a=a(e,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="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 '"+a+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Knt(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},yd=class{constructor(e,r,n){this.id=e,this.size=r,this.cramped=n}sup(){return Uc[jnt[this.id]]}sub(){return Uc[Qnt[this.id]]}fracNum(){return Uc[Znt[this.id]]}fracDen(){return Uc[Jnt[this.id]]}cramp(){return Uc[eat[this.id]]}text(){return Uc[tat[this.id]]}isTight(){return this.size>=2}};var rq=0,T6=1,i1=2,S0=3,l4=4,El=5,pb=6,Fs=7,Uc=[new yd(rq,0,!1),new yd(T6,0,!0),new yd(i1,1,!1),new yd(S0,1,!0),new yd(l4,2,!1),new yd(El,2,!0),new yd(pb,3,!1),new yd(Fs,3,!0)],jnt=[l4,El,l4,El,pb,Fs,pb,Fs],Qnt=[El,El,El,El,Fs,Fs,Fs,Fs],Znt=[i1,S0,l4,El,pb,Fs,pb,Fs],Jnt=[S0,S0,El,El,Fs,Fs,Fs,Fs],eat=[T6,T6,S0,S0,El,El,Fs,Fs],tat=[rq,T6,i1,S0,i1,S0,i1,S0],Qr={DISPLAY:Uc[rq],TEXT:Uc[i1],SCRIPT:Uc[l4],SCRIPTSCRIPT:Uc[pb]},lB=[{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 rat(t){for(var e=0;e=a[0]&&t<=a[1])return r.name}return null}var v5=[];lB.forEach(t=>t.blocks.forEach(e=>v5.push(...e)));function q1e(t){for(var e=0;e=v5[e]&&t<=v5[e+1])return!0;return!1}var Hg=80,nat=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 @@ -4122,7 +4127,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"},nat=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"},aat=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+` @@ -4132,7 +4137,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"},aat=function(e,r){return"M983 "+(10+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},iat=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 @@ -4141,7 +4146,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"},iat=function(e,r){return"M424,"+(2398+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},sat=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 @@ -4151,18 +4156,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"},sat=function(e,r){return"M473,"+(2713+e+r)+` +h400000v`+(40+e)+"h-400000z"},oat=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"},oat=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},lat=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` +606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},lat=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},cat=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` H742v`+a+`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"},cat=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=rat(r,Hg);break;case"sqrtSize1":a=nat(r,Hg);break;case"sqrtSize2":a=aat(r,Hg);break;case"sqrtSize3":a=iat(r,Hg);break;case"sqrtSize4":a=sat(r,Hg);break;case"sqrtTall":a=lat(r,Hg,n)}return a},uat=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""}},Ate={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},uat=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=nat(r,Hg);break;case"sqrtSize1":a=aat(r,Hg);break;case"sqrtSize2":a=iat(r,Hg);break;case"sqrtSize3":a=sat(r,Hg);break;case"sqrtSize4":a=oat(r,Hg);break;case"sqrtTall":a=cat(r,Hg,n)}return a},dat=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""}},Ate={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 @@ -4337,7 +4342,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`},dat=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`},hat=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 @@ -4365,19 +4370,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.")}},cB={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},hat={ex:!0,em:!0,mu:!0},Y1e=function(e){return typeof e!="string"&&(e=e.unit),e in cB||e in hat||e==="ex"},ka=function(e,r){var n;if(e.unit in cB)n=cB[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new jt("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},er=function(e){return+e.toFixed(4)+"em"},mh=function(e){return e.filter(r=>r).join(" ")},H1e=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 a=r.getColor();a&&(this.style.color=a)}},V1e=function(e){var r=document.createElement(e);r.className=mh(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var i=0;i/=\x00-\x1f]/,W1e=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+hs(mh(this.classes))+'"');var n="";for(var a of Object.keys(this.style))n+=eq(a)+":"+this.style[a]+";";n&&(r+=' style="'+hs(n)+'"');for(var i of Object.keys(this.attributes)){if(fat.test(i))throw new jt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+hs(this.attributes[i])+'"'}r+=">";for(var s=0;s",r};let TT=class{constructor(e,r,n,a){H1e.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return V1e.call(this,"span")}toMarkup(){return W1e.call(this,"span")}},nq=class{constructor(e,r,n,a){H1e.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return V1e.call(this,"a")}toMarkup(){return W1e.call(this,"a")}},pat=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=''+hs(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=er(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=mh(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 a of Object.keys(this.style))n+=eq(a)+":"+this.style[a]+";";n&&(e=!0,r+=' style="'+hs(n)+'"');var i=hs(this.text);return e?(r+=">",r+=i,r+="",r):i}},I0=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 a=0;a':''}},uB=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 Xc={"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]}},Hx={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]},Nte={Å:"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 vat(t,e){Xc[t]=e}function aq(t,e,r){if(!Xc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Xc[e][n];if(!a&&t[0]in Nte&&(n=Nte[t[0]].charCodeAt(0),a=Xc[e][n]),!a&&r==="text"&&q1e(n)&&(a=Xc[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var k9={};function yat(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!k9[e]){var r=k9[e]={cssEmPerMu:Hx.quad[e]/18};for(var n in Hx)Hx.hasOwnProperty(n)&&(r[n]=Hx[n][e])}return k9[e]}var _at={bin:1,close:1,inner:1,open:1,punct:1,rel:1},bat={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ha={math:{},text:{}};function W(t,e,r,n,a,i){ha[t][a]={font:e,group:r,replace:n},i&&n&&(ha[t][n]=ha[t][a])}var J="math",Ft="text",he="main",Ge="ams",ba="accent-token",ur="bin",to="close",i2="inner",Nr="mathord",hi="op-token",Ko="open",o7="punct",Ke="rel",Z0="spacing",tt="textord";W(J,he,Ke,"≡","\\equiv",!0);W(J,he,Ke,"≺","\\prec",!0);W(J,he,Ke,"≻","\\succ",!0);W(J,he,Ke,"∼","\\sim",!0);W(J,he,Ke,"⊥","\\perp");W(J,he,Ke,"⪯","\\preceq",!0);W(J,he,Ke,"⪰","\\succeq",!0);W(J,he,Ke,"≃","\\simeq",!0);W(J,he,Ke,"∣","\\mid",!0);W(J,he,Ke,"≪","\\ll",!0);W(J,he,Ke,"≫","\\gg",!0);W(J,he,Ke,"≍","\\asymp",!0);W(J,he,Ke,"∥","\\parallel");W(J,he,Ke,"⋈","\\bowtie",!0);W(J,he,Ke,"⌣","\\smile",!0);W(J,he,Ke,"⊑","\\sqsubseteq",!0);W(J,he,Ke,"⊒","\\sqsupseteq",!0);W(J,he,Ke,"≐","\\doteq",!0);W(J,he,Ke,"⌢","\\frown",!0);W(J,he,Ke,"∋","\\ni",!0);W(J,he,Ke,"∝","\\propto",!0);W(J,he,Ke,"⊢","\\vdash",!0);W(J,he,Ke,"⊣","\\dashv",!0);W(J,he,Ke,"∋","\\owns");W(J,he,o7,".","\\ldotp");W(J,he,o7,"⋅","\\cdotp");W(J,he,tt,"#","\\#");W(Ft,he,tt,"#","\\#");W(J,he,tt,"&","\\&");W(Ft,he,tt,"&","\\&");W(J,he,tt,"ℵ","\\aleph",!0);W(J,he,tt,"∀","\\forall",!0);W(J,he,tt,"ℏ","\\hbar",!0);W(J,he,tt,"∃","\\exists",!0);W(J,he,tt,"∇","\\nabla",!0);W(J,he,tt,"♭","\\flat",!0);W(J,he,tt,"ℓ","\\ell",!0);W(J,he,tt,"♮","\\natural",!0);W(J,he,tt,"♣","\\clubsuit",!0);W(J,he,tt,"℘","\\wp",!0);W(J,he,tt,"♯","\\sharp",!0);W(J,he,tt,"♢","\\diamondsuit",!0);W(J,he,tt,"ℜ","\\Re",!0);W(J,he,tt,"♡","\\heartsuit",!0);W(J,he,tt,"ℑ","\\Im",!0);W(J,he,tt,"♠","\\spadesuit",!0);W(J,he,tt,"§","\\S",!0);W(Ft,he,tt,"§","\\S");W(J,he,tt,"¶","\\P",!0);W(Ft,he,tt,"¶","\\P");W(J,he,tt,"†","\\dag");W(Ft,he,tt,"†","\\dag");W(Ft,he,tt,"†","\\textdagger");W(J,he,tt,"‡","\\ddag");W(Ft,he,tt,"‡","\\ddag");W(Ft,he,tt,"‡","\\textdaggerdbl");W(J,he,to,"⎱","\\rmoustache",!0);W(J,he,Ko,"⎰","\\lmoustache",!0);W(J,he,to,"⟯","\\rgroup",!0);W(J,he,Ko,"⟮","\\lgroup",!0);W(J,he,ur,"∓","\\mp",!0);W(J,he,ur,"⊖","\\ominus",!0);W(J,he,ur,"⊎","\\uplus",!0);W(J,he,ur,"⊓","\\sqcap",!0);W(J,he,ur,"∗","\\ast");W(J,he,ur,"⊔","\\sqcup",!0);W(J,he,ur,"◯","\\bigcirc",!0);W(J,he,ur,"∙","\\bullet",!0);W(J,he,ur,"‡","\\ddagger");W(J,he,ur,"≀","\\wr",!0);W(J,he,ur,"⨿","\\amalg");W(J,he,ur,"&","\\And");W(J,he,Ke,"⟵","\\longleftarrow",!0);W(J,he,Ke,"⇐","\\Leftarrow",!0);W(J,he,Ke,"⟸","\\Longleftarrow",!0);W(J,he,Ke,"⟶","\\longrightarrow",!0);W(J,he,Ke,"⇒","\\Rightarrow",!0);W(J,he,Ke,"⟹","\\Longrightarrow",!0);W(J,he,Ke,"↔","\\leftrightarrow",!0);W(J,he,Ke,"⟷","\\longleftrightarrow",!0);W(J,he,Ke,"⇔","\\Leftrightarrow",!0);W(J,he,Ke,"⟺","\\Longleftrightarrow",!0);W(J,he,Ke,"↦","\\mapsto",!0);W(J,he,Ke,"⟼","\\longmapsto",!0);W(J,he,Ke,"↗","\\nearrow",!0);W(J,he,Ke,"↩","\\hookleftarrow",!0);W(J,he,Ke,"↪","\\hookrightarrow",!0);W(J,he,Ke,"↘","\\searrow",!0);W(J,he,Ke,"↼","\\leftharpoonup",!0);W(J,he,Ke,"⇀","\\rightharpoonup",!0);W(J,he,Ke,"↙","\\swarrow",!0);W(J,he,Ke,"↽","\\leftharpoondown",!0);W(J,he,Ke,"⇁","\\rightharpoondown",!0);W(J,he,Ke,"↖","\\nwarrow",!0);W(J,he,Ke,"⇌","\\rightleftharpoons",!0);W(J,Ge,Ke,"≮","\\nless",!0);W(J,Ge,Ke,"","\\@nleqslant");W(J,Ge,Ke,"","\\@nleqq");W(J,Ge,Ke,"⪇","\\lneq",!0);W(J,Ge,Ke,"≨","\\lneqq",!0);W(J,Ge,Ke,"","\\@lvertneqq");W(J,Ge,Ke,"⋦","\\lnsim",!0);W(J,Ge,Ke,"⪉","\\lnapprox",!0);W(J,Ge,Ke,"⊀","\\nprec",!0);W(J,Ge,Ke,"⋠","\\npreceq",!0);W(J,Ge,Ke,"⋨","\\precnsim",!0);W(J,Ge,Ke,"⪹","\\precnapprox",!0);W(J,Ge,Ke,"≁","\\nsim",!0);W(J,Ge,Ke,"","\\@nshortmid");W(J,Ge,Ke,"∤","\\nmid",!0);W(J,Ge,Ke,"⊬","\\nvdash",!0);W(J,Ge,Ke,"⊭","\\nvDash",!0);W(J,Ge,Ke,"⋪","\\ntriangleleft");W(J,Ge,Ke,"⋬","\\ntrianglelefteq",!0);W(J,Ge,Ke,"⊊","\\subsetneq",!0);W(J,Ge,Ke,"","\\@varsubsetneq");W(J,Ge,Ke,"⫋","\\subsetneqq",!0);W(J,Ge,Ke,"","\\@varsubsetneqq");W(J,Ge,Ke,"≯","\\ngtr",!0);W(J,Ge,Ke,"","\\@ngeqslant");W(J,Ge,Ke,"","\\@ngeqq");W(J,Ge,Ke,"⪈","\\gneq",!0);W(J,Ge,Ke,"≩","\\gneqq",!0);W(J,Ge,Ke,"","\\@gvertneqq");W(J,Ge,Ke,"⋧","\\gnsim",!0);W(J,Ge,Ke,"⪊","\\gnapprox",!0);W(J,Ge,Ke,"⊁","\\nsucc",!0);W(J,Ge,Ke,"⋡","\\nsucceq",!0);W(J,Ge,Ke,"⋩","\\succnsim",!0);W(J,Ge,Ke,"⪺","\\succnapprox",!0);W(J,Ge,Ke,"≆","\\ncong",!0);W(J,Ge,Ke,"","\\@nshortparallel");W(J,Ge,Ke,"∦","\\nparallel",!0);W(J,Ge,Ke,"⊯","\\nVDash",!0);W(J,Ge,Ke,"⋫","\\ntriangleright");W(J,Ge,Ke,"⋭","\\ntrianglerighteq",!0);W(J,Ge,Ke,"","\\@nsupseteqq");W(J,Ge,Ke,"⊋","\\supsetneq",!0);W(J,Ge,Ke,"","\\@varsupsetneq");W(J,Ge,Ke,"⫌","\\supsetneqq",!0);W(J,Ge,Ke,"","\\@varsupsetneqq");W(J,Ge,Ke,"⊮","\\nVdash",!0);W(J,Ge,Ke,"⪵","\\precneqq",!0);W(J,Ge,Ke,"⪶","\\succneqq",!0);W(J,Ge,Ke,"","\\@nsubseteqq");W(J,Ge,ur,"⊴","\\unlhd");W(J,Ge,ur,"⊵","\\unrhd");W(J,Ge,Ke,"↚","\\nleftarrow",!0);W(J,Ge,Ke,"↛","\\nrightarrow",!0);W(J,Ge,Ke,"⇍","\\nLeftarrow",!0);W(J,Ge,Ke,"⇏","\\nRightarrow",!0);W(J,Ge,Ke,"↮","\\nleftrightarrow",!0);W(J,Ge,Ke,"⇎","\\nLeftrightarrow",!0);W(J,Ge,Ke,"△","\\vartriangle");W(J,Ge,tt,"ℏ","\\hslash");W(J,Ge,tt,"▽","\\triangledown");W(J,Ge,tt,"◊","\\lozenge");W(J,Ge,tt,"Ⓢ","\\circledS");W(J,Ge,tt,"®","\\circledR");W(Ft,Ge,tt,"®","\\circledR");W(J,Ge,tt,"∡","\\measuredangle",!0);W(J,Ge,tt,"∄","\\nexists");W(J,Ge,tt,"℧","\\mho");W(J,Ge,tt,"Ⅎ","\\Finv",!0);W(J,Ge,tt,"⅁","\\Game",!0);W(J,Ge,tt,"‵","\\backprime");W(J,Ge,tt,"▲","\\blacktriangle");W(J,Ge,tt,"▼","\\blacktriangledown");W(J,Ge,tt,"■","\\blacksquare");W(J,Ge,tt,"⧫","\\blacklozenge");W(J,Ge,tt,"★","\\bigstar");W(J,Ge,tt,"∢","\\sphericalangle",!0);W(J,Ge,tt,"∁","\\complement",!0);W(J,Ge,tt,"ð","\\eth",!0);W(Ft,he,tt,"ð","ð");W(J,Ge,tt,"╱","\\diagup");W(J,Ge,tt,"╲","\\diagdown");W(J,Ge,tt,"□","\\square");W(J,Ge,tt,"□","\\Box");W(J,Ge,tt,"◊","\\Diamond");W(J,Ge,tt,"¥","\\yen",!0);W(Ft,Ge,tt,"¥","\\yen",!0);W(J,Ge,tt,"✓","\\checkmark",!0);W(Ft,Ge,tt,"✓","\\checkmark");W(J,Ge,tt,"ℶ","\\beth",!0);W(J,Ge,tt,"ℸ","\\daleth",!0);W(J,Ge,tt,"ℷ","\\gimel",!0);W(J,Ge,tt,"ϝ","\\digamma",!0);W(J,Ge,tt,"ϰ","\\varkappa");W(J,Ge,Ko,"┌","\\@ulcorner",!0);W(J,Ge,to,"┐","\\@urcorner",!0);W(J,Ge,Ko,"└","\\@llcorner",!0);W(J,Ge,to,"┘","\\@lrcorner",!0);W(J,Ge,Ke,"≦","\\leqq",!0);W(J,Ge,Ke,"⩽","\\leqslant",!0);W(J,Ge,Ke,"⪕","\\eqslantless",!0);W(J,Ge,Ke,"≲","\\lesssim",!0);W(J,Ge,Ke,"⪅","\\lessapprox",!0);W(J,Ge,Ke,"≊","\\approxeq",!0);W(J,Ge,ur,"⋖","\\lessdot");W(J,Ge,Ke,"⋘","\\lll",!0);W(J,Ge,Ke,"≶","\\lessgtr",!0);W(J,Ge,Ke,"⋚","\\lesseqgtr",!0);W(J,Ge,Ke,"⪋","\\lesseqqgtr",!0);W(J,Ge,Ke,"≑","\\doteqdot");W(J,Ge,Ke,"≓","\\risingdotseq",!0);W(J,Ge,Ke,"≒","\\fallingdotseq",!0);W(J,Ge,Ke,"∽","\\backsim",!0);W(J,Ge,Ke,"⋍","\\backsimeq",!0);W(J,Ge,Ke,"⫅","\\subseteqq",!0);W(J,Ge,Ke,"⋐","\\Subset",!0);W(J,Ge,Ke,"⊏","\\sqsubset",!0);W(J,Ge,Ke,"≼","\\preccurlyeq",!0);W(J,Ge,Ke,"⋞","\\curlyeqprec",!0);W(J,Ge,Ke,"≾","\\precsim",!0);W(J,Ge,Ke,"⪷","\\precapprox",!0);W(J,Ge,Ke,"⊲","\\vartriangleleft");W(J,Ge,Ke,"⊴","\\trianglelefteq");W(J,Ge,Ke,"⊨","\\vDash",!0);W(J,Ge,Ke,"⊪","\\Vvdash",!0);W(J,Ge,Ke,"⌣","\\smallsmile");W(J,Ge,Ke,"⌢","\\smallfrown");W(J,Ge,Ke,"≏","\\bumpeq",!0);W(J,Ge,Ke,"≎","\\Bumpeq",!0);W(J,Ge,Ke,"≧","\\geqq",!0);W(J,Ge,Ke,"⩾","\\geqslant",!0);W(J,Ge,Ke,"⪖","\\eqslantgtr",!0);W(J,Ge,Ke,"≳","\\gtrsim",!0);W(J,Ge,Ke,"⪆","\\gtrapprox",!0);W(J,Ge,ur,"⋗","\\gtrdot");W(J,Ge,Ke,"⋙","\\ggg",!0);W(J,Ge,Ke,"≷","\\gtrless",!0);W(J,Ge,Ke,"⋛","\\gtreqless",!0);W(J,Ge,Ke,"⪌","\\gtreqqless",!0);W(J,Ge,Ke,"≖","\\eqcirc",!0);W(J,Ge,Ke,"≗","\\circeq",!0);W(J,Ge,Ke,"≜","\\triangleq",!0);W(J,Ge,Ke,"∼","\\thicksim");W(J,Ge,Ke,"≈","\\thickapprox");W(J,Ge,Ke,"⫆","\\supseteqq",!0);W(J,Ge,Ke,"⋑","\\Supset",!0);W(J,Ge,Ke,"⊐","\\sqsupset",!0);W(J,Ge,Ke,"≽","\\succcurlyeq",!0);W(J,Ge,Ke,"⋟","\\curlyeqsucc",!0);W(J,Ge,Ke,"≿","\\succsim",!0);W(J,Ge,Ke,"⪸","\\succapprox",!0);W(J,Ge,Ke,"⊳","\\vartriangleright");W(J,Ge,Ke,"⊵","\\trianglerighteq");W(J,Ge,Ke,"⊩","\\Vdash",!0);W(J,Ge,Ke,"∣","\\shortmid");W(J,Ge,Ke,"∥","\\shortparallel");W(J,Ge,Ke,"≬","\\between",!0);W(J,Ge,Ke,"⋔","\\pitchfork",!0);W(J,Ge,Ke,"∝","\\varpropto");W(J,Ge,Ke,"◀","\\blacktriangleleft");W(J,Ge,Ke,"∴","\\therefore",!0);W(J,Ge,Ke,"∍","\\backepsilon");W(J,Ge,Ke,"▶","\\blacktriangleright");W(J,Ge,Ke,"∵","\\because",!0);W(J,Ge,Ke,"⋘","\\llless");W(J,Ge,Ke,"⋙","\\gggtr");W(J,Ge,ur,"⊲","\\lhd");W(J,Ge,ur,"⊳","\\rhd");W(J,Ge,Ke,"≂","\\eqsim",!0);W(J,he,Ke,"⋈","\\Join");W(J,Ge,Ke,"≑","\\Doteq",!0);W(J,Ge,ur,"∔","\\dotplus",!0);W(J,Ge,ur,"∖","\\smallsetminus");W(J,Ge,ur,"⋒","\\Cap",!0);W(J,Ge,ur,"⋓","\\Cup",!0);W(J,Ge,ur,"⩞","\\doublebarwedge",!0);W(J,Ge,ur,"⊟","\\boxminus",!0);W(J,Ge,ur,"⊞","\\boxplus",!0);W(J,Ge,ur,"⋇","\\divideontimes",!0);W(J,Ge,ur,"⋉","\\ltimes",!0);W(J,Ge,ur,"⋊","\\rtimes",!0);W(J,Ge,ur,"⋋","\\leftthreetimes",!0);W(J,Ge,ur,"⋌","\\rightthreetimes",!0);W(J,Ge,ur,"⋏","\\curlywedge",!0);W(J,Ge,ur,"⋎","\\curlyvee",!0);W(J,Ge,ur,"⊝","\\circleddash",!0);W(J,Ge,ur,"⊛","\\circledast",!0);W(J,Ge,ur,"⋅","\\centerdot");W(J,Ge,ur,"⊺","\\intercal",!0);W(J,Ge,ur,"⋒","\\doublecap");W(J,Ge,ur,"⋓","\\doublecup");W(J,Ge,ur,"⊠","\\boxtimes",!0);W(J,Ge,Ke,"⇢","\\dashrightarrow",!0);W(J,Ge,Ke,"⇠","\\dashleftarrow",!0);W(J,Ge,Ke,"⇇","\\leftleftarrows",!0);W(J,Ge,Ke,"⇆","\\leftrightarrows",!0);W(J,Ge,Ke,"⇚","\\Lleftarrow",!0);W(J,Ge,Ke,"↞","\\twoheadleftarrow",!0);W(J,Ge,Ke,"↢","\\leftarrowtail",!0);W(J,Ge,Ke,"↫","\\looparrowleft",!0);W(J,Ge,Ke,"⇋","\\leftrightharpoons",!0);W(J,Ge,Ke,"↶","\\curvearrowleft",!0);W(J,Ge,Ke,"↺","\\circlearrowleft",!0);W(J,Ge,Ke,"↰","\\Lsh",!0);W(J,Ge,Ke,"⇈","\\upuparrows",!0);W(J,Ge,Ke,"↿","\\upharpoonleft",!0);W(J,Ge,Ke,"⇃","\\downharpoonleft",!0);W(J,he,Ke,"⊶","\\origof",!0);W(J,he,Ke,"⊷","\\imageof",!0);W(J,Ge,Ke,"⊸","\\multimap",!0);W(J,Ge,Ke,"↭","\\leftrightsquigarrow",!0);W(J,Ge,Ke,"⇉","\\rightrightarrows",!0);W(J,Ge,Ke,"⇄","\\rightleftarrows",!0);W(J,Ge,Ke,"↠","\\twoheadrightarrow",!0);W(J,Ge,Ke,"↣","\\rightarrowtail",!0);W(J,Ge,Ke,"↬","\\looparrowright",!0);W(J,Ge,Ke,"↷","\\curvearrowright",!0);W(J,Ge,Ke,"↻","\\circlearrowright",!0);W(J,Ge,Ke,"↱","\\Rsh",!0);W(J,Ge,Ke,"⇊","\\downdownarrows",!0);W(J,Ge,Ke,"↾","\\upharpoonright",!0);W(J,Ge,Ke,"⇂","\\downharpoonright",!0);W(J,Ge,Ke,"⇝","\\rightsquigarrow",!0);W(J,Ge,Ke,"⇝","\\leadsto");W(J,Ge,Ke,"⇛","\\Rrightarrow",!0);W(J,Ge,Ke,"↾","\\restriction");W(J,he,tt,"‘","`");W(J,he,tt,"$","\\$");W(Ft,he,tt,"$","\\$");W(Ft,he,tt,"$","\\textdollar");W(J,he,tt,"%","\\%");W(Ft,he,tt,"%","\\%");W(J,he,tt,"_","\\_");W(Ft,he,tt,"_","\\_");W(Ft,he,tt,"_","\\textunderscore");W(J,he,tt,"∠","\\angle",!0);W(J,he,tt,"∞","\\infty",!0);W(J,he,tt,"′","\\prime");W(J,he,tt,"△","\\triangle");W(J,he,tt,"Γ","\\Gamma",!0);W(J,he,tt,"Δ","\\Delta",!0);W(J,he,tt,"Θ","\\Theta",!0);W(J,he,tt,"Λ","\\Lambda",!0);W(J,he,tt,"Ξ","\\Xi",!0);W(J,he,tt,"Π","\\Pi",!0);W(J,he,tt,"Σ","\\Sigma",!0);W(J,he,tt,"Υ","\\Upsilon",!0);W(J,he,tt,"Φ","\\Phi",!0);W(J,he,tt,"Ψ","\\Psi",!0);W(J,he,tt,"Ω","\\Omega",!0);W(J,he,tt,"A","Α");W(J,he,tt,"B","Β");W(J,he,tt,"E","Ε");W(J,he,tt,"Z","Ζ");W(J,he,tt,"H","Η");W(J,he,tt,"I","Ι");W(J,he,tt,"K","Κ");W(J,he,tt,"M","Μ");W(J,he,tt,"N","Ν");W(J,he,tt,"O","Ο");W(J,he,tt,"P","Ρ");W(J,he,tt,"T","Τ");W(J,he,tt,"X","Χ");W(J,he,tt,"¬","\\neg",!0);W(J,he,tt,"¬","\\lnot");W(J,he,tt,"⊤","\\top");W(J,he,tt,"⊥","\\bot");W(J,he,tt,"∅","\\emptyset");W(J,Ge,tt,"∅","\\varnothing");W(J,he,Nr,"α","\\alpha",!0);W(J,he,Nr,"β","\\beta",!0);W(J,he,Nr,"γ","\\gamma",!0);W(J,he,Nr,"δ","\\delta",!0);W(J,he,Nr,"ϵ","\\epsilon",!0);W(J,he,Nr,"ζ","\\zeta",!0);W(J,he,Nr,"η","\\eta",!0);W(J,he,Nr,"θ","\\theta",!0);W(J,he,Nr,"ι","\\iota",!0);W(J,he,Nr,"κ","\\kappa",!0);W(J,he,Nr,"λ","\\lambda",!0);W(J,he,Nr,"μ","\\mu",!0);W(J,he,Nr,"ν","\\nu",!0);W(J,he,Nr,"ξ","\\xi",!0);W(J,he,Nr,"ο","\\omicron",!0);W(J,he,Nr,"π","\\pi",!0);W(J,he,Nr,"ρ","\\rho",!0);W(J,he,Nr,"σ","\\sigma",!0);W(J,he,Nr,"τ","\\tau",!0);W(J,he,Nr,"υ","\\upsilon",!0);W(J,he,Nr,"ϕ","\\phi",!0);W(J,he,Nr,"χ","\\chi",!0);W(J,he,Nr,"ψ","\\psi",!0);W(J,he,Nr,"ω","\\omega",!0);W(J,he,Nr,"ε","\\varepsilon",!0);W(J,he,Nr,"ϑ","\\vartheta",!0);W(J,he,Nr,"ϖ","\\varpi",!0);W(J,he,Nr,"ϱ","\\varrho",!0);W(J,he,Nr,"ς","\\varsigma",!0);W(J,he,Nr,"φ","\\varphi",!0);W(J,he,ur,"∗","*",!0);W(J,he,ur,"+","+");W(J,he,ur,"−","-",!0);W(J,he,ur,"⋅","\\cdot",!0);W(J,he,ur,"∘","\\circ",!0);W(J,he,ur,"÷","\\div",!0);W(J,he,ur,"±","\\pm",!0);W(J,he,ur,"×","\\times",!0);W(J,he,ur,"∩","\\cap",!0);W(J,he,ur,"∪","\\cup",!0);W(J,he,ur,"∖","\\setminus",!0);W(J,he,ur,"∧","\\land");W(J,he,ur,"∨","\\lor");W(J,he,ur,"∧","\\wedge",!0);W(J,he,ur,"∨","\\vee",!0);W(J,he,tt,"√","\\surd");W(J,he,Ko,"⟨","\\langle",!0);W(J,he,Ko,"∣","\\lvert");W(J,he,Ko,"∥","\\lVert");W(J,he,to,"?","?");W(J,he,to,"!","!");W(J,he,to,"⟩","\\rangle",!0);W(J,he,to,"∣","\\rvert");W(J,he,to,"∥","\\rVert");W(J,he,Ke,"=","=");W(J,he,Ke,":",":");W(J,he,Ke,"≈","\\approx",!0);W(J,he,Ke,"≅","\\cong",!0);W(J,he,Ke,"≥","\\ge");W(J,he,Ke,"≥","\\geq",!0);W(J,he,Ke,"←","\\gets");W(J,he,Ke,">","\\gt",!0);W(J,he,Ke,"∈","\\in",!0);W(J,he,Ke,"","\\@not");W(J,he,Ke,"⊂","\\subset",!0);W(J,he,Ke,"⊃","\\supset",!0);W(J,he,Ke,"⊆","\\subseteq",!0);W(J,he,Ke,"⊇","\\supseteq",!0);W(J,Ge,Ke,"⊈","\\nsubseteq",!0);W(J,Ge,Ke,"⊉","\\nsupseteq",!0);W(J,he,Ke,"⊨","\\models");W(J,he,Ke,"←","\\leftarrow",!0);W(J,he,Ke,"≤","\\le");W(J,he,Ke,"≤","\\leq",!0);W(J,he,Ke,"<","\\lt",!0);W(J,he,Ke,"→","\\rightarrow",!0);W(J,he,Ke,"→","\\to");W(J,Ge,Ke,"≱","\\ngeq",!0);W(J,Ge,Ke,"≰","\\nleq",!0);W(J,he,Z0," ","\\ ");W(J,he,Z0," ","\\space");W(J,he,Z0," ","\\nobreakspace");W(Ft,he,Z0," ","\\ ");W(Ft,he,Z0," "," ");W(Ft,he,Z0," ","\\space");W(Ft,he,Z0," ","\\nobreakspace");W(J,he,Z0,null,"\\nobreak");W(J,he,Z0,null,"\\allowbreak");W(J,he,o7,",",",");W(J,he,o7,";",";");W(J,Ge,ur,"⊼","\\barwedge",!0);W(J,Ge,ur,"⊻","\\veebar",!0);W(J,he,ur,"⊙","\\odot",!0);W(J,he,ur,"⊕","\\oplus",!0);W(J,he,ur,"⊗","\\otimes",!0);W(J,he,tt,"∂","\\partial",!0);W(J,he,ur,"⊘","\\oslash",!0);W(J,Ge,ur,"⊚","\\circledcirc",!0);W(J,Ge,ur,"⊡","\\boxdot",!0);W(J,he,ur,"△","\\bigtriangleup");W(J,he,ur,"▽","\\bigtriangledown");W(J,he,ur,"†","\\dagger");W(J,he,ur,"⋄","\\diamond");W(J,he,ur,"⋆","\\star");W(J,he,ur,"◃","\\triangleleft");W(J,he,ur,"▹","\\triangleright");W(J,he,Ko,"{","\\{");W(Ft,he,tt,"{","\\{");W(Ft,he,tt,"{","\\textbraceleft");W(J,he,to,"}","\\}");W(Ft,he,tt,"}","\\}");W(Ft,he,tt,"}","\\textbraceright");W(J,he,Ko,"{","\\lbrace");W(J,he,to,"}","\\rbrace");W(J,he,Ko,"[","\\lbrack",!0);W(Ft,he,tt,"[","\\lbrack",!0);W(J,he,to,"]","\\rbrack",!0);W(Ft,he,tt,"]","\\rbrack",!0);W(J,he,Ko,"(","\\lparen",!0);W(J,he,to,")","\\rparen",!0);W(Ft,he,tt,"<","\\textless",!0);W(Ft,he,tt,">","\\textgreater",!0);W(J,he,Ko,"⌊","\\lfloor",!0);W(J,he,to,"⌋","\\rfloor",!0);W(J,he,Ko,"⌈","\\lceil",!0);W(J,he,to,"⌉","\\rceil",!0);W(J,he,tt,"\\","\\backslash");W(J,he,tt,"∣","|");W(J,he,tt,"∣","\\vert");W(Ft,he,tt,"|","\\textbar",!0);W(J,he,tt,"∥","\\|");W(J,he,tt,"∥","\\Vert");W(Ft,he,tt,"∥","\\textbardbl");W(Ft,he,tt,"~","\\textasciitilde");W(Ft,he,tt,"\\","\\textbackslash");W(Ft,he,tt,"^","\\textasciicircum");W(J,he,Ke,"↑","\\uparrow",!0);W(J,he,Ke,"⇑","\\Uparrow",!0);W(J,he,Ke,"↓","\\downarrow",!0);W(J,he,Ke,"⇓","\\Downarrow",!0);W(J,he,Ke,"↕","\\updownarrow",!0);W(J,he,Ke,"⇕","\\Updownarrow",!0);W(J,he,hi,"∐","\\coprod");W(J,he,hi,"⋁","\\bigvee");W(J,he,hi,"⋀","\\bigwedge");W(J,he,hi,"⨄","\\biguplus");W(J,he,hi,"⋂","\\bigcap");W(J,he,hi,"⋃","\\bigcup");W(J,he,hi,"∫","\\int");W(J,he,hi,"∫","\\intop");W(J,he,hi,"∬","\\iint");W(J,he,hi,"∭","\\iiint");W(J,he,hi,"∏","\\prod");W(J,he,hi,"∑","\\sum");W(J,he,hi,"⨂","\\bigotimes");W(J,he,hi,"⨁","\\bigoplus");W(J,he,hi,"⨀","\\bigodot");W(J,he,hi,"∮","\\oint");W(J,he,hi,"∯","\\oiint");W(J,he,hi,"∰","\\oiiint");W(J,he,hi,"⨆","\\bigsqcup");W(J,he,hi,"∫","\\smallint");W(Ft,he,i2,"…","\\textellipsis");W(J,he,i2,"…","\\mathellipsis");W(Ft,he,i2,"…","\\ldots",!0);W(J,he,i2,"…","\\ldots",!0);W(J,he,i2,"⋯","\\@cdots",!0);W(J,he,i2,"⋱","\\ddots",!0);W(J,he,tt,"⋮","\\varvdots");W(Ft,he,tt,"⋮","\\varvdots");W(J,he,ba,"ˊ","\\acute");W(J,he,ba,"ˋ","\\grave");W(J,he,ba,"¨","\\ddot");W(J,he,ba,"~","\\tilde");W(J,he,ba,"ˉ","\\bar");W(J,he,ba,"˘","\\breve");W(J,he,ba,"ˇ","\\check");W(J,he,ba,"^","\\hat");W(J,he,ba,"⃗","\\vec");W(J,he,ba,"˙","\\dot");W(J,he,ba,"˚","\\mathring");W(J,he,Nr,"","\\@imath");W(J,he,Nr,"","\\@jmath");W(J,he,tt,"ı","ı");W(J,he,tt,"ȷ","ȷ");W(Ft,he,tt,"ı","\\i",!0);W(Ft,he,tt,"ȷ","\\j",!0);W(Ft,he,tt,"ß","\\ss",!0);W(Ft,he,tt,"æ","\\ae",!0);W(Ft,he,tt,"œ","\\oe",!0);W(Ft,he,tt,"ø","\\o",!0);W(Ft,he,tt,"Æ","\\AE",!0);W(Ft,he,tt,"Œ","\\OE",!0);W(Ft,he,tt,"Ø","\\O",!0);W(Ft,he,ba,"ˊ","\\'");W(Ft,he,ba,"ˋ","\\`");W(Ft,he,ba,"ˆ","\\^");W(Ft,he,ba,"˜","\\~");W(Ft,he,ba,"ˉ","\\=");W(Ft,he,ba,"˘","\\u");W(Ft,he,ba,"˙","\\.");W(Ft,he,ba,"¸","\\c");W(Ft,he,ba,"˚","\\r");W(Ft,he,ba,"ˇ","\\v");W(Ft,he,ba,"¨",'\\"');W(Ft,he,ba,"˝","\\H");W(Ft,he,ba,"◯","\\textcircled");var K1e={"--":!0,"---":!0,"``":!0,"''":!0};W(Ft,he,tt,"–","--",!0);W(Ft,he,tt,"–","\\textendash");W(Ft,he,tt,"—","---",!0);W(Ft,he,tt,"—","\\textemdash");W(Ft,he,tt,"‘","`",!0);W(Ft,he,tt,"‘","\\textquoteleft");W(Ft,he,tt,"’","'",!0);W(Ft,he,tt,"’","\\textquoteright");W(Ft,he,tt,"“","``",!0);W(Ft,he,tt,"“","\\textquotedblleft");W(Ft,he,tt,"”","''",!0);W(Ft,he,tt,"”","\\textquotedblright");W(J,he,tt,"°","\\degree",!0);W(Ft,he,tt,"°","\\degree");W(Ft,he,tt,"°","\\textdegree",!0);W(J,he,tt,"£","\\pounds");W(J,he,tt,"£","\\mathsterling",!0);W(Ft,he,tt,"£","\\pounds");W(Ft,he,tt,"£","\\textsterling",!0);W(J,Ge,tt,"✠","\\maltese");W(Ft,Ge,tt,"✠","\\maltese");var Ite='0123456789/@."';for(var A9=0;A9{var r=t.charCodeAt(0),n=t.charCodeAt(1),a=(r-55296)*1024+(n-56320)+65536,i=e==="math"?0:1;if(119808<=a&&a<120484){var s=Math.floor((a-119808)/26);return[Kx[s][2],Kx[s][i]]}else if(120782<=a&&a<=120831){var o=Math.floor((a-120782)/10);return[Mte[o][2],Mte[o][i]]}else{if(a===120485||a===120486)return[Kx[0][2],Kx[0][i]];if(120486r.toText();return this.children.map(e).join("")}};var l7=function(e,r,n){if(ha[n][e]){var a=ha[n][e].replace;a&&(e=a)}return{value:e,metrics:aq(e,r,n)}},Ns=function(e,r,n,a,i){var s=l7(e,r,n),o=s.metrics;e=s.value;var l;if(o){var u=o.italic;(n==="text"||a&&a.font==="mathit")&&(u=0),l=new Ol(e,o.height,o.depth,u,o.skew,o.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),l=new Ol(e,0,0,0,0,0,i);if(a){l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var d=a.getColor();d&&(l.style.color=d)}return l},iq=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&l7(e,"Main-Bold",r).metrics?Ns(e,"Main-Bold",r,n,a.concat(["mathbf"])):e==="\\"||ha[r][e].font==="main"?Ns(e,"Main-Regular",r,n,a):Ns(e,"AMS-Regular",r,n,a.concat(["amsrm"]))},Sat=function(e,r,n,a,i){return i!=="textord"&&l7(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},c7=function(e,r,n){var a=e.mode,i=e.text,s=["mord"],o=a==="math"||a==="text"&&r.font,l=o?r.font:r.fontFamily,u="",d="";if(i.charCodeAt(0)===55349&&([u,d]=Eat(i,a)),u.length>0)return Ns(i,u,a,r,s.concat(d));if(l){var h,f;if(l==="boldsymbol"){var p=Sat(i,a,r,s,n);h=p.fontName,f=[p.fontClass]}else o?(h=hB[l].fontName,f=[l]):(h=Xx(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(l7(i,h,a).metrics)return Ns(i,h,a,r,s.concat(f));if(K1e.hasOwnProperty(i)&&h.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(mh(t.classes)!==mh(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 a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},X1e=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},Ut=function(e,r,n,a){var i=new TT(e,r,n,a);return sq(i),i},yh=(t,e,r,n)=>new TT(t,e,r,n),gb=function(e,r,n){var a=Ut([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=er(a.height),a.maxFontSize=1,a},xat=function(e,r,n,a){var i=new nq(e,r,n,a);return sq(i),i},J0=function(e){var r=new xT(e);return sq(r),r},mb=function(e,r){return e instanceof xT?Ut([],[e],r):e},Cat=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s{var r=Ut(["mspace"],[],e),n=ka(t,e);return r.style.marginRight=er(n),r},Xx=function(e,r,n){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},hB={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"}},Q1e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Z1e=function(e,r){var[n,a,i]=Q1e[e],s=new vh(n),o=new I0([s],{width:er(a),height:er(i),style:"width:"+er(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=yh(["overlay"],[o],r);return l.height=i,l.style.height=er(i),l.style.width=er(a),l},xa={number:3,unit:"mu"},ff={number:4,unit:"mu"},Gu={number:5,unit:"mu"},wat={mord:{mop:xa,mbin:ff,mrel:Gu,minner:xa},mop:{mord:xa,mop:xa,mrel:Gu,minner:xa},mbin:{mord:ff,mop:ff,mopen:ff,minner:ff},mrel:{mord:Gu,mop:Gu,mopen:Gu,minner:Gu},mopen:{},mclose:{mop:xa,mbin:ff,mrel:Gu,minner:xa},mpunct:{mord:xa,mop:xa,mrel:Gu,mopen:xa,mclose:xa,mpunct:xa,minner:xa},minner:{mord:xa,mop:xa,mbin:ff,mrel:Gu,mopen:xa,mpunct:xa,minner:xa}},kat={mord:{mop:xa},mop:{mord:xa,mop:xa},mbin:{},mrel:{},mopen:{},mclose:{mop:xa},mpunct:{},minner:{mop:xa}},J1e={},C6={},w6={};function or(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,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:a},l=0;l{var v=m.classes[0],y=g.classes[0];v==="mbin"&&Rat.has(y)?m.classes[0]="mord":y==="mbin"&&Aat.has(v)&&(g.classes[0]="mord")},{node:h},f,p),fB(i,(g,m)=>{var v,y,b=gB(m),_=gB(g),S=b&&_?g.hasClass("mtight")?(v=kat[b])==null?void 0:v[_]:(y=wat[b])==null?void 0:y[_]:null;if(S)return j1e(S,u)},{node:h},f,p),i},fB=function(e,r,n,a,i){a&&e.push(a);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}a&&e.pop()},eve=function(e){return e instanceof xT||e instanceof nq||e instanceof TT&&e.hasClass("enclosing")?e:null},pB=function(e,r){var n=eve(e);if(n){var a=n.children;if(a.length){if(r==="right")return pB(a[a.length-1],"right");if(r==="left")return pB(a[0],"left")}}return e},gB=function(e,r){if(!e)return null;r&&(e=pB(e,r));var n=e.classes[0];return Iat[n]||null},c4=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Ut(r.concat(n))},Sn=function(e,r,n){if(!e)return Ut();if(C6[e.type]){var a=C6[e.type](e,r);if(n&&r.size!==n.size){a=Ut(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new jt("Got group of unknown type: '"+e.type+"'")};function jx(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 mB(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=wi(t,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o0&&(i.push(jx(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(jx(s,e));var u;r?(u=jx(wi(r,e,!0),e),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=Ut(["katex-html"],i);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 tve(t){return new xT(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=mh(this.classes));for(var n=0;n0&&(e+=' class ="'+hs(mh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ii=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return hs(this.toText())}toText(){return this.text}},rve=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 Oat=new Set(["\\imath","\\jmath"]),Dat=new Set(["mrow","mtable"]),Dl=function(e,r,n){return ha[r][e]&&ha[r][e].replace&&e.charCodeAt(0)!==55349&&!(K1e.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=ha[r][e].replace),new ii(e)},oq=function(e){return e.length===1?e[0]:new Wt("mrow",e)},lq=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 a=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 i=e.text;if(Oat.has(i))return null;if(ha[a][i]){var s=ha[a][i].replace;s&&(i=s)}var o=hB[n].fontName;return aq(i,o,a)?hB[n].variant:null};function O9(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ii&&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 ii&&r.text===","}else return!1}var Xo=function(e,r,n){if(e.length===1){var a=Un(e[0],r);return n&&a instanceof Wt&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o=1&&(s.type==="mn"||O9(s))){var u=l.children[0];u instanceof Wt&&u.type==="mn"&&(u.children=[...s.children,...u.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ii&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof ii&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(l),s=l}return i},_h=function(e,r,n){return oq(Xo(e,r,n))},Un=function(e,r){if(!e)return new Wt("mrow");if(w6[e.type]){var n=w6[e.type](e,r);return n}else throw new jt("Got group of unknown type: '"+e.type+"'")};function Pte(t,e,r,n,a){var i=Xo(t,r),s;i.length===1&&i[0]instanceof Wt&&Dat.has(i[0].type)?s=i[0]:s=new Wt("mrow",i);var o=new Wt("annotation",[new ii(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=a?"katex":"katex-mathml";return Ut([d],[u])}var Lat=[[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]],Bte=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Fte=function(e,r){return r.size<2?e:Lat[e-1][r.size-1]};let nve=class Rf{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||Rf.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=Bte[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 Rf(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Fte(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:Bte[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Fte(Rf.BASESIZE,e);return this.size===r&&this.textSize===Rf.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!==Rf.BASESIZE?["sizing","reset-size"+this.size,"size"+Rf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=yat(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};nve.BASESIZE=6;var ave=function(e){return new nve({style:e.displayMode?Qr.DISPLAY:Qr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},ive=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},Mat=function(e,r,n){var a=ave(n),i;if(n.output==="mathml")return Pte(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=mB(e,a);i=Ut(["katex"],[s])}else{var o=Pte(e,r,a,n.displayMode,!1),l=mB(e,a);i=Ut(["katex"],[o,l])}return ive(i,n)},Pat=function(e,r,n){var a=ave(n),i=mB(e,a),s=Ut(["katex"],[i]);return ive(s,n)},Bat={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":"="},u7=function(e){var r=new Wt("mo",[new ii(Bat[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Fat={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]},$at=new Set(["widehat","widecheck","widetilde","utilde"]),d7=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if($at.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 vh(f),v=new I0([m],{width:"100%",height:er(p),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:yh([],[v],r),minWidth:0,height:p}}else{var y=[],b=Fat[l],[_,S,x]=b,C=x/1e3,T=_.length,w,R;if(T===1){var O=b[3];w=["hide-tail"],R=[O]}else if(T===2)w=["halfarrow-left","halfarrow-right"],R=["xMinYMin","xMaxYMin"];else if(T===3)w=["brace-left","brace-center","brace-right"],R=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+T+" children.");for(var M=0;M0&&(a.style.minWidth=er(i)),a},zat=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=Ut(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new uB({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new uB({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new I0(u,{width:"100%",height:er(o)});s=yh([],[d],i)}return s.height=o,s.style.height=er(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 h7(t){var e=f7(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 f7(t){return t&&(t.type==="atom"||bat.hasOwnProperty(t.type))?t:null}var cq=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=tn(t.base,"accent"),r=n.base,t.base=r,a=mat(Sn(t,e)),t.base=n):(n=tn(t,"accent"),r=n.base);var i=Sn(r,e.havingCrampedStyle()),s=n.isShifty&&Q0(r),o=0;if(s){var l=dS(r),u=Sn(l,e.havingCrampedStyle());o=Rte(u).skew}var d=n.label==="\\c",h=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=d7(n,e),f=kn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{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=Z1e("vec",e),g=Q1e.vec[1]):(p=c7({mode:n.mode,text:n.label},e,"textord"),p=Rte(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=i.height);var v=o;m||(v-=g/2),f.style.left=er(v),n.label==="\\textcircled"&&(f.style.top=".2em"),f=kn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:f}]})}var y=Ut(["mord","accent"],[f],e);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},sve=(t,e)=>{var r=t.isStretchy?u7(t.label):new Wt("mo",[Dl(t.label,t.mode)]),n=new Wt("mover",[Un(t.base,e),r]);return n.setAttribute("accent","true"),n},Uat=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=k6(e[0]),n=!Uat.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:cq,mathmlBuilder:sve});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:cq,mathmlBuilder:sve});or({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=Sn(t.base,e),n=d7(t,e),a=t.label==="\\utilde"?.12:0,i=kn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return Ut(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=u7(t.label),n=new Wt("munder",[Un(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Qx=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:a}=t;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=mb(Sn(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=mb(Sn(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=d7(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=kn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]})}else d=kn({positionType:"individualShift",children:[{type:"elem",elem:a,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=u7(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=Qx(Un(t.body,e));if(t.below){var i=Qx(Un(t.below,e));n=new Wt("munderover",[r,i,a])}else n=new Wt("mover",[r,a])}else if(t.below){var s=Qx(Un(t.below,e));n=new Wt("munder",[r,s])}else n=Qx(),n=new Wt("mover",[r,n]);return n}});function ove(t,e){var r=wi(t.body,e,!0);return Ut([t.mclass],r,e)}function lve(t,e){var r,n=Xo(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,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ai(a),isCharacterBox:Q0(a)}},htmlBuilder:ove,mathmlBuilder:lve});var p7=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:p7(e[0]),body:ai(e[1]),isCharacterBox:Q0(e[1])}}});or({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,a=e[1],i=e[0],s;n!=="\\stackrel"?s=p7(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ai(a)},l={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:Q0(l)}},htmlBuilder:ove,mathmlBuilder:lve});or({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:p7(e[0]),body:ai(e[0])}},htmlBuilder(t,e){var r=wi(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=Xo(t.body,e),n=new Wt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Gat={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$te=()=>({type:"styling",body:[],mode:"math",style:"display"}),zte=t=>t.type==="textord"&&t.text==="@",qat=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Yat(t,e,r){var n=Gat[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,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 Hat(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=[],a=[n],i=0;iAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=Yat(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display"};n.push(m),o=$te()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var v=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(a.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=mb(Sn(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",[Un(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=mb(Sn(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Wt("mrow",[Un(t.fragment,e)])}});or({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=tn(e[0],"ordgroup"),a=n.body,i="",s=0;s=1114111)throw new jt("\\@char with invalid code point "+i);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 cve=(t,e)=>{var r=wi(t.body,e.withColor(t.color),!1);return J0(r)},uve=(t,e)=>{var r=Xo(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=tn(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:ai(a)}},htmlBuilder:cve,mathmlBuilder:uve});or({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,a=tn(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:cve,mathmlBuilder:uve});or({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&tn(a,"size").value}},htmlBuilder(t,e){var r=Ut(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=er(ka(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(ka(t.size,e)))),r}});var vB={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},dve=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new jt("Expected a control sequence",t);return e},Vat=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},hve=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,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(vB[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=vB[n.text]),tn(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(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new jt("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new jt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new jt('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new jt("Expected a macro definition");o[i].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(a,{tokens:l,numArgs:i,delimiters:o},r===vB[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=dve(e.gullet.popToken());e.gullet.consumeSpaces();var a=Vat(e);return hve(e,n,a,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=dve(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return hve(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var kE=function(e,r,n){var a=ha.math[e]&&ha.math[e].replace,i=aq(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},uq=function(e,r,n,a){var i=n.havingBaseStyle(r),s=Ut(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},fve=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=er(i),e.height-=i,e.depth+=i},Wat=function(e,r,n,a,i,s){var o=Ns(e,"Main-Regular",i,a),l=uq(o,r,a,s);return fve(l,a,r),l},Kat=function(e,r,n,a){return Ns(e,"Size"+r+"-Regular",n,a)},pve=function(e,r,n,a,i,s){var o=Kat(e,r,i,a),l=uq(Ut(["delimsizing","size"+r],[o],a),Qr.TEXT,a,s);return n&&fve(l,a,Qr.TEXT),l},D9=function(e,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=Ut(["delimsizinginner",a],[Ut([],[Ns(e,r,n)])]);return{type:"elem",elem:i}},L9=function(e,r,n){var a=Xc["Size4-Regular"][e.charCodeAt(0)]?Xc["Size4-Regular"][e.charCodeAt(0)][4]:Xc["Size1-Regular"][e.charCodeAt(0)][4],i=new vh("inner",uat(e,Math.round(1e3*r))),s=new I0([i],{width:er(a),height:er(r),style:"width:"+er(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=yh([],[s],n);return o.height=r,o.style.height=er(r),o.style.width=er(a),{type:"elem",elem:o}},yB=.008,Zx={type:"kern",size:-1*yB},Xat=new Set(["|","\\lvert","\\rvert","\\vert"]),jat=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),gve=function(e,r,n,a,i,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"):Xat.has(e)?(u="∣",h="vert",f=333):jat.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=kE(o,p,i),m=g.height+g.depth,v=kE(u,p,i),y=v.height+v.depth,b=kE(d,p,i),_=b.height+b.depth,S=0,x=1;if(l!==null){var C=kE(l,p,i);S=C.height+C.depth,x=2}var T=m+_+S,w=Math.max(0,Math.ceil((r-T)/(x*y))),R=T+w*x*y,O=a.fontMetrics().axisHeight;n&&(O*=a.sizeMultiplier);var M=R/2-O,$=[];if(h.length>0){var F=R-m-_,A=Math.round(R*1e3),I=dat(h,Math.round(F*1e3)),D=new vh(h,I),L=(f/1e3).toFixed(3)+"em",N=(A/1e3).toFixed(3)+"em",P=new I0([D],{width:L,height:N,viewBox:"0 0 "+f+" "+A}),z=yh([],[P],a);z.height=A/1e3,z.style.width=L,z.style.height=N,$.push({type:"elem",elem:z})}else{if($.push(D9(d,p,i)),$.push(Zx),l===null){var B=R-m-_+2*yB;$.push(L9(u,B,a))}else{var U=(R-m-_-S)/2+2*yB;$.push(L9(u,U,a)),$.push(Zx),$.push(D9(l,p,i)),$.push(Zx),$.push(L9(u,U,a))}$.push(Zx),$.push(D9(o,p,i))}var G=a.havingBaseStyle(Qr.TEXT),K=kn({positionType:"bottom",positionData:M,children:$});return uq(Ut(["delimsizing","mult"],[K],G),Qr.TEXT,a,s)},M9=80,P9=.08,B9=function(e,r,n,a,i){var s=cat(e,a,n),o=new vh(e,s),l=new I0([o],{width:"400em",height:er(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return yh(["hide-tail"],[l],i)},Qat=function(e,r){var n=r.havingBaseSizing(),a=bve("\\surd",e*n.sizeMultiplier,_ve,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,h;return a.type==="small"?(d=1e3+1e3*s+M9,e<1?i=1:e<1.4&&(i=.7),l=(1+s+P9)/i,u=(1+s)/i,o=B9("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/i):a.type==="large"?(d=(1e3+M9)*hS[a.size],u=(hS[a.size]+s)/i,l=(hS[a.size]+s+P9)/i,o=B9("sqrtSize"+a.size,l,d,s,r),o.style.minWidth="1.02em",h=1/i):(l=e+s+P9,u=e+s,d=Math.floor(1e3*e+s)+M9,o=B9("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)*i}},mve=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Zat=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),vve=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),hS=[0,1.2,1.8,2.4,3],yve=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),mve.has(e)||vve.has(e))return pve(e,r,!1,n,a,i);if(Zat.has(e))return gve(e,hS[r],!1,n,a,i);throw new jt("Illegal delimiter: '"+e+"'")},Jat=[{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}],eit=[{type:"small",style:Qr.SCRIPTSCRIPT},{type:"small",style:Qr.SCRIPT},{type:"small",style:Qr.TEXT},{type:"stack"}],_ve=[{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"}],tit=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.")},bve=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;sr)return o}return n[n.length-1]},_B=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;vve.has(e)?o=Jat:mve.has(e)?o=_ve:o=eit;var l=bve(e,r,o,a);return l.type==="small"?Wat(e,l.style,n,a,i,s):l.type==="large"?pve(e,l.size,n,a,i,s):gve(e,r,n,a,i,s)},F9=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return _B(e,h,!0,a,i,s)},Ute={"\\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}},rit=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 g7(t,e){var r=f7(t);if(r&&rit.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=g7(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Ute[t.funcName].size,mclass:Ute[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Ut([t.mclass]):yve(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Dl(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(hS[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Gte(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:g7(e[0],t).text,color:r}}});or({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=g7(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=tn(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{Gte(t);for(var r=wi(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s{Gte(t);var r=Xo(t.body,e);if(t.left!=="."){var n=new Wt("mo",[Dl(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new Wt("mo",[Dl(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return oq(r)}});or({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=g7(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=c4(e,[]);else{r=yve(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==="|"?Dl("|","text"):Dl(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 dq=(t,e)=>{var r=mb(Sn(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s=0,o=Q0(t.body);if(n==="sout")i=Ut(["stretchy","sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=ka({number:.6,unit:"pt"},e),u=ka({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=er(h/2+l);var f=Math.floor(1e3*h*a),p=oat(f),g=new I0([new vh("phase",p)],{width:"400em",height:er(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=yh(["hide-tail"],[g],e),i.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,v=0,y=0;/box/.test(n)?(y=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:y),v=m):n==="angl"?(y=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*y,v=Math.max(0,.25-r.depth)):(m=o?.2:0,v=m),i=zat(r,n,m,v,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=er(y)):n==="angl"&&y!==.049&&(i.style.borderTopWidth=er(y),i.style.borderRightWidth=er(y)),s=r.depth+v,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=kn({positionType:"individualShift",children:[{type:"elem",elem:i,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:i,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)},hq=(t,e)=>{var r=0,n=new Wt(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 a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+a+"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:a}=t,i=tn(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:dq,mathmlBuilder:hq});or({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:a}=t,i=tn(e[0],"color-token").color,s=tn(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:dq,mathmlBuilder:hq});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,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:dq,mathmlBuilder:hq});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 Eve={};function Eu(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new jt("{"+t.envName+"} can be used only in display mode.")},nit=new Set(["gather","gather*"]);function fq(t){if(!t.includes("ed"))return!t.includes("*")}function Fh(t,e,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,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],v=[],y=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function S(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new ic("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),y.push(qte(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"){S(),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(),y.length0&&(_+=.25),u.push({pos:_,isDashed:it[ke]})}for(S(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var te=void 0;if(a>0||e.hskipBeforeAndAfter){var ne,ae;te=(ne=(ae=G)==null?void 0:ae.pregap)!=null?ne:f,te!==0&&(I=Ut(["arraycolsep"],[]),I.style.width=er(te),A.push(I))}var re=[];for(n=0;n0){for(var Ce=gb("hline",r,d),ut=gb("hdashline",r,d),Ae=[{type:"elem",elem:$e,shift:0}];u.length>0;){var je=u.pop(),ot=je.pos-$;je.isDashed?Ae.push({type:"elem",elem:ut,shift:ot}):Ae.push({type:"elem",elem:Ce,shift:ot})}$e=kn({positionType:"individualShift",children:Ae})}if(L.length===0)return Ut(["mord"],[$e],r);var lt=kn({positionType:"individualShift",children:L}),ct=Ut(["tag"],[lt],r);return J0([$e,ct])},ait={c:"center ",l:"left ",r:"right "},Tu=function(e,r){for(var n=[],a=new Wt("mtd",[],["mtr-glue"]),i=new Wt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",v=!1,y=0,b=g.length;g[0].type==="separator"&&(f+="top ",y=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=y;_0?"left ":"",f+=R[R.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(v=1),n[g]={type:"align",align:m,pregap:v,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Eu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=f7(e[0]),n=r?[e[0]]:tn(e[0],"ordgroup").body,a=n.map(function(s){var o=h7(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)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Fh(t.parser,i,pq(t.envName))},htmlBuilder:Su,mathmlBuilder:Tu});Eu({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 a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new jt("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=Fh(t.parser,n,pq(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Fh(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=f7(e[0]),n=r?[e[0]]:tn(e[0],"ordgroup").body,a=n.map(function(o){var l=h7(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new jt("Unknown column alignment: "+u,o)});if(a.length>1)throw new jt("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=Fh(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new jt("{subarray} can contain only one column");return s},htmlBuilder:Su,mathmlBuilder:Tu});Eu({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=Fh(t.parser,e,pq(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Cve,htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){nit.has(t.envName)&&m7(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:fq(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Fh(t.parser,e,"display")},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Cve,htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){m7(t);var e={autoTag:fq(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Fh(t.parser,e,"display")},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return m7(t),Hat(t.parser)},htmlBuilder:Su,mathmlBuilder:Tu});Ee("\\nonumber","\\gdef\\@eqnsw{0}");Ee("\\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 Yte=Eve;or({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];if(a.type!=="ordgroup")throw new jt("Invalid environment name",a);for(var i="",s=0;s{var r=t.font,n=e.withFont(r);return Sn(t.body,n)},kve=(t,e)=>{var r=t.font,n=e.withFont(r);return Un(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,a=k6(e[0]),i=n;return i in Hte&&(i=Hte[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:wve,mathmlBuilder:kve});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:p7(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Q0(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:a}=t,{mode:i}=r,s=r.parseExpression(!0,a),o="math"+n.slice(1);return{type:"font",mode:i,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:wve,mathmlBuilder:kve});var iit=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=Sn(t.numer,i,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 v;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Wt("mfrac",[Un(t.numer,e),Un(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=ka(t.barSize,e);r.setAttribute("linethickness",er(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new Wt("mo",[new ii(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new Wt("mo",[new ii(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return oq(a)}return r},Ave=(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,a=e[0],i=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"),Ave({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:iit,mathmlBuilder:sit});or({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var Vte=["display","text","script","scriptscript"],Wte=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],a=e[5],i=k6(e[0]),s=i.type==="atom"&&i.family==="open"?Wte(i.text):null,o=k6(e[1]),l=o.type==="atom"&&o.family==="close"?Wte(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=Vte[Number(g.text)]}}else p=tn(p,"textord"),f=Vte[Number(p.text)];return Ave({type:"genfrac",mode:r.mode,numer:n,denom:a,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:a}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:tn(e[0],"size").value,token:a}}});or({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0],i=tn(e[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var s=e[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var Rve=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?Sn(t.sup,e.havingStyle(r.sup()),e):Sn(t.sub,e.havingStyle(r.sub()),e),a=tn(t.base,"horizBrace")):a=tn(t,"horizBrace");var i=Sn(a.base,e.havingBaseStyle(Qr.DISPLAY)),s=d7(a,e),o;if(a.isOver?(o=kn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=kn({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Ut(["mord",a.isOver?"mover":"munder"],[o],e);a.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 Ut(["mord",a.isOver?"mover":"munder"],[o],e)},oit=(t,e)=>{var r=u7(t.label);return new Wt(t.isOver?"mover":"munder",[Un(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:Rve,mathmlBuilder:oit});or({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],a=tn(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:ai(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=wi(t.body,e,!1);return xat(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=_h(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=tn(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i{var{parser:r,funcName:n,token:a}=t,i=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=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d{var r=wi(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=Ut(n,r,e);for(var i in t.attributes)i!=="class"&&t.attributes.hasOwnProperty(i)&&a.setAttribute(i,t.attributes[i]);return a},mathmlBuilder:(t,e)=>_h(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:ai(e[0]),mathml:ai(e[1])}},htmlBuilder:(t,e)=>{var r=wi(t.html,e,!1);return J0(r)},mathmlBuilder:(t,e)=>_h(t.mathml,e)});var $9=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(!Y1e(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,a={number:0,unit:"em"},i={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=ka(t.height,e),n=0;t.totalheight.number>0&&(n=ka(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=ka(t.width,e));var i={height:er(r+n)};a>0&&(i.width=er(a)),n>0&&(i.verticalAlign=er(-n));var s=new pat(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Wt("mglyph",[]);r.setAttribute("alt",t.alt);var n=ka(t.height,e),a=0;if(t.totalheight.number>0&&(a=ka(t.totalheight,e)-n,r.setAttribute("valign",er(-a))),r.setAttribute("height",er(n+a)),t.width.number>0){var i=ka(t.width,e);r.setAttribute("width",er(i))}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,a=tn(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.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:a.value}},htmlBuilder(t,e){return j1e(t.dimension,e)},mathmlBuilder(t,e){var r=ka(t.dimension,e);return new rve(r)}});or({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Ut([],[Sn(t.body,e)]),r=Ut(["inner"],[r],e)):r=Ut(["inner"],[Sn(t.body,e)]);var n=Ut(["fix"],[]),a=Ut([t.alignment],[r,n],e),i=Ut(["strut"]);return i.style.height=er(a.height+a.depth),a.depth&&(i.style.verticalAlign=er(-a.depth)),a.children.unshift(i),a=Ut(["thinbox"],[a],e),Ut(["mord","vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new Wt("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}});or({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{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 Kte=(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}};or({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:ai(e[0]),text:ai(e[1]),script:ai(e[2]),scriptscript:ai(e[3])}},htmlBuilder:(t,e)=>{var r=Kte(t,e),n=wi(r,e,!1);return J0(n)},mathmlBuilder:(t,e)=>{var r=Kte(t,e);return _h(r,e)}});var Nve=(t,e,r,n,a,i,s)=>{t=Ut([],[t]);var o=r&&Q0(r),l,u;if(e){var d=Sn(e,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Sn(r,n.havingStyle(a.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:er(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:er(i)},{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:er(-i)},{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:er(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var v=[f];if(l&&i!==0&&!o){var y=Ut(["mspace"],[],n);y.style.marginRight=er(i),v.unshift(y)}return Ut(["mop","op-limits"],v,n)},Ive=new Set(["\\smallint"]),s2=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=tn(t.base,"op"),a=!0):i=tn(t,"op");var s=e.style,o=!1;s.size===Qr.DISPLAY.size&&i.symbol&&!Ive.has(i.name)&&(o=!0);var l;if(i.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(d=i.name.slice(1),i.name=d==="oiint"?"\\iint":"\\iiint"),l=Ns(i.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,f=Z1e(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}]}),i.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(i.body){var p=wi(i.body,e,!0);p.length===1&&p[0]instanceof Ol?(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",[Dl(t.name,t.mode)]),Ive.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Wt("mo",Xo(t.body,e));else{r=new Wt("mi",[new ii(t.name.slice(1))]);var n=new Wt("mo",[Dl("⁡","text")]);t.parentIsSupSub?r=new Wt("mrow",[r,n]):r=tve([r,n])}return r},lit={"∏":"\\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,a=n;return a.length===1&&(a=lit[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:s2,mathmlBuilder:CT});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:ai(n)}},htmlBuilder:s2,mathmlBuilder:CT});var cit={"∫":"\\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:s2,mathmlBuilder:CT});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:s2,mathmlBuilder:CT});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=cit[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:s2,mathmlBuilder:CT});var Ove=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=tn(t.base,"operatorname"),a=!0):i=tn(t,"operatorname");var s;if(i.body.length>0){for(var o=i.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=wi(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Xo(t.body,e.withFont("mathrm")),n=!0,a=0;ad.toText()).join("");r=[new ii(o)]}var l=new Wt("mi",r);l.setAttribute("mathvariant","normal");var u=new Wt("mo",[Dl("⁡","text")]);return t.parentIsSupSub?new Wt("mrow",[l,u]):tve([l,u])};or({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"operatorname",mode:r.mode,body:ai(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ove,mathmlBuilder:uit});Ee("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ig({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?J0(wi(t.body,e,!1)):Ut(["mord"],wi(t.body,e,!0),e)},mathmlBuilder(t,e){return _h(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=Sn(t.body,e.havingCrampedStyle()),n=gb("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=kn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return Ut(["mord","overline"],[i],e)},mathmlBuilder(t,e){var r=new Wt("mo",[new ii("‾")]);r.setAttribute("stretchy","true");var n=new Wt("mover",[Un(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:ai(n)}},htmlBuilder:(t,e)=>{var r=wi(t.body,e.withPhantom(),!1);return J0(r)},mathmlBuilder:(t,e)=>{var r=Xo(t.body,e);return new Wt("mphantom",r)}});Ee("\\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"],[Sn(t.body,e.withPhantom())]),n=Ut(["fix"],[]);return Ut(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Xo(ai(t.body),e),n=new Wt("mphantom",r),a=new Wt("mpadded",[n]);return a.setAttribute("width","0px"),a}});or({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,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=Sn(t.body,e),n=ka(t.dy,e);return kn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Wt("mpadded",[Un(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,a=r[0],i=tn(e[0],"size"),s=tn(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&tn(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=Ut(["mord","rule"],[],e),n=ka(t.width,e),a=ka(t.height,e),i=t.shift?ka(t.shift,e):0;return r.style.borderRightWidth=er(n),r.style.borderTopWidth=er(a),r.style.bottom=er(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=ka(t.width,e),n=ka(t.height,e),a=t.shift?ka(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new Wt("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",er(r)),s.setAttribute("height",er(n));var o=new Wt("mpadded",[s]);return a>=0?o.setAttribute("height",er(a)):(o.setAttribute("height",er(a)),o.setAttribute("depth",er(-a))),o.setAttribute("voffset",er(a)),o}});function Dve(t,e,r){for(var n=wi(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i{var r=e.havingSize(t.size);return Dve(t.body,r,e)};or({type:"sizing",names:Xte,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:a}=t,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Xte.indexOf(n)+1,body:i}},htmlBuilder:dit,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Xo(t.body,r),a=new Wt("mstyle",n);return a.setAttribute("mathsize",er(r.sizeMultiplier)),a}});or({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,a=!1,i=!1,s=r[0]&&tn(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=Ut([],[Sn(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",[Un(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,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=Sn(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=mb(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;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=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=Sn(t.index,g,e),v=.6*(p.height-p.depth),y=kn({positionType:"shift",positionData:-v,children:[{type:"elem",elem:m}]}),b=Ut(["root"],[y]);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",[Un(r,e),Un(n,e)]):new Wt("msqrt",[Un(r,e)])}});var jte={display:Qr.DISPLAY,text:Qr.TEXT,script:Qr.SCRIPT,scriptscript:Qr.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:a}=t,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=jte[t.style],n=e.havingStyle(r).withFont("");return Dve(t.body,n,e)},mathmlBuilder(t,e){var r=jte[t.style],n=e.havingStyle(r),a=Xo(t.body,n),i=new Wt("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var hit=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===Qr.DISPLAY.size||n.alwaysHandleSupSub);return a?s2:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===Qr.DISPLAY.size||n.limits);return i?Ove:null}else{if(n.type==="accent")return Q0(n.base)?cq:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Rve:null}else return null}else return null};ig({type:"supsub",htmlBuilder(t,e){var r=hit(t,e);if(r)return r(t,e);var{base:n,sup:a,sub:i}=t,s=Sn(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&Q0(n);if(a){var p=e.havingStyle(e.style.sup());o=Sn(a,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(i){var g=e.havingStyle(e.style.sub());l=Sn(i,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 v=e.sizeMultiplier,y=er(.5/u.ptPerEm/v),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Ol||_)&&(b=er(-s.italic))}var S;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:y,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:y}];S=kn({positionType:"individualShift",children:w})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var R=[{type:"elem",elem:l,marginLeft:b,marginRight:y}];S=kn({positionType:"shift",positionData:h,children:R})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),S=kn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var O=gB(s,"right")||"mord";return Ut([O],[s,Ut(["msupsub"],[S])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[Un(t.base,e)];t.sub&&i.push(Un(t.sub,e)),t.sup&&i.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 Wt(s,i)}});ig({type:"atom",htmlBuilder(t,e){return iq(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Wt("mo",[Dl(t.text,t.mode)]);if(t.family==="bin"){var n=lq(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 Lve={mi:"italic",mn:"normal",mtext:"normal"};ig({type:"mathord",htmlBuilder(t,e){return c7(t,e,"mathord")},mathmlBuilder(t,e){var r=new Wt("mi",[Dl(t.text,t.mode,e)]),n=lq(t,e)||"italic";return n!==Lve[r.type]&&r.setAttribute("mathvariant",n),r}});ig({type:"textord",htmlBuilder(t,e){return c7(t,e,"textord")},mathmlBuilder(t,e){var r=Dl(t.text,t.mode,e),n=lq(t,e)||"normal",a;return t.mode==="text"?a=new Wt("mtext",[r]):/[0-9]/.test(t.text)?a=new Wt("mn",[r]):t.text==="\\prime"?a=new Wt("mo",[r]):a=new Wt("mi",[r]),n!==Lve[a.type]&&a.setAttribute("mathvariant",n),a}});var z9={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},U9={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ig({type:"spacing",htmlBuilder(t,e){if(U9.hasOwnProperty(t.text)){var r=U9[t.text].className||"";if(t.mode==="text"){var n=c7(t,e,"textord");return n.classes.push(r),n}else return Ut(["mspace",r],[iq(t.text,t.mode,e)],e)}else{if(z9.hasOwnProperty(t.text))return Ut(["mspace",z9[t.text]],[],e);throw new jt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(U9.hasOwnProperty(t.text))r=new Wt("mtext",[new ii(" ")]);else{if(z9.hasOwnProperty(t.text))return new Wt("mspace");throw new jt('Unknown type of space "'+t.text+'"')}return r}});var Qte=()=>{var t=new Wt("mtd",[]);return t.setAttribute("width","50%"),t};ig({type:"tag",mathmlBuilder(t,e){var r=new Wt("mtable",[new Wt("mtr",[Qte(),new Wt("mtd",[_h(t.body,e)]),Qte(),new Wt("mtd",[_h(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Zte={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Jte={"\\textbf":"textbf","\\textmd":"textmd"},fit={"\\textit":"textit","\\textup":"textup"},ere=(t,e)=>{var r=t.font;if(r){if(Zte[r])return e.withTextFontFamily(Zte[r]);if(Jte[r])return e.withTextFontWeight(Jte[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(fit[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,a=e[0];return{type:"text",mode:r.mode,body:ai(a),font:n}},htmlBuilder(t,e){var r=ere(t,e),n=wi(t.body,r,!0);return Ut(["mord","text"],n,r)},mathmlBuilder(t,e){var r=ere(t,e);return _h(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=Sn(t.body,e),n=gb("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=kn({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return Ut(["mord","underline"],[i],e)},mathmlBuilder(t,e){var r=new Wt("mo",[new ii("‾")]);r.setAttribute("stretchy","true");var n=new Wt("munder",[Un(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=Sn(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return kn({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new Wt("mpadded",[Un(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=tre(t),n=[],a=e.havingStyle(e.style.text()),i=0;it.body.replace(/ /g,t.star?"␣":" "),Yd=J1e,Mve=`[ \r - ]`,pit="\\\\[a-zA-Z@]+",git="\\\\[^\uD800-\uDFFF]",mit="("+pit+")"+Mve+"*",vit=`\\\\( +-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.")}},cB={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},fat={ex:!0,em:!0,mu:!0},Y1e=function(e){return typeof e!="string"&&(e=e.unit),e in cB||e in fat||e==="ex"},ka=function(e,r){var n;if(e.unit in cB)n=cB[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new jt("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},er=function(e){return+e.toFixed(4)+"em"},mh=function(e){return e.filter(r=>r).join(" ")},H1e=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 a=r.getColor();a&&(this.style.color=a)}},V1e=function(e){var r=document.createElement(e);r.className=mh(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var i=0;i/=\x00-\x1f]/,W1e=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+hs(mh(this.classes))+'"');var n="";for(var a of Object.keys(this.style))n+=eq(a)+":"+this.style[a]+";";n&&(r+=' style="'+hs(n)+'"');for(var i of Object.keys(this.attributes)){if(pat.test(i))throw new jt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+hs(this.attributes[i])+'"'}r+=">";for(var s=0;s",r};let TT=class{constructor(e,r,n,a){H1e.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return V1e.call(this,"span")}toMarkup(){return W1e.call(this,"span")}},nq=class{constructor(e,r,n,a){H1e.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return V1e.call(this,"a")}toMarkup(){return W1e.call(this,"a")}},gat=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=''+hs(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=er(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=mh(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 a of Object.keys(this.style))n+=eq(a)+":"+this.style[a]+";";n&&(e=!0,r+=' style="'+hs(n)+'"');var i=hs(this.text);return e?(r+=">",r+=i,r+="",r):i}},I0=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 a=0;a':''}},uB=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 Xc={"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]}},Hx={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]},Nte={Å:"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 yat(t,e){Xc[t]=e}function aq(t,e,r){if(!Xc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Xc[e][n];if(!a&&t[0]in Nte&&(n=Nte[t[0]].charCodeAt(0),a=Xc[e][n]),!a&&r==="text"&&q1e(n)&&(a=Xc[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var k9={};function _at(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!k9[e]){var r=k9[e]={cssEmPerMu:Hx.quad[e]/18};for(var n in Hx)Hx.hasOwnProperty(n)&&(r[n]=Hx[n][e])}return k9[e]}var bat={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Eat={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ha={math:{},text:{}};function W(t,e,r,n,a,i){ha[t][a]={font:e,group:r,replace:n},i&&n&&(ha[t][n]=ha[t][a])}var J="math",Ft="text",he="main",Ge="ams",ba="accent-token",ur="bin",to="close",i2="inner",Nr="mathord",hi="op-token",Ko="open",o7="punct",Ke="rel",Z0="spacing",tt="textord";W(J,he,Ke,"≡","\\equiv",!0);W(J,he,Ke,"≺","\\prec",!0);W(J,he,Ke,"≻","\\succ",!0);W(J,he,Ke,"∼","\\sim",!0);W(J,he,Ke,"⊥","\\perp");W(J,he,Ke,"⪯","\\preceq",!0);W(J,he,Ke,"⪰","\\succeq",!0);W(J,he,Ke,"≃","\\simeq",!0);W(J,he,Ke,"∣","\\mid",!0);W(J,he,Ke,"≪","\\ll",!0);W(J,he,Ke,"≫","\\gg",!0);W(J,he,Ke,"≍","\\asymp",!0);W(J,he,Ke,"∥","\\parallel");W(J,he,Ke,"⋈","\\bowtie",!0);W(J,he,Ke,"⌣","\\smile",!0);W(J,he,Ke,"⊑","\\sqsubseteq",!0);W(J,he,Ke,"⊒","\\sqsupseteq",!0);W(J,he,Ke,"≐","\\doteq",!0);W(J,he,Ke,"⌢","\\frown",!0);W(J,he,Ke,"∋","\\ni",!0);W(J,he,Ke,"∝","\\propto",!0);W(J,he,Ke,"⊢","\\vdash",!0);W(J,he,Ke,"⊣","\\dashv",!0);W(J,he,Ke,"∋","\\owns");W(J,he,o7,".","\\ldotp");W(J,he,o7,"⋅","\\cdotp");W(J,he,tt,"#","\\#");W(Ft,he,tt,"#","\\#");W(J,he,tt,"&","\\&");W(Ft,he,tt,"&","\\&");W(J,he,tt,"ℵ","\\aleph",!0);W(J,he,tt,"∀","\\forall",!0);W(J,he,tt,"ℏ","\\hbar",!0);W(J,he,tt,"∃","\\exists",!0);W(J,he,tt,"∇","\\nabla",!0);W(J,he,tt,"♭","\\flat",!0);W(J,he,tt,"ℓ","\\ell",!0);W(J,he,tt,"♮","\\natural",!0);W(J,he,tt,"♣","\\clubsuit",!0);W(J,he,tt,"℘","\\wp",!0);W(J,he,tt,"♯","\\sharp",!0);W(J,he,tt,"♢","\\diamondsuit",!0);W(J,he,tt,"ℜ","\\Re",!0);W(J,he,tt,"♡","\\heartsuit",!0);W(J,he,tt,"ℑ","\\Im",!0);W(J,he,tt,"♠","\\spadesuit",!0);W(J,he,tt,"§","\\S",!0);W(Ft,he,tt,"§","\\S");W(J,he,tt,"¶","\\P",!0);W(Ft,he,tt,"¶","\\P");W(J,he,tt,"†","\\dag");W(Ft,he,tt,"†","\\dag");W(Ft,he,tt,"†","\\textdagger");W(J,he,tt,"‡","\\ddag");W(Ft,he,tt,"‡","\\ddag");W(Ft,he,tt,"‡","\\textdaggerdbl");W(J,he,to,"⎱","\\rmoustache",!0);W(J,he,Ko,"⎰","\\lmoustache",!0);W(J,he,to,"⟯","\\rgroup",!0);W(J,he,Ko,"⟮","\\lgroup",!0);W(J,he,ur,"∓","\\mp",!0);W(J,he,ur,"⊖","\\ominus",!0);W(J,he,ur,"⊎","\\uplus",!0);W(J,he,ur,"⊓","\\sqcap",!0);W(J,he,ur,"∗","\\ast");W(J,he,ur,"⊔","\\sqcup",!0);W(J,he,ur,"◯","\\bigcirc",!0);W(J,he,ur,"∙","\\bullet",!0);W(J,he,ur,"‡","\\ddagger");W(J,he,ur,"≀","\\wr",!0);W(J,he,ur,"⨿","\\amalg");W(J,he,ur,"&","\\And");W(J,he,Ke,"⟵","\\longleftarrow",!0);W(J,he,Ke,"⇐","\\Leftarrow",!0);W(J,he,Ke,"⟸","\\Longleftarrow",!0);W(J,he,Ke,"⟶","\\longrightarrow",!0);W(J,he,Ke,"⇒","\\Rightarrow",!0);W(J,he,Ke,"⟹","\\Longrightarrow",!0);W(J,he,Ke,"↔","\\leftrightarrow",!0);W(J,he,Ke,"⟷","\\longleftrightarrow",!0);W(J,he,Ke,"⇔","\\Leftrightarrow",!0);W(J,he,Ke,"⟺","\\Longleftrightarrow",!0);W(J,he,Ke,"↦","\\mapsto",!0);W(J,he,Ke,"⟼","\\longmapsto",!0);W(J,he,Ke,"↗","\\nearrow",!0);W(J,he,Ke,"↩","\\hookleftarrow",!0);W(J,he,Ke,"↪","\\hookrightarrow",!0);W(J,he,Ke,"↘","\\searrow",!0);W(J,he,Ke,"↼","\\leftharpoonup",!0);W(J,he,Ke,"⇀","\\rightharpoonup",!0);W(J,he,Ke,"↙","\\swarrow",!0);W(J,he,Ke,"↽","\\leftharpoondown",!0);W(J,he,Ke,"⇁","\\rightharpoondown",!0);W(J,he,Ke,"↖","\\nwarrow",!0);W(J,he,Ke,"⇌","\\rightleftharpoons",!0);W(J,Ge,Ke,"≮","\\nless",!0);W(J,Ge,Ke,"","\\@nleqslant");W(J,Ge,Ke,"","\\@nleqq");W(J,Ge,Ke,"⪇","\\lneq",!0);W(J,Ge,Ke,"≨","\\lneqq",!0);W(J,Ge,Ke,"","\\@lvertneqq");W(J,Ge,Ke,"⋦","\\lnsim",!0);W(J,Ge,Ke,"⪉","\\lnapprox",!0);W(J,Ge,Ke,"⊀","\\nprec",!0);W(J,Ge,Ke,"⋠","\\npreceq",!0);W(J,Ge,Ke,"⋨","\\precnsim",!0);W(J,Ge,Ke,"⪹","\\precnapprox",!0);W(J,Ge,Ke,"≁","\\nsim",!0);W(J,Ge,Ke,"","\\@nshortmid");W(J,Ge,Ke,"∤","\\nmid",!0);W(J,Ge,Ke,"⊬","\\nvdash",!0);W(J,Ge,Ke,"⊭","\\nvDash",!0);W(J,Ge,Ke,"⋪","\\ntriangleleft");W(J,Ge,Ke,"⋬","\\ntrianglelefteq",!0);W(J,Ge,Ke,"⊊","\\subsetneq",!0);W(J,Ge,Ke,"","\\@varsubsetneq");W(J,Ge,Ke,"⫋","\\subsetneqq",!0);W(J,Ge,Ke,"","\\@varsubsetneqq");W(J,Ge,Ke,"≯","\\ngtr",!0);W(J,Ge,Ke,"","\\@ngeqslant");W(J,Ge,Ke,"","\\@ngeqq");W(J,Ge,Ke,"⪈","\\gneq",!0);W(J,Ge,Ke,"≩","\\gneqq",!0);W(J,Ge,Ke,"","\\@gvertneqq");W(J,Ge,Ke,"⋧","\\gnsim",!0);W(J,Ge,Ke,"⪊","\\gnapprox",!0);W(J,Ge,Ke,"⊁","\\nsucc",!0);W(J,Ge,Ke,"⋡","\\nsucceq",!0);W(J,Ge,Ke,"⋩","\\succnsim",!0);W(J,Ge,Ke,"⪺","\\succnapprox",!0);W(J,Ge,Ke,"≆","\\ncong",!0);W(J,Ge,Ke,"","\\@nshortparallel");W(J,Ge,Ke,"∦","\\nparallel",!0);W(J,Ge,Ke,"⊯","\\nVDash",!0);W(J,Ge,Ke,"⋫","\\ntriangleright");W(J,Ge,Ke,"⋭","\\ntrianglerighteq",!0);W(J,Ge,Ke,"","\\@nsupseteqq");W(J,Ge,Ke,"⊋","\\supsetneq",!0);W(J,Ge,Ke,"","\\@varsupsetneq");W(J,Ge,Ke,"⫌","\\supsetneqq",!0);W(J,Ge,Ke,"","\\@varsupsetneqq");W(J,Ge,Ke,"⊮","\\nVdash",!0);W(J,Ge,Ke,"⪵","\\precneqq",!0);W(J,Ge,Ke,"⪶","\\succneqq",!0);W(J,Ge,Ke,"","\\@nsubseteqq");W(J,Ge,ur,"⊴","\\unlhd");W(J,Ge,ur,"⊵","\\unrhd");W(J,Ge,Ke,"↚","\\nleftarrow",!0);W(J,Ge,Ke,"↛","\\nrightarrow",!0);W(J,Ge,Ke,"⇍","\\nLeftarrow",!0);W(J,Ge,Ke,"⇏","\\nRightarrow",!0);W(J,Ge,Ke,"↮","\\nleftrightarrow",!0);W(J,Ge,Ke,"⇎","\\nLeftrightarrow",!0);W(J,Ge,Ke,"△","\\vartriangle");W(J,Ge,tt,"ℏ","\\hslash");W(J,Ge,tt,"▽","\\triangledown");W(J,Ge,tt,"◊","\\lozenge");W(J,Ge,tt,"Ⓢ","\\circledS");W(J,Ge,tt,"®","\\circledR");W(Ft,Ge,tt,"®","\\circledR");W(J,Ge,tt,"∡","\\measuredangle",!0);W(J,Ge,tt,"∄","\\nexists");W(J,Ge,tt,"℧","\\mho");W(J,Ge,tt,"Ⅎ","\\Finv",!0);W(J,Ge,tt,"⅁","\\Game",!0);W(J,Ge,tt,"‵","\\backprime");W(J,Ge,tt,"▲","\\blacktriangle");W(J,Ge,tt,"▼","\\blacktriangledown");W(J,Ge,tt,"■","\\blacksquare");W(J,Ge,tt,"⧫","\\blacklozenge");W(J,Ge,tt,"★","\\bigstar");W(J,Ge,tt,"∢","\\sphericalangle",!0);W(J,Ge,tt,"∁","\\complement",!0);W(J,Ge,tt,"ð","\\eth",!0);W(Ft,he,tt,"ð","ð");W(J,Ge,tt,"╱","\\diagup");W(J,Ge,tt,"╲","\\diagdown");W(J,Ge,tt,"□","\\square");W(J,Ge,tt,"□","\\Box");W(J,Ge,tt,"◊","\\Diamond");W(J,Ge,tt,"¥","\\yen",!0);W(Ft,Ge,tt,"¥","\\yen",!0);W(J,Ge,tt,"✓","\\checkmark",!0);W(Ft,Ge,tt,"✓","\\checkmark");W(J,Ge,tt,"ℶ","\\beth",!0);W(J,Ge,tt,"ℸ","\\daleth",!0);W(J,Ge,tt,"ℷ","\\gimel",!0);W(J,Ge,tt,"ϝ","\\digamma",!0);W(J,Ge,tt,"ϰ","\\varkappa");W(J,Ge,Ko,"┌","\\@ulcorner",!0);W(J,Ge,to,"┐","\\@urcorner",!0);W(J,Ge,Ko,"└","\\@llcorner",!0);W(J,Ge,to,"┘","\\@lrcorner",!0);W(J,Ge,Ke,"≦","\\leqq",!0);W(J,Ge,Ke,"⩽","\\leqslant",!0);W(J,Ge,Ke,"⪕","\\eqslantless",!0);W(J,Ge,Ke,"≲","\\lesssim",!0);W(J,Ge,Ke,"⪅","\\lessapprox",!0);W(J,Ge,Ke,"≊","\\approxeq",!0);W(J,Ge,ur,"⋖","\\lessdot");W(J,Ge,Ke,"⋘","\\lll",!0);W(J,Ge,Ke,"≶","\\lessgtr",!0);W(J,Ge,Ke,"⋚","\\lesseqgtr",!0);W(J,Ge,Ke,"⪋","\\lesseqqgtr",!0);W(J,Ge,Ke,"≑","\\doteqdot");W(J,Ge,Ke,"≓","\\risingdotseq",!0);W(J,Ge,Ke,"≒","\\fallingdotseq",!0);W(J,Ge,Ke,"∽","\\backsim",!0);W(J,Ge,Ke,"⋍","\\backsimeq",!0);W(J,Ge,Ke,"⫅","\\subseteqq",!0);W(J,Ge,Ke,"⋐","\\Subset",!0);W(J,Ge,Ke,"⊏","\\sqsubset",!0);W(J,Ge,Ke,"≼","\\preccurlyeq",!0);W(J,Ge,Ke,"⋞","\\curlyeqprec",!0);W(J,Ge,Ke,"≾","\\precsim",!0);W(J,Ge,Ke,"⪷","\\precapprox",!0);W(J,Ge,Ke,"⊲","\\vartriangleleft");W(J,Ge,Ke,"⊴","\\trianglelefteq");W(J,Ge,Ke,"⊨","\\vDash",!0);W(J,Ge,Ke,"⊪","\\Vvdash",!0);W(J,Ge,Ke,"⌣","\\smallsmile");W(J,Ge,Ke,"⌢","\\smallfrown");W(J,Ge,Ke,"≏","\\bumpeq",!0);W(J,Ge,Ke,"≎","\\Bumpeq",!0);W(J,Ge,Ke,"≧","\\geqq",!0);W(J,Ge,Ke,"⩾","\\geqslant",!0);W(J,Ge,Ke,"⪖","\\eqslantgtr",!0);W(J,Ge,Ke,"≳","\\gtrsim",!0);W(J,Ge,Ke,"⪆","\\gtrapprox",!0);W(J,Ge,ur,"⋗","\\gtrdot");W(J,Ge,Ke,"⋙","\\ggg",!0);W(J,Ge,Ke,"≷","\\gtrless",!0);W(J,Ge,Ke,"⋛","\\gtreqless",!0);W(J,Ge,Ke,"⪌","\\gtreqqless",!0);W(J,Ge,Ke,"≖","\\eqcirc",!0);W(J,Ge,Ke,"≗","\\circeq",!0);W(J,Ge,Ke,"≜","\\triangleq",!0);W(J,Ge,Ke,"∼","\\thicksim");W(J,Ge,Ke,"≈","\\thickapprox");W(J,Ge,Ke,"⫆","\\supseteqq",!0);W(J,Ge,Ke,"⋑","\\Supset",!0);W(J,Ge,Ke,"⊐","\\sqsupset",!0);W(J,Ge,Ke,"≽","\\succcurlyeq",!0);W(J,Ge,Ke,"⋟","\\curlyeqsucc",!0);W(J,Ge,Ke,"≿","\\succsim",!0);W(J,Ge,Ke,"⪸","\\succapprox",!0);W(J,Ge,Ke,"⊳","\\vartriangleright");W(J,Ge,Ke,"⊵","\\trianglerighteq");W(J,Ge,Ke,"⊩","\\Vdash",!0);W(J,Ge,Ke,"∣","\\shortmid");W(J,Ge,Ke,"∥","\\shortparallel");W(J,Ge,Ke,"≬","\\between",!0);W(J,Ge,Ke,"⋔","\\pitchfork",!0);W(J,Ge,Ke,"∝","\\varpropto");W(J,Ge,Ke,"◀","\\blacktriangleleft");W(J,Ge,Ke,"∴","\\therefore",!0);W(J,Ge,Ke,"∍","\\backepsilon");W(J,Ge,Ke,"▶","\\blacktriangleright");W(J,Ge,Ke,"∵","\\because",!0);W(J,Ge,Ke,"⋘","\\llless");W(J,Ge,Ke,"⋙","\\gggtr");W(J,Ge,ur,"⊲","\\lhd");W(J,Ge,ur,"⊳","\\rhd");W(J,Ge,Ke,"≂","\\eqsim",!0);W(J,he,Ke,"⋈","\\Join");W(J,Ge,Ke,"≑","\\Doteq",!0);W(J,Ge,ur,"∔","\\dotplus",!0);W(J,Ge,ur,"∖","\\smallsetminus");W(J,Ge,ur,"⋒","\\Cap",!0);W(J,Ge,ur,"⋓","\\Cup",!0);W(J,Ge,ur,"⩞","\\doublebarwedge",!0);W(J,Ge,ur,"⊟","\\boxminus",!0);W(J,Ge,ur,"⊞","\\boxplus",!0);W(J,Ge,ur,"⋇","\\divideontimes",!0);W(J,Ge,ur,"⋉","\\ltimes",!0);W(J,Ge,ur,"⋊","\\rtimes",!0);W(J,Ge,ur,"⋋","\\leftthreetimes",!0);W(J,Ge,ur,"⋌","\\rightthreetimes",!0);W(J,Ge,ur,"⋏","\\curlywedge",!0);W(J,Ge,ur,"⋎","\\curlyvee",!0);W(J,Ge,ur,"⊝","\\circleddash",!0);W(J,Ge,ur,"⊛","\\circledast",!0);W(J,Ge,ur,"⋅","\\centerdot");W(J,Ge,ur,"⊺","\\intercal",!0);W(J,Ge,ur,"⋒","\\doublecap");W(J,Ge,ur,"⋓","\\doublecup");W(J,Ge,ur,"⊠","\\boxtimes",!0);W(J,Ge,Ke,"⇢","\\dashrightarrow",!0);W(J,Ge,Ke,"⇠","\\dashleftarrow",!0);W(J,Ge,Ke,"⇇","\\leftleftarrows",!0);W(J,Ge,Ke,"⇆","\\leftrightarrows",!0);W(J,Ge,Ke,"⇚","\\Lleftarrow",!0);W(J,Ge,Ke,"↞","\\twoheadleftarrow",!0);W(J,Ge,Ke,"↢","\\leftarrowtail",!0);W(J,Ge,Ke,"↫","\\looparrowleft",!0);W(J,Ge,Ke,"⇋","\\leftrightharpoons",!0);W(J,Ge,Ke,"↶","\\curvearrowleft",!0);W(J,Ge,Ke,"↺","\\circlearrowleft",!0);W(J,Ge,Ke,"↰","\\Lsh",!0);W(J,Ge,Ke,"⇈","\\upuparrows",!0);W(J,Ge,Ke,"↿","\\upharpoonleft",!0);W(J,Ge,Ke,"⇃","\\downharpoonleft",!0);W(J,he,Ke,"⊶","\\origof",!0);W(J,he,Ke,"⊷","\\imageof",!0);W(J,Ge,Ke,"⊸","\\multimap",!0);W(J,Ge,Ke,"↭","\\leftrightsquigarrow",!0);W(J,Ge,Ke,"⇉","\\rightrightarrows",!0);W(J,Ge,Ke,"⇄","\\rightleftarrows",!0);W(J,Ge,Ke,"↠","\\twoheadrightarrow",!0);W(J,Ge,Ke,"↣","\\rightarrowtail",!0);W(J,Ge,Ke,"↬","\\looparrowright",!0);W(J,Ge,Ke,"↷","\\curvearrowright",!0);W(J,Ge,Ke,"↻","\\circlearrowright",!0);W(J,Ge,Ke,"↱","\\Rsh",!0);W(J,Ge,Ke,"⇊","\\downdownarrows",!0);W(J,Ge,Ke,"↾","\\upharpoonright",!0);W(J,Ge,Ke,"⇂","\\downharpoonright",!0);W(J,Ge,Ke,"⇝","\\rightsquigarrow",!0);W(J,Ge,Ke,"⇝","\\leadsto");W(J,Ge,Ke,"⇛","\\Rrightarrow",!0);W(J,Ge,Ke,"↾","\\restriction");W(J,he,tt,"‘","`");W(J,he,tt,"$","\\$");W(Ft,he,tt,"$","\\$");W(Ft,he,tt,"$","\\textdollar");W(J,he,tt,"%","\\%");W(Ft,he,tt,"%","\\%");W(J,he,tt,"_","\\_");W(Ft,he,tt,"_","\\_");W(Ft,he,tt,"_","\\textunderscore");W(J,he,tt,"∠","\\angle",!0);W(J,he,tt,"∞","\\infty",!0);W(J,he,tt,"′","\\prime");W(J,he,tt,"△","\\triangle");W(J,he,tt,"Γ","\\Gamma",!0);W(J,he,tt,"Δ","\\Delta",!0);W(J,he,tt,"Θ","\\Theta",!0);W(J,he,tt,"Λ","\\Lambda",!0);W(J,he,tt,"Ξ","\\Xi",!0);W(J,he,tt,"Π","\\Pi",!0);W(J,he,tt,"Σ","\\Sigma",!0);W(J,he,tt,"Υ","\\Upsilon",!0);W(J,he,tt,"Φ","\\Phi",!0);W(J,he,tt,"Ψ","\\Psi",!0);W(J,he,tt,"Ω","\\Omega",!0);W(J,he,tt,"A","Α");W(J,he,tt,"B","Β");W(J,he,tt,"E","Ε");W(J,he,tt,"Z","Ζ");W(J,he,tt,"H","Η");W(J,he,tt,"I","Ι");W(J,he,tt,"K","Κ");W(J,he,tt,"M","Μ");W(J,he,tt,"N","Ν");W(J,he,tt,"O","Ο");W(J,he,tt,"P","Ρ");W(J,he,tt,"T","Τ");W(J,he,tt,"X","Χ");W(J,he,tt,"¬","\\neg",!0);W(J,he,tt,"¬","\\lnot");W(J,he,tt,"⊤","\\top");W(J,he,tt,"⊥","\\bot");W(J,he,tt,"∅","\\emptyset");W(J,Ge,tt,"∅","\\varnothing");W(J,he,Nr,"α","\\alpha",!0);W(J,he,Nr,"β","\\beta",!0);W(J,he,Nr,"γ","\\gamma",!0);W(J,he,Nr,"δ","\\delta",!0);W(J,he,Nr,"ϵ","\\epsilon",!0);W(J,he,Nr,"ζ","\\zeta",!0);W(J,he,Nr,"η","\\eta",!0);W(J,he,Nr,"θ","\\theta",!0);W(J,he,Nr,"ι","\\iota",!0);W(J,he,Nr,"κ","\\kappa",!0);W(J,he,Nr,"λ","\\lambda",!0);W(J,he,Nr,"μ","\\mu",!0);W(J,he,Nr,"ν","\\nu",!0);W(J,he,Nr,"ξ","\\xi",!0);W(J,he,Nr,"ο","\\omicron",!0);W(J,he,Nr,"π","\\pi",!0);W(J,he,Nr,"ρ","\\rho",!0);W(J,he,Nr,"σ","\\sigma",!0);W(J,he,Nr,"τ","\\tau",!0);W(J,he,Nr,"υ","\\upsilon",!0);W(J,he,Nr,"ϕ","\\phi",!0);W(J,he,Nr,"χ","\\chi",!0);W(J,he,Nr,"ψ","\\psi",!0);W(J,he,Nr,"ω","\\omega",!0);W(J,he,Nr,"ε","\\varepsilon",!0);W(J,he,Nr,"ϑ","\\vartheta",!0);W(J,he,Nr,"ϖ","\\varpi",!0);W(J,he,Nr,"ϱ","\\varrho",!0);W(J,he,Nr,"ς","\\varsigma",!0);W(J,he,Nr,"φ","\\varphi",!0);W(J,he,ur,"∗","*",!0);W(J,he,ur,"+","+");W(J,he,ur,"−","-",!0);W(J,he,ur,"⋅","\\cdot",!0);W(J,he,ur,"∘","\\circ",!0);W(J,he,ur,"÷","\\div",!0);W(J,he,ur,"±","\\pm",!0);W(J,he,ur,"×","\\times",!0);W(J,he,ur,"∩","\\cap",!0);W(J,he,ur,"∪","\\cup",!0);W(J,he,ur,"∖","\\setminus",!0);W(J,he,ur,"∧","\\land");W(J,he,ur,"∨","\\lor");W(J,he,ur,"∧","\\wedge",!0);W(J,he,ur,"∨","\\vee",!0);W(J,he,tt,"√","\\surd");W(J,he,Ko,"⟨","\\langle",!0);W(J,he,Ko,"∣","\\lvert");W(J,he,Ko,"∥","\\lVert");W(J,he,to,"?","?");W(J,he,to,"!","!");W(J,he,to,"⟩","\\rangle",!0);W(J,he,to,"∣","\\rvert");W(J,he,to,"∥","\\rVert");W(J,he,Ke,"=","=");W(J,he,Ke,":",":");W(J,he,Ke,"≈","\\approx",!0);W(J,he,Ke,"≅","\\cong",!0);W(J,he,Ke,"≥","\\ge");W(J,he,Ke,"≥","\\geq",!0);W(J,he,Ke,"←","\\gets");W(J,he,Ke,">","\\gt",!0);W(J,he,Ke,"∈","\\in",!0);W(J,he,Ke,"","\\@not");W(J,he,Ke,"⊂","\\subset",!0);W(J,he,Ke,"⊃","\\supset",!0);W(J,he,Ke,"⊆","\\subseteq",!0);W(J,he,Ke,"⊇","\\supseteq",!0);W(J,Ge,Ke,"⊈","\\nsubseteq",!0);W(J,Ge,Ke,"⊉","\\nsupseteq",!0);W(J,he,Ke,"⊨","\\models");W(J,he,Ke,"←","\\leftarrow",!0);W(J,he,Ke,"≤","\\le");W(J,he,Ke,"≤","\\leq",!0);W(J,he,Ke,"<","\\lt",!0);W(J,he,Ke,"→","\\rightarrow",!0);W(J,he,Ke,"→","\\to");W(J,Ge,Ke,"≱","\\ngeq",!0);W(J,Ge,Ke,"≰","\\nleq",!0);W(J,he,Z0," ","\\ ");W(J,he,Z0," ","\\space");W(J,he,Z0," ","\\nobreakspace");W(Ft,he,Z0," ","\\ ");W(Ft,he,Z0," "," ");W(Ft,he,Z0," ","\\space");W(Ft,he,Z0," ","\\nobreakspace");W(J,he,Z0,null,"\\nobreak");W(J,he,Z0,null,"\\allowbreak");W(J,he,o7,",",",");W(J,he,o7,";",";");W(J,Ge,ur,"⊼","\\barwedge",!0);W(J,Ge,ur,"⊻","\\veebar",!0);W(J,he,ur,"⊙","\\odot",!0);W(J,he,ur,"⊕","\\oplus",!0);W(J,he,ur,"⊗","\\otimes",!0);W(J,he,tt,"∂","\\partial",!0);W(J,he,ur,"⊘","\\oslash",!0);W(J,Ge,ur,"⊚","\\circledcirc",!0);W(J,Ge,ur,"⊡","\\boxdot",!0);W(J,he,ur,"△","\\bigtriangleup");W(J,he,ur,"▽","\\bigtriangledown");W(J,he,ur,"†","\\dagger");W(J,he,ur,"⋄","\\diamond");W(J,he,ur,"⋆","\\star");W(J,he,ur,"◃","\\triangleleft");W(J,he,ur,"▹","\\triangleright");W(J,he,Ko,"{","\\{");W(Ft,he,tt,"{","\\{");W(Ft,he,tt,"{","\\textbraceleft");W(J,he,to,"}","\\}");W(Ft,he,tt,"}","\\}");W(Ft,he,tt,"}","\\textbraceright");W(J,he,Ko,"{","\\lbrace");W(J,he,to,"}","\\rbrace");W(J,he,Ko,"[","\\lbrack",!0);W(Ft,he,tt,"[","\\lbrack",!0);W(J,he,to,"]","\\rbrack",!0);W(Ft,he,tt,"]","\\rbrack",!0);W(J,he,Ko,"(","\\lparen",!0);W(J,he,to,")","\\rparen",!0);W(Ft,he,tt,"<","\\textless",!0);W(Ft,he,tt,">","\\textgreater",!0);W(J,he,Ko,"⌊","\\lfloor",!0);W(J,he,to,"⌋","\\rfloor",!0);W(J,he,Ko,"⌈","\\lceil",!0);W(J,he,to,"⌉","\\rceil",!0);W(J,he,tt,"\\","\\backslash");W(J,he,tt,"∣","|");W(J,he,tt,"∣","\\vert");W(Ft,he,tt,"|","\\textbar",!0);W(J,he,tt,"∥","\\|");W(J,he,tt,"∥","\\Vert");W(Ft,he,tt,"∥","\\textbardbl");W(Ft,he,tt,"~","\\textasciitilde");W(Ft,he,tt,"\\","\\textbackslash");W(Ft,he,tt,"^","\\textasciicircum");W(J,he,Ke,"↑","\\uparrow",!0);W(J,he,Ke,"⇑","\\Uparrow",!0);W(J,he,Ke,"↓","\\downarrow",!0);W(J,he,Ke,"⇓","\\Downarrow",!0);W(J,he,Ke,"↕","\\updownarrow",!0);W(J,he,Ke,"⇕","\\Updownarrow",!0);W(J,he,hi,"∐","\\coprod");W(J,he,hi,"⋁","\\bigvee");W(J,he,hi,"⋀","\\bigwedge");W(J,he,hi,"⨄","\\biguplus");W(J,he,hi,"⋂","\\bigcap");W(J,he,hi,"⋃","\\bigcup");W(J,he,hi,"∫","\\int");W(J,he,hi,"∫","\\intop");W(J,he,hi,"∬","\\iint");W(J,he,hi,"∭","\\iiint");W(J,he,hi,"∏","\\prod");W(J,he,hi,"∑","\\sum");W(J,he,hi,"⨂","\\bigotimes");W(J,he,hi,"⨁","\\bigoplus");W(J,he,hi,"⨀","\\bigodot");W(J,he,hi,"∮","\\oint");W(J,he,hi,"∯","\\oiint");W(J,he,hi,"∰","\\oiiint");W(J,he,hi,"⨆","\\bigsqcup");W(J,he,hi,"∫","\\smallint");W(Ft,he,i2,"…","\\textellipsis");W(J,he,i2,"…","\\mathellipsis");W(Ft,he,i2,"…","\\ldots",!0);W(J,he,i2,"…","\\ldots",!0);W(J,he,i2,"⋯","\\@cdots",!0);W(J,he,i2,"⋱","\\ddots",!0);W(J,he,tt,"⋮","\\varvdots");W(Ft,he,tt,"⋮","\\varvdots");W(J,he,ba,"ˊ","\\acute");W(J,he,ba,"ˋ","\\grave");W(J,he,ba,"¨","\\ddot");W(J,he,ba,"~","\\tilde");W(J,he,ba,"ˉ","\\bar");W(J,he,ba,"˘","\\breve");W(J,he,ba,"ˇ","\\check");W(J,he,ba,"^","\\hat");W(J,he,ba,"⃗","\\vec");W(J,he,ba,"˙","\\dot");W(J,he,ba,"˚","\\mathring");W(J,he,Nr,"","\\@imath");W(J,he,Nr,"","\\@jmath");W(J,he,tt,"ı","ı");W(J,he,tt,"ȷ","ȷ");W(Ft,he,tt,"ı","\\i",!0);W(Ft,he,tt,"ȷ","\\j",!0);W(Ft,he,tt,"ß","\\ss",!0);W(Ft,he,tt,"æ","\\ae",!0);W(Ft,he,tt,"œ","\\oe",!0);W(Ft,he,tt,"ø","\\o",!0);W(Ft,he,tt,"Æ","\\AE",!0);W(Ft,he,tt,"Œ","\\OE",!0);W(Ft,he,tt,"Ø","\\O",!0);W(Ft,he,ba,"ˊ","\\'");W(Ft,he,ba,"ˋ","\\`");W(Ft,he,ba,"ˆ","\\^");W(Ft,he,ba,"˜","\\~");W(Ft,he,ba,"ˉ","\\=");W(Ft,he,ba,"˘","\\u");W(Ft,he,ba,"˙","\\.");W(Ft,he,ba,"¸","\\c");W(Ft,he,ba,"˚","\\r");W(Ft,he,ba,"ˇ","\\v");W(Ft,he,ba,"¨",'\\"');W(Ft,he,ba,"˝","\\H");W(Ft,he,ba,"◯","\\textcircled");var K1e={"--":!0,"---":!0,"``":!0,"''":!0};W(Ft,he,tt,"–","--",!0);W(Ft,he,tt,"–","\\textendash");W(Ft,he,tt,"—","---",!0);W(Ft,he,tt,"—","\\textemdash");W(Ft,he,tt,"‘","`",!0);W(Ft,he,tt,"‘","\\textquoteleft");W(Ft,he,tt,"’","'",!0);W(Ft,he,tt,"’","\\textquoteright");W(Ft,he,tt,"“","``",!0);W(Ft,he,tt,"“","\\textquotedblleft");W(Ft,he,tt,"”","''",!0);W(Ft,he,tt,"”","\\textquotedblright");W(J,he,tt,"°","\\degree",!0);W(Ft,he,tt,"°","\\degree");W(Ft,he,tt,"°","\\textdegree",!0);W(J,he,tt,"£","\\pounds");W(J,he,tt,"£","\\mathsterling",!0);W(Ft,he,tt,"£","\\pounds");W(Ft,he,tt,"£","\\textsterling",!0);W(J,Ge,tt,"✠","\\maltese");W(Ft,Ge,tt,"✠","\\maltese");var Ite='0123456789/@."';for(var A9=0;A9{var r=t.charCodeAt(0),n=t.charCodeAt(1),a=(r-55296)*1024+(n-56320)+65536,i=e==="math"?0:1;if(119808<=a&&a<120484){var s=Math.floor((a-119808)/26);return[Kx[s][2],Kx[s][i]]}else if(120782<=a&&a<=120831){var o=Math.floor((a-120782)/10);return[Mte[o][2],Mte[o][i]]}else{if(a===120485||a===120486)return[Kx[0][2],Kx[0][i]];if(120486r.toText();return this.children.map(e).join("")}};var l7=function(e,r,n){if(ha[n][e]){var a=ha[n][e].replace;a&&(e=a)}return{value:e,metrics:aq(e,r,n)}},Ns=function(e,r,n,a,i){var s=l7(e,r,n),o=s.metrics;e=s.value;var l;if(o){var u=o.italic;(n==="text"||a&&a.font==="mathit")&&(u=0),l=new Ol(e,o.height,o.depth,u,o.skew,o.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),l=new Ol(e,0,0,0,0,0,i);if(a){l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var d=a.getColor();d&&(l.style.color=d)}return l},iq=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&l7(e,"Main-Bold",r).metrics?Ns(e,"Main-Bold",r,n,a.concat(["mathbf"])):e==="\\"||ha[r][e].font==="main"?Ns(e,"Main-Regular",r,n,a):Ns(e,"AMS-Regular",r,n,a.concat(["amsrm"]))},Tat=function(e,r,n,a,i){return i!=="textord"&&l7(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},c7=function(e,r,n){var a=e.mode,i=e.text,s=["mord"],o=a==="math"||a==="text"&&r.font,l=o?r.font:r.fontFamily,u="",d="";if(i.charCodeAt(0)===55349&&([u,d]=Sat(i,a)),u.length>0)return Ns(i,u,a,r,s.concat(d));if(l){var h,f;if(l==="boldsymbol"){var p=Tat(i,a,r,s,n);h=p.fontName,f=[p.fontClass]}else o?(h=hB[l].fontName,f=[l]):(h=Xx(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(l7(i,h,a).metrics)return Ns(i,h,a,r,s.concat(f));if(K1e.hasOwnProperty(i)&&h.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(mh(t.classes)!==mh(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 a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},X1e=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},Ut=function(e,r,n,a){var i=new TT(e,r,n,a);return sq(i),i},yh=(t,e,r,n)=>new TT(t,e,r,n),gb=function(e,r,n){var a=Ut([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=er(a.height),a.maxFontSize=1,a},Cat=function(e,r,n,a){var i=new nq(e,r,n,a);return sq(i),i},J0=function(e){var r=new xT(e);return sq(r),r},mb=function(e,r){return e instanceof xT?Ut([],[e],r):e},wat=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s{var r=Ut(["mspace"],[],e),n=ka(t,e);return r.style.marginRight=er(n),r},Xx=function(e,r,n){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},hB={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"}},Q1e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Z1e=function(e,r){var[n,a,i]=Q1e[e],s=new vh(n),o=new I0([s],{width:er(a),height:er(i),style:"width:"+er(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=yh(["overlay"],[o],r);return l.height=i,l.style.height=er(i),l.style.width=er(a),l},xa={number:3,unit:"mu"},ff={number:4,unit:"mu"},Gu={number:5,unit:"mu"},kat={mord:{mop:xa,mbin:ff,mrel:Gu,minner:xa},mop:{mord:xa,mop:xa,mrel:Gu,minner:xa},mbin:{mord:ff,mop:ff,mopen:ff,minner:ff},mrel:{mord:Gu,mop:Gu,mopen:Gu,minner:Gu},mopen:{},mclose:{mop:xa,mbin:ff,mrel:Gu,minner:xa},mpunct:{mord:xa,mop:xa,mrel:Gu,mopen:xa,mclose:xa,mpunct:xa,minner:xa},minner:{mord:xa,mop:xa,mbin:ff,mrel:Gu,mopen:xa,mpunct:xa,minner:xa}},Aat={mord:{mop:xa},mop:{mord:xa,mop:xa},mbin:{},mrel:{},mopen:{},mclose:{mop:xa},mpunct:{},minner:{mop:xa}},J1e={},C6={},w6={};function or(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,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:a},l=0;l{var v=m.classes[0],y=g.classes[0];v==="mbin"&&Nat.has(y)?m.classes[0]="mord":y==="mbin"&&Rat.has(v)&&(g.classes[0]="mord")},{node:h},f,p),fB(i,(g,m)=>{var v,y,b=gB(m),_=gB(g),S=b&&_?g.hasClass("mtight")?(v=Aat[b])==null?void 0:v[_]:(y=kat[b])==null?void 0:y[_]:null;if(S)return j1e(S,u)},{node:h},f,p),i},fB=function(e,r,n,a,i){a&&e.push(a);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}a&&e.pop()},eve=function(e){return e instanceof xT||e instanceof nq||e instanceof TT&&e.hasClass("enclosing")?e:null},pB=function(e,r){var n=eve(e);if(n){var a=n.children;if(a.length){if(r==="right")return pB(a[a.length-1],"right");if(r==="left")return pB(a[0],"left")}}return e},gB=function(e,r){if(!e)return null;r&&(e=pB(e,r));var n=e.classes[0];return Oat[n]||null},c4=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Ut(r.concat(n))},Sn=function(e,r,n){if(!e)return Ut();if(C6[e.type]){var a=C6[e.type](e,r);if(n&&r.size!==n.size){a=Ut(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new jt("Got group of unknown type: '"+e.type+"'")};function jx(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 mB(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=wi(t,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o0&&(i.push(jx(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(jx(s,e));var u;r?(u=jx(wi(r,e,!0),e),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=Ut(["katex-html"],i);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 tve(t){return new xT(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=mh(this.classes));for(var n=0;n0&&(e+=' class ="'+hs(mh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ii=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return hs(this.toText())}toText(){return this.text}},rve=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 Dat=new Set(["\\imath","\\jmath"]),Lat=new Set(["mrow","mtable"]),Dl=function(e,r,n){return ha[r][e]&&ha[r][e].replace&&e.charCodeAt(0)!==55349&&!(K1e.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=ha[r][e].replace),new ii(e)},oq=function(e){return e.length===1?e[0]:new Wt("mrow",e)},lq=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 a=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 i=e.text;if(Dat.has(i))return null;if(ha[a][i]){var s=ha[a][i].replace;s&&(i=s)}var o=hB[n].fontName;return aq(i,o,a)?hB[n].variant:null};function O9(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof ii&&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 ii&&r.text===","}else return!1}var Xo=function(e,r,n){if(e.length===1){var a=Un(e[0],r);return n&&a instanceof Wt&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o=1&&(s.type==="mn"||O9(s))){var u=l.children[0];u instanceof Wt&&u.type==="mn"&&(u.children=[...s.children,...u.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ii&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof ii&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(l),s=l}return i},_h=function(e,r,n){return oq(Xo(e,r,n))},Un=function(e,r){if(!e)return new Wt("mrow");if(w6[e.type]){var n=w6[e.type](e,r);return n}else throw new jt("Got group of unknown type: '"+e.type+"'")};function Pte(t,e,r,n,a){var i=Xo(t,r),s;i.length===1&&i[0]instanceof Wt&&Lat.has(i[0].type)?s=i[0]:s=new Wt("mrow",i);var o=new Wt("annotation",[new ii(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=a?"katex":"katex-mathml";return Ut([d],[u])}var Mat=[[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]],Bte=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Fte=function(e,r){return r.size<2?e:Mat[e-1][r.size-1]};let nve=class Rf{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||Rf.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=Bte[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 Rf(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Fte(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:Bte[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Fte(Rf.BASESIZE,e);return this.size===r&&this.textSize===Rf.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!==Rf.BASESIZE?["sizing","reset-size"+this.size,"size"+Rf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=_at(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};nve.BASESIZE=6;var ave=function(e){return new nve({style:e.displayMode?Qr.DISPLAY:Qr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},ive=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},Pat=function(e,r,n){var a=ave(n),i;if(n.output==="mathml")return Pte(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=mB(e,a);i=Ut(["katex"],[s])}else{var o=Pte(e,r,a,n.displayMode,!1),l=mB(e,a);i=Ut(["katex"],[o,l])}return ive(i,n)},Bat=function(e,r,n){var a=ave(n),i=mB(e,a),s=Ut(["katex"],[i]);return ive(s,n)},Fat={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":"="},u7=function(e){var r=new Wt("mo",[new ii(Fat[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},$at={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},zat=new Set(["widehat","widecheck","widetilde","utilde"]),d7=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(zat.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 vh(f),v=new I0([m],{width:"100%",height:er(p),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:yh([],[v],r),minWidth:0,height:p}}else{var y=[],b=$at[l],[_,S,x]=b,C=x/1e3,T=_.length,w,R;if(T===1){var O=b[3];w=["hide-tail"],R=[O]}else if(T===2)w=["halfarrow-left","halfarrow-right"],R=["xMinYMin","xMaxYMin"];else if(T===3)w=["brace-left","brace-center","brace-right"],R=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+T+" children.");for(var M=0;M0&&(a.style.minWidth=er(i)),a},Uat=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=Ut(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new uB({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new uB({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new I0(u,{width:"100%",height:er(o)});s=yh([],[d],i)}return s.height=o,s.style.height=er(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 h7(t){var e=f7(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 f7(t){return t&&(t.type==="atom"||Eat.hasOwnProperty(t.type))?t:null}var cq=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=tn(t.base,"accent"),r=n.base,t.base=r,a=vat(Sn(t,e)),t.base=n):(n=tn(t,"accent"),r=n.base);var i=Sn(r,e.havingCrampedStyle()),s=n.isShifty&&Q0(r),o=0;if(s){var l=dS(r),u=Sn(l,e.havingCrampedStyle());o=Rte(u).skew}var d=n.label==="\\c",h=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=d7(n,e),f=kn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{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=Z1e("vec",e),g=Q1e.vec[1]):(p=c7({mode:n.mode,text:n.label},e,"textord"),p=Rte(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=i.height);var v=o;m||(v-=g/2),f.style.left=er(v),n.label==="\\textcircled"&&(f.style.top=".2em"),f=kn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:f}]})}var y=Ut(["mord","accent"],[f],e);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},sve=(t,e)=>{var r=t.isStretchy?u7(t.label):new Wt("mo",[Dl(t.label,t.mode)]),n=new Wt("mover",[Un(t.base,e),r]);return n.setAttribute("accent","true"),n},Gat=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=k6(e[0]),n=!Gat.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:cq,mathmlBuilder:sve});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:cq,mathmlBuilder:sve});or({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=Sn(t.base,e),n=d7(t,e),a=t.label==="\\utilde"?.12:0,i=kn({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return Ut(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=u7(t.label),n=new Wt("munder",[Un(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Qx=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:a}=t;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=mb(Sn(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=mb(Sn(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=d7(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=kn({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]})}else d=kn({positionType:"individualShift",children:[{type:"elem",elem:a,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=u7(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=Qx(Un(t.body,e));if(t.below){var i=Qx(Un(t.below,e));n=new Wt("munderover",[r,i,a])}else n=new Wt("mover",[r,a])}else if(t.below){var s=Qx(Un(t.below,e));n=new Wt("munder",[r,s])}else n=Qx(),n=new Wt("mover",[r,n]);return n}});function ove(t,e){var r=wi(t.body,e,!0);return Ut([t.mclass],r,e)}function lve(t,e){var r,n=Xo(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,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ai(a),isCharacterBox:Q0(a)}},htmlBuilder:ove,mathmlBuilder:lve});var p7=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:p7(e[0]),body:ai(e[1]),isCharacterBox:Q0(e[1])}}});or({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,a=e[1],i=e[0],s;n!=="\\stackrel"?s=p7(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ai(a)},l={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:Q0(l)}},htmlBuilder:ove,mathmlBuilder:lve});or({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:p7(e[0]),body:ai(e[0])}},htmlBuilder(t,e){var r=wi(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=Xo(t.body,e),n=new Wt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var qat={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$te=()=>({type:"styling",body:[],mode:"math",style:"display"}),zte=t=>t.type==="textord"&&t.text==="@",Yat=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Hat(t,e,r){var n=qat[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,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 Vat(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=[],a=[n],i=0;iAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=Hat(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display"};n.push(m),o=$te()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var v=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(a.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=mb(Sn(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",[Un(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=mb(Sn(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Wt("mrow",[Un(t.fragment,e)])}});or({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=tn(e[0],"ordgroup"),a=n.body,i="",s=0;s=1114111)throw new jt("\\@char with invalid code point "+i);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 cve=(t,e)=>{var r=wi(t.body,e.withColor(t.color),!1);return J0(r)},uve=(t,e)=>{var r=Xo(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=tn(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:ai(a)}},htmlBuilder:cve,mathmlBuilder:uve});or({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,a=tn(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:cve,mathmlBuilder:uve});or({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&tn(a,"size").value}},htmlBuilder(t,e){var r=Ut(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=er(ka(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(ka(t.size,e)))),r}});var vB={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},dve=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new jt("Expected a control sequence",t);return e},Wat=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},hve=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,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(vB[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=vB[n.text]),tn(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(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new jt("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new jt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new jt('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new jt("Expected a macro definition");o[i].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(a,{tokens:l,numArgs:i,delimiters:o},r===vB[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=dve(e.gullet.popToken());e.gullet.consumeSpaces();var a=Wat(e);return hve(e,n,a,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=dve(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return hve(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var kE=function(e,r,n){var a=ha.math[e]&&ha.math[e].replace,i=aq(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},uq=function(e,r,n,a){var i=n.havingBaseStyle(r),s=Ut(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},fve=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=er(i),e.height-=i,e.depth+=i},Kat=function(e,r,n,a,i,s){var o=Ns(e,"Main-Regular",i,a),l=uq(o,r,a,s);return fve(l,a,r),l},Xat=function(e,r,n,a){return Ns(e,"Size"+r+"-Regular",n,a)},pve=function(e,r,n,a,i,s){var o=Xat(e,r,i,a),l=uq(Ut(["delimsizing","size"+r],[o],a),Qr.TEXT,a,s);return n&&fve(l,a,Qr.TEXT),l},D9=function(e,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=Ut(["delimsizinginner",a],[Ut([],[Ns(e,r,n)])]);return{type:"elem",elem:i}},L9=function(e,r,n){var a=Xc["Size4-Regular"][e.charCodeAt(0)]?Xc["Size4-Regular"][e.charCodeAt(0)][4]:Xc["Size1-Regular"][e.charCodeAt(0)][4],i=new vh("inner",dat(e,Math.round(1e3*r))),s=new I0([i],{width:er(a),height:er(r),style:"width:"+er(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=yh([],[s],n);return o.height=r,o.style.height=er(r),o.style.width=er(a),{type:"elem",elem:o}},yB=.008,Zx={type:"kern",size:-1*yB},jat=new Set(["|","\\lvert","\\rvert","\\vert"]),Qat=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),gve=function(e,r,n,a,i,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"):jat.has(e)?(u="∣",h="vert",f=333):Qat.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=kE(o,p,i),m=g.height+g.depth,v=kE(u,p,i),y=v.height+v.depth,b=kE(d,p,i),_=b.height+b.depth,S=0,x=1;if(l!==null){var C=kE(l,p,i);S=C.height+C.depth,x=2}var T=m+_+S,w=Math.max(0,Math.ceil((r-T)/(x*y))),R=T+w*x*y,O=a.fontMetrics().axisHeight;n&&(O*=a.sizeMultiplier);var M=R/2-O,$=[];if(h.length>0){var F=R-m-_,A=Math.round(R*1e3),I=hat(h,Math.round(F*1e3)),D=new vh(h,I),L=(f/1e3).toFixed(3)+"em",N=(A/1e3).toFixed(3)+"em",P=new I0([D],{width:L,height:N,viewBox:"0 0 "+f+" "+A}),z=yh([],[P],a);z.height=A/1e3,z.style.width=L,z.style.height=N,$.push({type:"elem",elem:z})}else{if($.push(D9(d,p,i)),$.push(Zx),l===null){var B=R-m-_+2*yB;$.push(L9(u,B,a))}else{var U=(R-m-_-S)/2+2*yB;$.push(L9(u,U,a)),$.push(Zx),$.push(D9(l,p,i)),$.push(Zx),$.push(L9(u,U,a))}$.push(Zx),$.push(D9(o,p,i))}var G=a.havingBaseStyle(Qr.TEXT),K=kn({positionType:"bottom",positionData:M,children:$});return uq(Ut(["delimsizing","mult"],[K],G),Qr.TEXT,a,s)},M9=80,P9=.08,B9=function(e,r,n,a,i){var s=uat(e,a,n),o=new vh(e,s),l=new I0([o],{width:"400em",height:er(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return yh(["hide-tail"],[l],i)},Zat=function(e,r){var n=r.havingBaseSizing(),a=bve("\\surd",e*n.sizeMultiplier,_ve,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,h;return a.type==="small"?(d=1e3+1e3*s+M9,e<1?i=1:e<1.4&&(i=.7),l=(1+s+P9)/i,u=(1+s)/i,o=B9("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/i):a.type==="large"?(d=(1e3+M9)*hS[a.size],u=(hS[a.size]+s)/i,l=(hS[a.size]+s+P9)/i,o=B9("sqrtSize"+a.size,l,d,s,r),o.style.minWidth="1.02em",h=1/i):(l=e+s+P9,u=e+s,d=Math.floor(1e3*e+s)+M9,o=B9("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)*i}},mve=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Jat=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),vve=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),hS=[0,1.2,1.8,2.4,3],yve=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),mve.has(e)||vve.has(e))return pve(e,r,!1,n,a,i);if(Jat.has(e))return gve(e,hS[r],!1,n,a,i);throw new jt("Illegal delimiter: '"+e+"'")},eit=[{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}],tit=[{type:"small",style:Qr.SCRIPTSCRIPT},{type:"small",style:Qr.SCRIPT},{type:"small",style:Qr.TEXT},{type:"stack"}],_ve=[{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"}],rit=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.")},bve=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;sr)return o}return n[n.length-1]},_B=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;vve.has(e)?o=eit:mve.has(e)?o=_ve:o=tit;var l=bve(e,r,o,a);return l.type==="small"?Kat(e,l.style,n,a,i,s):l.type==="large"?pve(e,l.size,n,a,i,s):gve(e,r,n,a,i,s)},F9=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return _B(e,h,!0,a,i,s)},Ute={"\\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}},nit=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 g7(t,e){var r=f7(t);if(r&&nit.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=g7(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Ute[t.funcName].size,mclass:Ute[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Ut([t.mclass]):yve(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Dl(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(hS[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Gte(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:g7(e[0],t).text,color:r}}});or({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=g7(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=tn(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{Gte(t);for(var r=wi(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s{Gte(t);var r=Xo(t.body,e);if(t.left!=="."){var n=new Wt("mo",[Dl(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new Wt("mo",[Dl(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return oq(r)}});or({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=g7(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=c4(e,[]);else{r=yve(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==="|"?Dl("|","text"):Dl(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 dq=(t,e)=>{var r=mb(Sn(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s=0,o=Q0(t.body);if(n==="sout")i=Ut(["stretchy","sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=ka({number:.6,unit:"pt"},e),u=ka({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=er(h/2+l);var f=Math.floor(1e3*h*a),p=lat(f),g=new I0([new vh("phase",p)],{width:"400em",height:er(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=yh(["hide-tail"],[g],e),i.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,v=0,y=0;/box/.test(n)?(y=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:y),v=m):n==="angl"?(y=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*y,v=Math.max(0,.25-r.depth)):(m=o?.2:0,v=m),i=Uat(r,n,m,v,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=er(y)):n==="angl"&&y!==.049&&(i.style.borderTopWidth=er(y),i.style.borderRightWidth=er(y)),s=r.depth+v,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=kn({positionType:"individualShift",children:[{type:"elem",elem:i,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:i,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)},hq=(t,e)=>{var r=0,n=new Wt(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 a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+a+"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:a}=t,i=tn(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:dq,mathmlBuilder:hq});or({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:a}=t,i=tn(e[0],"color-token").color,s=tn(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:dq,mathmlBuilder:hq});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,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:dq,mathmlBuilder:hq});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 Eve={};function Eu(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new jt("{"+t.envName+"} can be used only in display mode.")},ait=new Set(["gather","gather*"]);function fq(t){if(!t.includes("ed"))return!t.includes("*")}function Fh(t,e,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,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],v=[],y=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function S(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new ic("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),y.push(qte(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"){S(),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(),y.length0&&(_+=.25),u.push({pos:_,isDashed:it[ke]})}for(S(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var te=void 0;if(a>0||e.hskipBeforeAndAfter){var ne,ae;te=(ne=(ae=G)==null?void 0:ae.pregap)!=null?ne:f,te!==0&&(I=Ut(["arraycolsep"],[]),I.style.width=er(te),A.push(I))}var re=[];for(n=0;n0){for(var Ce=gb("hline",r,d),ut=gb("hdashline",r,d),Ae=[{type:"elem",elem:$e,shift:0}];u.length>0;){var je=u.pop(),ot=je.pos-$;je.isDashed?Ae.push({type:"elem",elem:ut,shift:ot}):Ae.push({type:"elem",elem:Ce,shift:ot})}$e=kn({positionType:"individualShift",children:Ae})}if(L.length===0)return Ut(["mord"],[$e],r);var lt=kn({positionType:"individualShift",children:L}),ct=Ut(["tag"],[lt],r);return J0([$e,ct])},iit={c:"center ",l:"left ",r:"right "},Tu=function(e,r){for(var n=[],a=new Wt("mtd",[],["mtr-glue"]),i=new Wt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",v=!1,y=0,b=g.length;g[0].type==="separator"&&(f+="top ",y=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=y;_0?"left ":"",f+=R[R.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(v=1),n[g]={type:"align",align:m,pregap:v,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Eu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=f7(e[0]),n=r?[e[0]]:tn(e[0],"ordgroup").body,a=n.map(function(s){var o=h7(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)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Fh(t.parser,i,pq(t.envName))},htmlBuilder:Su,mathmlBuilder:Tu});Eu({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 a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new jt("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=Fh(t.parser,n,pq(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=Fh(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=f7(e[0]),n=r?[e[0]]:tn(e[0],"ordgroup").body,a=n.map(function(o){var l=h7(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new jt("Unknown column alignment: "+u,o)});if(a.length>1)throw new jt("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=Fh(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new jt("{subarray} can contain only one column");return s},htmlBuilder:Su,mathmlBuilder:Tu});Eu({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=Fh(t.parser,e,pq(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Cve,htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){ait.has(t.envName)&&m7(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:fq(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return Fh(t.parser,e,"display")},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Cve,htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){m7(t);var e={autoTag:fq(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return Fh(t.parser,e,"display")},htmlBuilder:Su,mathmlBuilder:Tu});Eu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return m7(t),Vat(t.parser)},htmlBuilder:Su,mathmlBuilder:Tu});Ee("\\nonumber","\\gdef\\@eqnsw{0}");Ee("\\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 Yte=Eve;or({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];if(a.type!=="ordgroup")throw new jt("Invalid environment name",a);for(var i="",s=0;s{var r=t.font,n=e.withFont(r);return Sn(t.body,n)},kve=(t,e)=>{var r=t.font,n=e.withFont(r);return Un(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,a=k6(e[0]),i=n;return i in Hte&&(i=Hte[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:wve,mathmlBuilder:kve});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:p7(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Q0(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:a}=t,{mode:i}=r,s=r.parseExpression(!0,a),o="math"+n.slice(1);return{type:"font",mode:i,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:wve,mathmlBuilder:kve});var sit=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=Sn(t.numer,i,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 v;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Wt("mfrac",[Un(t.numer,e),Un(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=ka(t.barSize,e);r.setAttribute("linethickness",er(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new Wt("mo",[new ii(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new Wt("mo",[new ii(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return oq(a)}return r},Ave=(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,a=e[0],i=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"),Ave({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:sit,mathmlBuilder:oit});or({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var Vte=["display","text","script","scriptscript"],Wte=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],a=e[5],i=k6(e[0]),s=i.type==="atom"&&i.family==="open"?Wte(i.text):null,o=k6(e[1]),l=o.type==="atom"&&o.family==="close"?Wte(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=Vte[Number(g.text)]}}else p=tn(p,"textord"),f=Vte[Number(p.text)];return Ave({type:"genfrac",mode:r.mode,numer:n,denom:a,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:a}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:tn(e[0],"size").value,token:a}}});or({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0],i=tn(e[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var s=e[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var Rve=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?Sn(t.sup,e.havingStyle(r.sup()),e):Sn(t.sub,e.havingStyle(r.sub()),e),a=tn(t.base,"horizBrace")):a=tn(t,"horizBrace");var i=Sn(a.base,e.havingBaseStyle(Qr.DISPLAY)),s=d7(a,e),o;if(a.isOver?(o=kn({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=kn({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Ut(["mord",a.isOver?"mover":"munder"],[o],e);a.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 Ut(["mord",a.isOver?"mover":"munder"],[o],e)},lit=(t,e)=>{var r=u7(t.label);return new Wt(t.isOver?"mover":"munder",[Un(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:Rve,mathmlBuilder:lit});or({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],a=tn(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:ai(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=wi(t.body,e,!1);return Cat(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=_h(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=tn(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i{var{parser:r,funcName:n,token:a}=t,i=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=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d{var r=wi(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=Ut(n,r,e);for(var i in t.attributes)i!=="class"&&t.attributes.hasOwnProperty(i)&&a.setAttribute(i,t.attributes[i]);return a},mathmlBuilder:(t,e)=>_h(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:ai(e[0]),mathml:ai(e[1])}},htmlBuilder:(t,e)=>{var r=wi(t.html,e,!1);return J0(r)},mathmlBuilder:(t,e)=>_h(t.mathml,e)});var $9=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(!Y1e(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,a={number:0,unit:"em"},i={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=ka(t.height,e),n=0;t.totalheight.number>0&&(n=ka(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=ka(t.width,e));var i={height:er(r+n)};a>0&&(i.width=er(a)),n>0&&(i.verticalAlign=er(-n));var s=new gat(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Wt("mglyph",[]);r.setAttribute("alt",t.alt);var n=ka(t.height,e),a=0;if(t.totalheight.number>0&&(a=ka(t.totalheight,e)-n,r.setAttribute("valign",er(-a))),r.setAttribute("height",er(n+a)),t.width.number>0){var i=ka(t.width,e);r.setAttribute("width",er(i))}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,a=tn(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.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:a.value}},htmlBuilder(t,e){return j1e(t.dimension,e)},mathmlBuilder(t,e){var r=ka(t.dimension,e);return new rve(r)}});or({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Ut([],[Sn(t.body,e)]),r=Ut(["inner"],[r],e)):r=Ut(["inner"],[Sn(t.body,e)]);var n=Ut(["fix"],[]),a=Ut([t.alignment],[r,n],e),i=Ut(["strut"]);return i.style.height=er(a.height+a.depth),a.depth&&(i.style.verticalAlign=er(-a.depth)),a.children.unshift(i),a=Ut(["thinbox"],[a],e),Ut(["mord","vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new Wt("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}});or({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{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 Kte=(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}};or({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:ai(e[0]),text:ai(e[1]),script:ai(e[2]),scriptscript:ai(e[3])}},htmlBuilder:(t,e)=>{var r=Kte(t,e),n=wi(r,e,!1);return J0(n)},mathmlBuilder:(t,e)=>{var r=Kte(t,e);return _h(r,e)}});var Nve=(t,e,r,n,a,i,s)=>{t=Ut([],[t]);var o=r&&Q0(r),l,u;if(e){var d=Sn(e,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Sn(r,n.havingStyle(a.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:er(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:er(i)},{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:er(-i)},{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:er(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var v=[f];if(l&&i!==0&&!o){var y=Ut(["mspace"],[],n);y.style.marginRight=er(i),v.unshift(y)}return Ut(["mop","op-limits"],v,n)},Ive=new Set(["\\smallint"]),s2=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=tn(t.base,"op"),a=!0):i=tn(t,"op");var s=e.style,o=!1;s.size===Qr.DISPLAY.size&&i.symbol&&!Ive.has(i.name)&&(o=!0);var l;if(i.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(d=i.name.slice(1),i.name=d==="oiint"?"\\iint":"\\iiint"),l=Ns(i.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,f=Z1e(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}]}),i.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(i.body){var p=wi(i.body,e,!0);p.length===1&&p[0]instanceof Ol?(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",[Dl(t.name,t.mode)]),Ive.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Wt("mo",Xo(t.body,e));else{r=new Wt("mi",[new ii(t.name.slice(1))]);var n=new Wt("mo",[Dl("⁡","text")]);t.parentIsSupSub?r=new Wt("mrow",[r,n]):r=tve([r,n])}return r},cit={"∏":"\\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,a=n;return a.length===1&&(a=cit[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:s2,mathmlBuilder:CT});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:ai(n)}},htmlBuilder:s2,mathmlBuilder:CT});var uit={"∫":"\\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:s2,mathmlBuilder:CT});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:s2,mathmlBuilder:CT});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=uit[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:s2,mathmlBuilder:CT});var Ove=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=tn(t.base,"operatorname"),a=!0):i=tn(t,"operatorname");var s;if(i.body.length>0){for(var o=i.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=wi(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Xo(t.body,e.withFont("mathrm")),n=!0,a=0;ad.toText()).join("");r=[new ii(o)]}var l=new Wt("mi",r);l.setAttribute("mathvariant","normal");var u=new Wt("mo",[Dl("⁡","text")]);return t.parentIsSupSub?new Wt("mrow",[l,u]):tve([l,u])};or({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"operatorname",mode:r.mode,body:ai(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ove,mathmlBuilder:dit});Ee("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ig({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?J0(wi(t.body,e,!1)):Ut(["mord"],wi(t.body,e,!0),e)},mathmlBuilder(t,e){return _h(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=Sn(t.body,e.havingCrampedStyle()),n=gb("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=kn({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return Ut(["mord","overline"],[i],e)},mathmlBuilder(t,e){var r=new Wt("mo",[new ii("‾")]);r.setAttribute("stretchy","true");var n=new Wt("mover",[Un(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:ai(n)}},htmlBuilder:(t,e)=>{var r=wi(t.body,e.withPhantom(),!1);return J0(r)},mathmlBuilder:(t,e)=>{var r=Xo(t.body,e);return new Wt("mphantom",r)}});Ee("\\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"],[Sn(t.body,e.withPhantom())]),n=Ut(["fix"],[]);return Ut(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Xo(ai(t.body),e),n=new Wt("mphantom",r),a=new Wt("mpadded",[n]);return a.setAttribute("width","0px"),a}});or({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,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=Sn(t.body,e),n=ka(t.dy,e);return kn({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Wt("mpadded",[Un(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,a=r[0],i=tn(e[0],"size"),s=tn(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&tn(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=Ut(["mord","rule"],[],e),n=ka(t.width,e),a=ka(t.height,e),i=t.shift?ka(t.shift,e):0;return r.style.borderRightWidth=er(n),r.style.borderTopWidth=er(a),r.style.bottom=er(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=ka(t.width,e),n=ka(t.height,e),a=t.shift?ka(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new Wt("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",er(r)),s.setAttribute("height",er(n));var o=new Wt("mpadded",[s]);return a>=0?o.setAttribute("height",er(a)):(o.setAttribute("height",er(a)),o.setAttribute("depth",er(-a))),o.setAttribute("voffset",er(a)),o}});function Dve(t,e,r){for(var n=wi(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i{var r=e.havingSize(t.size);return Dve(t.body,r,e)};or({type:"sizing",names:Xte,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:a}=t,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Xte.indexOf(n)+1,body:i}},htmlBuilder:hit,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Xo(t.body,r),a=new Wt("mstyle",n);return a.setAttribute("mathsize",er(r.sizeMultiplier)),a}});or({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,a=!1,i=!1,s=r[0]&&tn(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=Ut([],[Sn(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",[Un(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,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=Sn(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=mb(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;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=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=Sn(t.index,g,e),v=.6*(p.height-p.depth),y=kn({positionType:"shift",positionData:-v,children:[{type:"elem",elem:m}]}),b=Ut(["root"],[y]);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",[Un(r,e),Un(n,e)]):new Wt("msqrt",[Un(r,e)])}});var jte={display:Qr.DISPLAY,text:Qr.TEXT,script:Qr.SCRIPT,scriptscript:Qr.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:a}=t,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=jte[t.style],n=e.havingStyle(r).withFont("");return Dve(t.body,n,e)},mathmlBuilder(t,e){var r=jte[t.style],n=e.havingStyle(r),a=Xo(t.body,n),i=new Wt("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var fit=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===Qr.DISPLAY.size||n.alwaysHandleSupSub);return a?s2:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===Qr.DISPLAY.size||n.limits);return i?Ove:null}else{if(n.type==="accent")return Q0(n.base)?cq:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Rve:null}else return null}else return null};ig({type:"supsub",htmlBuilder(t,e){var r=fit(t,e);if(r)return r(t,e);var{base:n,sup:a,sub:i}=t,s=Sn(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&Q0(n);if(a){var p=e.havingStyle(e.style.sup());o=Sn(a,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(i){var g=e.havingStyle(e.style.sub());l=Sn(i,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 v=e.sizeMultiplier,y=er(.5/u.ptPerEm/v),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Ol||_)&&(b=er(-s.italic))}var S;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:y,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:y}];S=kn({positionType:"individualShift",children:w})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var R=[{type:"elem",elem:l,marginLeft:b,marginRight:y}];S=kn({positionType:"shift",positionData:h,children:R})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),S=kn({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var O=gB(s,"right")||"mord";return Ut([O],[s,Ut(["msupsub"],[S])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[Un(t.base,e)];t.sub&&i.push(Un(t.sub,e)),t.sup&&i.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 Wt(s,i)}});ig({type:"atom",htmlBuilder(t,e){return iq(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Wt("mo",[Dl(t.text,t.mode)]);if(t.family==="bin"){var n=lq(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 Lve={mi:"italic",mn:"normal",mtext:"normal"};ig({type:"mathord",htmlBuilder(t,e){return c7(t,e,"mathord")},mathmlBuilder(t,e){var r=new Wt("mi",[Dl(t.text,t.mode,e)]),n=lq(t,e)||"italic";return n!==Lve[r.type]&&r.setAttribute("mathvariant",n),r}});ig({type:"textord",htmlBuilder(t,e){return c7(t,e,"textord")},mathmlBuilder(t,e){var r=Dl(t.text,t.mode,e),n=lq(t,e)||"normal",a;return t.mode==="text"?a=new Wt("mtext",[r]):/[0-9]/.test(t.text)?a=new Wt("mn",[r]):t.text==="\\prime"?a=new Wt("mo",[r]):a=new Wt("mi",[r]),n!==Lve[a.type]&&a.setAttribute("mathvariant",n),a}});var z9={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},U9={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ig({type:"spacing",htmlBuilder(t,e){if(U9.hasOwnProperty(t.text)){var r=U9[t.text].className||"";if(t.mode==="text"){var n=c7(t,e,"textord");return n.classes.push(r),n}else return Ut(["mspace",r],[iq(t.text,t.mode,e)],e)}else{if(z9.hasOwnProperty(t.text))return Ut(["mspace",z9[t.text]],[],e);throw new jt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(U9.hasOwnProperty(t.text))r=new Wt("mtext",[new ii(" ")]);else{if(z9.hasOwnProperty(t.text))return new Wt("mspace");throw new jt('Unknown type of space "'+t.text+'"')}return r}});var Qte=()=>{var t=new Wt("mtd",[]);return t.setAttribute("width","50%"),t};ig({type:"tag",mathmlBuilder(t,e){var r=new Wt("mtable",[new Wt("mtr",[Qte(),new Wt("mtd",[_h(t.body,e)]),Qte(),new Wt("mtd",[_h(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Zte={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Jte={"\\textbf":"textbf","\\textmd":"textmd"},pit={"\\textit":"textit","\\textup":"textup"},ere=(t,e)=>{var r=t.font;if(r){if(Zte[r])return e.withTextFontFamily(Zte[r]);if(Jte[r])return e.withTextFontWeight(Jte[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(pit[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,a=e[0];return{type:"text",mode:r.mode,body:ai(a),font:n}},htmlBuilder(t,e){var r=ere(t,e),n=wi(t.body,r,!0);return Ut(["mord","text"],n,r)},mathmlBuilder(t,e){var r=ere(t,e);return _h(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=Sn(t.body,e),n=gb("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=kn({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return Ut(["mord","underline"],[i],e)},mathmlBuilder(t,e){var r=new Wt("mo",[new ii("‾")]);r.setAttribute("stretchy","true");var n=new Wt("munder",[Un(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=Sn(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return kn({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new Wt("mpadded",[Un(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=tre(t),n=[],a=e.havingStyle(e.style.text()),i=0;it.body.replace(/ /g,t.star?"␣":" "),Yd=J1e,Mve=`[ \r + ]`,git="\\\\[a-zA-Z@]+",mit="\\\\[^\uD800-\uDFFF]",vit="("+git+")"+Mve+"*",yit=`\\\\( |[ \r ]+ -?)[ \r ]*`,bB="[̀-ͯ]",yit=new RegExp(bB+"+$"),_it="("+Mve+"+)|"+(vit+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(bB+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(bB+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+mit)+("|"+git+")");let rre=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(_it,"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 ic("EOF",new pl(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new jt("Unexpected character: '"+e[r]+"'",new ic(e[r],new pl(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(` -`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new ic(a,new pl(this,r,this.tokenRegex.lastIndex))}},bit=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 a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}};var Eit=Sve;Ee("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});Ee("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});Ee("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});Ee("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});Ee("\\@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}});Ee("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ee("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var nre={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};Ee("\\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=nre[e.text],n==null||n>=r)throw new jt("Invalid base-"+r+" digit "+e.text);for(var a;(a=nre[t.future().text])!=null&&a{var a=t.consumeArg().tokens;if(a.length!==1)throw new jt("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new jt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new jt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[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),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};Ee("\\newcommand",t=>gq(t,!1,!0,!1));Ee("\\renewcommand",t=>gq(t,!0,!1,!1));Ee("\\providecommand",t=>gq(t,!0,!0,!0));Ee("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});Ee("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});Ee("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Yd[r],ha.math[r],ha.text[r]),""});Ee("\\bgroup","{");Ee("\\egroup","}");Ee("~","\\nobreakspace");Ee("\\lq","`");Ee("\\rq","'");Ee("\\aa","\\r a");Ee("\\AA","\\r A");Ee("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Ee("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ee("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Ee("ℬ","\\mathscr{B}");Ee("ℰ","\\mathscr{E}");Ee("ℱ","\\mathscr{F}");Ee("ℋ","\\mathscr{H}");Ee("ℐ","\\mathscr{I}");Ee("ℒ","\\mathscr{L}");Ee("ℳ","\\mathscr{M}");Ee("ℛ","\\mathscr{R}");Ee("ℭ","\\mathfrak{C}");Ee("ℌ","\\mathfrak{H}");Ee("ℨ","\\mathfrak{Z}");Ee("\\Bbbk","\\Bbb{k}");Ee("·","\\cdotp");Ee("\\llap","\\mathllap{\\textrm{#1}}");Ee("\\rlap","\\mathrlap{\\textrm{#1}}");Ee("\\clap","\\mathclap{\\textrm{#1}}");Ee("\\mathstrut","\\vphantom{(}");Ee("\\underbar","\\underline{\\text{#1}}");Ee("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Ee("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Ee("\\ne","\\neq");Ee("≠","\\neq");Ee("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Ee("∉","\\notin");Ee("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Ee("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Ee("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Ee("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Ee("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Ee("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Ee("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Ee("⟂","\\perp");Ee("‼","\\mathclose{!\\mkern-0.8mu!}");Ee("∌","\\notni");Ee("⌜","\\ulcorner");Ee("⌝","\\urcorner");Ee("⌞","\\llcorner");Ee("⌟","\\lrcorner");Ee("©","\\copyright");Ee("®","\\textregistered");Ee("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ee("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ee("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ee("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ee("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ee("⋮","\\vdots");Ee("\\varGamma","\\mathit{\\Gamma}");Ee("\\varDelta","\\mathit{\\Delta}");Ee("\\varTheta","\\mathit{\\Theta}");Ee("\\varLambda","\\mathit{\\Lambda}");Ee("\\varXi","\\mathit{\\Xi}");Ee("\\varPi","\\mathit{\\Pi}");Ee("\\varSigma","\\mathit{\\Sigma}");Ee("\\varUpsilon","\\mathit{\\Upsilon}");Ee("\\varPhi","\\mathit{\\Phi}");Ee("\\varPsi","\\mathit{\\Psi}");Ee("\\varOmega","\\mathit{\\Omega}");Ee("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ee("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ee("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ee("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ee("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ee("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ee("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ee("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var are={",":"\\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"},Sit=new Set(["bin","rel"]);Ee("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in are?e=are[r]:(r.slice(0,4)==="\\not"||r in ha.math&&Sit.has(ha.math[r].group))&&(e="\\dotsb"),e});var mq={")":!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};Ee("\\dotso",function(t){var e=t.future().text;return e in mq?"\\ldots\\,":"\\ldots"});Ee("\\dotsc",function(t){var e=t.future().text;return e in mq&&e!==","?"\\ldots\\,":"\\ldots"});Ee("\\cdots",function(t){var e=t.future().text;return e in mq?"\\@cdots\\,":"\\@cdots"});Ee("\\dotsb","\\cdots");Ee("\\dotsm","\\cdots");Ee("\\dotsi","\\!\\cdots");Ee("\\dotsx","\\ldots\\,");Ee("\\DOTSI","\\relax");Ee("\\DOTSB","\\relax");Ee("\\DOTSX","\\relax");Ee("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ee("\\,","\\tmspace+{3mu}{.1667em}");Ee("\\thinspace","\\,");Ee("\\>","\\mskip{4mu}");Ee("\\:","\\tmspace+{4mu}{.2222em}");Ee("\\medspace","\\:");Ee("\\;","\\tmspace+{5mu}{.2777em}");Ee("\\thickspace","\\;");Ee("\\!","\\tmspace-{3mu}{.1667em}");Ee("\\negthinspace","\\!");Ee("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ee("\\negthickspace","\\tmspace-{5mu}{.277em}");Ee("\\enspace","\\kern.5em ");Ee("\\enskip","\\hskip.5em\\relax");Ee("\\quad","\\hskip1em\\relax");Ee("\\qquad","\\hskip2em\\relax");Ee("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ee("\\tag@paren","\\tag@literal{({#1})}");Ee("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new jt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Ee("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ee("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ee("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ee("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Ee("\\newline","\\\\\\relax");Ee("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Pve=er(Xc["Main-Regular"][84][1]-.7*Xc["Main-Regular"][65][1]);Ee("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Pve+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ee("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Pve+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ee("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ee("\\@hspace","\\hskip #1\\relax");Ee("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ee("\\ordinarycolon",":");Ee("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ee("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Ee("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Ee("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Ee("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Ee("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Ee("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Ee("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Ee("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Ee("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Ee("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Ee("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Ee("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Ee("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Ee("∷","\\dblcolon");Ee("∹","\\eqcolon");Ee("≔","\\coloneqq");Ee("≕","\\eqqcolon");Ee("⩴","\\Coloneqq");Ee("\\ratio","\\vcentcolon");Ee("\\coloncolon","\\dblcolon");Ee("\\colonequals","\\coloneqq");Ee("\\coloncolonequals","\\Coloneqq");Ee("\\equalscolon","\\eqqcolon");Ee("\\equalscoloncolon","\\Eqqcolon");Ee("\\colonminus","\\coloneq");Ee("\\coloncolonminus","\\Coloneq");Ee("\\minuscolon","\\eqcolon");Ee("\\minuscoloncolon","\\Eqcolon");Ee("\\coloncolonapprox","\\Colonapprox");Ee("\\coloncolonsim","\\Colonsim");Ee("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ee("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ee("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ee("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ee("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Ee("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ee("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ee("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ee("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ee("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ee("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ee("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ee("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ee("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Ee("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Ee("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Ee("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Ee("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Ee("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Ee("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Ee("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Ee("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Ee("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Ee("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Ee("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Ee("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Ee("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Ee("\\imath","\\html@mathml{\\@imath}{ı}");Ee("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Ee("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Ee("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Ee("⟦","\\llbracket");Ee("⟧","\\rrbracket");Ee("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Ee("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Ee("⦃","\\lBrace");Ee("⦄","\\rBrace");Ee("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Ee("⦵","\\minuso");Ee("\\darr","\\downarrow");Ee("\\dArr","\\Downarrow");Ee("\\Darr","\\Downarrow");Ee("\\lang","\\langle");Ee("\\rang","\\rangle");Ee("\\uarr","\\uparrow");Ee("\\uArr","\\Uparrow");Ee("\\Uarr","\\Uparrow");Ee("\\N","\\mathbb{N}");Ee("\\R","\\mathbb{R}");Ee("\\Z","\\mathbb{Z}");Ee("\\alef","\\aleph");Ee("\\alefsym","\\aleph");Ee("\\Alpha","\\mathrm{A}");Ee("\\Beta","\\mathrm{B}");Ee("\\bull","\\bullet");Ee("\\Chi","\\mathrm{X}");Ee("\\clubs","\\clubsuit");Ee("\\cnums","\\mathbb{C}");Ee("\\Complex","\\mathbb{C}");Ee("\\Dagger","\\ddagger");Ee("\\diamonds","\\diamondsuit");Ee("\\empty","\\emptyset");Ee("\\Epsilon","\\mathrm{E}");Ee("\\Eta","\\mathrm{H}");Ee("\\exist","\\exists");Ee("\\harr","\\leftrightarrow");Ee("\\hArr","\\Leftrightarrow");Ee("\\Harr","\\Leftrightarrow");Ee("\\hearts","\\heartsuit");Ee("\\image","\\Im");Ee("\\infin","\\infty");Ee("\\Iota","\\mathrm{I}");Ee("\\isin","\\in");Ee("\\Kappa","\\mathrm{K}");Ee("\\larr","\\leftarrow");Ee("\\lArr","\\Leftarrow");Ee("\\Larr","\\Leftarrow");Ee("\\lrarr","\\leftrightarrow");Ee("\\lrArr","\\Leftrightarrow");Ee("\\Lrarr","\\Leftrightarrow");Ee("\\Mu","\\mathrm{M}");Ee("\\natnums","\\mathbb{N}");Ee("\\Nu","\\mathrm{N}");Ee("\\Omicron","\\mathrm{O}");Ee("\\plusmn","\\pm");Ee("\\rarr","\\rightarrow");Ee("\\rArr","\\Rightarrow");Ee("\\Rarr","\\Rightarrow");Ee("\\real","\\Re");Ee("\\reals","\\mathbb{R}");Ee("\\Reals","\\mathbb{R}");Ee("\\Rho","\\mathrm{P}");Ee("\\sdot","\\cdot");Ee("\\sect","\\S");Ee("\\spades","\\spadesuit");Ee("\\sub","\\subset");Ee("\\sube","\\subseteq");Ee("\\supe","\\supseteq");Ee("\\Tau","\\mathrm{T}");Ee("\\thetasym","\\vartheta");Ee("\\weierp","\\wp");Ee("\\Zeta","\\mathrm{Z}");Ee("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ee("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ee("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ee("\\bra","\\mathinner{\\langle{#1}|}");Ee("\\ket","\\mathinner{|{#1}\\rangle}");Ee("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ee("\\Bra","\\left\\langle#1\\right|");Ee("\\Ket","\\left|#1\\right\\rangle");var Bve=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",o));var p=h;if(!h&&a.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...i,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};Ee("\\bra@ket",Bve(!1));Ee("\\bra@set",Bve(!0));Ee("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ee("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ee("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ee("\\angln","{\\angl n}");Ee("\\blue","\\textcolor{##6495ed}{#1}");Ee("\\orange","\\textcolor{##ffa500}{#1}");Ee("\\pink","\\textcolor{##ff00af}{#1}");Ee("\\red","\\textcolor{##df0030}{#1}");Ee("\\green","\\textcolor{##28ae7b}{#1}");Ee("\\gray","\\textcolor{gray}{#1}");Ee("\\purple","\\textcolor{##9d38bd}{#1}");Ee("\\blueA","\\textcolor{##ccfaff}{#1}");Ee("\\blueB","\\textcolor{##80f6ff}{#1}");Ee("\\blueC","\\textcolor{##63d9ea}{#1}");Ee("\\blueD","\\textcolor{##11accd}{#1}");Ee("\\blueE","\\textcolor{##0c7f99}{#1}");Ee("\\tealA","\\textcolor{##94fff5}{#1}");Ee("\\tealB","\\textcolor{##26edd5}{#1}");Ee("\\tealC","\\textcolor{##01d1c1}{#1}");Ee("\\tealD","\\textcolor{##01a995}{#1}");Ee("\\tealE","\\textcolor{##208170}{#1}");Ee("\\greenA","\\textcolor{##b6ffb0}{#1}");Ee("\\greenB","\\textcolor{##8af281}{#1}");Ee("\\greenC","\\textcolor{##74cf70}{#1}");Ee("\\greenD","\\textcolor{##1fab54}{#1}");Ee("\\greenE","\\textcolor{##0d923f}{#1}");Ee("\\goldA","\\textcolor{##ffd0a9}{#1}");Ee("\\goldB","\\textcolor{##ffbb71}{#1}");Ee("\\goldC","\\textcolor{##ff9c39}{#1}");Ee("\\goldD","\\textcolor{##e07d10}{#1}");Ee("\\goldE","\\textcolor{##a75a05}{#1}");Ee("\\redA","\\textcolor{##fca9a9}{#1}");Ee("\\redB","\\textcolor{##ff8482}{#1}");Ee("\\redC","\\textcolor{##f9685d}{#1}");Ee("\\redD","\\textcolor{##e84d39}{#1}");Ee("\\redE","\\textcolor{##bc2612}{#1}");Ee("\\maroonA","\\textcolor{##ffbde0}{#1}");Ee("\\maroonB","\\textcolor{##ff92c6}{#1}");Ee("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ee("\\maroonD","\\textcolor{##ca337c}{#1}");Ee("\\maroonE","\\textcolor{##9e034e}{#1}");Ee("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ee("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ee("\\purpleC","\\textcolor{##aa87ff}{#1}");Ee("\\purpleD","\\textcolor{##7854ab}{#1}");Ee("\\purpleE","\\textcolor{##543b78}{#1}");Ee("\\mintA","\\textcolor{##f5f9e8}{#1}");Ee("\\mintB","\\textcolor{##edf2df}{#1}");Ee("\\mintC","\\textcolor{##e0e5cc}{#1}");Ee("\\grayA","\\textcolor{##f6f7f7}{#1}");Ee("\\grayB","\\textcolor{##f0f1f2}{#1}");Ee("\\grayC","\\textcolor{##e3e5e6}{#1}");Ee("\\grayD","\\textcolor{##d6d8da}{#1}");Ee("\\grayE","\\textcolor{##babec2}{#1}");Ee("\\grayF","\\textcolor{##888d93}{#1}");Ee("\\grayG","\\textcolor{##626569}{#1}");Ee("\\grayH","\\textcolor{##3b3e40}{#1}");Ee("\\grayI","\\textcolor{##21242c}{#1}");Ee("\\kaBlue","\\textcolor{##314453}{#1}");Ee("\\kaGreen","\\textcolor{##71B307}{#1}");var Fve={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let Tit=class{constructor(e,r,n){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new bit(Eit,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new rre(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,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new ic("EOF",n.loc)),this.pushTokens(a),new ic("",pl.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 a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new jt("Extra }",i)}else if(i.text==="EOF")throw new jt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}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],a=0;athis.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,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new jt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new jt("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new jt("Not a valid argument number",l)}}}return this.pushTokens(i),i.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 ic(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 a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}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 a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new rre(a,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||Yd.hasOwnProperty(e)||ha.math.hasOwnProperty(e)||ha.text.hasOwnProperty(e)||Fve.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Yd.hasOwnProperty(e)&&!Yd[e].primitive}};var ire=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Jx=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),G9={"́":{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"}},sre={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let $ve=class zve{constructor(e,r){this.mode="math",this.gullet=new Tit(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 ic("}")),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 a=this.fetch();if(zve.endOfExpression.has(a.text)||r&&a.text===r||e&&Yd[a.text]&&Yd[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a=128)this.settings.strict&&(q1e(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:pl.range(e),text:r};else return null;if(this.consume(),i)for(var h=0;h$/.test(i.content))return!1;const s=t.pos+r.length,o=Iit(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 Dit(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=ore(t,t.pos);if(!n.can_open)return e||(t.pending+="$"),t.pos+=1,!0;let a=t.pos+1,i=a,s;for(;(i=t.src.indexOf("$",i))!==-1;){for(s=i-1;t.src[s]==="\\";)s-=1;if((i-s)%2==1)break;i+=1}if(i===-1)return e||(t.pending+="$"),t.pos=a,!0;if(i-a===0)return e||(t.pending+="$$"),t.pos=a+1,!0;if(n=ore(t,i),!n.can_close)return e||(t.pending+="$"),t.pos=a,!0;if(!e){const o=t.push("math_inline","math",0);o.markup="$",o.content=t.src.slice(a,i)}return t.pos=i+1,!0}function Lit(t,e,r,n,a,i){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(s+a.length>o||t.src.slice(s,s+a.length)!==a)return!1;s+=a.length;let u=t.src.slice(s,o);if(u.includes(i)){const m=u.indexOf(i),v=u.slice(m+i.length);if(/^\s*$/.test(v)){if(u=u.slice(0,m).replace(/^\s+/,""),n)return!0;const y=t.push("math_block","math",0);return y.block=!0,y.content=u+` +?)[ \r ]*`,bB="[̀-ͯ]",_it=new RegExp(bB+"+$"),bit="("+Mve+"+)|"+(yit+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(bB+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(bB+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+vit)+("|"+mit+")");let rre=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(bit,"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 ic("EOF",new pl(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new jt("Unexpected character: '"+e[r]+"'",new ic(e[r],new pl(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new ic(a,new pl(this,r,this.tokenRegex.lastIndex))}},Eit=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 a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}};var Sit=Sve;Ee("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});Ee("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});Ee("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});Ee("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});Ee("\\@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}});Ee("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ee("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var nre={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};Ee("\\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=nre[e.text],n==null||n>=r)throw new jt("Invalid base-"+r+" digit "+e.text);for(var a;(a=nre[t.future().text])!=null&&a{var a=t.consumeArg().tokens;if(a.length!==1)throw new jt("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new jt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new jt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[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),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};Ee("\\newcommand",t=>gq(t,!1,!0,!1));Ee("\\renewcommand",t=>gq(t,!0,!1,!1));Ee("\\providecommand",t=>gq(t,!0,!0,!0));Ee("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});Ee("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});Ee("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Yd[r],ha.math[r],ha.text[r]),""});Ee("\\bgroup","{");Ee("\\egroup","}");Ee("~","\\nobreakspace");Ee("\\lq","`");Ee("\\rq","'");Ee("\\aa","\\r a");Ee("\\AA","\\r A");Ee("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Ee("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ee("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Ee("ℬ","\\mathscr{B}");Ee("ℰ","\\mathscr{E}");Ee("ℱ","\\mathscr{F}");Ee("ℋ","\\mathscr{H}");Ee("ℐ","\\mathscr{I}");Ee("ℒ","\\mathscr{L}");Ee("ℳ","\\mathscr{M}");Ee("ℛ","\\mathscr{R}");Ee("ℭ","\\mathfrak{C}");Ee("ℌ","\\mathfrak{H}");Ee("ℨ","\\mathfrak{Z}");Ee("\\Bbbk","\\Bbb{k}");Ee("·","\\cdotp");Ee("\\llap","\\mathllap{\\textrm{#1}}");Ee("\\rlap","\\mathrlap{\\textrm{#1}}");Ee("\\clap","\\mathclap{\\textrm{#1}}");Ee("\\mathstrut","\\vphantom{(}");Ee("\\underbar","\\underline{\\text{#1}}");Ee("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Ee("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Ee("\\ne","\\neq");Ee("≠","\\neq");Ee("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Ee("∉","\\notin");Ee("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Ee("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Ee("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Ee("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Ee("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Ee("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Ee("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Ee("⟂","\\perp");Ee("‼","\\mathclose{!\\mkern-0.8mu!}");Ee("∌","\\notni");Ee("⌜","\\ulcorner");Ee("⌝","\\urcorner");Ee("⌞","\\llcorner");Ee("⌟","\\lrcorner");Ee("©","\\copyright");Ee("®","\\textregistered");Ee("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ee("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ee("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ee("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ee("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ee("⋮","\\vdots");Ee("\\varGamma","\\mathit{\\Gamma}");Ee("\\varDelta","\\mathit{\\Delta}");Ee("\\varTheta","\\mathit{\\Theta}");Ee("\\varLambda","\\mathit{\\Lambda}");Ee("\\varXi","\\mathit{\\Xi}");Ee("\\varPi","\\mathit{\\Pi}");Ee("\\varSigma","\\mathit{\\Sigma}");Ee("\\varUpsilon","\\mathit{\\Upsilon}");Ee("\\varPhi","\\mathit{\\Phi}");Ee("\\varPsi","\\mathit{\\Psi}");Ee("\\varOmega","\\mathit{\\Omega}");Ee("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ee("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ee("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ee("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ee("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ee("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ee("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ee("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var are={",":"\\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"},Tit=new Set(["bin","rel"]);Ee("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in are?e=are[r]:(r.slice(0,4)==="\\not"||r in ha.math&&Tit.has(ha.math[r].group))&&(e="\\dotsb"),e});var mq={")":!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};Ee("\\dotso",function(t){var e=t.future().text;return e in mq?"\\ldots\\,":"\\ldots"});Ee("\\dotsc",function(t){var e=t.future().text;return e in mq&&e!==","?"\\ldots\\,":"\\ldots"});Ee("\\cdots",function(t){var e=t.future().text;return e in mq?"\\@cdots\\,":"\\@cdots"});Ee("\\dotsb","\\cdots");Ee("\\dotsm","\\cdots");Ee("\\dotsi","\\!\\cdots");Ee("\\dotsx","\\ldots\\,");Ee("\\DOTSI","\\relax");Ee("\\DOTSB","\\relax");Ee("\\DOTSX","\\relax");Ee("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ee("\\,","\\tmspace+{3mu}{.1667em}");Ee("\\thinspace","\\,");Ee("\\>","\\mskip{4mu}");Ee("\\:","\\tmspace+{4mu}{.2222em}");Ee("\\medspace","\\:");Ee("\\;","\\tmspace+{5mu}{.2777em}");Ee("\\thickspace","\\;");Ee("\\!","\\tmspace-{3mu}{.1667em}");Ee("\\negthinspace","\\!");Ee("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ee("\\negthickspace","\\tmspace-{5mu}{.277em}");Ee("\\enspace","\\kern.5em ");Ee("\\enskip","\\hskip.5em\\relax");Ee("\\quad","\\hskip1em\\relax");Ee("\\qquad","\\hskip2em\\relax");Ee("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ee("\\tag@paren","\\tag@literal{({#1})}");Ee("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new jt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Ee("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ee("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ee("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ee("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Ee("\\newline","\\\\\\relax");Ee("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Pve=er(Xc["Main-Regular"][84][1]-.7*Xc["Main-Regular"][65][1]);Ee("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Pve+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ee("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Pve+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ee("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ee("\\@hspace","\\hskip #1\\relax");Ee("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ee("\\ordinarycolon",":");Ee("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ee("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Ee("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Ee("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Ee("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Ee("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Ee("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Ee("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Ee("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Ee("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Ee("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Ee("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Ee("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Ee("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Ee("∷","\\dblcolon");Ee("∹","\\eqcolon");Ee("≔","\\coloneqq");Ee("≕","\\eqqcolon");Ee("⩴","\\Coloneqq");Ee("\\ratio","\\vcentcolon");Ee("\\coloncolon","\\dblcolon");Ee("\\colonequals","\\coloneqq");Ee("\\coloncolonequals","\\Coloneqq");Ee("\\equalscolon","\\eqqcolon");Ee("\\equalscoloncolon","\\Eqqcolon");Ee("\\colonminus","\\coloneq");Ee("\\coloncolonminus","\\Coloneq");Ee("\\minuscolon","\\eqcolon");Ee("\\minuscoloncolon","\\Eqcolon");Ee("\\coloncolonapprox","\\Colonapprox");Ee("\\coloncolonsim","\\Colonsim");Ee("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ee("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ee("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ee("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ee("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Ee("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ee("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ee("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ee("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ee("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ee("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ee("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ee("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ee("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Ee("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Ee("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Ee("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Ee("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Ee("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Ee("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Ee("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Ee("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Ee("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Ee("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Ee("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Ee("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Ee("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Ee("\\imath","\\html@mathml{\\@imath}{ı}");Ee("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Ee("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Ee("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Ee("⟦","\\llbracket");Ee("⟧","\\rrbracket");Ee("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Ee("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Ee("⦃","\\lBrace");Ee("⦄","\\rBrace");Ee("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Ee("⦵","\\minuso");Ee("\\darr","\\downarrow");Ee("\\dArr","\\Downarrow");Ee("\\Darr","\\Downarrow");Ee("\\lang","\\langle");Ee("\\rang","\\rangle");Ee("\\uarr","\\uparrow");Ee("\\uArr","\\Uparrow");Ee("\\Uarr","\\Uparrow");Ee("\\N","\\mathbb{N}");Ee("\\R","\\mathbb{R}");Ee("\\Z","\\mathbb{Z}");Ee("\\alef","\\aleph");Ee("\\alefsym","\\aleph");Ee("\\Alpha","\\mathrm{A}");Ee("\\Beta","\\mathrm{B}");Ee("\\bull","\\bullet");Ee("\\Chi","\\mathrm{X}");Ee("\\clubs","\\clubsuit");Ee("\\cnums","\\mathbb{C}");Ee("\\Complex","\\mathbb{C}");Ee("\\Dagger","\\ddagger");Ee("\\diamonds","\\diamondsuit");Ee("\\empty","\\emptyset");Ee("\\Epsilon","\\mathrm{E}");Ee("\\Eta","\\mathrm{H}");Ee("\\exist","\\exists");Ee("\\harr","\\leftrightarrow");Ee("\\hArr","\\Leftrightarrow");Ee("\\Harr","\\Leftrightarrow");Ee("\\hearts","\\heartsuit");Ee("\\image","\\Im");Ee("\\infin","\\infty");Ee("\\Iota","\\mathrm{I}");Ee("\\isin","\\in");Ee("\\Kappa","\\mathrm{K}");Ee("\\larr","\\leftarrow");Ee("\\lArr","\\Leftarrow");Ee("\\Larr","\\Leftarrow");Ee("\\lrarr","\\leftrightarrow");Ee("\\lrArr","\\Leftrightarrow");Ee("\\Lrarr","\\Leftrightarrow");Ee("\\Mu","\\mathrm{M}");Ee("\\natnums","\\mathbb{N}");Ee("\\Nu","\\mathrm{N}");Ee("\\Omicron","\\mathrm{O}");Ee("\\plusmn","\\pm");Ee("\\rarr","\\rightarrow");Ee("\\rArr","\\Rightarrow");Ee("\\Rarr","\\Rightarrow");Ee("\\real","\\Re");Ee("\\reals","\\mathbb{R}");Ee("\\Reals","\\mathbb{R}");Ee("\\Rho","\\mathrm{P}");Ee("\\sdot","\\cdot");Ee("\\sect","\\S");Ee("\\spades","\\spadesuit");Ee("\\sub","\\subset");Ee("\\sube","\\subseteq");Ee("\\supe","\\supseteq");Ee("\\Tau","\\mathrm{T}");Ee("\\thetasym","\\vartheta");Ee("\\weierp","\\wp");Ee("\\Zeta","\\mathrm{Z}");Ee("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ee("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ee("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ee("\\bra","\\mathinner{\\langle{#1}|}");Ee("\\ket","\\mathinner{|{#1}\\rangle}");Ee("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ee("\\Bra","\\left\\langle#1\\right|");Ee("\\Ket","\\left|#1\\right\\rangle");var Bve=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",o));var p=h;if(!h&&a.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...i,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};Ee("\\bra@ket",Bve(!1));Ee("\\bra@set",Bve(!0));Ee("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ee("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ee("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ee("\\angln","{\\angl n}");Ee("\\blue","\\textcolor{##6495ed}{#1}");Ee("\\orange","\\textcolor{##ffa500}{#1}");Ee("\\pink","\\textcolor{##ff00af}{#1}");Ee("\\red","\\textcolor{##df0030}{#1}");Ee("\\green","\\textcolor{##28ae7b}{#1}");Ee("\\gray","\\textcolor{gray}{#1}");Ee("\\purple","\\textcolor{##9d38bd}{#1}");Ee("\\blueA","\\textcolor{##ccfaff}{#1}");Ee("\\blueB","\\textcolor{##80f6ff}{#1}");Ee("\\blueC","\\textcolor{##63d9ea}{#1}");Ee("\\blueD","\\textcolor{##11accd}{#1}");Ee("\\blueE","\\textcolor{##0c7f99}{#1}");Ee("\\tealA","\\textcolor{##94fff5}{#1}");Ee("\\tealB","\\textcolor{##26edd5}{#1}");Ee("\\tealC","\\textcolor{##01d1c1}{#1}");Ee("\\tealD","\\textcolor{##01a995}{#1}");Ee("\\tealE","\\textcolor{##208170}{#1}");Ee("\\greenA","\\textcolor{##b6ffb0}{#1}");Ee("\\greenB","\\textcolor{##8af281}{#1}");Ee("\\greenC","\\textcolor{##74cf70}{#1}");Ee("\\greenD","\\textcolor{##1fab54}{#1}");Ee("\\greenE","\\textcolor{##0d923f}{#1}");Ee("\\goldA","\\textcolor{##ffd0a9}{#1}");Ee("\\goldB","\\textcolor{##ffbb71}{#1}");Ee("\\goldC","\\textcolor{##ff9c39}{#1}");Ee("\\goldD","\\textcolor{##e07d10}{#1}");Ee("\\goldE","\\textcolor{##a75a05}{#1}");Ee("\\redA","\\textcolor{##fca9a9}{#1}");Ee("\\redB","\\textcolor{##ff8482}{#1}");Ee("\\redC","\\textcolor{##f9685d}{#1}");Ee("\\redD","\\textcolor{##e84d39}{#1}");Ee("\\redE","\\textcolor{##bc2612}{#1}");Ee("\\maroonA","\\textcolor{##ffbde0}{#1}");Ee("\\maroonB","\\textcolor{##ff92c6}{#1}");Ee("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ee("\\maroonD","\\textcolor{##ca337c}{#1}");Ee("\\maroonE","\\textcolor{##9e034e}{#1}");Ee("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ee("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ee("\\purpleC","\\textcolor{##aa87ff}{#1}");Ee("\\purpleD","\\textcolor{##7854ab}{#1}");Ee("\\purpleE","\\textcolor{##543b78}{#1}");Ee("\\mintA","\\textcolor{##f5f9e8}{#1}");Ee("\\mintB","\\textcolor{##edf2df}{#1}");Ee("\\mintC","\\textcolor{##e0e5cc}{#1}");Ee("\\grayA","\\textcolor{##f6f7f7}{#1}");Ee("\\grayB","\\textcolor{##f0f1f2}{#1}");Ee("\\grayC","\\textcolor{##e3e5e6}{#1}");Ee("\\grayD","\\textcolor{##d6d8da}{#1}");Ee("\\grayE","\\textcolor{##babec2}{#1}");Ee("\\grayF","\\textcolor{##888d93}{#1}");Ee("\\grayG","\\textcolor{##626569}{#1}");Ee("\\grayH","\\textcolor{##3b3e40}{#1}");Ee("\\grayI","\\textcolor{##21242c}{#1}");Ee("\\kaBlue","\\textcolor{##314453}{#1}");Ee("\\kaGreen","\\textcolor{##71B307}{#1}");var Fve={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};let xit=class{constructor(e,r,n){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Eit(Sit,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new rre(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,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new ic("EOF",n.loc)),this.pushTokens(a),new ic("",pl.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 a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new jt("Extra }",i)}else if(i.text==="EOF")throw new jt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}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],a=0;athis.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,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new jt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new jt("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new jt("Not a valid argument number",l)}}}return this.pushTokens(i),i.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 ic(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 a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}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 a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new rre(a,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||Yd.hasOwnProperty(e)||ha.math.hasOwnProperty(e)||ha.text.hasOwnProperty(e)||Fve.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Yd.hasOwnProperty(e)&&!Yd[e].primitive}};var ire=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Jx=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),G9={"́":{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"}},sre={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let $ve=class zve{constructor(e,r){this.mode="math",this.gullet=new xit(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 ic("}")),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 a=this.fetch();if(zve.endOfExpression.has(a.text)||r&&a.text===r||e&&Yd[a.text]&&Yd[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a=128)this.settings.strict&&(q1e(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:pl.range(e),text:r};else return null;if(this.consume(),i)for(var h=0;h$/.test(i.content))return!1;const s=t.pos+r.length,o=Oit(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 Lit(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=ore(t,t.pos);if(!n.can_open)return e||(t.pending+="$"),t.pos+=1,!0;let a=t.pos+1,i=a,s;for(;(i=t.src.indexOf("$",i))!==-1;){for(s=i-1;t.src[s]==="\\";)s-=1;if((i-s)%2==1)break;i+=1}if(i===-1)return e||(t.pending+="$"),t.pos=a,!0;if(i-a===0)return e||(t.pending+="$$"),t.pos=a+1,!0;if(n=ore(t,i),!n.can_close)return e||(t.pending+="$"),t.pos=a,!0;if(!e){const o=t.push("math_inline","math",0);o.markup="$",o.content=t.src.slice(a,i)}return t.pos=i+1,!0}function Mit(t,e,r,n,a,i){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(s+a.length>o||t.src.slice(s,s+a.length)!==a)return!1;s+=a.length;let u=t.src.slice(s,o);if(u.includes(i)){const m=u.indexOf(i),v=u.slice(m+i.length);if(/^\s*$/.test(v)){if(u=u.slice(0,m).replace(/^\s+/,""),n)return!0;const y=t.push("math_block","math",0);return y.block=!0,y.content=u+` `,y.map=[e,e+1],y.markup=a,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(i,i+2)!=="$$")return!1;i+=2;let o=t.src.slice(i,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),a=!0;else if(l.length>1)return!1;if(n)return!0;let d,h,f;for(h=e;!a&&(h++,!(h>=r||(i=t.bMarks[h]+t.tShift[h],s=t.eMarks[h],i0){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,a+1).reduce((u,d)=>u+d.length,0)+a+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 dre(t,e,r,n){const a=t.tokens;for(let i=a.length-1;i>=0;i--){const s=a[i],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&&a.splice(i,1,...o)}return!0}function e3(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function $it(t,e){const r=e?.katex??Rit,n=e?.enableBareBlocks,a=e?.enableMathBlockInHtml,i=e?.enableMathInlineInHtml,s=e?.enableFencedBlocks,l=[...e?.delimiters??Nit].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",_,(S,x)=>Oit(S,x,b.left,b.right))}u&&t.inline.ruler.after("escape","math_inline",Dit),d&&t.inline.ruler.after("escape","math_inline_block",Bit),n&&t.inline.ruler.before("text","math_inline_bare_block",Fit),t.block.ruler.after("blockquote","math_block",(b,_,S,x)=>{if(n&&Pit(b,_,S,x))return!0;for(const C of l)if(!(C.left==="$$"&&C.display)&&C.display&&Lit(b,_,S,x,C.left,C.right))return!0;return d?Mit(b,_,S,x):!1},{alt:["paragraph","reference","blockquote","list"]});const f=/(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;a&&t.core.ruler.push("math_block_in_html_block",b=>dre(b,"math_block","$$",f)),i&&t.core.ruler.push("math_inline_in_html_block",b=>dre(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(S){return e?.throwOnError&&console.log(S),`${e3(S+"")}`}},m=(b,_)=>{const S=b[_].content,C=S.length>2&&S[0]==="`"&&S[S.length-1]==="`"?S.slice(1,-1):S;return g(C)},v=b=>{try{return`

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

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

${e3(_+"")}

`}},y=(b,_)=>v(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=a,!0}function Pit(t,e,r,n){let a=!1,i=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(i+2>s||t.src.slice(i,i+2)!=="$$")return!1;i+=2;let o=t.src.slice(i,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),a=!0;else if(l.length>1)return!1;if(n)return!0;let d,h,f;for(h=e;!a&&(h++,!(h>=r||(i=t.bMarks[h]+t.tShift[h],s=t.eMarks[h],i0){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,a+1).reduce((u,d)=>u+d.length,0)+a+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 dre(t,e,r,n){const a=t.tokens;for(let i=a.length-1;i>=0;i--){const s=a[i],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&&a.splice(i,1,...o)}return!0}function e3(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function zit(t,e){const r=e?.katex??Nit,n=e?.enableBareBlocks,a=e?.enableMathBlockInHtml,i=e?.enableMathInlineInHtml,s=e?.enableFencedBlocks,l=[...e?.delimiters??Iit].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",_,(S,x)=>Dit(S,x,b.left,b.right))}u&&t.inline.ruler.after("escape","math_inline",Lit),d&&t.inline.ruler.after("escape","math_inline_block",Fit),n&&t.inline.ruler.before("text","math_inline_bare_block",$it),t.block.ruler.after("blockquote","math_block",(b,_,S,x)=>{if(n&&Bit(b,_,S,x))return!0;for(const C of l)if(!(C.left==="$$"&&C.display)&&C.display&&Mit(b,_,S,x,C.left,C.right))return!0;return d?Pit(b,_,S,x):!1},{alt:["paragraph","reference","blockquote","list"]});const f=/(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;a&&t.core.ruler.push("math_block_in_html_block",b=>dre(b,"math_block","$$",f)),i&&t.core.ruler.push("math_inline_in_html_block",b=>dre(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(S){return e?.throwOnError&&console.log(S),`${e3(S+"")}`}},m=(b,_)=>{const S=b[_].content,C=S.length>2&&S[0]==="`"&&S[S.length-1]==="`"?S.slice(1,-1):S;return g(C)},v=b=>{try{return`

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

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

${e3(_+"")}

`}},y=(b,_)=>v(b[_].content)+` `;if(t.renderer.rules.math_inline=m,t.renderer.rules.math_inline_block=y,t.renderer.rules.math_inline_bare_block=y,t.renderer.rules.math_block=y,s){const b="math",_=t.renderer.rules.fence;t.renderer.rules.fence=function(S,x,C,T,w){const R=S[x];return R.info.trim().toLowerCase()===b&&s?v(R.content)+` -`:_?.call(this,S,x,C,T,w)||""}}}const zit=Object.freeze(Object.defineProperty({__proto__:null,default:$it},Symbol.toStringTag,{value:"Module"}));class Yt extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15t.replace(Uit,"-$1").toLowerCase(),Git={"&":"&",">":">","<":"<",'"':""","'":"'"},qit=/[&><"']/g,fs=t=>String(t).replace(qit,e=>Git[e]),y5=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?y5(t.body[0]):t:t.type==="font"?y5(t.body):t,Yit=new Set(["mathord","textord","atom"]),ed=t=>Yit.has(y5(t).type),Hit=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"},A6={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 Vit(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 bq{constructor(e){e===void 0&&(e={}),e=e||{};for(var r of Object.keys(A6)){var n=A6[r],a=e[r];this[r]=a!==void 0?n.processor?n.processor(a):a:Vit(n)}}reportNonstrict(e,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Yt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);a==="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 '"+a+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var a=this.strict;if(typeof a=="function")try{a=a(e,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="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 '"+a+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Hit(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class bd{constructor(e,r,n){this.id=e,this.size=r,this.cramped=n}sup(){return Gc[Wit[this.id]]}sub(){return Gc[Kit[this.id]]}fracNum(){return Gc[Xit[this.id]]}fracDen(){return Gc[jit[this.id]]}cramp(){return Gc[Qit[this.id]]}text(){return Gc[Zit[this.id]]}isTight(){return this.size>=2}}var Eq=0,R6=1,s1=2,T0=3,u4=4,Sl=5,vb=6,$s=7,Gc=[new bd(Eq,0,!1),new bd(R6,0,!0),new bd(s1,1,!1),new bd(T0,1,!0),new bd(u4,2,!1),new bd(Sl,2,!0),new bd(vb,3,!1),new bd($s,3,!0)],Wit=[u4,Sl,u4,Sl,vb,$s,vb,$s],Kit=[Sl,Sl,Sl,Sl,$s,$s,$s,$s],Xit=[s1,T0,u4,Sl,vb,$s,vb,$s],jit=[T0,T0,Sl,Sl,$s,$s,$s,$s],Qit=[R6,R6,T0,T0,Sl,Sl,$s,$s],Zit=[Eq,R6,s1,T0,s1,T0,s1,T0],Zr={DISPLAY:Gc[Eq],TEXT:Gc[s1],SCRIPT:Gc[u4],SCRIPTSCRIPT:Gc[vb]},EB=[{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 Jit(t){for(var e=0;e=a[0]&&t<=a[1])return r.name}return null}var _5=[];EB.forEach(t=>t.blocks.forEach(e=>_5.push(...e)));function qve(t){for(var e=0;e<_5.length;e+=2)if(t>=_5[e]&&t<=_5[e+1])return!0;return!1}var Vg=80,est=function(e,r){return"M95,"+(622+e+r)+` +`:_?.call(this,S,x,C,T,w)||""}}}const Uit=Object.freeze(Object.defineProperty({__proto__:null,default:zit},Symbol.toStringTag,{value:"Module"}));class Yt extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15t.replace(Git,"-$1").toLowerCase(),qit={"&":"&",">":">","<":"<",'"':""","'":"'"},Yit=/[&><"']/g,fs=t=>String(t).replace(Yit,e=>qit[e]),y5=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?y5(t.body[0]):t:t.type==="font"?y5(t.body):t,Hit=new Set(["mathord","textord","atom"]),ed=t=>Hit.has(y5(t).type),Vit=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"},A6={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 Wit(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 bq{constructor(e){e===void 0&&(e={}),e=e||{};for(var r of Object.keys(A6)){var n=A6[r],a=e[r];this[r]=a!==void 0?n.processor?n.processor(a):a:Wit(n)}}reportNonstrict(e,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Yt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);a==="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 '"+a+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var a=this.strict;if(typeof a=="function")try{a=a(e,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="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 '"+a+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=Vit(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class bd{constructor(e,r,n){this.id=e,this.size=r,this.cramped=n}sup(){return Gc[Kit[this.id]]}sub(){return Gc[Xit[this.id]]}fracNum(){return Gc[jit[this.id]]}fracDen(){return Gc[Qit[this.id]]}cramp(){return Gc[Zit[this.id]]}text(){return Gc[Jit[this.id]]}isTight(){return this.size>=2}}var Eq=0,R6=1,s1=2,T0=3,u4=4,Sl=5,vb=6,$s=7,Gc=[new bd(Eq,0,!1),new bd(R6,0,!0),new bd(s1,1,!1),new bd(T0,1,!0),new bd(u4,2,!1),new bd(Sl,2,!0),new bd(vb,3,!1),new bd($s,3,!0)],Kit=[u4,Sl,u4,Sl,vb,$s,vb,$s],Xit=[Sl,Sl,Sl,Sl,$s,$s,$s,$s],jit=[s1,T0,u4,Sl,vb,$s,vb,$s],Qit=[T0,T0,Sl,Sl,$s,$s,$s,$s],Zit=[R6,R6,T0,T0,Sl,Sl,$s,$s],Jit=[Eq,R6,s1,T0,s1,T0,s1,T0],Zr={DISPLAY:Gc[Eq],TEXT:Gc[s1],SCRIPT:Gc[u4],SCRIPTSCRIPT:Gc[vb]},EB=[{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 est(t){for(var e=0;e=a[0]&&t<=a[1])return r.name}return null}var _5=[];EB.forEach(t=>t.blocks.forEach(e=>_5.push(...e)));function qve(t){for(var e=0;e<_5.length;e+=2)if(t>=_5[e]&&t<=_5[e+1])return!0;return!1}var Vg=80,tst=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 @@ -4388,7 +4393,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"},tst=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"},rst=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+` @@ -4398,7 +4403,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"},rst=function(e,r){return"M983 "+(10+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},nst=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 @@ -4407,7 +4412,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"},nst=function(e,r){return"M424,"+(2398+e+r)+` +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},ast=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 @@ -4417,18 +4422,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"},ast=function(e,r){return"M473,"+(2713+e+r)+` +h400000v`+(40+e)+"h-400000z"},ist=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"},ist=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},sst=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` +606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},sst=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},ost=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` H742v`+a+`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"},ost=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=est(r,Vg);break;case"sqrtSize1":a=tst(r,Vg);break;case"sqrtSize2":a=rst(r,Vg);break;case"sqrtSize3":a=nst(r,Vg);break;case"sqrtSize4":a=ast(r,Vg);break;case"sqrtTall":a=sst(r,Vg,n)}return a},lst=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""}},hre={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},lst=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=tst(r,Vg);break;case"sqrtSize1":a=rst(r,Vg);break;case"sqrtSize2":a=nst(r,Vg);break;case"sqrtSize3":a=ast(r,Vg);break;case"sqrtSize4":a=ist(r,Vg);break;case"sqrtTall":a=ost(r,Vg,n)}return a},cst=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""}},hre={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 @@ -4603,7 +4608,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`},cst=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`},ust=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 @@ -4631,38 +4636,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 o2{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 SB={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},ust={ex:!0,em:!0,mu:!0},Yve=function(e){return typeof e!="string"&&(e=e.unit),e in SB||e in ust||e==="ex"},Aa=function(e,r){var n;if(e.unit in SB)n=SB[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new Yt("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},tr=function(e){return+e.toFixed(4)+"em"},bh=function(e){return e.filter(r=>r).join(" ")},Hve=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 a=r.getColor();a&&(this.style.color=a)}},Vve=function(e){var r=document.createElement(e);r.className=bh(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var i=0;i/=\x00-\x1f]/,Wve=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+fs(bh(this.classes))+'"');var n="";for(var a of Object.keys(this.style))n+=_q(a)+":"+this.style[a]+";";n&&(r+=' style="'+fs(n)+'"');for(var i of Object.keys(this.attributes)){if(dst.test(i))throw new Yt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+fs(this.attributes[i])+'"'}r+=">";for(var s=0;s",r};class l2{constructor(e,r,n,a){Hve.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Vve.call(this,"span")}toMarkup(){return Wve.call(this,"span")}}let v7=class{constructor(e,r,n,a){Hve.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Vve.call(this,"a")}toMarkup(){return Wve.call(this,"a")}};class hst{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=''+fs(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=tr(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=bh(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 a of Object.keys(this.style))n+=_q(a)+":"+this.style[a]+";";n&&(e=!0,r+=' style="'+fs(n)+'"');var i=fs(this.text);return e?(r+=">",r+=i,r+="",r):i}}class O0{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 a=0;a':''}}class TB{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 mst=t=>t instanceof l2||t instanceof v7||t instanceof o2,jc={"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]}},t3={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]},fre={Å:"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 Kve(t,e){jc[t]=e}function Sq(t,e,r){if(!jc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=jc[e][n];if(!a&&t[0]in fre&&(n=fre[t[0]].charCodeAt(0),a=jc[e][n]),!a&&r==="text"&&qve(n)&&(a=jc[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var q9={};function vst(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!q9[e]){var r=q9[e]={cssEmPerMu:t3.quad[e]/18};for(var n in t3)t3.hasOwnProperty(n)&&(r[n]=t3[n][e])}return q9[e]}var yst={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_st={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},fa={math:{},text:{}};function V(t,e,r,n,a,i){fa[t][a]={font:e,group:r,replace:n},i&&n&&(fa[t][n]=fa[t][a])}var Z="math",Bt="text",de="main",qe="ams",Ea="accent-token",dr="bin",ro="close",c2="inner",Ir="mathord",fi="op-token",jo="open",wT="punct",Xe="rel",td="spacing",et="textord";V(Z,de,Xe,"≡","\\equiv",!0);V(Z,de,Xe,"≺","\\prec",!0);V(Z,de,Xe,"≻","\\succ",!0);V(Z,de,Xe,"∼","\\sim",!0);V(Z,de,Xe,"⊥","\\perp");V(Z,de,Xe,"⪯","\\preceq",!0);V(Z,de,Xe,"⪰","\\succeq",!0);V(Z,de,Xe,"≃","\\simeq",!0);V(Z,de,Xe,"∣","\\mid",!0);V(Z,de,Xe,"≪","\\ll",!0);V(Z,de,Xe,"≫","\\gg",!0);V(Z,de,Xe,"≍","\\asymp",!0);V(Z,de,Xe,"∥","\\parallel");V(Z,de,Xe,"⋈","\\bowtie",!0);V(Z,de,Xe,"⌣","\\smile",!0);V(Z,de,Xe,"⊑","\\sqsubseteq",!0);V(Z,de,Xe,"⊒","\\sqsupseteq",!0);V(Z,de,Xe,"≐","\\doteq",!0);V(Z,de,Xe,"⌢","\\frown",!0);V(Z,de,Xe,"∋","\\ni",!0);V(Z,de,Xe,"∝","\\propto",!0);V(Z,de,Xe,"⊢","\\vdash",!0);V(Z,de,Xe,"⊣","\\dashv",!0);V(Z,de,Xe,"∋","\\owns");V(Z,de,wT,".","\\ldotp");V(Z,de,wT,"⋅","\\cdotp");V(Z,de,wT,"⋅","·");V(Bt,de,et,"⋅","·");V(Z,de,et,"#","\\#");V(Bt,de,et,"#","\\#");V(Z,de,et,"&","\\&");V(Bt,de,et,"&","\\&");V(Z,de,et,"ℵ","\\aleph",!0);V(Z,de,et,"∀","\\forall",!0);V(Z,de,et,"ℏ","\\hbar",!0);V(Z,de,et,"∃","\\exists",!0);V(Z,de,et,"∇","\\nabla",!0);V(Z,de,et,"♭","\\flat",!0);V(Z,de,et,"ℓ","\\ell",!0);V(Z,de,et,"♮","\\natural",!0);V(Z,de,et,"♣","\\clubsuit",!0);V(Z,de,et,"℘","\\wp",!0);V(Z,de,et,"♯","\\sharp",!0);V(Z,de,et,"♢","\\diamondsuit",!0);V(Z,de,et,"ℜ","\\Re",!0);V(Z,de,et,"♡","\\heartsuit",!0);V(Z,de,et,"ℑ","\\Im",!0);V(Z,de,et,"♠","\\spadesuit",!0);V(Z,de,et,"§","\\S",!0);V(Bt,de,et,"§","\\S");V(Z,de,et,"¶","\\P",!0);V(Bt,de,et,"¶","\\P");V(Z,de,et,"†","\\dag");V(Bt,de,et,"†","\\dag");V(Bt,de,et,"†","\\textdagger");V(Z,de,et,"‡","\\ddag");V(Bt,de,et,"‡","\\ddag");V(Bt,de,et,"‡","\\textdaggerdbl");V(Z,de,ro,"⎱","\\rmoustache",!0);V(Z,de,jo,"⎰","\\lmoustache",!0);V(Z,de,ro,"⟯","\\rgroup",!0);V(Z,de,jo,"⟮","\\lgroup",!0);V(Z,de,dr,"∓","\\mp",!0);V(Z,de,dr,"⊖","\\ominus",!0);V(Z,de,dr,"⊎","\\uplus",!0);V(Z,de,dr,"⊓","\\sqcap",!0);V(Z,de,dr,"∗","\\ast");V(Z,de,dr,"⊔","\\sqcup",!0);V(Z,de,dr,"◯","\\bigcirc",!0);V(Z,de,dr,"∙","\\bullet",!0);V(Z,de,dr,"‡","\\ddagger");V(Z,de,dr,"≀","\\wr",!0);V(Z,de,dr,"⨿","\\amalg");V(Z,de,dr,"&","\\And");V(Z,de,Xe,"⟵","\\longleftarrow",!0);V(Z,de,Xe,"⇐","\\Leftarrow",!0);V(Z,de,Xe,"⟸","\\Longleftarrow",!0);V(Z,de,Xe,"⟶","\\longrightarrow",!0);V(Z,de,Xe,"⇒","\\Rightarrow",!0);V(Z,de,Xe,"⟹","\\Longrightarrow",!0);V(Z,de,Xe,"↔","\\leftrightarrow",!0);V(Z,de,Xe,"⟷","\\longleftrightarrow",!0);V(Z,de,Xe,"⇔","\\Leftrightarrow",!0);V(Z,de,Xe,"⟺","\\Longleftrightarrow",!0);V(Z,de,Xe,"↦","\\mapsto",!0);V(Z,de,Xe,"⟼","\\longmapsto",!0);V(Z,de,Xe,"↗","\\nearrow",!0);V(Z,de,Xe,"↩","\\hookleftarrow",!0);V(Z,de,Xe,"↪","\\hookrightarrow",!0);V(Z,de,Xe,"↘","\\searrow",!0);V(Z,de,Xe,"↼","\\leftharpoonup",!0);V(Z,de,Xe,"⇀","\\rightharpoonup",!0);V(Z,de,Xe,"↙","\\swarrow",!0);V(Z,de,Xe,"↽","\\leftharpoondown",!0);V(Z,de,Xe,"⇁","\\rightharpoondown",!0);V(Z,de,Xe,"↖","\\nwarrow",!0);V(Z,de,Xe,"⇌","\\rightleftharpoons",!0);V(Z,qe,Xe,"≮","\\nless",!0);V(Z,qe,Xe,"","\\@nleqslant");V(Z,qe,Xe,"","\\@nleqq");V(Z,qe,Xe,"⪇","\\lneq",!0);V(Z,qe,Xe,"≨","\\lneqq",!0);V(Z,qe,Xe,"","\\@lvertneqq");V(Z,qe,Xe,"⋦","\\lnsim",!0);V(Z,qe,Xe,"⪉","\\lnapprox",!0);V(Z,qe,Xe,"⊀","\\nprec",!0);V(Z,qe,Xe,"⋠","\\npreceq",!0);V(Z,qe,Xe,"⋨","\\precnsim",!0);V(Z,qe,Xe,"⪹","\\precnapprox",!0);V(Z,qe,Xe,"≁","\\nsim",!0);V(Z,qe,Xe,"","\\@nshortmid");V(Z,qe,Xe,"∤","\\nmid",!0);V(Z,qe,Xe,"⊬","\\nvdash",!0);V(Z,qe,Xe,"⊭","\\nvDash",!0);V(Z,qe,Xe,"⋪","\\ntriangleleft");V(Z,qe,Xe,"⋬","\\ntrianglelefteq",!0);V(Z,qe,Xe,"⊊","\\subsetneq",!0);V(Z,qe,Xe,"","\\@varsubsetneq");V(Z,qe,Xe,"⫋","\\subsetneqq",!0);V(Z,qe,Xe,"","\\@varsubsetneqq");V(Z,qe,Xe,"≯","\\ngtr",!0);V(Z,qe,Xe,"","\\@ngeqslant");V(Z,qe,Xe,"","\\@ngeqq");V(Z,qe,Xe,"⪈","\\gneq",!0);V(Z,qe,Xe,"≩","\\gneqq",!0);V(Z,qe,Xe,"","\\@gvertneqq");V(Z,qe,Xe,"⋧","\\gnsim",!0);V(Z,qe,Xe,"⪊","\\gnapprox",!0);V(Z,qe,Xe,"⊁","\\nsucc",!0);V(Z,qe,Xe,"⋡","\\nsucceq",!0);V(Z,qe,Xe,"⋩","\\succnsim",!0);V(Z,qe,Xe,"⪺","\\succnapprox",!0);V(Z,qe,Xe,"≆","\\ncong",!0);V(Z,qe,Xe,"","\\@nshortparallel");V(Z,qe,Xe,"∦","\\nparallel",!0);V(Z,qe,Xe,"⊯","\\nVDash",!0);V(Z,qe,Xe,"⋫","\\ntriangleright");V(Z,qe,Xe,"⋭","\\ntrianglerighteq",!0);V(Z,qe,Xe,"","\\@nsupseteqq");V(Z,qe,Xe,"⊋","\\supsetneq",!0);V(Z,qe,Xe,"","\\@varsupsetneq");V(Z,qe,Xe,"⫌","\\supsetneqq",!0);V(Z,qe,Xe,"","\\@varsupsetneqq");V(Z,qe,Xe,"⊮","\\nVdash",!0);V(Z,qe,Xe,"⪵","\\precneqq",!0);V(Z,qe,Xe,"⪶","\\succneqq",!0);V(Z,qe,Xe,"","\\@nsubseteqq");V(Z,qe,dr,"⊴","\\unlhd");V(Z,qe,dr,"⊵","\\unrhd");V(Z,qe,Xe,"↚","\\nleftarrow",!0);V(Z,qe,Xe,"↛","\\nrightarrow",!0);V(Z,qe,Xe,"⇍","\\nLeftarrow",!0);V(Z,qe,Xe,"⇏","\\nRightarrow",!0);V(Z,qe,Xe,"↮","\\nleftrightarrow",!0);V(Z,qe,Xe,"⇎","\\nLeftrightarrow",!0);V(Z,qe,Xe,"△","\\vartriangle");V(Z,qe,et,"ℏ","\\hslash");V(Z,qe,et,"▽","\\triangledown");V(Z,qe,et,"◊","\\lozenge");V(Z,qe,et,"Ⓢ","\\circledS");V(Z,qe,et,"®","\\circledR");V(Bt,qe,et,"®","\\circledR");V(Z,qe,et,"∡","\\measuredangle",!0);V(Z,qe,et,"∄","\\nexists");V(Z,qe,et,"℧","\\mho");V(Z,qe,et,"Ⅎ","\\Finv",!0);V(Z,qe,et,"⅁","\\Game",!0);V(Z,qe,et,"‵","\\backprime");V(Z,qe,et,"▲","\\blacktriangle");V(Z,qe,et,"▼","\\blacktriangledown");V(Z,qe,et,"■","\\blacksquare");V(Z,qe,et,"⧫","\\blacklozenge");V(Z,qe,et,"★","\\bigstar");V(Z,qe,et,"∢","\\sphericalangle",!0);V(Z,qe,et,"∁","\\complement",!0);V(Z,qe,et,"ð","\\eth",!0);V(Bt,de,et,"ð","ð");V(Z,qe,et,"╱","\\diagup");V(Z,qe,et,"╲","\\diagdown");V(Z,qe,et,"□","\\square");V(Z,qe,et,"□","\\Box");V(Z,qe,et,"◊","\\Diamond");V(Z,qe,et,"¥","\\yen",!0);V(Bt,qe,et,"¥","\\yen",!0);V(Z,qe,et,"✓","\\checkmark",!0);V(Bt,qe,et,"✓","\\checkmark");V(Z,qe,et,"ℶ","\\beth",!0);V(Z,qe,et,"ℸ","\\daleth",!0);V(Z,qe,et,"ℷ","\\gimel",!0);V(Z,qe,et,"ϝ","\\digamma",!0);V(Z,qe,et,"ϰ","\\varkappa");V(Z,qe,jo,"┌","\\@ulcorner",!0);V(Z,qe,ro,"┐","\\@urcorner",!0);V(Z,qe,jo,"└","\\@llcorner",!0);V(Z,qe,ro,"┘","\\@lrcorner",!0);V(Z,qe,Xe,"≦","\\leqq",!0);V(Z,qe,Xe,"⩽","\\leqslant",!0);V(Z,qe,Xe,"⪕","\\eqslantless",!0);V(Z,qe,Xe,"≲","\\lesssim",!0);V(Z,qe,Xe,"⪅","\\lessapprox",!0);V(Z,qe,Xe,"≊","\\approxeq",!0);V(Z,qe,dr,"⋖","\\lessdot");V(Z,qe,Xe,"⋘","\\lll",!0);V(Z,qe,Xe,"≶","\\lessgtr",!0);V(Z,qe,Xe,"⋚","\\lesseqgtr",!0);V(Z,qe,Xe,"⪋","\\lesseqqgtr",!0);V(Z,qe,Xe,"≑","\\doteqdot");V(Z,qe,Xe,"≓","\\risingdotseq",!0);V(Z,qe,Xe,"≒","\\fallingdotseq",!0);V(Z,qe,Xe,"∽","\\backsim",!0);V(Z,qe,Xe,"⋍","\\backsimeq",!0);V(Z,qe,Xe,"⫅","\\subseteqq",!0);V(Z,qe,Xe,"⋐","\\Subset",!0);V(Z,qe,Xe,"⊏","\\sqsubset",!0);V(Z,qe,Xe,"≼","\\preccurlyeq",!0);V(Z,qe,Xe,"⋞","\\curlyeqprec",!0);V(Z,qe,Xe,"≾","\\precsim",!0);V(Z,qe,Xe,"⪷","\\precapprox",!0);V(Z,qe,Xe,"⊲","\\vartriangleleft");V(Z,qe,Xe,"⊴","\\trianglelefteq");V(Z,qe,Xe,"⊨","\\vDash",!0);V(Z,qe,Xe,"⊪","\\Vvdash",!0);V(Z,qe,Xe,"⌣","\\smallsmile");V(Z,qe,Xe,"⌢","\\smallfrown");V(Z,qe,Xe,"≏","\\bumpeq",!0);V(Z,qe,Xe,"≎","\\Bumpeq",!0);V(Z,qe,Xe,"≧","\\geqq",!0);V(Z,qe,Xe,"⩾","\\geqslant",!0);V(Z,qe,Xe,"⪖","\\eqslantgtr",!0);V(Z,qe,Xe,"≳","\\gtrsim",!0);V(Z,qe,Xe,"⪆","\\gtrapprox",!0);V(Z,qe,dr,"⋗","\\gtrdot");V(Z,qe,Xe,"⋙","\\ggg",!0);V(Z,qe,Xe,"≷","\\gtrless",!0);V(Z,qe,Xe,"⋛","\\gtreqless",!0);V(Z,qe,Xe,"⪌","\\gtreqqless",!0);V(Z,qe,Xe,"≖","\\eqcirc",!0);V(Z,qe,Xe,"≗","\\circeq",!0);V(Z,qe,Xe,"≜","\\triangleq",!0);V(Z,qe,Xe,"∼","\\thicksim");V(Z,qe,Xe,"≈","\\thickapprox");V(Z,qe,Xe,"⫆","\\supseteqq",!0);V(Z,qe,Xe,"⋑","\\Supset",!0);V(Z,qe,Xe,"⊐","\\sqsupset",!0);V(Z,qe,Xe,"≽","\\succcurlyeq",!0);V(Z,qe,Xe,"⋟","\\curlyeqsucc",!0);V(Z,qe,Xe,"≿","\\succsim",!0);V(Z,qe,Xe,"⪸","\\succapprox",!0);V(Z,qe,Xe,"⊳","\\vartriangleright");V(Z,qe,Xe,"⊵","\\trianglerighteq");V(Z,qe,Xe,"⊩","\\Vdash",!0);V(Z,qe,Xe,"∣","\\shortmid");V(Z,qe,Xe,"∥","\\shortparallel");V(Z,qe,Xe,"≬","\\between",!0);V(Z,qe,Xe,"⋔","\\pitchfork",!0);V(Z,qe,Xe,"∝","\\varpropto");V(Z,qe,Xe,"◀","\\blacktriangleleft");V(Z,qe,Xe,"∴","\\therefore",!0);V(Z,qe,Xe,"∍","\\backepsilon");V(Z,qe,Xe,"▶","\\blacktriangleright");V(Z,qe,Xe,"∵","\\because",!0);V(Z,qe,Xe,"⋘","\\llless");V(Z,qe,Xe,"⋙","\\gggtr");V(Z,qe,dr,"⊲","\\lhd");V(Z,qe,dr,"⊳","\\rhd");V(Z,qe,Xe,"≂","\\eqsim",!0);V(Z,de,Xe,"⋈","\\Join");V(Z,qe,Xe,"≑","\\Doteq",!0);V(Z,qe,dr,"∔","\\dotplus",!0);V(Z,qe,dr,"∖","\\smallsetminus");V(Z,qe,dr,"⋒","\\Cap",!0);V(Z,qe,dr,"⋓","\\Cup",!0);V(Z,qe,dr,"⩞","\\doublebarwedge",!0);V(Z,qe,dr,"⊟","\\boxminus",!0);V(Z,qe,dr,"⊞","\\boxplus",!0);V(Z,qe,dr,"⋇","\\divideontimes",!0);V(Z,qe,dr,"⋉","\\ltimes",!0);V(Z,qe,dr,"⋊","\\rtimes",!0);V(Z,qe,dr,"⋋","\\leftthreetimes",!0);V(Z,qe,dr,"⋌","\\rightthreetimes",!0);V(Z,qe,dr,"⋏","\\curlywedge",!0);V(Z,qe,dr,"⋎","\\curlyvee",!0);V(Z,qe,dr,"⊝","\\circleddash",!0);V(Z,qe,dr,"⊛","\\circledast",!0);V(Z,qe,dr,"⋅","\\centerdot");V(Z,qe,dr,"⊺","\\intercal",!0);V(Z,qe,dr,"⋒","\\doublecap");V(Z,qe,dr,"⋓","\\doublecup");V(Z,qe,dr,"⊠","\\boxtimes",!0);V(Z,qe,Xe,"⇢","\\dashrightarrow",!0);V(Z,qe,Xe,"⇠","\\dashleftarrow",!0);V(Z,qe,Xe,"⇇","\\leftleftarrows",!0);V(Z,qe,Xe,"⇆","\\leftrightarrows",!0);V(Z,qe,Xe,"⇚","\\Lleftarrow",!0);V(Z,qe,Xe,"↞","\\twoheadleftarrow",!0);V(Z,qe,Xe,"↢","\\leftarrowtail",!0);V(Z,qe,Xe,"↫","\\looparrowleft",!0);V(Z,qe,Xe,"⇋","\\leftrightharpoons",!0);V(Z,qe,Xe,"↶","\\curvearrowleft",!0);V(Z,qe,Xe,"↺","\\circlearrowleft",!0);V(Z,qe,Xe,"↰","\\Lsh",!0);V(Z,qe,Xe,"⇈","\\upuparrows",!0);V(Z,qe,Xe,"↿","\\upharpoonleft",!0);V(Z,qe,Xe,"⇃","\\downharpoonleft",!0);V(Z,de,Xe,"⊶","\\origof",!0);V(Z,de,Xe,"⊷","\\imageof",!0);V(Z,qe,Xe,"⊸","\\multimap",!0);V(Z,qe,Xe,"↭","\\leftrightsquigarrow",!0);V(Z,qe,Xe,"⇉","\\rightrightarrows",!0);V(Z,qe,Xe,"⇄","\\rightleftarrows",!0);V(Z,qe,Xe,"↠","\\twoheadrightarrow",!0);V(Z,qe,Xe,"↣","\\rightarrowtail",!0);V(Z,qe,Xe,"↬","\\looparrowright",!0);V(Z,qe,Xe,"↷","\\curvearrowright",!0);V(Z,qe,Xe,"↻","\\circlearrowright",!0);V(Z,qe,Xe,"↱","\\Rsh",!0);V(Z,qe,Xe,"⇊","\\downdownarrows",!0);V(Z,qe,Xe,"↾","\\upharpoonright",!0);V(Z,qe,Xe,"⇂","\\downharpoonright",!0);V(Z,qe,Xe,"⇝","\\rightsquigarrow",!0);V(Z,qe,Xe,"⇝","\\leadsto");V(Z,qe,Xe,"⇛","\\Rrightarrow",!0);V(Z,qe,Xe,"↾","\\restriction");V(Z,de,et,"‘","`");V(Z,de,et,"$","\\$");V(Bt,de,et,"$","\\$");V(Bt,de,et,"$","\\textdollar");V(Z,de,et,"%","\\%");V(Bt,de,et,"%","\\%");V(Z,de,et,"_","\\_");V(Bt,de,et,"_","\\_");V(Bt,de,et,"_","\\textunderscore");V(Z,de,et,"∠","\\angle",!0);V(Z,de,et,"∞","\\infty",!0);V(Z,de,et,"′","\\prime");V(Z,de,et,"△","\\triangle");V(Z,de,et,"Γ","\\Gamma",!0);V(Z,de,et,"Δ","\\Delta",!0);V(Z,de,et,"Θ","\\Theta",!0);V(Z,de,et,"Λ","\\Lambda",!0);V(Z,de,et,"Ξ","\\Xi",!0);V(Z,de,et,"Π","\\Pi",!0);V(Z,de,et,"Σ","\\Sigma",!0);V(Z,de,et,"Υ","\\Upsilon",!0);V(Z,de,et,"Φ","\\Phi",!0);V(Z,de,et,"Ψ","\\Psi",!0);V(Z,de,et,"Ω","\\Omega",!0);V(Z,de,et,"A","Α");V(Z,de,et,"B","Β");V(Z,de,et,"E","Ε");V(Z,de,et,"Z","Ζ");V(Z,de,et,"H","Η");V(Z,de,et,"I","Ι");V(Z,de,et,"K","Κ");V(Z,de,et,"M","Μ");V(Z,de,et,"N","Ν");V(Z,de,et,"O","Ο");V(Z,de,et,"P","Ρ");V(Z,de,et,"T","Τ");V(Z,de,et,"X","Χ");V(Z,de,et,"¬","\\neg",!0);V(Z,de,et,"¬","\\lnot");V(Z,de,et,"⊤","\\top");V(Z,de,et,"⊥","\\bot");V(Z,de,et,"∅","\\emptyset");V(Z,qe,et,"∅","\\varnothing");V(Z,de,Ir,"α","\\alpha",!0);V(Z,de,Ir,"β","\\beta",!0);V(Z,de,Ir,"γ","\\gamma",!0);V(Z,de,Ir,"δ","\\delta",!0);V(Z,de,Ir,"ϵ","\\epsilon",!0);V(Z,de,Ir,"ζ","\\zeta",!0);V(Z,de,Ir,"η","\\eta",!0);V(Z,de,Ir,"θ","\\theta",!0);V(Z,de,Ir,"ι","\\iota",!0);V(Z,de,Ir,"κ","\\kappa",!0);V(Z,de,Ir,"λ","\\lambda",!0);V(Z,de,Ir,"μ","\\mu",!0);V(Z,de,Ir,"ν","\\nu",!0);V(Z,de,Ir,"ξ","\\xi",!0);V(Z,de,Ir,"ο","\\omicron",!0);V(Z,de,Ir,"π","\\pi",!0);V(Z,de,Ir,"ρ","\\rho",!0);V(Z,de,Ir,"σ","\\sigma",!0);V(Z,de,Ir,"τ","\\tau",!0);V(Z,de,Ir,"υ","\\upsilon",!0);V(Z,de,Ir,"ϕ","\\phi",!0);V(Z,de,Ir,"χ","\\chi",!0);V(Z,de,Ir,"ψ","\\psi",!0);V(Z,de,Ir,"ω","\\omega",!0);V(Z,de,Ir,"ε","\\varepsilon",!0);V(Z,de,Ir,"ϑ","\\vartheta",!0);V(Z,de,Ir,"ϖ","\\varpi",!0);V(Z,de,Ir,"ϱ","\\varrho",!0);V(Z,de,Ir,"ς","\\varsigma",!0);V(Z,de,Ir,"φ","\\varphi",!0);V(Z,de,dr,"∗","*",!0);V(Z,de,dr,"+","+");V(Z,de,dr,"−","-",!0);V(Z,de,dr,"⋅","\\cdot",!0);V(Z,de,dr,"∘","\\circ",!0);V(Z,de,dr,"÷","\\div",!0);V(Z,de,dr,"±","\\pm",!0);V(Z,de,dr,"×","\\times",!0);V(Z,de,dr,"∩","\\cap",!0);V(Z,de,dr,"∪","\\cup",!0);V(Z,de,dr,"∖","\\setminus",!0);V(Z,de,dr,"∧","\\land");V(Z,de,dr,"∨","\\lor");V(Z,de,dr,"∧","\\wedge",!0);V(Z,de,dr,"∨","\\vee",!0);V(Z,de,et,"√","\\surd");V(Z,de,jo,"⟨","\\langle",!0);V(Z,de,jo,"∣","\\lvert");V(Z,de,jo,"∥","\\lVert");V(Z,de,ro,"?","?");V(Z,de,ro,"!","!");V(Z,de,ro,"⟩","\\rangle",!0);V(Z,de,ro,"∣","\\rvert");V(Z,de,ro,"∥","\\rVert");V(Z,de,Xe,"=","=");V(Z,de,Xe,":",":");V(Z,de,Xe,"≈","\\approx",!0);V(Z,de,Xe,"≅","\\cong",!0);V(Z,de,Xe,"≥","\\ge");V(Z,de,Xe,"≥","\\geq",!0);V(Z,de,Xe,"←","\\gets");V(Z,de,Xe,">","\\gt",!0);V(Z,de,Xe,"∈","\\in",!0);V(Z,de,Xe,"","\\@not");V(Z,de,Xe,"⊂","\\subset",!0);V(Z,de,Xe,"⊃","\\supset",!0);V(Z,de,Xe,"⊆","\\subseteq",!0);V(Z,de,Xe,"⊇","\\supseteq",!0);V(Z,qe,Xe,"⊈","\\nsubseteq",!0);V(Z,qe,Xe,"⊉","\\nsupseteq",!0);V(Z,de,Xe,"⊨","\\models");V(Z,de,Xe,"←","\\leftarrow",!0);V(Z,de,Xe,"≤","\\le");V(Z,de,Xe,"≤","\\leq",!0);V(Z,de,Xe,"<","\\lt",!0);V(Z,de,Xe,"→","\\rightarrow",!0);V(Z,de,Xe,"→","\\to");V(Z,qe,Xe,"≱","\\ngeq",!0);V(Z,qe,Xe,"≰","\\nleq",!0);V(Z,de,td," ","\\ ");V(Z,de,td," ","\\space");V(Z,de,td," ","\\nobreakspace");V(Bt,de,td," ","\\ ");V(Bt,de,td," "," ");V(Bt,de,td," ","\\space");V(Bt,de,td," ","\\nobreakspace");V(Z,de,td,null,"\\nobreak");V(Z,de,td,null,"\\allowbreak");V(Z,de,wT,",",",");V(Z,de,wT,";",";");V(Z,qe,dr,"⊼","\\barwedge",!0);V(Z,qe,dr,"⊻","\\veebar",!0);V(Z,de,dr,"⊙","\\odot",!0);V(Z,de,dr,"⊕","\\oplus",!0);V(Z,de,dr,"⊗","\\otimes",!0);V(Z,de,et,"∂","\\partial",!0);V(Z,de,dr,"⊘","\\oslash",!0);V(Z,qe,dr,"⊚","\\circledcirc",!0);V(Z,qe,dr,"⊡","\\boxdot",!0);V(Z,de,dr,"△","\\bigtriangleup");V(Z,de,dr,"▽","\\bigtriangledown");V(Z,de,dr,"†","\\dagger");V(Z,de,dr,"⋄","\\diamond");V(Z,de,dr,"⋆","\\star");V(Z,de,dr,"◃","\\triangleleft");V(Z,de,dr,"▹","\\triangleright");V(Z,de,jo,"{","\\{");V(Bt,de,et,"{","\\{");V(Bt,de,et,"{","\\textbraceleft");V(Z,de,ro,"}","\\}");V(Bt,de,et,"}","\\}");V(Bt,de,et,"}","\\textbraceright");V(Z,de,jo,"{","\\lbrace");V(Z,de,ro,"}","\\rbrace");V(Z,de,jo,"[","\\lbrack",!0);V(Bt,de,et,"[","\\lbrack",!0);V(Z,de,ro,"]","\\rbrack",!0);V(Bt,de,et,"]","\\rbrack",!0);V(Z,de,jo,"(","\\lparen",!0);V(Z,de,ro,")","\\rparen",!0);V(Bt,de,et,"<","\\textless",!0);V(Bt,de,et,">","\\textgreater",!0);V(Z,de,jo,"⌊","\\lfloor",!0);V(Z,de,ro,"⌋","\\rfloor",!0);V(Z,de,jo,"⌈","\\lceil",!0);V(Z,de,ro,"⌉","\\rceil",!0);V(Z,de,et,"\\","\\backslash");V(Z,de,et,"∣","|");V(Z,de,et,"∣","\\vert");V(Bt,de,et,"|","\\textbar",!0);V(Z,de,et,"∥","\\|");V(Z,de,et,"∥","\\Vert");V(Bt,de,et,"∥","\\textbardbl");V(Bt,de,et,"~","\\textasciitilde");V(Bt,de,et,"\\","\\textbackslash");V(Bt,de,et,"^","\\textasciicircum");V(Z,de,Xe,"↑","\\uparrow",!0);V(Z,de,Xe,"⇑","\\Uparrow",!0);V(Z,de,Xe,"↓","\\downarrow",!0);V(Z,de,Xe,"⇓","\\Downarrow",!0);V(Z,de,Xe,"↕","\\updownarrow",!0);V(Z,de,Xe,"⇕","\\Updownarrow",!0);V(Z,de,fi,"∐","\\coprod");V(Z,de,fi,"⋁","\\bigvee");V(Z,de,fi,"⋀","\\bigwedge");V(Z,de,fi,"⨄","\\biguplus");V(Z,de,fi,"⋂","\\bigcap");V(Z,de,fi,"⋃","\\bigcup");V(Z,de,fi,"∫","\\int");V(Z,de,fi,"∫","\\intop");V(Z,de,fi,"∬","\\iint");V(Z,de,fi,"∭","\\iiint");V(Z,de,fi,"∏","\\prod");V(Z,de,fi,"∑","\\sum");V(Z,de,fi,"⨂","\\bigotimes");V(Z,de,fi,"⨁","\\bigoplus");V(Z,de,fi,"⨀","\\bigodot");V(Z,de,fi,"∮","\\oint");V(Z,de,fi,"∯","\\oiint");V(Z,de,fi,"∰","\\oiiint");V(Z,de,fi,"⨆","\\bigsqcup");V(Z,de,fi,"∫","\\smallint");V(Bt,de,c2,"…","\\textellipsis");V(Z,de,c2,"…","\\mathellipsis");V(Bt,de,c2,"…","\\ldots",!0);V(Z,de,c2,"…","\\ldots",!0);V(Z,de,c2,"⋯","\\@cdots",!0);V(Z,de,c2,"⋱","\\ddots",!0);V(Z,de,et,"⋮","\\varvdots");V(Bt,de,et,"⋮","\\varvdots");V(Z,de,Ea,"ˊ","\\acute");V(Z,de,Ea,"ˋ","\\grave");V(Z,de,Ea,"¨","\\ddot");V(Z,de,Ea,"~","\\tilde");V(Z,de,Ea,"ˉ","\\bar");V(Z,de,Ea,"˘","\\breve");V(Z,de,Ea,"ˇ","\\check");V(Z,de,Ea,"^","\\hat");V(Z,de,Ea,"⃗","\\vec");V(Z,de,Ea,"˙","\\dot");V(Z,de,Ea,"˚","\\mathring");V(Z,de,Ir,"","\\@imath");V(Z,de,Ir,"","\\@jmath");V(Z,de,et,"ı","ı");V(Z,de,et,"ȷ","ȷ");V(Bt,de,et,"ı","\\i",!0);V(Bt,de,et,"ȷ","\\j",!0);V(Bt,de,et,"ß","\\ss",!0);V(Bt,de,et,"æ","\\ae",!0);V(Bt,de,et,"œ","\\oe",!0);V(Bt,de,et,"ø","\\o",!0);V(Bt,de,et,"Æ","\\AE",!0);V(Bt,de,et,"Œ","\\OE",!0);V(Bt,de,et,"Ø","\\O",!0);V(Bt,de,Ea,"ˊ","\\'");V(Bt,de,Ea,"ˋ","\\`");V(Bt,de,Ea,"ˆ","\\^");V(Bt,de,Ea,"˜","\\~");V(Bt,de,Ea,"ˉ","\\=");V(Bt,de,Ea,"˘","\\u");V(Bt,de,Ea,"˙","\\.");V(Bt,de,Ea,"¸","\\c");V(Bt,de,Ea,"˚","\\r");V(Bt,de,Ea,"ˇ","\\v");V(Bt,de,Ea,"¨",'\\"');V(Bt,de,Ea,"˝","\\H");V(Bt,de,Ea,"◯","\\textcircled");var Xve={"--":!0,"---":!0,"``":!0,"''":!0};V(Bt,de,et,"–","--",!0);V(Bt,de,et,"–","\\textendash");V(Bt,de,et,"—","---",!0);V(Bt,de,et,"—","\\textemdash");V(Bt,de,et,"‘","`",!0);V(Bt,de,et,"‘","\\textquoteleft");V(Bt,de,et,"’","'",!0);V(Bt,de,et,"’","\\textquoteright");V(Bt,de,et,"“","``",!0);V(Bt,de,et,"“","\\textquotedblleft");V(Bt,de,et,"”","''",!0);V(Bt,de,et,"”","\\textquotedblright");V(Z,de,et,"°","\\degree",!0);V(Bt,de,et,"°","\\degree");V(Bt,de,et,"°","\\textdegree",!0);V(Z,de,et,"£","\\pounds");V(Z,de,et,"£","\\mathsterling",!0);V(Bt,de,et,"£","\\pounds");V(Bt,de,et,"£","\\textsterling",!0);V(Z,qe,et,"✠","\\maltese");V(Bt,qe,et,"✠","\\maltese");var pre='0123456789/@."';for(var Y9=0;Y9{var r=t.charCodeAt(0),n=t.charCodeAt(1),a=(r-55296)*1024+(n-56320)+65536,i=e==="math"?0:1;if(119808<=a&&a<120484){var s=Math.floor((a-119808)/26);return[a3[s][2],a3[s][i]]}else if(120782<=a&&a<=120831){var o=Math.floor((a-120782)/10);return[yre[o][2],yre[o][i]]}else{if(a===120485||a===120486)return[a3[0][2],a3[0][i]];if(1204860)return Is(i,u,a,r,s.concat(d));if(l){var h,f;if(l==="boldsymbol"){var p=Est(i,a,r,s,n);h=p.fontName,f=[p.fontClass]}else o?(h=CB[l].fontName,f=[l]):(h=i3(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(y7(i,h,a).metrics)return Is(i,h,a,r,s.concat(f));if(Xve.hasOwnProperty(i)&&h.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(bh(t.classes)!==bh(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 a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},jve=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},Gt=function(e,r,n,a){var i=new l2(e,r,n,a);return xq(i),i},Sh=(t,e,r,n)=>new l2(t,e,r,n),yb=function(e,r,n){var a=Gt([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=tr(a.height),a.maxFontSize=1,a},Tst=function(e,r,n,a){var i=new v7(e,r,n,a);return xq(i),i},rd=function(e){var r=new o2(e);return xq(r),r},_b=function(e,r){return e instanceof o2?Gt([],[e],r):e},xst=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s{var r=Gt(["mspace"],[],e),n=Aa(t,e);return r.style.marginRight=tr(n),r},i3=function(e,r,n){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},CB={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"}},Zve={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Jve=function(e,r){var[n,a,i]=Zve[e],s=new Eh(n),o=new O0([s],{width:tr(a),height:tr(i),style:"width:"+tr(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Sh(["overlay"],[o],r);return l.height=i,l.style.height=tr(i),l.style.width=tr(a),l},Ca={number:3,unit:"mu"},gf={number:4,unit:"mu"},qu={number:5,unit:"mu"},Cst={mord:{mop:Ca,mbin:gf,mrel:qu,minner:Ca},mop:{mord:Ca,mop:Ca,mrel:qu,minner:Ca},mbin:{mord:gf,mop:gf,mopen:gf,minner:gf},mrel:{mord:qu,mop:qu,mopen:qu,minner:qu},mopen:{},mclose:{mop:Ca,mbin:gf,mrel:qu,minner:Ca},mpunct:{mord:Ca,mop:Ca,mrel:qu,mopen:Ca,mclose:Ca,mpunct:Ca,minner:Ca},minner:{mord:Ca,mop:Ca,mbin:gf,mrel:qu,mopen:Ca,mpunct:Ca,minner:Ca}},wst={mord:{mop:Ca},mop:{mord:Ca,mop:Ca},mbin:{},mrel:{},mopen:{},mclose:{mop:Ca},mpunct:{},minner:{mop:Ca}},eye={},I6={},O6={};function sr(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,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:a},l=0;l{var v=m.classes[0],y=g.classes[0];v==="mbin"&&Ast.has(y)?m.classes[0]="mord":y==="mbin"&&kst.has(v)&&(g.classes[0]="mord")},{node:h},f,p),wB(i,(g,m)=>{var v,y,b=AB(m),_=AB(g),S=b&&_?g.hasClass("mtight")?(v=wst[b])==null?void 0:v[_]:(y=Cst[b])==null?void 0:y[_]:null;if(S)return Qve(S,u)},{node:h},f,p),i},wB=function(e,r,n,a,i){a&&e.push(a);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}a&&e.pop()},tye=function(e){return e instanceof o2||e instanceof v7||e instanceof l2&&e.hasClass("enclosing")?e:null},kB=function(e,r){var n=tye(e);if(n){var a=n.children;if(a.length){if(r==="right")return kB(a[a.length-1],"right");if(r==="left")return kB(a[0],"left")}}return e},AB=function(e,r){if(!e)return null;r&&(e=kB(e,r));var n=e.classes[0];return Nst[n]||null},d4=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Gt(r.concat(n))},Nn=function(e,r,n){if(!e)return Gt();if(I6[e.type]){var a=I6[e.type](e,r);if(n&&r.size!==n.size){a=Gt(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new Yt("Got group of unknown type: '"+e.type+"'")};function s3(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 RB(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=ki(t,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o0&&(i.push(s3(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(s3(s,e));var u;r?(u=s3(ki(r,e,!0),e),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=Gt(["katex-html"],i);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 rye(t){return new o2(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=bh(this.classes));for(var n=0;n0&&(e+=' class ="'+fs(bh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}}class oi{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return fs(this.toText())}toText(){return this.text}}class nye{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 Ist=new Set(["\\imath","\\jmath"]),Ost=new Set(["mrow","mtable"]),Ll=function(e,r,n){return fa[r][e]&&fa[r][e].replace&&e.charCodeAt(0)!==55349&&!(Xve.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=fa[r][e].replace),new oi(e)},Cq=function(e){return e.length===1?e[0]:new Kt("mrow",e)},wq=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 a=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 i=e.text;if(Ist.has(i))return null;if(fa[a][i]){var s=fa[a][i].replace;s&&(i=s)}var o=CB[n].fontName;return Sq(i,o,a)?CB[n].variant:null};function K9(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof oi&&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 oi&&r.text===","}else return!1}var Qo=function(e,r,n){if(e.length===1){var a=Gn(e[0],r);return n&&a instanceof Kt&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o=1&&(s.type==="mn"||K9(s))){var u=l.children[0];u instanceof Kt&&u.type==="mn"&&(u.children=[...s.children,...u.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof oi&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof oi&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(l),s=l}return i},Th=function(e,r,n){return Cq(Qo(e,r,n))},Gn=function(e,r){if(!e)return new Kt("mrow");if(O6[e.type]){var n=O6[e.type](e,r);return n}else throw new Yt("Got group of unknown type: '"+e.type+"'")};function _re(t,e,r,n,a){var i=Qo(t,r),s;i.length===1&&i[0]instanceof Kt&&Ost.has(i[0].type)?s=i[0]:s=new Kt("mrow",i);var o=new Kt("annotation",[new oi(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=a?"katex":"katex-mathml";return Gt([d],[u])}var Dst=[[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]],bre=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ere=function(e,r){return r.size<2?e:Dst[e-1][r.size-1]};class t0{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||t0.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=bre[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 t0(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Ere(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:bre[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Ere(t0.BASESIZE,e);return this.size===r&&this.textSize===t0.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!==t0.BASESIZE?["sizing","reset-size"+this.size,"size"+t0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=vst(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}t0.BASESIZE=6;var aye=function(e){return new t0({style:e.displayMode?Zr.DISPLAY:Zr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},iye=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},Lst=function(e,r,n){var a=aye(n),i;if(n.output==="mathml")return _re(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=RB(e,a);i=Gt(["katex"],[s])}else{var o=_re(e,r,a,n.displayMode,!1),l=RB(e,a);i=Gt(["katex"],[o,l])}return iye(i,n)},Mst=function(e,r,n){var a=aye(n),i=RB(e,a),s=Gt(["katex"],[i]);return iye(s,n)},Pst={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":"="},b7=function(e){var r=new Kt("mo",[new oi(Pst[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Bst={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]},Fst=new Set(["widehat","widecheck","widetilde","utilde"]),E7=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if(Fst.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 Eh(f),v=new O0([m],{width:"100%",height:tr(p),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:Sh([],[v],r),minWidth:0,height:p}}else{var y=[],b=Bst[l],[_,S,x]=b,C=x/1e3,T=_.length,w,R;if(T===1){var O=b[3];w=["hide-tail"],R=[O]}else if(T===2)w=["halfarrow-left","halfarrow-right"],R=["xMinYMin","xMaxYMin"];else if(T===3)w=["brace-left","brace-center","brace-right"],R=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+T+" children.");for(var M=0;M0&&(a.style.minWidth=tr(i)),a},$st=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=Gt(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new TB({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new TB({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new O0(u,{width:"100%",height:tr(o)});s=Sh([],[d],i)}return s.height=o,s.style.height=tr(o),s};function rn(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 S7(t){var e=T7(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 T7(t){return t&&(t.type==="atom"||_st.hasOwnProperty(t.type))?t:null}var sye=t=>{if(t instanceof Uo)return t;if(mst(t)&&t.children.length===1)return sye(t.children[0])},kq=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=rn(t.base,"accent"),r=n.base,t.base=r,a=gst(Nn(t,e)),t.base=n):(n=rn(t,"accent"),r=n.base);var i=Nn(r,e.havingCrampedStyle()),s=n.isShifty&&ed(r),o=0;if(s){var l,u;o=(l=(u=sye(i))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=E7(n,e),f=An({positionType:"firstBaseline",children:[{type:"elem",elem:i},{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=Jve("vec",e),g=Zve.vec[1]):(p=_7({mode:n.mode,text:n.label},e,"textord"),p=pst(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=i.height);var v=o;m||(v-=g/2),f.style.left=tr(v),n.label==="\\textcircled"&&(f.style.top=".2em"),f=An({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:f}]})}var y=Gt(["mord","accent"],[f],e);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},oye=(t,e)=>{var r=t.isStretchy?b7(t.label):new Kt("mo",[Ll(t.label,t.mode)]),n=new Kt("mover",[Gn(t.base,e),r]);return n.setAttribute("accent","true"),n},zst=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=D6(e[0]),n=!zst.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:kq,mathmlBuilder:oye});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:kq,mathmlBuilder:oye});sr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=Nn(t.base,e),n=E7(t,e),a=t.label==="\\utilde"?.12:0,i=An({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return Gt(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=b7(t.label),n=new Kt("munder",[Gn(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var o3=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:a}=t;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=_b(Nn(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=_b(Nn(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=E7(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=An({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]})}else d=An({positionType:"individualShift",children:[{type:"elem",elem:a,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=b7(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=o3(Gn(t.body,e));if(t.below){var i=o3(Gn(t.below,e));n=new Kt("munderover",[r,i,a])}else n=new Kt("mover",[r,a])}else if(t.below){var s=o3(Gn(t.below,e));n=new Kt("munder",[r,s])}else n=o3(),n=new Kt("mover",[r,n]);return n}});function lye(t,e){var r=ki(t.body,e,!0);return Gt([t.mclass],r,e)}function cye(t,e){var r,n=Qo(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,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:si(a),isCharacterBox:ed(a)}},htmlBuilder:lye,mathmlBuilder:cye});var x7=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:x7(e[0]),body:si(e[1]),isCharacterBox:ed(e[1])}}});sr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,a=e[1],i=e[0],s;n!=="\\stackrel"?s=x7(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:si(a)},l={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:ed(l)}},htmlBuilder:lye,mathmlBuilder:cye});sr({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:x7(e[0]),body:si(e[0])}},htmlBuilder(t,e){var r=ki(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=Qo(t.body,e),n=new Kt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Ust={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Sre=()=>({type:"styling",body:[],mode:"math",style:"display"}),Tre=t=>t.type==="textord"&&t.text==="@",Gst=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function qst(t,e,r){var n=Ust[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,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 Yst(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=[],a=[n],i=0;iAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=qst(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display"};n.push(m),o=Sre()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var v=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(a.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=_b(Nn(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",[Gn(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=_b(Nn(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Kt("mrow",[Gn(t.fragment,e)])}});sr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=rn(e[0],"ordgroup"),a=n.body,i="",s=0;s=1114111)throw new Yt("\\@char with invalid code point "+i);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 uye=(t,e)=>{var r=ki(t.body,e.withColor(t.color),!1);return rd(r)},dye=(t,e)=>{var r=Qo(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=rn(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:si(a)}},htmlBuilder:uye,mathmlBuilder:dye});sr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,a=rn(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:uye,mathmlBuilder:dye});sr({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&rn(a,"size").value}},htmlBuilder(t,e){var r=Gt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=tr(Aa(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(Aa(t.size,e)))),r}});var NB={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},hye=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Yt("Expected a control sequence",t);return e},Hst=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},fye=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,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(NB[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=NB[n.text]),rn(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(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Yt("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Yt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new Yt('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new Yt("Expected a macro definition");o[i].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(a,{tokens:l,numArgs:i,delimiters:o},r===NB[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=hye(e.gullet.popToken());e.gullet.consumeSpaces();var a=Hst(e);return fye(e,n,a,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=hye(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return fye(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var AE=function(e,r,n){var a=fa.math[e]&&fa.math[e].replace,i=Sq(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},Aq=function(e,r,n,a){var i=n.havingBaseStyle(r),s=Gt(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},pye=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=tr(i),e.height-=i,e.depth+=i},Vst=function(e,r,n,a,i,s){var o=Is(e,"Main-Regular",i,a),l=Aq(o,r,a,s);return pye(l,a,r),l},Wst=function(e,r,n,a){return Is(e,"Size"+r+"-Regular",n,a)},gye=function(e,r,n,a,i,s){var o=Wst(e,r,i,a),l=Aq(Gt(["delimsizing","size"+r],[o],a),Zr.TEXT,a,s);return n&&pye(l,a,Zr.TEXT),l},X9=function(e,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=Gt(["delimsizinginner",a],[Gt([],[Is(e,r,n)])]);return{type:"elem",elem:i}},j9=function(e,r,n){var a=jc["Size4-Regular"][e.charCodeAt(0)]?jc["Size4-Regular"][e.charCodeAt(0)][4]:jc["Size1-Regular"][e.charCodeAt(0)][4],i=new Eh("inner",lst(e,Math.round(1e3*r))),s=new O0([i],{width:tr(a),height:tr(r),style:"width:"+tr(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=Sh([],[s],n);return o.height=r,o.style.height=tr(r),o.style.width=tr(a),{type:"elem",elem:o}},IB=.008,l3={type:"kern",size:-1*IB},Kst=new Set(["|","\\lvert","\\rvert","\\vert"]),Xst=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),mye=function(e,r,n,a,i,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"):Kst.has(e)?(u="∣",h="vert",f=333):Xst.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,i),m=g.height+g.depth,v=AE(u,p,i),y=v.height+v.depth,b=AE(d,p,i),_=b.height+b.depth,S=0,x=1;if(l!==null){var C=AE(l,p,i);S=C.height+C.depth,x=2}var T=m+_+S,w=Math.max(0,Math.ceil((r-T)/(x*y))),R=T+w*x*y,O=a.fontMetrics().axisHeight;n&&(O*=a.sizeMultiplier);var M=R/2-O,$=[];if(h.length>0){var F=R-m-_,A=Math.round(R*1e3),I=cst(h,Math.round(F*1e3)),D=new Eh(h,I),L=(f/1e3).toFixed(3)+"em",N=(A/1e3).toFixed(3)+"em",P=new O0([D],{width:L,height:N,viewBox:"0 0 "+f+" "+A}),z=Sh([],[P],a);z.height=A/1e3,z.style.width=L,z.style.height=N,$.push({type:"elem",elem:z})}else{if($.push(X9(d,p,i)),$.push(l3),l===null){var B=R-m-_+2*IB;$.push(j9(u,B,a))}else{var U=(R-m-_-S)/2+2*IB;$.push(j9(u,U,a)),$.push(l3),$.push(X9(l,p,i)),$.push(l3),$.push(j9(u,U,a))}$.push(l3),$.push(X9(o,p,i))}var G=a.havingBaseStyle(Zr.TEXT),K=An({positionType:"bottom",positionData:M,children:$});return Aq(Gt(["delimsizing","mult"],[K],G),Zr.TEXT,a,s)},Q9=80,Z9=.08,J9=function(e,r,n,a,i){var s=ost(e,a,n),o=new Eh(e,s),l=new O0([o],{width:"400em",height:tr(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Sh(["hide-tail"],[l],i)},jst=function(e,r){var n=r.havingBaseSizing(),a=Eye("\\surd",e*n.sizeMultiplier,bye,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,h;return a.type==="small"?(d=1e3+1e3*s+Q9,e<1?i=1:e<1.4&&(i=.7),l=(1+s+Z9)/i,u=(1+s)/i,o=J9("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/i):a.type==="large"?(d=(1e3+Q9)*fS[a.size],u=(fS[a.size]+s)/i,l=(fS[a.size]+s+Z9)/i,o=J9("sqrtSize"+a.size,l,d,s,r),o.style.minWidth="1.02em",h=1/i):(l=e+s+Z9,u=e+s,d=Math.floor(1e3*e+s)+Q9,o=J9("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)*i}},vye=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Qst=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),yye=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),fS=[0,1.2,1.8,2.4,3],_ye=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),vye.has(e)||yye.has(e))return gye(e,r,!1,n,a,i);if(Qst.has(e))return mye(e,fS[r],!1,n,a,i);throw new Yt("Illegal delimiter: '"+e+"'")},Zst=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Jst=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"stack"}],bye=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],eot=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.")},Eye=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;sr)return o}return n[n.length-1]},OB=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;yye.has(e)?o=Zst:vye.has(e)?o=bye:o=Jst;var l=Eye(e,r,o,a);return l.type==="small"?Vst(e,l.style,n,a,i,s):l.type==="large"?gye(e,l.size,n,a,i,s):mye(e,r,n,a,i,s)},eD=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return OB(e,h,!0,a,i,s)},xre={"\\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}},tot=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 C7(t,e){var r=T7(t);if(r&&tot.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=C7(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:xre[t.funcName].size,mclass:xre[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Gt([t.mclass]):_ye(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Ll(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(fS[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Cre(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:C7(e[0],t).text,color:r}}});sr({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=C7(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=rn(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{Cre(t);for(var r=ki(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s{Cre(t);var r=Qo(t.body,e);if(t.left!=="."){var n=new Kt("mo",[Ll(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new Kt("mo",[Ll(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return Cq(r)}});sr({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=C7(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=d4(e,[]);else{r=_ye(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==="|"?Ll("|","text"):Ll(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 Rq=(t,e)=>{var r=_b(Nn(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s=0,o=ed(t.body);if(n==="sout")i=Gt(["stretchy","sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=Aa({number:.6,unit:"pt"},e),u=Aa({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=tr(h/2+l);var f=Math.floor(1e3*h*a),p=ist(f),g=new O0([new Eh("phase",p)],{width:"400em",height:tr(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=Sh(["hide-tail"],[g],e),i.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,v=0,y=0;/box/.test(n)?(y=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:y),v=m):n==="angl"?(y=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*y,v=Math.max(0,.25-r.depth)):(m=o?.2:0,v=m),i=$st(r,n,m,v,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=tr(y)):n==="angl"&&y!==.049&&(i.style.borderTopWidth=tr(y),i.style.borderRightWidth=tr(y)),s=r.depth+v,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=An({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var _=/cancel|phase/.test(n)?["svg-align"]:[];b=An({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,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)},Nq=(t,e)=>{var r=0,n=new Kt(t.label.includes("colorbox")?"mpadded":"menclose",[Gn(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 a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+a+"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:a}=t,i=rn(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Rq,mathmlBuilder:Nq});sr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:a}=t,i=rn(e[0],"color-token").color,s=rn(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:Rq,mathmlBuilder:Nq});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,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Rq,mathmlBuilder:Nq});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 Sye={};function xu(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new Yt("{"+t.envName+"} can be used only in display mode.")},rot=new Set(["gather","gather*"]);function Iq(t){if(!t.includes("ed"))return!t.includes("*")}function $h(t,e,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,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],v=[],y=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function S(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new Mo("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),y.push(wre(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"){S(),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(),y.length0&&(_+=.25),u.push({pos:_,isDashed:it[ke]})}for(S(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var te=void 0;if(a>0||e.hskipBeforeAndAfter){var ne,ae;te=(ne=(ae=G)==null?void 0:ae.pregap)!=null?ne:f,te!==0&&(I=Gt(["arraycolsep"],[]),I.style.width=tr(te),A.push(I))}var re=[];for(n=0;n0){for(var Ce=yb("hline",r,d),ut=yb("hdashline",r,d),Ae=[{type:"elem",elem:$e,shift:0}];u.length>0;){var je=u.pop(),ot=je.pos-$;je.isDashed?Ae.push({type:"elem",elem:ut,shift:ot}):Ae.push({type:"elem",elem:Ce,shift:ot})}$e=An({positionType:"individualShift",children:Ae})}if(L.length===0)return Gt(["mord"],[$e],r);var lt=An({positionType:"individualShift",children:L}),ct=Gt(["tag"],[lt],r);return rd([$e,ct])},not={c:"center ",l:"left ",r:"right "},wu=function(e,r){for(var n=[],a=new Kt("mtd",[],["mtr-glue"]),i=new Kt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",v=!1,y=0,b=g.length;g[0].type==="separator"&&(f+="top ",y=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=y;_0?"left ":"",f+=R[R.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(v=1),n[g]={type:"align",align:m,pregap:v,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};xu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=T7(e[0]),n=r?[e[0]]:rn(e[0],"ordgroup").body,a=n.map(function(s){var o=S7(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)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return $h(t.parser,i,Oq(t.envName))},htmlBuilder:Cu,mathmlBuilder:wu});xu({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 a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new Yt("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=$h(t.parser,n,Oq(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=$h(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=T7(e[0]),n=r?[e[0]]:rn(e[0],"ordgroup").body,a=n.map(function(o){var l=S7(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Yt("Unknown column alignment: "+u,o)});if(a.length>1)throw new Yt("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=$h(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new Yt("{subarray} can contain only one column");return s},htmlBuilder:Cu,mathmlBuilder:wu});xu({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=$h(t.parser,e,Oq(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:xye,htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){rot.has(t.envName)&&w7(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Iq(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return $h(t.parser,e,"display")},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:xye,htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){w7(t);var e={autoTag:Iq(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return $h(t.parser,e,"display")},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return w7(t),Yst(t.parser)},htmlBuilder:Cu,mathmlBuilder:wu});Se("\\nonumber","\\gdef\\@eqnsw{0}");Se("\\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 kre=Sye;sr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];if(a.type!=="ordgroup")throw new Yt("Invalid environment name",a);for(var i="",s=0;s{var r=t.font,n=e.withFont(r);return Nn(t.body,n)},wye=(t,e)=>{var r=t.font,n=e.withFont(r);return Gn(t.body,n)},Are={"\\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,a=D6(e[0]),i=n;return i in Are&&(i=Are[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Cye,mathmlBuilder:wye});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:x7(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:ed(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:a}=t,{mode:i}=r,s=r.parseExpression(!0,a),o="math"+n.slice(1);return{type:"font",mode:i,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:Cye,mathmlBuilder:wye});var aot=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=Nn(t.numer,i,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 v;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Kt("mfrac",[Gn(t.numer,e),Gn(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Aa(t.barSize,e);r.setAttribute("linethickness",tr(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new Kt("mo",[new oi(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new Kt("mo",[new oi(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return Cq(a)}return r},kye=(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,a=e[0],i=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"),kye({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:aot,mathmlBuilder:iot});sr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var Rre=["display","text","script","scriptscript"],Nre=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],a=e[5],i=D6(e[0]),s=i.type==="atom"&&i.family==="open"?Nre(i.text):null,o=D6(e[1]),l=o.type==="atom"&&o.family==="close"?Nre(o.text):null,u=rn(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=rn(p.body[0],"textord");f=Rre[Number(g.text)]}}else p=rn(p,"textord"),f=Rre[Number(p.text)];return kye({type:"genfrac",mode:r.mode,numer:n,denom:a,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:a}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:rn(e[0],"size").value,token:a}}});sr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0],i=rn(e[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var s=e[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var Aye=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?Nn(t.sup,e.havingStyle(r.sup()),e):Nn(t.sub,e.havingStyle(r.sub()),e),a=rn(t.base,"horizBrace")):a=rn(t,"horizBrace");var i=Nn(a.base,e.havingBaseStyle(Zr.DISPLAY)),s=E7(a,e),o;if(a.isOver?(o=An({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=An({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Gt(["mord",a.isOver?"mover":"munder"],[o],e);a.isOver?o=An({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=An({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",a.isOver?"mover":"munder"],[o],e)},sot=(t,e)=>{var r=b7(t.label);return new Kt(t.isOver?"mover":"munder",[Gn(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:Aye,mathmlBuilder:sot});sr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],a=rn(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:si(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=ki(t.body,e,!1);return Tst(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=Th(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=rn(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i{var{parser:r,funcName:n,token:a}=t,i=rn(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=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d{var r=ki(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=Gt(n,r,e);for(var i in t.attributes)i!=="class"&&t.attributes.hasOwnProperty(i)&&a.setAttribute(i,t.attributes[i]);return a},mathmlBuilder:(t,e)=>Th(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:si(e[0]),mathml:si(e[1])}},htmlBuilder:(t,e)=>{var r=ki(t.html,e,!1);return rd(r)},mathmlBuilder:(t,e)=>Th(t.mathml,e)});var tD=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(!Yve(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,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=rn(r[0],"raw").string,u=l.split(","),d=0;d{var r=Aa(t.height,e),n=0;t.totalheight.number>0&&(n=Aa(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=Aa(t.width,e));var i={height:tr(r+n)};a>0&&(i.width=tr(a)),n>0&&(i.verticalAlign=tr(-n));var s=new hst(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Kt("mglyph",[]);r.setAttribute("alt",t.alt);var n=Aa(t.height,e),a=0;if(t.totalheight.number>0&&(a=Aa(t.totalheight,e)-n,r.setAttribute("valign",tr(-a))),r.setAttribute("height",tr(n+a)),t.width.number>0){var i=Aa(t.width,e);r.setAttribute("width",tr(i))}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,a=rn(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.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:a.value}},htmlBuilder(t,e){return Qve(t.dimension,e)},mathmlBuilder(t,e){var r=Aa(t.dimension,e);return new nye(r)}});sr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Gt([],[Nn(t.body,e)]),r=Gt(["inner"],[r],e)):r=Gt(["inner"],[Nn(t.body,e)]);var n=Gt(["fix"],[]),a=Gt([t.alignment],[r,n],e),i=Gt(["strut"]);return i.style.height=tr(a.height+a.depth),a.depth&&(i.style.verticalAlign=tr(-a.depth)),a.children.unshift(i),a=Gt(["thinbox"],[a],e),Gt(["mord","vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new Kt("mpadded",[Gn(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,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{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 Ire=(t,e)=>{switch(e.style.size){case Zr.DISPLAY.size:return t.display;case Zr.TEXT.size:return t.text;case Zr.SCRIPT.size:return t.script;case Zr.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:si(e[0]),text:si(e[1]),script:si(e[2]),scriptscript:si(e[3])}},htmlBuilder:(t,e)=>{var r=Ire(t,e),n=ki(r,e,!1);return rd(n)},mathmlBuilder:(t,e)=>{var r=Ire(t,e);return Th(r,e)}});var Rye=(t,e,r,n,a,i,s)=>{t=Gt([],[t]);var o=r&&ed(r),l,u;if(e){var d=Nn(e,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Nn(r,n.havingStyle(a.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=An({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=An({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=An({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var v=[f];if(l&&i!==0&&!o){var y=Gt(["mspace"],[],n);y.style.marginRight=tr(i),v.unshift(y)}return Gt(["mop","op-limits"],v,n)},Nye=new Set(["\\smallint"]),u2=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=rn(t.base,"op"),a=!0):i=rn(t,"op");var s=e.style,o=!1;s.size===Zr.DISPLAY.size&&i.symbol&&!Nye.has(i.name)&&(o=!0);var l;if(i.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(d=i.name.slice(1),i.name=d==="oiint"?"\\iint":"\\iiint"),l=Is(i.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,f=Jve(d+"Size"+(o?"2":"1"),e);l=An({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),i.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(i.body){var p=ki(i.body,e,!0);p.length===1&&p[0]instanceof Uo?(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",[Ll(t.name,t.mode)]),Nye.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Kt("mo",Qo(t.body,e));else{r=new Kt("mi",[new oi(t.name.slice(1))]);var n=new Kt("mo",[Ll("⁡","text")]);t.parentIsSupSub?r=new Kt("mrow",[r,n]):r=rye([r,n])}return r},oot={"∏":"\\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,a=n;return a.length===1&&(a=oot[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:u2,mathmlBuilder:kT});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:si(n)}},htmlBuilder:u2,mathmlBuilder:kT});var lot={"∫":"\\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:u2,mathmlBuilder:kT});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:u2,mathmlBuilder:kT});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=lot[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:u2,mathmlBuilder:kT});var Iye=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=rn(t.base,"operatorname"),a=!0):i=rn(t,"operatorname");var s;if(i.body.length>0){for(var o=i.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=ki(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Qo(t.body,e.withFont("mathrm")),n=!0,a=0;ad.toText()).join("");r=[new oi(o)]}var l=new Kt("mi",r);l.setAttribute("mathvariant","normal");var u=new Kt("mo",[Ll("⁡","text")]);return t.parentIsSupSub?new Kt("mrow",[l,u]):rye([l,u])};sr({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"operatorname",mode:r.mode,body:si(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Iye,mathmlBuilder:cot});Se("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");sg({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?rd(ki(t.body,e,!1)):Gt(["mord"],ki(t.body,e,!0),e)},mathmlBuilder(t,e){return Th(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=Nn(t.body,e.havingCrampedStyle()),n=yb("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=An({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return Gt(["mord","overline"],[i],e)},mathmlBuilder(t,e){var r=new Kt("mo",[new oi("‾")]);r.setAttribute("stretchy","true");var n=new Kt("mover",[Gn(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:si(n)}},htmlBuilder:(t,e)=>{var r=ki(t.body,e.withPhantom(),!1);return rd(r)},mathmlBuilder:(t,e)=>{var r=Qo(t.body,e);return new Kt("mphantom",r)}});Se("\\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"],[Nn(t.body,e.withPhantom())]),n=Gt(["fix"],[]);return Gt(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Qo(si(t.body),e),n=new Kt("mphantom",r),a=new Kt("mpadded",[n]);return a.setAttribute("width","0px"),a}});sr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=rn(e[0],"size").value,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=Nn(t.body,e),n=Aa(t.dy,e);return An({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Kt("mpadded",[Gn(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,a=r[0],i=rn(e[0],"size"),s=rn(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&rn(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=Gt(["mord","rule"],[],e),n=Aa(t.width,e),a=Aa(t.height,e),i=t.shift?Aa(t.shift,e):0;return r.style.borderRightWidth=tr(n),r.style.borderTopWidth=tr(a),r.style.bottom=tr(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Aa(t.width,e),n=Aa(t.height,e),a=t.shift?Aa(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new Kt("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",tr(r)),s.setAttribute("height",tr(n));var o=new Kt("mpadded",[s]);return a>=0?o.setAttribute("height",tr(a)):(o.setAttribute("height",tr(a)),o.setAttribute("depth",tr(-a))),o.setAttribute("voffset",tr(a)),o}});function Oye(t,e,r){for(var n=ki(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i{var r=e.havingSize(t.size);return Oye(t.body,r,e)};sr({type:"sizing",names:Ore,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:a}=t,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Ore.indexOf(n)+1,body:i}},htmlBuilder:uot,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Qo(t.body,r),a=new Kt("mstyle",n);return a.setAttribute("mathsize",tr(r.sizeMultiplier)),a}});sr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,a=!1,i=!1,s=r[0]&&rn(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=Gt([],[Nn(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",[Gn(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,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=Nn(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=_b(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;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=An({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(Zr.SCRIPTSCRIPT),m=Nn(t.index,g,e),v=.6*(p.height-p.depth),y=An({positionType:"shift",positionData:-v,children:[{type:"elem",elem:m}]}),b=Gt(["root"],[y]);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",[Gn(r,e),Gn(n,e)]):new Kt("msqrt",[Gn(r,e)])}});var Dre={display:Zr.DISPLAY,text:Zr.TEXT,script:Zr.SCRIPT,scriptscript:Zr.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:a}=t,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=Dre[t.style],n=e.havingStyle(r).withFont("");return Oye(t.body,n,e)},mathmlBuilder(t,e){var r=Dre[t.style],n=e.havingStyle(r),a=Qo(t.body,n),i=new Kt("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var dot=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===Zr.DISPLAY.size||n.alwaysHandleSupSub);return a?u2:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===Zr.DISPLAY.size||n.limits);return i?Iye:null}else{if(n.type==="accent")return ed(n.base)?kq:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Aye:null}else return null}else return null};sg({type:"supsub",htmlBuilder(t,e){var r=dot(t,e);if(r)return r(t,e);var{base:n,sup:a,sub:i}=t,s=Nn(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&ed(n);if(a){var p=e.havingStyle(e.style.sup());o=Nn(a,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(i){var g=e.havingStyle(e.style.sub());l=Nn(i,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===Zr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var v=e.sizeMultiplier,y=tr(.5/u.ptPerEm/v),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Uo||_)&&(b=tr(-s.italic))}var S;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:y,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:y}];S=An({positionType:"individualShift",children:w})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var R=[{type:"elem",elem:l,marginLeft:b,marginRight:y}];S=An({positionType:"shift",positionData:h,children:R})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),S=An({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var O=AB(s,"right")||"mord";return Gt([O],[s,Gt(["msupsub"],[S])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[Gn(t.base,e)];t.sub&&i.push(Gn(t.sub,e)),t.sup&&i.push(Gn(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===Zr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===Zr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Zr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Zr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===Zr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Zr.DISPLAY)?s="mover":s="msup"}return new Kt(s,i)}});sg({type:"atom",htmlBuilder(t,e){return Tq(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Kt("mo",[Ll(t.text,t.mode)]);if(t.family==="bin"){var n=wq(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 Dye={mi:"italic",mn:"normal",mtext:"normal"};sg({type:"mathord",htmlBuilder(t,e){return _7(t,e,"mathord")},mathmlBuilder(t,e){var r=new Kt("mi",[Ll(t.text,t.mode,e)]),n=wq(t,e)||"italic";return n!==Dye[r.type]&&r.setAttribute("mathvariant",n),r}});sg({type:"textord",htmlBuilder(t,e){return _7(t,e,"textord")},mathmlBuilder(t,e){var r=Ll(t.text,t.mode,e),n=wq(t,e)||"normal",a;return t.mode==="text"?a=new Kt("mtext",[r]):/[0-9]/.test(t.text)?a=new Kt("mn",[r]):t.text==="\\prime"?a=new Kt("mo",[r]):a=new Kt("mi",[r]),n!==Dye[a.type]&&a.setAttribute("mathvariant",n),a}});var rD={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},nD={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};sg({type:"spacing",htmlBuilder(t,e){if(nD.hasOwnProperty(t.text)){var r=nD[t.text].className||"";if(t.mode==="text"){var n=_7(t,e,"textord");return n.classes.push(r),n}else return Gt(["mspace",r],[Tq(t.text,t.mode,e)],e)}else{if(rD.hasOwnProperty(t.text))return Gt(["mspace",rD[t.text]],[],e);throw new Yt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(nD.hasOwnProperty(t.text))r=new Kt("mtext",[new oi(" ")]);else{if(rD.hasOwnProperty(t.text))return new Kt("mspace");throw new Yt('Unknown type of space "'+t.text+'"')}return r}});var Lre=()=>{var t=new Kt("mtd",[]);return t.setAttribute("width","50%"),t};sg({type:"tag",mathmlBuilder(t,e){var r=new Kt("mtable",[new Kt("mtr",[Lre(),new Kt("mtd",[Th(t.body,e)]),Lre(),new Kt("mtd",[Th(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Mre={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Pre={"\\textbf":"textbf","\\textmd":"textmd"},hot={"\\textit":"textit","\\textup":"textup"},Bre=(t,e)=>{var r=t.font;if(r){if(Mre[r])return e.withTextFontFamily(Mre[r]);if(Pre[r])return e.withTextFontWeight(Pre[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(hot[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,a=e[0];return{type:"text",mode:r.mode,body:si(a),font:n}},htmlBuilder(t,e){var r=Bre(t,e),n=ki(t.body,r,!0);return Gt(["mord","text"],n,r)},mathmlBuilder(t,e){var r=Bre(t,e);return Th(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=Nn(t.body,e),n=yb("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=An({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return Gt(["mord","underline"],[i],e)},mathmlBuilder(t,e){var r=new Kt("mo",[new oi("‾")]);r.setAttribute("stretchy","true");var n=new Kt("munder",[Gn(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=Nn(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return An({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new Kt("mpadded",[Gn(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=Fre(t),n=[],a=e.havingStyle(e.style.text()),i=0;it.body.replace(/ /g,t.star?"␣":" "),Hd=eye,Lye=`[ \r - ]`,fot="\\\\[a-zA-Z@]+",pot="\\\\[^\uD800-\uDFFF]",got="("+fot+")"+Lye+"*",mot=`\\\\( +-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 o2{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 SB={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},dst={ex:!0,em:!0,mu:!0},Yve=function(e){return typeof e!="string"&&(e=e.unit),e in SB||e in dst||e==="ex"},Aa=function(e,r){var n;if(e.unit in SB)n=SB[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new Yt("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},tr=function(e){return+e.toFixed(4)+"em"},bh=function(e){return e.filter(r=>r).join(" ")},Hve=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 a=r.getColor();a&&(this.style.color=a)}},Vve=function(e){var r=document.createElement(e);r.className=bh(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var i=0;i/=\x00-\x1f]/,Wve=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+fs(bh(this.classes))+'"');var n="";for(var a of Object.keys(this.style))n+=_q(a)+":"+this.style[a]+";";n&&(r+=' style="'+fs(n)+'"');for(var i of Object.keys(this.attributes)){if(hst.test(i))throw new Yt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+fs(this.attributes[i])+'"'}r+=">";for(var s=0;s",r};class l2{constructor(e,r,n,a){Hve.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Vve.call(this,"span")}toMarkup(){return Wve.call(this,"span")}}let v7=class{constructor(e,r,n,a){Hve.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Vve.call(this,"a")}toMarkup(){return Wve.call(this,"a")}};class fst{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=''+fs(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=tr(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=bh(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 a of Object.keys(this.style))n+=_q(a)+":"+this.style[a]+";";n&&(e=!0,r+=' style="'+fs(n)+'"');var i=fs(this.text);return e?(r+=">",r+=i,r+="",r):i}}class O0{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 a=0;a':''}}class TB{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 vst=t=>t instanceof l2||t instanceof v7||t instanceof o2,jc={"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]}},t3={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]},fre={Å:"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 Kve(t,e){jc[t]=e}function Sq(t,e,r){if(!jc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=jc[e][n];if(!a&&t[0]in fre&&(n=fre[t[0]].charCodeAt(0),a=jc[e][n]),!a&&r==="text"&&qve(n)&&(a=jc[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var q9={};function yst(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!q9[e]){var r=q9[e]={cssEmPerMu:t3.quad[e]/18};for(var n in t3)t3.hasOwnProperty(n)&&(r[n]=t3[n][e])}return q9[e]}var _st={bin:1,close:1,inner:1,open:1,punct:1,rel:1},bst={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},fa={math:{},text:{}};function V(t,e,r,n,a,i){fa[t][a]={font:e,group:r,replace:n},i&&n&&(fa[t][n]=fa[t][a])}var Z="math",Bt="text",de="main",qe="ams",Ea="accent-token",dr="bin",ro="close",c2="inner",Ir="mathord",fi="op-token",jo="open",wT="punct",Xe="rel",td="spacing",et="textord";V(Z,de,Xe,"≡","\\equiv",!0);V(Z,de,Xe,"≺","\\prec",!0);V(Z,de,Xe,"≻","\\succ",!0);V(Z,de,Xe,"∼","\\sim",!0);V(Z,de,Xe,"⊥","\\perp");V(Z,de,Xe,"⪯","\\preceq",!0);V(Z,de,Xe,"⪰","\\succeq",!0);V(Z,de,Xe,"≃","\\simeq",!0);V(Z,de,Xe,"∣","\\mid",!0);V(Z,de,Xe,"≪","\\ll",!0);V(Z,de,Xe,"≫","\\gg",!0);V(Z,de,Xe,"≍","\\asymp",!0);V(Z,de,Xe,"∥","\\parallel");V(Z,de,Xe,"⋈","\\bowtie",!0);V(Z,de,Xe,"⌣","\\smile",!0);V(Z,de,Xe,"⊑","\\sqsubseteq",!0);V(Z,de,Xe,"⊒","\\sqsupseteq",!0);V(Z,de,Xe,"≐","\\doteq",!0);V(Z,de,Xe,"⌢","\\frown",!0);V(Z,de,Xe,"∋","\\ni",!0);V(Z,de,Xe,"∝","\\propto",!0);V(Z,de,Xe,"⊢","\\vdash",!0);V(Z,de,Xe,"⊣","\\dashv",!0);V(Z,de,Xe,"∋","\\owns");V(Z,de,wT,".","\\ldotp");V(Z,de,wT,"⋅","\\cdotp");V(Z,de,wT,"⋅","·");V(Bt,de,et,"⋅","·");V(Z,de,et,"#","\\#");V(Bt,de,et,"#","\\#");V(Z,de,et,"&","\\&");V(Bt,de,et,"&","\\&");V(Z,de,et,"ℵ","\\aleph",!0);V(Z,de,et,"∀","\\forall",!0);V(Z,de,et,"ℏ","\\hbar",!0);V(Z,de,et,"∃","\\exists",!0);V(Z,de,et,"∇","\\nabla",!0);V(Z,de,et,"♭","\\flat",!0);V(Z,de,et,"ℓ","\\ell",!0);V(Z,de,et,"♮","\\natural",!0);V(Z,de,et,"♣","\\clubsuit",!0);V(Z,de,et,"℘","\\wp",!0);V(Z,de,et,"♯","\\sharp",!0);V(Z,de,et,"♢","\\diamondsuit",!0);V(Z,de,et,"ℜ","\\Re",!0);V(Z,de,et,"♡","\\heartsuit",!0);V(Z,de,et,"ℑ","\\Im",!0);V(Z,de,et,"♠","\\spadesuit",!0);V(Z,de,et,"§","\\S",!0);V(Bt,de,et,"§","\\S");V(Z,de,et,"¶","\\P",!0);V(Bt,de,et,"¶","\\P");V(Z,de,et,"†","\\dag");V(Bt,de,et,"†","\\dag");V(Bt,de,et,"†","\\textdagger");V(Z,de,et,"‡","\\ddag");V(Bt,de,et,"‡","\\ddag");V(Bt,de,et,"‡","\\textdaggerdbl");V(Z,de,ro,"⎱","\\rmoustache",!0);V(Z,de,jo,"⎰","\\lmoustache",!0);V(Z,de,ro,"⟯","\\rgroup",!0);V(Z,de,jo,"⟮","\\lgroup",!0);V(Z,de,dr,"∓","\\mp",!0);V(Z,de,dr,"⊖","\\ominus",!0);V(Z,de,dr,"⊎","\\uplus",!0);V(Z,de,dr,"⊓","\\sqcap",!0);V(Z,de,dr,"∗","\\ast");V(Z,de,dr,"⊔","\\sqcup",!0);V(Z,de,dr,"◯","\\bigcirc",!0);V(Z,de,dr,"∙","\\bullet",!0);V(Z,de,dr,"‡","\\ddagger");V(Z,de,dr,"≀","\\wr",!0);V(Z,de,dr,"⨿","\\amalg");V(Z,de,dr,"&","\\And");V(Z,de,Xe,"⟵","\\longleftarrow",!0);V(Z,de,Xe,"⇐","\\Leftarrow",!0);V(Z,de,Xe,"⟸","\\Longleftarrow",!0);V(Z,de,Xe,"⟶","\\longrightarrow",!0);V(Z,de,Xe,"⇒","\\Rightarrow",!0);V(Z,de,Xe,"⟹","\\Longrightarrow",!0);V(Z,de,Xe,"↔","\\leftrightarrow",!0);V(Z,de,Xe,"⟷","\\longleftrightarrow",!0);V(Z,de,Xe,"⇔","\\Leftrightarrow",!0);V(Z,de,Xe,"⟺","\\Longleftrightarrow",!0);V(Z,de,Xe,"↦","\\mapsto",!0);V(Z,de,Xe,"⟼","\\longmapsto",!0);V(Z,de,Xe,"↗","\\nearrow",!0);V(Z,de,Xe,"↩","\\hookleftarrow",!0);V(Z,de,Xe,"↪","\\hookrightarrow",!0);V(Z,de,Xe,"↘","\\searrow",!0);V(Z,de,Xe,"↼","\\leftharpoonup",!0);V(Z,de,Xe,"⇀","\\rightharpoonup",!0);V(Z,de,Xe,"↙","\\swarrow",!0);V(Z,de,Xe,"↽","\\leftharpoondown",!0);V(Z,de,Xe,"⇁","\\rightharpoondown",!0);V(Z,de,Xe,"↖","\\nwarrow",!0);V(Z,de,Xe,"⇌","\\rightleftharpoons",!0);V(Z,qe,Xe,"≮","\\nless",!0);V(Z,qe,Xe,"","\\@nleqslant");V(Z,qe,Xe,"","\\@nleqq");V(Z,qe,Xe,"⪇","\\lneq",!0);V(Z,qe,Xe,"≨","\\lneqq",!0);V(Z,qe,Xe,"","\\@lvertneqq");V(Z,qe,Xe,"⋦","\\lnsim",!0);V(Z,qe,Xe,"⪉","\\lnapprox",!0);V(Z,qe,Xe,"⊀","\\nprec",!0);V(Z,qe,Xe,"⋠","\\npreceq",!0);V(Z,qe,Xe,"⋨","\\precnsim",!0);V(Z,qe,Xe,"⪹","\\precnapprox",!0);V(Z,qe,Xe,"≁","\\nsim",!0);V(Z,qe,Xe,"","\\@nshortmid");V(Z,qe,Xe,"∤","\\nmid",!0);V(Z,qe,Xe,"⊬","\\nvdash",!0);V(Z,qe,Xe,"⊭","\\nvDash",!0);V(Z,qe,Xe,"⋪","\\ntriangleleft");V(Z,qe,Xe,"⋬","\\ntrianglelefteq",!0);V(Z,qe,Xe,"⊊","\\subsetneq",!0);V(Z,qe,Xe,"","\\@varsubsetneq");V(Z,qe,Xe,"⫋","\\subsetneqq",!0);V(Z,qe,Xe,"","\\@varsubsetneqq");V(Z,qe,Xe,"≯","\\ngtr",!0);V(Z,qe,Xe,"","\\@ngeqslant");V(Z,qe,Xe,"","\\@ngeqq");V(Z,qe,Xe,"⪈","\\gneq",!0);V(Z,qe,Xe,"≩","\\gneqq",!0);V(Z,qe,Xe,"","\\@gvertneqq");V(Z,qe,Xe,"⋧","\\gnsim",!0);V(Z,qe,Xe,"⪊","\\gnapprox",!0);V(Z,qe,Xe,"⊁","\\nsucc",!0);V(Z,qe,Xe,"⋡","\\nsucceq",!0);V(Z,qe,Xe,"⋩","\\succnsim",!0);V(Z,qe,Xe,"⪺","\\succnapprox",!0);V(Z,qe,Xe,"≆","\\ncong",!0);V(Z,qe,Xe,"","\\@nshortparallel");V(Z,qe,Xe,"∦","\\nparallel",!0);V(Z,qe,Xe,"⊯","\\nVDash",!0);V(Z,qe,Xe,"⋫","\\ntriangleright");V(Z,qe,Xe,"⋭","\\ntrianglerighteq",!0);V(Z,qe,Xe,"","\\@nsupseteqq");V(Z,qe,Xe,"⊋","\\supsetneq",!0);V(Z,qe,Xe,"","\\@varsupsetneq");V(Z,qe,Xe,"⫌","\\supsetneqq",!0);V(Z,qe,Xe,"","\\@varsupsetneqq");V(Z,qe,Xe,"⊮","\\nVdash",!0);V(Z,qe,Xe,"⪵","\\precneqq",!0);V(Z,qe,Xe,"⪶","\\succneqq",!0);V(Z,qe,Xe,"","\\@nsubseteqq");V(Z,qe,dr,"⊴","\\unlhd");V(Z,qe,dr,"⊵","\\unrhd");V(Z,qe,Xe,"↚","\\nleftarrow",!0);V(Z,qe,Xe,"↛","\\nrightarrow",!0);V(Z,qe,Xe,"⇍","\\nLeftarrow",!0);V(Z,qe,Xe,"⇏","\\nRightarrow",!0);V(Z,qe,Xe,"↮","\\nleftrightarrow",!0);V(Z,qe,Xe,"⇎","\\nLeftrightarrow",!0);V(Z,qe,Xe,"△","\\vartriangle");V(Z,qe,et,"ℏ","\\hslash");V(Z,qe,et,"▽","\\triangledown");V(Z,qe,et,"◊","\\lozenge");V(Z,qe,et,"Ⓢ","\\circledS");V(Z,qe,et,"®","\\circledR");V(Bt,qe,et,"®","\\circledR");V(Z,qe,et,"∡","\\measuredangle",!0);V(Z,qe,et,"∄","\\nexists");V(Z,qe,et,"℧","\\mho");V(Z,qe,et,"Ⅎ","\\Finv",!0);V(Z,qe,et,"⅁","\\Game",!0);V(Z,qe,et,"‵","\\backprime");V(Z,qe,et,"▲","\\blacktriangle");V(Z,qe,et,"▼","\\blacktriangledown");V(Z,qe,et,"■","\\blacksquare");V(Z,qe,et,"⧫","\\blacklozenge");V(Z,qe,et,"★","\\bigstar");V(Z,qe,et,"∢","\\sphericalangle",!0);V(Z,qe,et,"∁","\\complement",!0);V(Z,qe,et,"ð","\\eth",!0);V(Bt,de,et,"ð","ð");V(Z,qe,et,"╱","\\diagup");V(Z,qe,et,"╲","\\diagdown");V(Z,qe,et,"□","\\square");V(Z,qe,et,"□","\\Box");V(Z,qe,et,"◊","\\Diamond");V(Z,qe,et,"¥","\\yen",!0);V(Bt,qe,et,"¥","\\yen",!0);V(Z,qe,et,"✓","\\checkmark",!0);V(Bt,qe,et,"✓","\\checkmark");V(Z,qe,et,"ℶ","\\beth",!0);V(Z,qe,et,"ℸ","\\daleth",!0);V(Z,qe,et,"ℷ","\\gimel",!0);V(Z,qe,et,"ϝ","\\digamma",!0);V(Z,qe,et,"ϰ","\\varkappa");V(Z,qe,jo,"┌","\\@ulcorner",!0);V(Z,qe,ro,"┐","\\@urcorner",!0);V(Z,qe,jo,"└","\\@llcorner",!0);V(Z,qe,ro,"┘","\\@lrcorner",!0);V(Z,qe,Xe,"≦","\\leqq",!0);V(Z,qe,Xe,"⩽","\\leqslant",!0);V(Z,qe,Xe,"⪕","\\eqslantless",!0);V(Z,qe,Xe,"≲","\\lesssim",!0);V(Z,qe,Xe,"⪅","\\lessapprox",!0);V(Z,qe,Xe,"≊","\\approxeq",!0);V(Z,qe,dr,"⋖","\\lessdot");V(Z,qe,Xe,"⋘","\\lll",!0);V(Z,qe,Xe,"≶","\\lessgtr",!0);V(Z,qe,Xe,"⋚","\\lesseqgtr",!0);V(Z,qe,Xe,"⪋","\\lesseqqgtr",!0);V(Z,qe,Xe,"≑","\\doteqdot");V(Z,qe,Xe,"≓","\\risingdotseq",!0);V(Z,qe,Xe,"≒","\\fallingdotseq",!0);V(Z,qe,Xe,"∽","\\backsim",!0);V(Z,qe,Xe,"⋍","\\backsimeq",!0);V(Z,qe,Xe,"⫅","\\subseteqq",!0);V(Z,qe,Xe,"⋐","\\Subset",!0);V(Z,qe,Xe,"⊏","\\sqsubset",!0);V(Z,qe,Xe,"≼","\\preccurlyeq",!0);V(Z,qe,Xe,"⋞","\\curlyeqprec",!0);V(Z,qe,Xe,"≾","\\precsim",!0);V(Z,qe,Xe,"⪷","\\precapprox",!0);V(Z,qe,Xe,"⊲","\\vartriangleleft");V(Z,qe,Xe,"⊴","\\trianglelefteq");V(Z,qe,Xe,"⊨","\\vDash",!0);V(Z,qe,Xe,"⊪","\\Vvdash",!0);V(Z,qe,Xe,"⌣","\\smallsmile");V(Z,qe,Xe,"⌢","\\smallfrown");V(Z,qe,Xe,"≏","\\bumpeq",!0);V(Z,qe,Xe,"≎","\\Bumpeq",!0);V(Z,qe,Xe,"≧","\\geqq",!0);V(Z,qe,Xe,"⩾","\\geqslant",!0);V(Z,qe,Xe,"⪖","\\eqslantgtr",!0);V(Z,qe,Xe,"≳","\\gtrsim",!0);V(Z,qe,Xe,"⪆","\\gtrapprox",!0);V(Z,qe,dr,"⋗","\\gtrdot");V(Z,qe,Xe,"⋙","\\ggg",!0);V(Z,qe,Xe,"≷","\\gtrless",!0);V(Z,qe,Xe,"⋛","\\gtreqless",!0);V(Z,qe,Xe,"⪌","\\gtreqqless",!0);V(Z,qe,Xe,"≖","\\eqcirc",!0);V(Z,qe,Xe,"≗","\\circeq",!0);V(Z,qe,Xe,"≜","\\triangleq",!0);V(Z,qe,Xe,"∼","\\thicksim");V(Z,qe,Xe,"≈","\\thickapprox");V(Z,qe,Xe,"⫆","\\supseteqq",!0);V(Z,qe,Xe,"⋑","\\Supset",!0);V(Z,qe,Xe,"⊐","\\sqsupset",!0);V(Z,qe,Xe,"≽","\\succcurlyeq",!0);V(Z,qe,Xe,"⋟","\\curlyeqsucc",!0);V(Z,qe,Xe,"≿","\\succsim",!0);V(Z,qe,Xe,"⪸","\\succapprox",!0);V(Z,qe,Xe,"⊳","\\vartriangleright");V(Z,qe,Xe,"⊵","\\trianglerighteq");V(Z,qe,Xe,"⊩","\\Vdash",!0);V(Z,qe,Xe,"∣","\\shortmid");V(Z,qe,Xe,"∥","\\shortparallel");V(Z,qe,Xe,"≬","\\between",!0);V(Z,qe,Xe,"⋔","\\pitchfork",!0);V(Z,qe,Xe,"∝","\\varpropto");V(Z,qe,Xe,"◀","\\blacktriangleleft");V(Z,qe,Xe,"∴","\\therefore",!0);V(Z,qe,Xe,"∍","\\backepsilon");V(Z,qe,Xe,"▶","\\blacktriangleright");V(Z,qe,Xe,"∵","\\because",!0);V(Z,qe,Xe,"⋘","\\llless");V(Z,qe,Xe,"⋙","\\gggtr");V(Z,qe,dr,"⊲","\\lhd");V(Z,qe,dr,"⊳","\\rhd");V(Z,qe,Xe,"≂","\\eqsim",!0);V(Z,de,Xe,"⋈","\\Join");V(Z,qe,Xe,"≑","\\Doteq",!0);V(Z,qe,dr,"∔","\\dotplus",!0);V(Z,qe,dr,"∖","\\smallsetminus");V(Z,qe,dr,"⋒","\\Cap",!0);V(Z,qe,dr,"⋓","\\Cup",!0);V(Z,qe,dr,"⩞","\\doublebarwedge",!0);V(Z,qe,dr,"⊟","\\boxminus",!0);V(Z,qe,dr,"⊞","\\boxplus",!0);V(Z,qe,dr,"⋇","\\divideontimes",!0);V(Z,qe,dr,"⋉","\\ltimes",!0);V(Z,qe,dr,"⋊","\\rtimes",!0);V(Z,qe,dr,"⋋","\\leftthreetimes",!0);V(Z,qe,dr,"⋌","\\rightthreetimes",!0);V(Z,qe,dr,"⋏","\\curlywedge",!0);V(Z,qe,dr,"⋎","\\curlyvee",!0);V(Z,qe,dr,"⊝","\\circleddash",!0);V(Z,qe,dr,"⊛","\\circledast",!0);V(Z,qe,dr,"⋅","\\centerdot");V(Z,qe,dr,"⊺","\\intercal",!0);V(Z,qe,dr,"⋒","\\doublecap");V(Z,qe,dr,"⋓","\\doublecup");V(Z,qe,dr,"⊠","\\boxtimes",!0);V(Z,qe,Xe,"⇢","\\dashrightarrow",!0);V(Z,qe,Xe,"⇠","\\dashleftarrow",!0);V(Z,qe,Xe,"⇇","\\leftleftarrows",!0);V(Z,qe,Xe,"⇆","\\leftrightarrows",!0);V(Z,qe,Xe,"⇚","\\Lleftarrow",!0);V(Z,qe,Xe,"↞","\\twoheadleftarrow",!0);V(Z,qe,Xe,"↢","\\leftarrowtail",!0);V(Z,qe,Xe,"↫","\\looparrowleft",!0);V(Z,qe,Xe,"⇋","\\leftrightharpoons",!0);V(Z,qe,Xe,"↶","\\curvearrowleft",!0);V(Z,qe,Xe,"↺","\\circlearrowleft",!0);V(Z,qe,Xe,"↰","\\Lsh",!0);V(Z,qe,Xe,"⇈","\\upuparrows",!0);V(Z,qe,Xe,"↿","\\upharpoonleft",!0);V(Z,qe,Xe,"⇃","\\downharpoonleft",!0);V(Z,de,Xe,"⊶","\\origof",!0);V(Z,de,Xe,"⊷","\\imageof",!0);V(Z,qe,Xe,"⊸","\\multimap",!0);V(Z,qe,Xe,"↭","\\leftrightsquigarrow",!0);V(Z,qe,Xe,"⇉","\\rightrightarrows",!0);V(Z,qe,Xe,"⇄","\\rightleftarrows",!0);V(Z,qe,Xe,"↠","\\twoheadrightarrow",!0);V(Z,qe,Xe,"↣","\\rightarrowtail",!0);V(Z,qe,Xe,"↬","\\looparrowright",!0);V(Z,qe,Xe,"↷","\\curvearrowright",!0);V(Z,qe,Xe,"↻","\\circlearrowright",!0);V(Z,qe,Xe,"↱","\\Rsh",!0);V(Z,qe,Xe,"⇊","\\downdownarrows",!0);V(Z,qe,Xe,"↾","\\upharpoonright",!0);V(Z,qe,Xe,"⇂","\\downharpoonright",!0);V(Z,qe,Xe,"⇝","\\rightsquigarrow",!0);V(Z,qe,Xe,"⇝","\\leadsto");V(Z,qe,Xe,"⇛","\\Rrightarrow",!0);V(Z,qe,Xe,"↾","\\restriction");V(Z,de,et,"‘","`");V(Z,de,et,"$","\\$");V(Bt,de,et,"$","\\$");V(Bt,de,et,"$","\\textdollar");V(Z,de,et,"%","\\%");V(Bt,de,et,"%","\\%");V(Z,de,et,"_","\\_");V(Bt,de,et,"_","\\_");V(Bt,de,et,"_","\\textunderscore");V(Z,de,et,"∠","\\angle",!0);V(Z,de,et,"∞","\\infty",!0);V(Z,de,et,"′","\\prime");V(Z,de,et,"△","\\triangle");V(Z,de,et,"Γ","\\Gamma",!0);V(Z,de,et,"Δ","\\Delta",!0);V(Z,de,et,"Θ","\\Theta",!0);V(Z,de,et,"Λ","\\Lambda",!0);V(Z,de,et,"Ξ","\\Xi",!0);V(Z,de,et,"Π","\\Pi",!0);V(Z,de,et,"Σ","\\Sigma",!0);V(Z,de,et,"Υ","\\Upsilon",!0);V(Z,de,et,"Φ","\\Phi",!0);V(Z,de,et,"Ψ","\\Psi",!0);V(Z,de,et,"Ω","\\Omega",!0);V(Z,de,et,"A","Α");V(Z,de,et,"B","Β");V(Z,de,et,"E","Ε");V(Z,de,et,"Z","Ζ");V(Z,de,et,"H","Η");V(Z,de,et,"I","Ι");V(Z,de,et,"K","Κ");V(Z,de,et,"M","Μ");V(Z,de,et,"N","Ν");V(Z,de,et,"O","Ο");V(Z,de,et,"P","Ρ");V(Z,de,et,"T","Τ");V(Z,de,et,"X","Χ");V(Z,de,et,"¬","\\neg",!0);V(Z,de,et,"¬","\\lnot");V(Z,de,et,"⊤","\\top");V(Z,de,et,"⊥","\\bot");V(Z,de,et,"∅","\\emptyset");V(Z,qe,et,"∅","\\varnothing");V(Z,de,Ir,"α","\\alpha",!0);V(Z,de,Ir,"β","\\beta",!0);V(Z,de,Ir,"γ","\\gamma",!0);V(Z,de,Ir,"δ","\\delta",!0);V(Z,de,Ir,"ϵ","\\epsilon",!0);V(Z,de,Ir,"ζ","\\zeta",!0);V(Z,de,Ir,"η","\\eta",!0);V(Z,de,Ir,"θ","\\theta",!0);V(Z,de,Ir,"ι","\\iota",!0);V(Z,de,Ir,"κ","\\kappa",!0);V(Z,de,Ir,"λ","\\lambda",!0);V(Z,de,Ir,"μ","\\mu",!0);V(Z,de,Ir,"ν","\\nu",!0);V(Z,de,Ir,"ξ","\\xi",!0);V(Z,de,Ir,"ο","\\omicron",!0);V(Z,de,Ir,"π","\\pi",!0);V(Z,de,Ir,"ρ","\\rho",!0);V(Z,de,Ir,"σ","\\sigma",!0);V(Z,de,Ir,"τ","\\tau",!0);V(Z,de,Ir,"υ","\\upsilon",!0);V(Z,de,Ir,"ϕ","\\phi",!0);V(Z,de,Ir,"χ","\\chi",!0);V(Z,de,Ir,"ψ","\\psi",!0);V(Z,de,Ir,"ω","\\omega",!0);V(Z,de,Ir,"ε","\\varepsilon",!0);V(Z,de,Ir,"ϑ","\\vartheta",!0);V(Z,de,Ir,"ϖ","\\varpi",!0);V(Z,de,Ir,"ϱ","\\varrho",!0);V(Z,de,Ir,"ς","\\varsigma",!0);V(Z,de,Ir,"φ","\\varphi",!0);V(Z,de,dr,"∗","*",!0);V(Z,de,dr,"+","+");V(Z,de,dr,"−","-",!0);V(Z,de,dr,"⋅","\\cdot",!0);V(Z,de,dr,"∘","\\circ",!0);V(Z,de,dr,"÷","\\div",!0);V(Z,de,dr,"±","\\pm",!0);V(Z,de,dr,"×","\\times",!0);V(Z,de,dr,"∩","\\cap",!0);V(Z,de,dr,"∪","\\cup",!0);V(Z,de,dr,"∖","\\setminus",!0);V(Z,de,dr,"∧","\\land");V(Z,de,dr,"∨","\\lor");V(Z,de,dr,"∧","\\wedge",!0);V(Z,de,dr,"∨","\\vee",!0);V(Z,de,et,"√","\\surd");V(Z,de,jo,"⟨","\\langle",!0);V(Z,de,jo,"∣","\\lvert");V(Z,de,jo,"∥","\\lVert");V(Z,de,ro,"?","?");V(Z,de,ro,"!","!");V(Z,de,ro,"⟩","\\rangle",!0);V(Z,de,ro,"∣","\\rvert");V(Z,de,ro,"∥","\\rVert");V(Z,de,Xe,"=","=");V(Z,de,Xe,":",":");V(Z,de,Xe,"≈","\\approx",!0);V(Z,de,Xe,"≅","\\cong",!0);V(Z,de,Xe,"≥","\\ge");V(Z,de,Xe,"≥","\\geq",!0);V(Z,de,Xe,"←","\\gets");V(Z,de,Xe,">","\\gt",!0);V(Z,de,Xe,"∈","\\in",!0);V(Z,de,Xe,"","\\@not");V(Z,de,Xe,"⊂","\\subset",!0);V(Z,de,Xe,"⊃","\\supset",!0);V(Z,de,Xe,"⊆","\\subseteq",!0);V(Z,de,Xe,"⊇","\\supseteq",!0);V(Z,qe,Xe,"⊈","\\nsubseteq",!0);V(Z,qe,Xe,"⊉","\\nsupseteq",!0);V(Z,de,Xe,"⊨","\\models");V(Z,de,Xe,"←","\\leftarrow",!0);V(Z,de,Xe,"≤","\\le");V(Z,de,Xe,"≤","\\leq",!0);V(Z,de,Xe,"<","\\lt",!0);V(Z,de,Xe,"→","\\rightarrow",!0);V(Z,de,Xe,"→","\\to");V(Z,qe,Xe,"≱","\\ngeq",!0);V(Z,qe,Xe,"≰","\\nleq",!0);V(Z,de,td," ","\\ ");V(Z,de,td," ","\\space");V(Z,de,td," ","\\nobreakspace");V(Bt,de,td," ","\\ ");V(Bt,de,td," "," ");V(Bt,de,td," ","\\space");V(Bt,de,td," ","\\nobreakspace");V(Z,de,td,null,"\\nobreak");V(Z,de,td,null,"\\allowbreak");V(Z,de,wT,",",",");V(Z,de,wT,";",";");V(Z,qe,dr,"⊼","\\barwedge",!0);V(Z,qe,dr,"⊻","\\veebar",!0);V(Z,de,dr,"⊙","\\odot",!0);V(Z,de,dr,"⊕","\\oplus",!0);V(Z,de,dr,"⊗","\\otimes",!0);V(Z,de,et,"∂","\\partial",!0);V(Z,de,dr,"⊘","\\oslash",!0);V(Z,qe,dr,"⊚","\\circledcirc",!0);V(Z,qe,dr,"⊡","\\boxdot",!0);V(Z,de,dr,"△","\\bigtriangleup");V(Z,de,dr,"▽","\\bigtriangledown");V(Z,de,dr,"†","\\dagger");V(Z,de,dr,"⋄","\\diamond");V(Z,de,dr,"⋆","\\star");V(Z,de,dr,"◃","\\triangleleft");V(Z,de,dr,"▹","\\triangleright");V(Z,de,jo,"{","\\{");V(Bt,de,et,"{","\\{");V(Bt,de,et,"{","\\textbraceleft");V(Z,de,ro,"}","\\}");V(Bt,de,et,"}","\\}");V(Bt,de,et,"}","\\textbraceright");V(Z,de,jo,"{","\\lbrace");V(Z,de,ro,"}","\\rbrace");V(Z,de,jo,"[","\\lbrack",!0);V(Bt,de,et,"[","\\lbrack",!0);V(Z,de,ro,"]","\\rbrack",!0);V(Bt,de,et,"]","\\rbrack",!0);V(Z,de,jo,"(","\\lparen",!0);V(Z,de,ro,")","\\rparen",!0);V(Bt,de,et,"<","\\textless",!0);V(Bt,de,et,">","\\textgreater",!0);V(Z,de,jo,"⌊","\\lfloor",!0);V(Z,de,ro,"⌋","\\rfloor",!0);V(Z,de,jo,"⌈","\\lceil",!0);V(Z,de,ro,"⌉","\\rceil",!0);V(Z,de,et,"\\","\\backslash");V(Z,de,et,"∣","|");V(Z,de,et,"∣","\\vert");V(Bt,de,et,"|","\\textbar",!0);V(Z,de,et,"∥","\\|");V(Z,de,et,"∥","\\Vert");V(Bt,de,et,"∥","\\textbardbl");V(Bt,de,et,"~","\\textasciitilde");V(Bt,de,et,"\\","\\textbackslash");V(Bt,de,et,"^","\\textasciicircum");V(Z,de,Xe,"↑","\\uparrow",!0);V(Z,de,Xe,"⇑","\\Uparrow",!0);V(Z,de,Xe,"↓","\\downarrow",!0);V(Z,de,Xe,"⇓","\\Downarrow",!0);V(Z,de,Xe,"↕","\\updownarrow",!0);V(Z,de,Xe,"⇕","\\Updownarrow",!0);V(Z,de,fi,"∐","\\coprod");V(Z,de,fi,"⋁","\\bigvee");V(Z,de,fi,"⋀","\\bigwedge");V(Z,de,fi,"⨄","\\biguplus");V(Z,de,fi,"⋂","\\bigcap");V(Z,de,fi,"⋃","\\bigcup");V(Z,de,fi,"∫","\\int");V(Z,de,fi,"∫","\\intop");V(Z,de,fi,"∬","\\iint");V(Z,de,fi,"∭","\\iiint");V(Z,de,fi,"∏","\\prod");V(Z,de,fi,"∑","\\sum");V(Z,de,fi,"⨂","\\bigotimes");V(Z,de,fi,"⨁","\\bigoplus");V(Z,de,fi,"⨀","\\bigodot");V(Z,de,fi,"∮","\\oint");V(Z,de,fi,"∯","\\oiint");V(Z,de,fi,"∰","\\oiiint");V(Z,de,fi,"⨆","\\bigsqcup");V(Z,de,fi,"∫","\\smallint");V(Bt,de,c2,"…","\\textellipsis");V(Z,de,c2,"…","\\mathellipsis");V(Bt,de,c2,"…","\\ldots",!0);V(Z,de,c2,"…","\\ldots",!0);V(Z,de,c2,"⋯","\\@cdots",!0);V(Z,de,c2,"⋱","\\ddots",!0);V(Z,de,et,"⋮","\\varvdots");V(Bt,de,et,"⋮","\\varvdots");V(Z,de,Ea,"ˊ","\\acute");V(Z,de,Ea,"ˋ","\\grave");V(Z,de,Ea,"¨","\\ddot");V(Z,de,Ea,"~","\\tilde");V(Z,de,Ea,"ˉ","\\bar");V(Z,de,Ea,"˘","\\breve");V(Z,de,Ea,"ˇ","\\check");V(Z,de,Ea,"^","\\hat");V(Z,de,Ea,"⃗","\\vec");V(Z,de,Ea,"˙","\\dot");V(Z,de,Ea,"˚","\\mathring");V(Z,de,Ir,"","\\@imath");V(Z,de,Ir,"","\\@jmath");V(Z,de,et,"ı","ı");V(Z,de,et,"ȷ","ȷ");V(Bt,de,et,"ı","\\i",!0);V(Bt,de,et,"ȷ","\\j",!0);V(Bt,de,et,"ß","\\ss",!0);V(Bt,de,et,"æ","\\ae",!0);V(Bt,de,et,"œ","\\oe",!0);V(Bt,de,et,"ø","\\o",!0);V(Bt,de,et,"Æ","\\AE",!0);V(Bt,de,et,"Œ","\\OE",!0);V(Bt,de,et,"Ø","\\O",!0);V(Bt,de,Ea,"ˊ","\\'");V(Bt,de,Ea,"ˋ","\\`");V(Bt,de,Ea,"ˆ","\\^");V(Bt,de,Ea,"˜","\\~");V(Bt,de,Ea,"ˉ","\\=");V(Bt,de,Ea,"˘","\\u");V(Bt,de,Ea,"˙","\\.");V(Bt,de,Ea,"¸","\\c");V(Bt,de,Ea,"˚","\\r");V(Bt,de,Ea,"ˇ","\\v");V(Bt,de,Ea,"¨",'\\"');V(Bt,de,Ea,"˝","\\H");V(Bt,de,Ea,"◯","\\textcircled");var Xve={"--":!0,"---":!0,"``":!0,"''":!0};V(Bt,de,et,"–","--",!0);V(Bt,de,et,"–","\\textendash");V(Bt,de,et,"—","---",!0);V(Bt,de,et,"—","\\textemdash");V(Bt,de,et,"‘","`",!0);V(Bt,de,et,"‘","\\textquoteleft");V(Bt,de,et,"’","'",!0);V(Bt,de,et,"’","\\textquoteright");V(Bt,de,et,"“","``",!0);V(Bt,de,et,"“","\\textquotedblleft");V(Bt,de,et,"”","''",!0);V(Bt,de,et,"”","\\textquotedblright");V(Z,de,et,"°","\\degree",!0);V(Bt,de,et,"°","\\degree");V(Bt,de,et,"°","\\textdegree",!0);V(Z,de,et,"£","\\pounds");V(Z,de,et,"£","\\mathsterling",!0);V(Bt,de,et,"£","\\pounds");V(Bt,de,et,"£","\\textsterling",!0);V(Z,qe,et,"✠","\\maltese");V(Bt,qe,et,"✠","\\maltese");var pre='0123456789/@."';for(var Y9=0;Y9{var r=t.charCodeAt(0),n=t.charCodeAt(1),a=(r-55296)*1024+(n-56320)+65536,i=e==="math"?0:1;if(119808<=a&&a<120484){var s=Math.floor((a-119808)/26);return[a3[s][2],a3[s][i]]}else if(120782<=a&&a<=120831){var o=Math.floor((a-120782)/10);return[yre[o][2],yre[o][i]]}else{if(a===120485||a===120486)return[a3[0][2],a3[0][i]];if(1204860)return Is(i,u,a,r,s.concat(d));if(l){var h,f;if(l==="boldsymbol"){var p=Sst(i,a,r,s,n);h=p.fontName,f=[p.fontClass]}else o?(h=CB[l].fontName,f=[l]):(h=i3(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(y7(i,h,a).metrics)return Is(i,h,a,r,s.concat(f));if(Xve.hasOwnProperty(i)&&h.slice(0,10)==="Typewriter"){for(var g=[],m=0;m{if(bh(t.classes)!==bh(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 a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},jve=t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},Gt=function(e,r,n,a){var i=new l2(e,r,n,a);return xq(i),i},Sh=(t,e,r,n)=>new l2(t,e,r,n),yb=function(e,r,n){var a=Gt([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=tr(a.height),a.maxFontSize=1,a},xst=function(e,r,n,a){var i=new v7(e,r,n,a);return xq(i),i},rd=function(e){var r=new o2(e);return xq(r),r},_b=function(e,r){return e instanceof o2?Gt([],[e],r):e},Cst=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s{var r=Gt(["mspace"],[],e),n=Aa(t,e);return r.style.marginRight=tr(n),r},i3=function(e,r,n){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},CB={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"}},Zve={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Jve=function(e,r){var[n,a,i]=Zve[e],s=new Eh(n),o=new O0([s],{width:tr(a),height:tr(i),style:"width:"+tr(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Sh(["overlay"],[o],r);return l.height=i,l.style.height=tr(i),l.style.width=tr(a),l},Ca={number:3,unit:"mu"},gf={number:4,unit:"mu"},qu={number:5,unit:"mu"},wst={mord:{mop:Ca,mbin:gf,mrel:qu,minner:Ca},mop:{mord:Ca,mop:Ca,mrel:qu,minner:Ca},mbin:{mord:gf,mop:gf,mopen:gf,minner:gf},mrel:{mord:qu,mop:qu,mopen:qu,minner:qu},mopen:{},mclose:{mop:Ca,mbin:gf,mrel:qu,minner:Ca},mpunct:{mord:Ca,mop:Ca,mrel:qu,mopen:Ca,mclose:Ca,mpunct:Ca,minner:Ca},minner:{mord:Ca,mop:Ca,mbin:gf,mrel:qu,mopen:Ca,mpunct:Ca,minner:Ca}},kst={mord:{mop:Ca},mop:{mord:Ca,mop:Ca},mbin:{},mrel:{},mopen:{},mclose:{mop:Ca},mpunct:{},minner:{mop:Ca}},eye={},I6={},O6={};function sr(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,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:a},l=0;l{var v=m.classes[0],y=g.classes[0];v==="mbin"&&Rst.has(y)?m.classes[0]="mord":y==="mbin"&&Ast.has(v)&&(g.classes[0]="mord")},{node:h},f,p),wB(i,(g,m)=>{var v,y,b=AB(m),_=AB(g),S=b&&_?g.hasClass("mtight")?(v=kst[b])==null?void 0:v[_]:(y=wst[b])==null?void 0:y[_]:null;if(S)return Qve(S,u)},{node:h},f,p),i},wB=function(e,r,n,a,i){a&&e.push(a);for(var s=0;sf=>{e.splice(h+1,0,f),s++})(s)}a&&e.pop()},tye=function(e){return e instanceof o2||e instanceof v7||e instanceof l2&&e.hasClass("enclosing")?e:null},kB=function(e,r){var n=tye(e);if(n){var a=n.children;if(a.length){if(r==="right")return kB(a[a.length-1],"right");if(r==="left")return kB(a[0],"left")}}return e},AB=function(e,r){if(!e)return null;r&&(e=kB(e,r));var n=e.classes[0];return Ist[n]||null},d4=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Gt(r.concat(n))},Nn=function(e,r,n){if(!e)return Gt();if(I6[e.type]){var a=I6[e.type](e,r);if(n&&r.size!==n.size){a=Gt(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new Yt("Got group of unknown type: '"+e.type+"'")};function s3(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 RB(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=ki(t,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o0&&(i.push(s3(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(s3(s,e));var u;r?(u=s3(ki(r,e,!0),e),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=Gt(["katex-html"],i);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 rye(t){return new o2(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=bh(this.classes));for(var n=0;n0&&(e+=' class ="'+fs(bh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}}class oi{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return fs(this.toText())}toText(){return this.text}}class nye{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 Ost=new Set(["\\imath","\\jmath"]),Dst=new Set(["mrow","mtable"]),Ll=function(e,r,n){return fa[r][e]&&fa[r][e].replace&&e.charCodeAt(0)!==55349&&!(Xve.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=fa[r][e].replace),new oi(e)},Cq=function(e){return e.length===1?e[0]:new Kt("mrow",e)},wq=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 a=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 i=e.text;if(Ost.has(i))return null;if(fa[a][i]){var s=fa[a][i].replace;s&&(i=s)}var o=CB[n].fontName;return Sq(i,o,a)?CB[n].variant:null};function K9(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof oi&&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 oi&&r.text===","}else return!1}var Qo=function(e,r,n){if(e.length===1){var a=Gn(e[0],r);return n&&a instanceof Kt&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o=1&&(s.type==="mn"||K9(s))){var u=l.children[0];u instanceof Kt&&u.type==="mn"&&(u.children=[...s.children,...u.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof oi&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof oi&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(l),s=l}return i},Th=function(e,r,n){return Cq(Qo(e,r,n))},Gn=function(e,r){if(!e)return new Kt("mrow");if(O6[e.type]){var n=O6[e.type](e,r);return n}else throw new Yt("Got group of unknown type: '"+e.type+"'")};function _re(t,e,r,n,a){var i=Qo(t,r),s;i.length===1&&i[0]instanceof Kt&&Dst.has(i[0].type)?s=i[0]:s=new Kt("mrow",i);var o=new Kt("annotation",[new oi(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=a?"katex":"katex-mathml";return Gt([d],[u])}var Lst=[[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]],bre=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ere=function(e,r){return r.size<2?e:Lst[e-1][r.size-1]};class t0{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||t0.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=bre[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 t0(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Ere(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:bre[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Ere(t0.BASESIZE,e);return this.size===r&&this.textSize===t0.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!==t0.BASESIZE?["sizing","reset-size"+this.size,"size"+t0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=yst(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}t0.BASESIZE=6;var aye=function(e){return new t0({style:e.displayMode?Zr.DISPLAY:Zr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},iye=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},Mst=function(e,r,n){var a=aye(n),i;if(n.output==="mathml")return _re(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=RB(e,a);i=Gt(["katex"],[s])}else{var o=_re(e,r,a,n.displayMode,!1),l=RB(e,a);i=Gt(["katex"],[o,l])}return iye(i,n)},Pst=function(e,r,n){var a=aye(n),i=RB(e,a),s=Gt(["katex"],[i]);return iye(s,n)},Bst={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":"="},b7=function(e){var r=new Kt("mo",[new oi(Bst[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Fst={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]},$st=new Set(["widehat","widecheck","widetilde","utilde"]),E7=function(e,r){function n(){var o=4e5,l=e.label.slice(1);if($st.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 Eh(f),v=new O0([m],{width:"100%",height:tr(p),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:Sh([],[v],r),minWidth:0,height:p}}else{var y=[],b=Fst[l],[_,S,x]=b,C=x/1e3,T=_.length,w,R;if(T===1){var O=b[3];w=["hide-tail"],R=[O]}else if(T===2)w=["halfarrow-left","halfarrow-right"],R=["xMinYMin","xMaxYMin"];else if(T===3)w=["brace-left","brace-center","brace-right"],R=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+T+" children.");for(var M=0;M0&&(a.style.minWidth=tr(i)),a},zst=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=Gt(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new TB({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new TB({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new O0(u,{width:"100%",height:tr(o)});s=Sh([],[d],i)}return s.height=o,s.style.height=tr(o),s};function rn(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 S7(t){var e=T7(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 T7(t){return t&&(t.type==="atom"||bst.hasOwnProperty(t.type))?t:null}var sye=t=>{if(t instanceof Uo)return t;if(vst(t)&&t.children.length===1)return sye(t.children[0])},kq=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=rn(t.base,"accent"),r=n.base,t.base=r,a=mst(Nn(t,e)),t.base=n):(n=rn(t,"accent"),r=n.base);var i=Nn(r,e.havingCrampedStyle()),s=n.isShifty&&ed(r),o=0;if(s){var l,u;o=(l=(u=sye(i))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",h=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=E7(n,e),f=An({positionType:"firstBaseline",children:[{type:"elem",elem:i},{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=Jve("vec",e),g=Zve.vec[1]):(p=_7({mode:n.mode,text:n.label},e,"textord"),p=gst(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=i.height);var v=o;m||(v-=g/2),f.style.left=tr(v),n.label==="\\textcircled"&&(f.style.top=".2em"),f=An({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:f}]})}var y=Gt(["mord","accent"],[f],e);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},oye=(t,e)=>{var r=t.isStretchy?b7(t.label):new Kt("mo",[Ll(t.label,t.mode)]),n=new Kt("mover",[Gn(t.base,e),r]);return n.setAttribute("accent","true"),n},Ust=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=D6(e[0]),n=!Ust.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:kq,mathmlBuilder:oye});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:kq,mathmlBuilder:oye});sr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=Nn(t.base,e),n=E7(t,e),a=t.label==="\\utilde"?.12:0,i=An({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return Gt(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=b7(t.label),n=new Kt("munder",[Gn(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var o3=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:a}=t;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=_b(Nn(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=_b(Nn(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=E7(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(s){var h=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=An({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:h}]})}else d=An({positionType:"individualShift",children:[{type:"elem",elem:a,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=b7(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=o3(Gn(t.body,e));if(t.below){var i=o3(Gn(t.below,e));n=new Kt("munderover",[r,i,a])}else n=new Kt("mover",[r,a])}else if(t.below){var s=o3(Gn(t.below,e));n=new Kt("munder",[r,s])}else n=o3(),n=new Kt("mover",[r,n]);return n}});function lye(t,e){var r=ki(t.body,e,!0);return Gt([t.mclass],r,e)}function cye(t,e){var r,n=Qo(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,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:si(a),isCharacterBox:ed(a)}},htmlBuilder:lye,mathmlBuilder:cye});var x7=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:x7(e[0]),body:si(e[1]),isCharacterBox:ed(e[1])}}});sr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,a=e[1],i=e[0],s;n!=="\\stackrel"?s=x7(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:si(a)},l={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:ed(l)}},htmlBuilder:lye,mathmlBuilder:cye});sr({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:x7(e[0]),body:si(e[0])}},htmlBuilder(t,e){var r=ki(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=Qo(t.body,e),n=new Kt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Gst={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Sre=()=>({type:"styling",body:[],mode:"math",style:"display"}),Tre=t=>t.type==="textord"&&t.text==="@",qst=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Yst(t,e,r){var n=Gst[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,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 Hst(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=[],a=[n],i=0;iAV".includes(u))for(var h=0;h<2;h++){for(var f=!0,p=l+1;pAV=|." after @',s[l]);var g=Yst(u,d,t),m={type:"styling",body:[g],mode:"math",style:"display"};n.push(m),o=Sre()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var v=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(a.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=_b(Nn(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",[Gn(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=_b(Nn(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new Kt("mrow",[Gn(t.fragment,e)])}});sr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=rn(e[0],"ordgroup"),a=n.body,i="",s=0;s=1114111)throw new Yt("\\@char with invalid code point "+i);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 uye=(t,e)=>{var r=ki(t.body,e.withColor(t.color),!1);return rd(r)},dye=(t,e)=>{var r=Qo(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=rn(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:si(a)}},htmlBuilder:uye,mathmlBuilder:dye});sr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,a=rn(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:uye,mathmlBuilder:dye});sr({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&rn(a,"size").value}},htmlBuilder(t,e){var r=Gt(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=tr(Aa(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(Aa(t.size,e)))),r}});var NB={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},hye=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Yt("Expected a control sequence",t);return e},Vst=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},fye=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,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(NB[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=NB[n.text]),rn(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(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Yt("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Yt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new Yt('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new Yt("Expected a macro definition");o[i].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(a,{tokens:l,numArgs:i,delimiters:o},r===NB[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=hye(e.gullet.popToken());e.gullet.consumeSpaces();var a=Vst(e);return fye(e,n,a,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=hye(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return fye(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var AE=function(e,r,n){var a=fa.math[e]&&fa.math[e].replace,i=Sq(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},Aq=function(e,r,n,a){var i=n.havingBaseStyle(r),s=Gt(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},pye=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=tr(i),e.height-=i,e.depth+=i},Wst=function(e,r,n,a,i,s){var o=Is(e,"Main-Regular",i,a),l=Aq(o,r,a,s);return pye(l,a,r),l},Kst=function(e,r,n,a){return Is(e,"Size"+r+"-Regular",n,a)},gye=function(e,r,n,a,i,s){var o=Kst(e,r,i,a),l=Aq(Gt(["delimsizing","size"+r],[o],a),Zr.TEXT,a,s);return n&&pye(l,a,Zr.TEXT),l},X9=function(e,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=Gt(["delimsizinginner",a],[Gt([],[Is(e,r,n)])]);return{type:"elem",elem:i}},j9=function(e,r,n){var a=jc["Size4-Regular"][e.charCodeAt(0)]?jc["Size4-Regular"][e.charCodeAt(0)][4]:jc["Size1-Regular"][e.charCodeAt(0)][4],i=new Eh("inner",cst(e,Math.round(1e3*r))),s=new O0([i],{width:tr(a),height:tr(r),style:"width:"+tr(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=Sh([],[s],n);return o.height=r,o.style.height=tr(r),o.style.width=tr(a),{type:"elem",elem:o}},IB=.008,l3={type:"kern",size:-1*IB},Xst=new Set(["|","\\lvert","\\rvert","\\vert"]),jst=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),mye=function(e,r,n,a,i,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"):Xst.has(e)?(u="∣",h="vert",f=333):jst.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,i),m=g.height+g.depth,v=AE(u,p,i),y=v.height+v.depth,b=AE(d,p,i),_=b.height+b.depth,S=0,x=1;if(l!==null){var C=AE(l,p,i);S=C.height+C.depth,x=2}var T=m+_+S,w=Math.max(0,Math.ceil((r-T)/(x*y))),R=T+w*x*y,O=a.fontMetrics().axisHeight;n&&(O*=a.sizeMultiplier);var M=R/2-O,$=[];if(h.length>0){var F=R-m-_,A=Math.round(R*1e3),I=ust(h,Math.round(F*1e3)),D=new Eh(h,I),L=(f/1e3).toFixed(3)+"em",N=(A/1e3).toFixed(3)+"em",P=new O0([D],{width:L,height:N,viewBox:"0 0 "+f+" "+A}),z=Sh([],[P],a);z.height=A/1e3,z.style.width=L,z.style.height=N,$.push({type:"elem",elem:z})}else{if($.push(X9(d,p,i)),$.push(l3),l===null){var B=R-m-_+2*IB;$.push(j9(u,B,a))}else{var U=(R-m-_-S)/2+2*IB;$.push(j9(u,U,a)),$.push(l3),$.push(X9(l,p,i)),$.push(l3),$.push(j9(u,U,a))}$.push(l3),$.push(X9(o,p,i))}var G=a.havingBaseStyle(Zr.TEXT),K=An({positionType:"bottom",positionData:M,children:$});return Aq(Gt(["delimsizing","mult"],[K],G),Zr.TEXT,a,s)},Q9=80,Z9=.08,J9=function(e,r,n,a,i){var s=lst(e,a,n),o=new Eh(e,s),l=new O0([o],{width:"400em",height:tr(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Sh(["hide-tail"],[l],i)},Qst=function(e,r){var n=r.havingBaseSizing(),a=Eye("\\surd",e*n.sizeMultiplier,bye,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,h;return a.type==="small"?(d=1e3+1e3*s+Q9,e<1?i=1:e<1.4&&(i=.7),l=(1+s+Z9)/i,u=(1+s)/i,o=J9("sqrtMain",l,d,s,r),o.style.minWidth="0.853em",h=.833/i):a.type==="large"?(d=(1e3+Q9)*fS[a.size],u=(fS[a.size]+s)/i,l=(fS[a.size]+s+Z9)/i,o=J9("sqrtSize"+a.size,l,d,s,r),o.style.minWidth="1.02em",h=1/i):(l=e+s+Z9,u=e+s,d=Math.floor(1e3*e+s)+Q9,o=J9("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)*i}},vye=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Zst=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),yye=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),fS=[0,1.2,1.8,2.4,3],_ye=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),vye.has(e)||yye.has(e))return gye(e,r,!1,n,a,i);if(Zst.has(e))return mye(e,fS[r],!1,n,a,i);throw new Yt("Illegal delimiter: '"+e+"'")},Jst=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],eot=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"stack"}],bye=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],tot=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.")},Eye=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;sr)return o}return n[n.length-1]},OB=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;yye.has(e)?o=Jst:vye.has(e)?o=bye:o=eot;var l=Eye(e,r,o,a);return l.type==="small"?Wst(e,l.style,n,a,i,s):l.type==="large"?gye(e,l.size,n,a,i,s):mye(e,r,n,a,i,s)},eD=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),h=Math.max(d/500*l,2*d-u);return OB(e,h,!0,a,i,s)},xre={"\\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}},rot=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 C7(t,e){var r=T7(t);if(r&&rot.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=C7(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:xre[t.funcName].size,mclass:xre[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?Gt([t.mclass]):_ye(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Ll(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(fS[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Cre(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:C7(e[0],t).text,color:r}}});sr({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=C7(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=rn(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{Cre(t);for(var r=ki(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s{Cre(t);var r=Qo(t.body,e);if(t.left!=="."){var n=new Kt("mo",[Ll(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new Kt("mo",[Ll(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return Cq(r)}});sr({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=C7(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=d4(e,[]);else{r=_ye(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==="|"?Ll("|","text"):Ll(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 Rq=(t,e)=>{var r=_b(Nn(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s=0,o=ed(t.body);if(n==="sout")i=Gt(["stretchy","sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=Aa({number:.6,unit:"pt"},e),u=Aa({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=tr(h/2+l);var f=Math.floor(1e3*h*a),p=sst(f),g=new O0([new Eh("phase",p)],{width:"400em",height:tr(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=Sh(["hide-tail"],[g],e),i.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,v=0,y=0;/box/.test(n)?(y=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),m=e.fontMetrics().fboxsep+(n==="colorbox"?0:y),v=m):n==="angl"?(y=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),m=4*y,v=Math.max(0,.25-r.depth)):(m=o?.2:0,v=m),i=zst(r,n,m,v,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=tr(y)):n==="angl"&&y!==.049&&(i.style.borderTopWidth=tr(y),i.style.borderRightWidth=tr(y)),s=r.depth+v,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=An({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var _=/cancel|phase/.test(n)?["svg-align"]:[];b=An({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,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)},Nq=(t,e)=>{var r=0,n=new Kt(t.label.includes("colorbox")?"mpadded":"menclose",[Gn(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 a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+a+"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:a}=t,i=rn(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Rq,mathmlBuilder:Nq});sr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:a}=t,i=rn(e[0],"color-token").color,s=rn(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:Rq,mathmlBuilder:Nq});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,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Rq,mathmlBuilder:Nq});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 Sye={};function xu(t){for(var{type:e,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l{var e=t.parser.settings;if(!e.displayMode)throw new Yt("{"+t.envName+"} can be used only in display mode.")},not=new Set(["gather","gather*"]);function Iq(t){if(!t.includes("ed"))return!t.includes("*")}function $h(t,e,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,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],v=[],y=[],b=l!=null?[]:void 0;function _(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function S(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new Mo("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),y.push(wre(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"){S(),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(),y.length0&&(_+=.25),u.push({pos:_,isDashed:it[ke]})}for(S(s[0]),n=0;n0&&(M+=b,Tit))for(n=0;n=o)){var te=void 0;if(a>0||e.hskipBeforeAndAfter){var ne,ae;te=(ne=(ae=G)==null?void 0:ae.pregap)!=null?ne:f,te!==0&&(I=Gt(["arraycolsep"],[]),I.style.width=tr(te),A.push(I))}var re=[];for(n=0;n0){for(var Ce=yb("hline",r,d),ut=yb("hdashline",r,d),Ae=[{type:"elem",elem:$e,shift:0}];u.length>0;){var je=u.pop(),ot=je.pos-$;je.isDashed?Ae.push({type:"elem",elem:ut,shift:ot}):Ae.push({type:"elem",elem:Ce,shift:ot})}$e=An({positionType:"individualShift",children:Ae})}if(L.length===0)return Gt(["mord"],[$e],r);var lt=An({positionType:"individualShift",children:L}),ct=Gt(["tag"],[lt],r);return rd([$e,ct])},aot={c:"center ",l:"left ",r:"right "},wu=function(e,r){for(var n=[],a=new Kt("mtd",[],["mtr-glue"]),i=new Kt("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,m="",v=!1,y=0,b=g.length;g[0].type==="separator"&&(f+="top ",y=1),g[g.length-1].type==="separator"&&(f+="bottom ",b-=1);for(var _=y;_0?"left ":"",f+=R[R.length-1].length>0?"right ":"";for(var O=1;O0&&p&&(v=1),n[g]={type:"align",align:m,pregap:v,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};xu({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=T7(e[0]),n=r?[e[0]]:rn(e[0],"ordgroup").body,a=n.map(function(s){var o=S7(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)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return $h(t.parser,i,Oq(t.envName))},htmlBuilder:Cu,mathmlBuilder:wu});xu({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 a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new Yt("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=$h(t.parser,n,Oq(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=$h(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=T7(e[0]),n=r?[e[0]]:rn(e[0],"ordgroup").body,a=n.map(function(o){var l=S7(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Yt("Unknown column alignment: "+u,o)});if(a.length>1)throw new Yt("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=$h(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new Yt("{subarray} can contain only one column");return s},htmlBuilder:Cu,mathmlBuilder:wu});xu({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=$h(t.parser,e,Oq(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:xye,htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){not.has(t.envName)&&w7(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Iq(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return $h(t.parser,e,"display")},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:xye,htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){w7(t);var e={autoTag:Iq(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return $h(t.parser,e,"display")},htmlBuilder:Cu,mathmlBuilder:wu});xu({type:"array",names:["CD"],props:{numArgs:0},handler(t){return w7(t),Hst(t.parser)},htmlBuilder:Cu,mathmlBuilder:wu});Se("\\nonumber","\\gdef\\@eqnsw{0}");Se("\\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 kre=Sye;sr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,a=e[0];if(a.type!=="ordgroup")throw new Yt("Invalid environment name",a);for(var i="",s=0;s{var r=t.font,n=e.withFont(r);return Nn(t.body,n)},wye=(t,e)=>{var r=t.font,n=e.withFont(r);return Gn(t.body,n)},Are={"\\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,a=D6(e[0]),i=n;return i in Are&&(i=Are[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Cye,mathmlBuilder:wye});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:x7(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:ed(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:a}=t,{mode:i}=r,s=r.parseExpression(!0,a),o="math"+n.slice(1);return{type:"font",mode:i,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:Cye,mathmlBuilder:wye});var iot=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=Nn(t.numer,i,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 v;if(d){var b=e.fontMetrics().axisHeight;p-s.depth-(b+.5*h){var r=new Kt("mfrac",[Gn(t.numer,e),Gn(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Aa(t.barSize,e);r.setAttribute("linethickness",tr(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new Kt("mo",[new oi(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new Kt("mo",[new oi(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return Cq(a)}return r},kye=(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,a=e[0],i=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"),kye({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},d)},htmlBuilder:iot,mathmlBuilder:sot});sr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var Rre=["display","text","script","scriptscript"],Nre=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],a=e[5],i=D6(e[0]),s=i.type==="atom"&&i.family==="open"?Nre(i.text):null,o=D6(e[1]),l=o.type==="atom"&&o.family==="close"?Nre(o.text):null,u=rn(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=rn(p.body[0],"textord");f=Rre[Number(g.text)]}}else p=rn(p,"textord"),f=Rre[Number(p.text)];return kye({type:"genfrac",mode:r.mode,numer:n,denom:a,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:a}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:rn(e[0],"size").value,token:a}}});sr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0],i=rn(e[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var s=e[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var Aye=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?Nn(t.sup,e.havingStyle(r.sup()),e):Nn(t.sub,e.havingStyle(r.sub()),e),a=rn(t.base,"horizBrace")):a=rn(t,"horizBrace");var i=Nn(a.base,e.havingBaseStyle(Zr.DISPLAY)),s=E7(a,e),o;if(a.isOver?(o=An({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=An({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Gt(["mord",a.isOver?"mover":"munder"],[o],e);a.isOver?o=An({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=An({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",a.isOver?"mover":"munder"],[o],e)},oot=(t,e)=>{var r=b7(t.label);return new Kt(t.isOver?"mover":"munder",[Gn(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:Aye,mathmlBuilder:oot});sr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],a=rn(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:si(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=ki(t.body,e,!1);return xst(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=Th(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=rn(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i{var{parser:r,funcName:n,token:a}=t,i=rn(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=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d{var r=ki(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=Gt(n,r,e);for(var i in t.attributes)i!=="class"&&t.attributes.hasOwnProperty(i)&&a.setAttribute(i,t.attributes[i]);return a},mathmlBuilder:(t,e)=>Th(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:si(e[0]),mathml:si(e[1])}},htmlBuilder:(t,e)=>{var r=ki(t.html,e,!1);return rd(r)},mathmlBuilder:(t,e)=>Th(t.mathml,e)});var tD=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(!Yve(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,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=rn(r[0],"raw").string,u=l.split(","),d=0;d{var r=Aa(t.height,e),n=0;t.totalheight.number>0&&(n=Aa(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=Aa(t.width,e));var i={height:tr(r+n)};a>0&&(i.width=tr(a)),n>0&&(i.verticalAlign=tr(-n));var s=new fst(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new Kt("mglyph",[]);r.setAttribute("alt",t.alt);var n=Aa(t.height,e),a=0;if(t.totalheight.number>0&&(a=Aa(t.totalheight,e)-n,r.setAttribute("valign",tr(-a))),r.setAttribute("height",tr(n+a)),t.width.number>0){var i=Aa(t.width,e);r.setAttribute("width",tr(i))}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,a=rn(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.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:a.value}},htmlBuilder(t,e){return Qve(t.dimension,e)},mathmlBuilder(t,e){var r=Aa(t.dimension,e);return new nye(r)}});sr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=Gt([],[Nn(t.body,e)]),r=Gt(["inner"],[r],e)):r=Gt(["inner"],[Nn(t.body,e)]);var n=Gt(["fix"],[]),a=Gt([t.alignment],[r,n],e),i=Gt(["strut"]);return i.style.height=tr(a.height+a.depth),a.depth&&(i.style.verticalAlign=tr(-a.depth)),a.children.unshift(i),a=Gt(["thinbox"],[a],e),Gt(["mord","vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new Kt("mpadded",[Gn(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,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{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 Ire=(t,e)=>{switch(e.style.size){case Zr.DISPLAY.size:return t.display;case Zr.TEXT.size:return t.text;case Zr.SCRIPT.size:return t.script;case Zr.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:si(e[0]),text:si(e[1]),script:si(e[2]),scriptscript:si(e[3])}},htmlBuilder:(t,e)=>{var r=Ire(t,e),n=ki(r,e,!1);return rd(n)},mathmlBuilder:(t,e)=>{var r=Ire(t,e);return Th(r,e)}});var Rye=(t,e,r,n,a,i,s)=>{t=Gt([],[t]);var o=r&&ed(r),l,u;if(e){var d=Nn(e,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=Nn(r,n.havingStyle(a.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=An({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=t.height-s;f=An({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(u){var m=t.depth+s;f=An({positionType:"bottom",positionData:m,children:[{type:"elem",elem:t},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var v=[f];if(l&&i!==0&&!o){var y=Gt(["mspace"],[],n);y.style.marginRight=tr(i),v.unshift(y)}return Gt(["mop","op-limits"],v,n)},Nye=new Set(["\\smallint"]),u2=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=rn(t.base,"op"),a=!0):i=rn(t,"op");var s=e.style,o=!1;s.size===Zr.DISPLAY.size&&i.symbol&&!Nye.has(i.name)&&(o=!0);var l;if(i.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(d=i.name.slice(1),i.name=d==="oiint"?"\\iint":"\\iiint"),l=Is(i.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var h=l.italic,f=Jve(d+"Size"+(o?"2":"1"),e);l=An({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),i.name="\\"+d,l.classes.unshift("mop"),l.italic=h}}else if(i.body){var p=ki(i.body,e,!0);p.length===1&&p[0]instanceof Uo?(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",[Ll(t.name,t.mode)]),Nye.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new Kt("mo",Qo(t.body,e));else{r=new Kt("mi",[new oi(t.name.slice(1))]);var n=new Kt("mo",[Ll("⁡","text")]);t.parentIsSupSub?r=new Kt("mrow",[r,n]):r=rye([r,n])}return r},lot={"∏":"\\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,a=n;return a.length===1&&(a=lot[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:u2,mathmlBuilder:kT});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:si(n)}},htmlBuilder:u2,mathmlBuilder:kT});var cot={"∫":"\\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:u2,mathmlBuilder:kT});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:u2,mathmlBuilder:kT});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=cot[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:u2,mathmlBuilder:kT});var Iye=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=rn(t.base,"operatorname"),a=!0):i=rn(t,"operatorname");var s;if(i.body.length>0){for(var o=i.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=ki(o,e.withFont("mathrm"),!0),u=0;u{for(var r=Qo(t.body,e.withFont("mathrm")),n=!0,a=0;ad.toText()).join("");r=[new oi(o)]}var l=new Kt("mi",r);l.setAttribute("mathvariant","normal");var u=new Kt("mo",[Ll("⁡","text")]);return t.parentIsSupSub?new Kt("mrow",[l,u]):rye([l,u])};sr({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,a=e[0];return{type:"operatorname",mode:r.mode,body:si(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Iye,mathmlBuilder:uot});Se("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");sg({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?rd(ki(t.body,e,!1)):Gt(["mord"],ki(t.body,e,!0),e)},mathmlBuilder(t,e){return Th(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=Nn(t.body,e.havingCrampedStyle()),n=yb("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=An({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return Gt(["mord","overline"],[i],e)},mathmlBuilder(t,e){var r=new Kt("mo",[new oi("‾")]);r.setAttribute("stretchy","true");var n=new Kt("mover",[Gn(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:si(n)}},htmlBuilder:(t,e)=>{var r=ki(t.body,e.withPhantom(),!1);return rd(r)},mathmlBuilder:(t,e)=>{var r=Qo(t.body,e);return new Kt("mphantom",r)}});Se("\\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"],[Nn(t.body,e.withPhantom())]),n=Gt(["fix"],[]);return Gt(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=Qo(si(t.body),e),n=new Kt("mphantom",r),a=new Kt("mpadded",[n]);return a.setAttribute("width","0px"),a}});sr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=rn(e[0],"size").value,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=Nn(t.body,e),n=Aa(t.dy,e);return An({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new Kt("mpadded",[Gn(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,a=r[0],i=rn(e[0],"size"),s=rn(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&rn(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=Gt(["mord","rule"],[],e),n=Aa(t.width,e),a=Aa(t.height,e),i=t.shift?Aa(t.shift,e):0;return r.style.borderRightWidth=tr(n),r.style.borderTopWidth=tr(a),r.style.bottom=tr(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Aa(t.width,e),n=Aa(t.height,e),a=t.shift?Aa(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new Kt("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",tr(r)),s.setAttribute("height",tr(n));var o=new Kt("mpadded",[s]);return a>=0?o.setAttribute("height",tr(a)):(o.setAttribute("height",tr(a)),o.setAttribute("depth",tr(-a))),o.setAttribute("voffset",tr(a)),o}});function Oye(t,e,r){for(var n=ki(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i{var r=e.havingSize(t.size);return Oye(t.body,r,e)};sr({type:"sizing",names:Ore,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:a}=t,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Ore.indexOf(n)+1,body:i}},htmlBuilder:dot,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=Qo(t.body,r),a=new Kt("mstyle",n);return a.setAttribute("mathsize",tr(r.sizeMultiplier)),a}});sr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,a=!1,i=!1,s=r[0]&&rn(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=Gt([],[Nn(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",[Gn(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,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=Nn(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=_b(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;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=An({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(Zr.SCRIPTSCRIPT),m=Nn(t.index,g,e),v=.6*(p.height-p.depth),y=An({positionType:"shift",positionData:-v,children:[{type:"elem",elem:m}]}),b=Gt(["root"],[y]);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",[Gn(r,e),Gn(n,e)]):new Kt("msqrt",[Gn(r,e)])}});var Dre={display:Zr.DISPLAY,text:Zr.TEXT,script:Zr.SCRIPT,scriptscript:Zr.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:a}=t,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=Dre[t.style],n=e.havingStyle(r).withFont("");return Oye(t.body,n,e)},mathmlBuilder(t,e){var r=Dre[t.style],n=e.havingStyle(r),a=Qo(t.body,n),i=new Kt("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var hot=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===Zr.DISPLAY.size||n.alwaysHandleSupSub);return a?u2:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===Zr.DISPLAY.size||n.limits);return i?Iye:null}else{if(n.type==="accent")return ed(n.base)?kq:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Aye:null}else return null}else return null};sg({type:"supsub",htmlBuilder(t,e){var r=hot(t,e);if(r)return r(t,e);var{base:n,sup:a,sub:i}=t,s=Nn(n,e),o,l,u=e.fontMetrics(),d=0,h=0,f=n&&ed(n);if(a){var p=e.havingStyle(e.style.sup());o=Nn(a,p,e),f||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(i){var g=e.havingStyle(e.style.sub());l=Nn(i,g,e),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var m;e.style===Zr.DISPLAY?m=u.sup1:e.style.cramped?m=u.sup3:m=u.sup2;var v=e.sizeMultiplier,y=tr(.5/u.ptPerEm/v),b=null;if(l){var _=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Uo||_)&&(b=tr(-s.italic))}var S;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:y,marginLeft:b},{type:"elem",elem:o,shift:-d,marginRight:y}];S=An({positionType:"individualShift",children:w})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var R=[{type:"elem",elem:l,marginLeft:b,marginRight:y}];S=An({positionType:"shift",positionData:h,children:R})}else if(o)d=Math.max(d,m,o.depth+.25*u.xHeight),S=An({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var O=AB(s,"right")||"mord";return Gt([O],[s,Gt(["msupsub"],[S])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[Gn(t.base,e)];t.sub&&i.push(Gn(t.sub,e)),t.sup&&i.push(Gn(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===Zr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===Zr.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Zr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Zr.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===Zr.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===Zr.DISPLAY)?s="mover":s="msup"}return new Kt(s,i)}});sg({type:"atom",htmlBuilder(t,e){return Tq(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new Kt("mo",[Ll(t.text,t.mode)]);if(t.family==="bin"){var n=wq(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 Dye={mi:"italic",mn:"normal",mtext:"normal"};sg({type:"mathord",htmlBuilder(t,e){return _7(t,e,"mathord")},mathmlBuilder(t,e){var r=new Kt("mi",[Ll(t.text,t.mode,e)]),n=wq(t,e)||"italic";return n!==Dye[r.type]&&r.setAttribute("mathvariant",n),r}});sg({type:"textord",htmlBuilder(t,e){return _7(t,e,"textord")},mathmlBuilder(t,e){var r=Ll(t.text,t.mode,e),n=wq(t,e)||"normal",a;return t.mode==="text"?a=new Kt("mtext",[r]):/[0-9]/.test(t.text)?a=new Kt("mn",[r]):t.text==="\\prime"?a=new Kt("mo",[r]):a=new Kt("mi",[r]),n!==Dye[a.type]&&a.setAttribute("mathvariant",n),a}});var rD={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},nD={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};sg({type:"spacing",htmlBuilder(t,e){if(nD.hasOwnProperty(t.text)){var r=nD[t.text].className||"";if(t.mode==="text"){var n=_7(t,e,"textord");return n.classes.push(r),n}else return Gt(["mspace",r],[Tq(t.text,t.mode,e)],e)}else{if(rD.hasOwnProperty(t.text))return Gt(["mspace",rD[t.text]],[],e);throw new Yt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(nD.hasOwnProperty(t.text))r=new Kt("mtext",[new oi(" ")]);else{if(rD.hasOwnProperty(t.text))return new Kt("mspace");throw new Yt('Unknown type of space "'+t.text+'"')}return r}});var Lre=()=>{var t=new Kt("mtd",[]);return t.setAttribute("width","50%"),t};sg({type:"tag",mathmlBuilder(t,e){var r=new Kt("mtable",[new Kt("mtr",[Lre(),new Kt("mtd",[Th(t.body,e)]),Lre(),new Kt("mtd",[Th(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Mre={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Pre={"\\textbf":"textbf","\\textmd":"textmd"},fot={"\\textit":"textit","\\textup":"textup"},Bre=(t,e)=>{var r=t.font;if(r){if(Mre[r])return e.withTextFontFamily(Mre[r]);if(Pre[r])return e.withTextFontWeight(Pre[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(fot[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,a=e[0];return{type:"text",mode:r.mode,body:si(a),font:n}},htmlBuilder(t,e){var r=Bre(t,e),n=ki(t.body,r,!0);return Gt(["mord","text"],n,r)},mathmlBuilder(t,e){var r=Bre(t,e);return Th(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=Nn(t.body,e),n=yb("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=An({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return Gt(["mord","underline"],[i],e)},mathmlBuilder(t,e){var r=new Kt("mo",[new oi("‾")]);r.setAttribute("stretchy","true");var n=new Kt("munder",[Gn(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=Nn(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return An({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){return new Kt("mpadded",[Gn(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=Fre(t),n=[],a=e.havingStyle(e.style.text()),i=0;it.body.replace(/ /g,t.star?"␣":" "),Hd=eye,Lye=`[ \r + ]`,pot="\\\\[a-zA-Z@]+",got="\\\\[^\uD800-\uDFFF]",mot="("+pot+")"+Lye+"*",vot=`\\\\( |[ \r ]+ -?)[ \r ]*`,DB="[̀-ͯ]",vot=new RegExp(DB+"+$"),yot="("+Lye+"+)|"+(mot+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(DB+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(DB+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+got)+("|"+pot+")");let $re=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(yot,"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 Mo("EOF",new ho(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Yt("Unexpected character: '"+e[r]+"'",new Mo(e[r],new ho(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(` -`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new Mo(a,new ho(this,r,this.tokenRegex.lastIndex))}};class _ot{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 a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var bot=Tye;Se("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});Se("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});Se("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});Se("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});Se("\\@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}});Se("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Se("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var zre={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};Se("\\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=zre[e.text],n==null||n>=r)throw new Yt("Invalid base-"+r+" digit "+e.text);for(var a;(a=zre[t.future().text])!=null&&a{var a=t.consumeArg().tokens;if(a.length!==1)throw new Yt("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new Yt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new Yt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[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),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};Se("\\newcommand",t=>Dq(t,!1,!0,!1));Se("\\renewcommand",t=>Dq(t,!0,!1,!1));Se("\\providecommand",t=>Dq(t,!0,!0,!0));Se("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});Se("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});Se("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Hd[r],fa.math[r],fa.text[r]),""});Se("\\bgroup","{");Se("\\egroup","}");Se("~","\\nobreakspace");Se("\\lq","`");Se("\\rq","'");Se("\\aa","\\r a");Se("\\AA","\\r A");Se("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Se("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Se("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Se("ℬ","\\mathscr{B}");Se("ℰ","\\mathscr{E}");Se("ℱ","\\mathscr{F}");Se("ℋ","\\mathscr{H}");Se("ℐ","\\mathscr{I}");Se("ℒ","\\mathscr{L}");Se("ℳ","\\mathscr{M}");Se("ℛ","\\mathscr{R}");Se("ℭ","\\mathfrak{C}");Se("ℌ","\\mathfrak{H}");Se("ℨ","\\mathfrak{Z}");Se("\\Bbbk","\\Bbb{k}");Se("\\llap","\\mathllap{\\textrm{#1}}");Se("\\rlap","\\mathrlap{\\textrm{#1}}");Se("\\clap","\\mathclap{\\textrm{#1}}");Se("\\mathstrut","\\vphantom{(}");Se("\\underbar","\\underline{\\text{#1}}");Se("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Se("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Se("\\ne","\\neq");Se("≠","\\neq");Se("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Se("∉","\\notin");Se("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Se("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Se("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Se("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Se("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Se("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Se("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Se("⟂","\\perp");Se("‼","\\mathclose{!\\mkern-0.8mu!}");Se("∌","\\notni");Se("⌜","\\ulcorner");Se("⌝","\\urcorner");Se("⌞","\\llcorner");Se("⌟","\\lrcorner");Se("©","\\copyright");Se("®","\\textregistered");Se("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Se("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Se("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Se("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Se("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Se("⋮","\\vdots");Se("\\varGamma","\\mathit{\\Gamma}");Se("\\varDelta","\\mathit{\\Delta}");Se("\\varTheta","\\mathit{\\Theta}");Se("\\varLambda","\\mathit{\\Lambda}");Se("\\varXi","\\mathit{\\Xi}");Se("\\varPi","\\mathit{\\Pi}");Se("\\varSigma","\\mathit{\\Sigma}");Se("\\varUpsilon","\\mathit{\\Upsilon}");Se("\\varPhi","\\mathit{\\Phi}");Se("\\varPsi","\\mathit{\\Psi}");Se("\\varOmega","\\mathit{\\Omega}");Se("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Se("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Se("\\boxed","\\fbox{$\\displaystyle{#1}$}");Se("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Se("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Se("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Se("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Se("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ure={",":"\\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"},Eot=new Set(["bin","rel"]);Se("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in Ure?e=Ure[r]:(r.slice(0,4)==="\\not"||r in fa.math&&Eot.has(fa.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};Se("\\dotso",function(t){var e=t.future().text;return e in Lq?"\\ldots\\,":"\\ldots"});Se("\\dotsc",function(t){var e=t.future().text;return e in Lq&&e!==","?"\\ldots\\,":"\\ldots"});Se("\\cdots",function(t){var e=t.future().text;return e in Lq?"\\@cdots\\,":"\\@cdots"});Se("\\dotsb","\\cdots");Se("\\dotsm","\\cdots");Se("\\dotsi","\\!\\cdots");Se("\\dotsx","\\ldots\\,");Se("\\DOTSI","\\relax");Se("\\DOTSB","\\relax");Se("\\DOTSX","\\relax");Se("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Se("\\,","\\tmspace+{3mu}{.1667em}");Se("\\thinspace","\\,");Se("\\>","\\mskip{4mu}");Se("\\:","\\tmspace+{4mu}{.2222em}");Se("\\medspace","\\:");Se("\\;","\\tmspace+{5mu}{.2777em}");Se("\\thickspace","\\;");Se("\\!","\\tmspace-{3mu}{.1667em}");Se("\\negthinspace","\\!");Se("\\negmedspace","\\tmspace-{4mu}{.2222em}");Se("\\negthickspace","\\tmspace-{5mu}{.277em}");Se("\\enspace","\\kern.5em ");Se("\\enskip","\\hskip.5em\\relax");Se("\\quad","\\hskip1em\\relax");Se("\\qquad","\\hskip2em\\relax");Se("\\tag","\\@ifstar\\tag@literal\\tag@paren");Se("\\tag@paren","\\tag@literal{({#1})}");Se("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Yt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Se("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Se("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Se("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Se("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Se("\\newline","\\\\\\relax");Se("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Mye=tr(jc["Main-Regular"][84][1]-.7*jc["Main-Regular"][65][1]);Se("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Mye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Se("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Mye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Se("\\hspace","\\@ifstar\\@hspacer\\@hspace");Se("\\@hspace","\\hskip #1\\relax");Se("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Se("\\ordinarycolon",":");Se("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Se("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Se("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Se("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Se("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Se("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Se("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Se("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Se("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Se("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Se("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Se("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Se("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Se("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Se("∷","\\dblcolon");Se("∹","\\eqcolon");Se("≔","\\coloneqq");Se("≕","\\eqqcolon");Se("⩴","\\Coloneqq");Se("\\ratio","\\vcentcolon");Se("\\coloncolon","\\dblcolon");Se("\\colonequals","\\coloneqq");Se("\\coloncolonequals","\\Coloneqq");Se("\\equalscolon","\\eqqcolon");Se("\\equalscoloncolon","\\Eqqcolon");Se("\\colonminus","\\coloneq");Se("\\coloncolonminus","\\Coloneq");Se("\\minuscolon","\\eqcolon");Se("\\minuscoloncolon","\\Eqcolon");Se("\\coloncolonapprox","\\Colonapprox");Se("\\coloncolonsim","\\Colonsim");Se("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Se("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Se("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Se("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Se("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Se("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Se("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Se("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Se("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Se("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Se("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Se("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Se("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Se("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Se("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Se("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Se("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Se("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Se("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Se("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Se("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Se("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Se("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Se("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Se("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Se("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Se("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Se("\\imath","\\html@mathml{\\@imath}{ı}");Se("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Se("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Se("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Se("⟦","\\llbracket");Se("⟧","\\rrbracket");Se("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Se("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Se("⦃","\\lBrace");Se("⦄","\\rBrace");Se("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Se("⦵","\\minuso");Se("\\darr","\\downarrow");Se("\\dArr","\\Downarrow");Se("\\Darr","\\Downarrow");Se("\\lang","\\langle");Se("\\rang","\\rangle");Se("\\uarr","\\uparrow");Se("\\uArr","\\Uparrow");Se("\\Uarr","\\Uparrow");Se("\\N","\\mathbb{N}");Se("\\R","\\mathbb{R}");Se("\\Z","\\mathbb{Z}");Se("\\alef","\\aleph");Se("\\alefsym","\\aleph");Se("\\Alpha","\\mathrm{A}");Se("\\Beta","\\mathrm{B}");Se("\\bull","\\bullet");Se("\\Chi","\\mathrm{X}");Se("\\clubs","\\clubsuit");Se("\\cnums","\\mathbb{C}");Se("\\Complex","\\mathbb{C}");Se("\\Dagger","\\ddagger");Se("\\diamonds","\\diamondsuit");Se("\\empty","\\emptyset");Se("\\Epsilon","\\mathrm{E}");Se("\\Eta","\\mathrm{H}");Se("\\exist","\\exists");Se("\\harr","\\leftrightarrow");Se("\\hArr","\\Leftrightarrow");Se("\\Harr","\\Leftrightarrow");Se("\\hearts","\\heartsuit");Se("\\image","\\Im");Se("\\infin","\\infty");Se("\\Iota","\\mathrm{I}");Se("\\isin","\\in");Se("\\Kappa","\\mathrm{K}");Se("\\larr","\\leftarrow");Se("\\lArr","\\Leftarrow");Se("\\Larr","\\Leftarrow");Se("\\lrarr","\\leftrightarrow");Se("\\lrArr","\\Leftrightarrow");Se("\\Lrarr","\\Leftrightarrow");Se("\\Mu","\\mathrm{M}");Se("\\natnums","\\mathbb{N}");Se("\\Nu","\\mathrm{N}");Se("\\Omicron","\\mathrm{O}");Se("\\plusmn","\\pm");Se("\\rarr","\\rightarrow");Se("\\rArr","\\Rightarrow");Se("\\Rarr","\\Rightarrow");Se("\\real","\\Re");Se("\\reals","\\mathbb{R}");Se("\\Reals","\\mathbb{R}");Se("\\Rho","\\mathrm{P}");Se("\\sdot","\\cdot");Se("\\sect","\\S");Se("\\spades","\\spadesuit");Se("\\sub","\\subset");Se("\\sube","\\subseteq");Se("\\supe","\\supseteq");Se("\\Tau","\\mathrm{T}");Se("\\thetasym","\\vartheta");Se("\\weierp","\\wp");Se("\\Zeta","\\mathrm{Z}");Se("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Se("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Se("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Se("\\bra","\\mathinner{\\langle{#1}|}");Se("\\ket","\\mathinner{|{#1}\\rangle}");Se("\\braket","\\mathinner{\\langle{#1}\\rangle}");Se("\\Bra","\\left\\langle#1\\right|");Se("\\Ket","\\left|#1\\right\\rangle");var Pye=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",o));var p=h;if(!h&&a.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...i,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};Se("\\bra@ket",Pye(!1));Se("\\bra@set",Pye(!0));Se("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Se("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Se("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Se("\\angln","{\\angl n}");Se("\\blue","\\textcolor{##6495ed}{#1}");Se("\\orange","\\textcolor{##ffa500}{#1}");Se("\\pink","\\textcolor{##ff00af}{#1}");Se("\\red","\\textcolor{##df0030}{#1}");Se("\\green","\\textcolor{##28ae7b}{#1}");Se("\\gray","\\textcolor{gray}{#1}");Se("\\purple","\\textcolor{##9d38bd}{#1}");Se("\\blueA","\\textcolor{##ccfaff}{#1}");Se("\\blueB","\\textcolor{##80f6ff}{#1}");Se("\\blueC","\\textcolor{##63d9ea}{#1}");Se("\\blueD","\\textcolor{##11accd}{#1}");Se("\\blueE","\\textcolor{##0c7f99}{#1}");Se("\\tealA","\\textcolor{##94fff5}{#1}");Se("\\tealB","\\textcolor{##26edd5}{#1}");Se("\\tealC","\\textcolor{##01d1c1}{#1}");Se("\\tealD","\\textcolor{##01a995}{#1}");Se("\\tealE","\\textcolor{##208170}{#1}");Se("\\greenA","\\textcolor{##b6ffb0}{#1}");Se("\\greenB","\\textcolor{##8af281}{#1}");Se("\\greenC","\\textcolor{##74cf70}{#1}");Se("\\greenD","\\textcolor{##1fab54}{#1}");Se("\\greenE","\\textcolor{##0d923f}{#1}");Se("\\goldA","\\textcolor{##ffd0a9}{#1}");Se("\\goldB","\\textcolor{##ffbb71}{#1}");Se("\\goldC","\\textcolor{##ff9c39}{#1}");Se("\\goldD","\\textcolor{##e07d10}{#1}");Se("\\goldE","\\textcolor{##a75a05}{#1}");Se("\\redA","\\textcolor{##fca9a9}{#1}");Se("\\redB","\\textcolor{##ff8482}{#1}");Se("\\redC","\\textcolor{##f9685d}{#1}");Se("\\redD","\\textcolor{##e84d39}{#1}");Se("\\redE","\\textcolor{##bc2612}{#1}");Se("\\maroonA","\\textcolor{##ffbde0}{#1}");Se("\\maroonB","\\textcolor{##ff92c6}{#1}");Se("\\maroonC","\\textcolor{##ed5fa6}{#1}");Se("\\maroonD","\\textcolor{##ca337c}{#1}");Se("\\maroonE","\\textcolor{##9e034e}{#1}");Se("\\purpleA","\\textcolor{##ddd7ff}{#1}");Se("\\purpleB","\\textcolor{##c6b9fc}{#1}");Se("\\purpleC","\\textcolor{##aa87ff}{#1}");Se("\\purpleD","\\textcolor{##7854ab}{#1}");Se("\\purpleE","\\textcolor{##543b78}{#1}");Se("\\mintA","\\textcolor{##f5f9e8}{#1}");Se("\\mintB","\\textcolor{##edf2df}{#1}");Se("\\mintC","\\textcolor{##e0e5cc}{#1}");Se("\\grayA","\\textcolor{##f6f7f7}{#1}");Se("\\grayB","\\textcolor{##f0f1f2}{#1}");Se("\\grayC","\\textcolor{##e3e5e6}{#1}");Se("\\grayD","\\textcolor{##d6d8da}{#1}");Se("\\grayE","\\textcolor{##babec2}{#1}");Se("\\grayF","\\textcolor{##888d93}{#1}");Se("\\grayG","\\textcolor{##626569}{#1}");Se("\\grayH","\\textcolor{##3b3e40}{#1}");Se("\\grayI","\\textcolor{##21242c}{#1}");Se("\\kaBlue","\\textcolor{##314453}{#1}");Se("\\kaGreen","\\textcolor{##71B307}{#1}");var Bye={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Sot{constructor(e,r,n){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new _ot(bot,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new $re(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,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new Mo("EOF",n.loc)),this.pushTokens(a),new Mo("",ho.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 a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new Yt("Extra }",i)}else if(i.text==="EOF")throw new Yt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}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],a=0;athis.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,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new Yt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new Yt("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new Yt("Not a valid argument number",l)}}}return this.pushTokens(i),i.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 Mo(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 a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}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 a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new $re(a,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||Hd.hasOwnProperty(e)||fa.math.hasOwnProperty(e)||fa.text.hasOwnProperty(e)||Bye.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Hd.hasOwnProperty(e)&&!Hd[e].primitive}}var Gre=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,c3=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),aD={"́":{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"}},qre={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Fye=class $ye{constructor(e,r){this.mode="math",this.gullet=new Sot(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 Mo("}")),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 a=this.fetch();if($ye.endOfExpression.has(a.text)||r&&a.text===r||e&&Hd[a.text]&&Hd[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a=128)this.settings.strict&&(qve(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:ho.range(e),text:r};else return null;if(this.consume(),i)for(var h=0;h0){if(++e>=dlt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Bm(t){return function(){return t}}var L6=(function(){try{var t=ug(Object,"defineProperty");return t({},"",{}),t}catch{}})(),glt=L6?function(t,e){return L6(t,"toString",{configurable:!0,enumerable:!1,value:Bm(e),writable:!0})}:lg,jye=plt(glt);function Qye(t,e){for(var r=-1,n=t==null?0:t.length;++r-1}var blt=9007199254740991,Elt=/^(?:0|[1-9]\d*)$/;function A7(t,e){var r=typeof t;return e=e??blt,!!e&&(r=="number"||r!="symbol"&&Elt.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=xlt}function zh(t){return t!=null&&Bq(t.length)&&!h4(t)}function f4(t,e,r){if(!Go(r))return!1;var n=typeof e;return(n=="number"?zh(r)&&A7(e,r.length):n=="string"&&e in r)?d2(r[e],t):!1}function Clt(t){return I7(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,s&&f4(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),e=Object(e);++n-1}function Lct(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 nd(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&$0t?new m4:void 0;for(i.set(t,e),i.set(e,t);++h2?e[2]:void 0;for(a&&f4(e[0],e[1],a)&&(n=1);++r-1?a[i?e[s]:s]:void 0}}var Adt=Math.max;function Rdt(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:Hot(r);return a<0&&(a=Adt(n+a,0)),Zye(t,Uh(e),a)}var jq=kdt(Rdt);function A_e(t,e){var r=-1,n=zh(t)?Array(t.length):[];return $7(t,function(a,i,s){n[++r]=e(a,i,s)}),n}function li(t,e){var r=ci(t)?o1:A_e;return r(t,Uh(e))}function Ndt(t,e){return t==null?t:Wq(t,Xq(e),dg)}function Idt(t,e){return t&&Kq(t,Xq(e))}function Odt(t,e){return t>e}var Ddt=Object.prototype,Ldt=Ddt.hasOwnProperty;function Mdt(t,e){return t!=null&&Ldt.call(t,e)}function R_e(t,e){return t!=null&&T_e(t,e,Mdt)}function Pdt(t,e){return o1(e,function(r){return t[r]})}function x0(t){return t==null?[]:Pdt(t,Lo(t))}var Bdt="[object Map]",Fdt="[object Set]",$dt=Object.prototype,zdt=$dt.hasOwnProperty;function bne(t){if(t==null)return!0;if(zh(t)&&(ci(t)||typeof t=="string"||typeof t.splice=="function"||Eb(t)||L7(t)||bb(t)))return!t.length;var e=ml(t);if(e==Bdt||e==Fdt)return!t.size;if(O7(t))return!i_e(t).length;for(var r in t)if(zdt.call(t,r))return!1;return!0}function Ka(t){return t===void 0}function N_e(t,e){return te||i&&s&&l&&!o&&!u||n&&s&&l||!r&&l||!a)return 1;if(!n&&!i&&!u&&t=o)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return t.index-e.index}function Vdt(t,e,r){e.length?e=o1(e,function(i){return ci(i)?function(s){return F7(s,i.length===1?i[0]:i)}:i}):e=[lg];var n=-1;e=o1(e,D7(Uh));var a=A_e(t,function(i,s,o){var l=o1(e,function(u){return u(i)});return{criteria:l,index:++n,value:i}});return qdt(a,function(i,s){return Hdt(i,s,r)})}function Wdt(t,e){return Gdt(t,e,function(r,n){return x_e(t,n)})}var B6=Xct(function(t,e){return t==null?{}:Wdt(t,e)}),Kdt=Math.ceil,Xdt=Math.max;function jdt(t,e,r,n){for(var a=-1,i=Xdt(Kdt((e-t)/(r||1)),0),s=Array(i);i--;)s[++a]=t,t+=r;return s}function Qdt(t){return function(e,r,n){return n&&typeof n!="number"&&f4(e,r,n)&&(r=n=void 0),e=b5(e),r===void 0?(r=e,e=0):r=b5(r),n=n===void 0?e1&&f4(t,e[0],e[1])?e=[]:r>2&&f4(e[0],e[1],e[2])&&(e=[e[0]]),Vdt(t,Uq(e),[])}),Jdt=1/0,eht=l1&&1/Hq(new l1([,-0]))[1]==Jdt?function(t){return new l1(t)}:ult,tht=200;function rht(t,e,r){var n=-1,a=_lt,i=t.length,s=!0,o=[],l=o;if(i>=tht){var u=eht(t);if(u)return Hq(u);s=!1,a=__e,l=new m4}else l=o;e:for(;++n1?a.setNode(i,r):a.setNode(i)}),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]=mf,this._children[e]={},this._children[mf][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(Lo(this._in[e]),r),delete this._in[e],delete this._preds[e],Rt(Lo(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(Ka(r))r=mf;else{r+="";for(var n=r;!Ka(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!==mf)return r}}children(e){if(Ka(e)&&(e=mf),this._isCompound){var r=this._children[e];if(r)return Lo(r)}else{if(e===mf)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return Lo(r)}successors(e){var r=this._sucs[e];if(r)return Lo(r)}neighbors(e){var r=this.predecessors(e);if(r)return nht(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 a={};function i(s){var o=n.parent(s);return o===void 0||r.hasNode(o)?(a[s]=o,o):o in a?a[o]:i(o)}return this._isCompound&&Rt(r.nodes(),function(s){r.setParent(s,i(s))}),r}setDefaultEdgeLabel(e){return h4(e)||(e=Bm(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return x0(this._edgeObjs)}setPath(e,r){var n=this,a=arguments;return NT(e,function(i,s){return a.length>1?n.setEdge(i,s,r):n.setEdge(i,s),s}),this}setEdge(){var e,r,n,a,i=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,r=s.w,n=s.name,arguments.length===2&&(a=arguments[1],i=!0)):(e=s,r=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],i=!0)),e=""+e,r=""+r,Ka(n)||(n=""+n);var o=RE(this._isDirected,e,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=a),this;if(!Ka(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[o]=i?a:this._defaultEdgeLabelFn(e,r,n);var l=lht(this._isDirected,e,r,n);return e=l.v,r=l.w,Object.freeze(l),this._edgeObjs[o]=l,Sne(this._preds[r],e),Sne(this._sucs[e],r),this._in[r][o]=l,this._out[e][o]=l,this._edgeCount++,this}edge(e,r,n){var a=arguments.length===1?lD(this._isDirected,arguments[0]):RE(this._isDirected,e,r,n);return this._edgeLabels[a]}hasEdge(e,r,n){var a=arguments.length===1?lD(this._isDirected,arguments[0]):RE(this._isDirected,e,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(e,r,n){var a=arguments.length===1?lD(this._isDirected,arguments[0]):RE(this._isDirected,e,r,n),i=this._edgeObjs[a];return i&&(e=i.v,r=i.w,delete this._edgeLabels[a],delete this._edgeObjs[a],Tne(this._preds[r],e),Tne(this._sucs[e],r),delete this._in[r][a],delete this._out[e][a],this._edgeCount--),this}inEdges(e,r){var n=this._in[e];if(n){var a=x0(n);return r?h0(a,function(i){return i.v===r}):a}}outEdges(e,r){var n=this._out[e];if(n){var a=x0(n);return r?h0(a,function(i){return i.w===r}):a}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n)return n.concat(this.outEdges(e,r))}}ko.prototype._nodeCount=0;ko.prototype._edgeCount=0;function Sne(t,e){t[e]?t[e]++:t[e]=1}function Tne(t,e){--t[e]||delete t[e]}function RE(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var s=a;a=i,i=s}return a+Ene+i+Ene+(Ka(n)?oht:n)}function lht(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var s=a;a=i,i=s}var o={v:a,w:i};return n&&(o.name=n),o}function lD(t,e){return RE(t,e.v,e.w,e.name)}class cht{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return xne(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&xne(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,uht)),n=n._prev;return"["+e.join(", ")+"]"}}function xne(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function uht(t,e){if(t!=="_next"&&t!=="_prev")return e}var dht=Bm(1);function hht(t,e){if(t.nodeCount()<=1)return[];var r=pht(t,e||dht),n=fht(r.graph,r.buckets,r.zeroIdx);return h2(li(n,function(a){return t.outEdges(a.v,a.w)}))}function fht(t,e,r){for(var n=[],a=e[e.length-1],i=e[0],s;t.nodeCount();){for(;s=i.dequeue();)cD(t,e,r,s);for(;s=a.dequeue();)cD(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(cD(t,e,r,s,!0));break}}}return n}function cD(t,e,r,n,a){var i=a?[]:void 0;return Rt(t.inEdges(n.v),function(s){var o=t.edge(s),l=t.node(s.v);a&&i.push({v:s.v,w:s.w}),l.out-=o,UB(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,UB(e,r,u)}),t.removeNode(n.v),i}function pht(t,e){var r=new ko,n=0,a=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),a=Math.max(a,r.node(o.v).out+=u),n=Math.max(n,r.node(o.w).in+=u)});var i=Tb(a+n+3).map(function(){return new cht}),s=n+1;return Rt(r.nodes(),function(o){UB(i,s,r.node(o))}),{graph:r,buckets:i,zeroIdx:s}}function UB(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 ght(t){var e=t.graph().acyclicer==="greedy"?hht(t,r(t)):mht(t);Rt(e,function(n){var a=t.edge(n);t.removeEdge(n),a.forwardName=n.name,a.reversed=!0,t.setEdge(n.w,n.v,a,Jq("rev"))});function r(n){return function(a){return n.edge(a).weight}}}function mht(t){var e=[],r={},n={};function a(i){Object.prototype.hasOwnProperty.call(n,i)||(n[i]=!0,r[i]=!0,Rt(t.outEdges(i),function(s){Object.prototype.hasOwnProperty.call(r,s.w)?e.push(s):a(s.w)}),delete r[i])}return Rt(t.nodes(),a),e}function vht(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 f2(t,e,r,n){var a;do a=Jq(n);while(t.hasNode(a));return r.dummy=e,t.setNode(a,r),a}function yht(t){var e=new ko().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},a=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),e}function I_e(t){var e=new ko({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 Cne(t,e){var r=t.x,n=t.y,a=e.x-r,i=e.y-n,s=t.width/2,o=t.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var l,u;return Math.abs(i)*s>Math.abs(a)*o?(i<0&&(o=-o),l=o*a/i,u=o):(a<0&&(s=-s),l=s,u=s*i/a),{x:r+l,y:n+u}}function U7(t){var e=li(Tb(O_e(t)+1),function(){return[]});return Rt(t.nodes(),function(r){var n=t.node(r),a=n.rank;Ka(a)||(e[a][n.order]=r)}),e}function _ht(t){var e=v4(li(t.nodes(),function(r){return t.node(r).rank}));Rt(t.nodes(),function(r){var n=t.node(r);R_e(n,"rank")&&(n.rank-=e)})}function bht(t){var e=v4(li(t.nodes(),function(i){return t.node(i).rank})),r=[];Rt(t.nodes(),function(i){var s=t.node(i).rank-e;r[s]||(r[s]=[]),r[s].push(i)});var n=0,a=t.graph().nodeRankFactor;Rt(r,function(i,s){Ka(i)&&s%a!==0?--n:n&&Rt(i,function(o){t.node(o).rank+=n})})}function wne(t,e,r,n){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),f2(t,"border",a,e)}function O_e(t){return zp(li(t.nodes(),function(e){var r=t.node(e).rank;if(!Ka(r))return r}))}function Eht(t,e){var r={lhs:[],rhs:[]};return Rt(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r}function Sht(t,e){return e()}function Tht(t){function e(r){var n=t.children(r),a=t.node(r);if(n.length&&Rt(n,e),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,s=a.maxRank+1;is.lim&&(o=s,l=!0);var u=h0(e.edges(),function(d){return l===Rne(t,t.node(d.v),o)&&l!==Rne(t,t.node(d.w),o)});return Zq(u,function(d){return y4(e,d)})}function U_e(t,e,r,n){var a=r.v,i=r.w;t.removeEdge(a,i),t.setEdge(n.v,n.w,{}),rY(t),tY(t,e),Fht(t,e)}function Fht(t,e){var r=jq(t.nodes(),function(a){return!e.node(a).parent}),n=Pht(t,r);n=n.slice(1),Rt(n,function(a){var i=t.node(a).parent,s=e.edge(a,i),o=!1;s||(s=e.edge(i,a),o=!0),e.node(a).rank=e.node(i).rank+(o?s.minlen:-s.minlen)})}function $ht(t,e,r){return t.hasEdge(e,r)}function Rne(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}function zht(t){switch(t.graph().ranker){case"network-simplex":Nne(t);break;case"tight-tree":Ght(t);break;case"longest-path":Uht(t);break;default:Nne(t)}}var Uht=eY;function Ght(t){eY(t),L_e(t)}function Nne(t){hg(t)}function qht(t){var e=f2(t,"root",{},"_root"),r=Yht(t),n=zp(x0(r))-1,a=2*n+1;t.graph().nestingRoot=e,Rt(t.edges(),function(s){t.edge(s).minlen*=a});var i=Hht(t)+1;Rt(t.children(),function(s){G_e(t,e,a,i,n,r,s)}),t.graph().nodeRankFactor=a}function G_e(t,e,r,n,a,i,s){var o=t.children(s);if(!o.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:r});return}var l=wne(t,"_bt"),u=wne(t,"_bb"),d=t.node(s);t.setParent(l,s),d.borderTop=l,t.setParent(u,s),d.borderBottom=u,Rt(o,function(h){G_e(t,e,r,n,a,i,h);var f=t.node(h),p=f.borderTop?f.borderTop:h,g=f.borderBottom?f.borderBottom:h,m=f.borderTop?n:2*n,v=p!==g?1:a-i[s]+1;t.setEdge(l,p,{weight:m,minlen:v,nestingEdge:!0}),t.setEdge(g,u,{weight:m,minlen:v,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:a+i[s]})}function Yht(t){var e={};function r(n,a){var i=t.children(n);i&&i.length&&Rt(i,function(s){r(s,a+1)}),e[n]=a}return Rt(t.children(),function(n){r(n,1)}),e}function Hht(t){return NT(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function Vht(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 Wht(t,e,r){var n={},a;Rt(r,function(i){for(var s=t.parent(i),o,l;s;){if(o=t.parent(s),o?(l=n[o],n[o]=s):(l=a,a=s),l&&l!==s){e.setEdge(l,s);return}s=o}})}function Kht(t,e,r){var n=Xht(t),a=new ko({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return t.node(i)});return Rt(t.nodes(),function(i){var s=t.node(i),o=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,o||n),Rt(t[r](i),function(l){var u=l.v===i?l.w:l.v,d=a.edge(u,i),h=Ka(d)?0:d.weight;a.setEdge(u,i,{weight:t.edge(l).weight+h})}),Object.prototype.hasOwnProperty.call(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),a}function Xht(t){for(var e;t.hasNode(e=Jq("_root")););return e}function jht(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 Zht(t){var e={},r=h0(t.nodes(),function(o){return!t.children(o).length}),n=zp(li(r,function(o){return t.node(o).rank})),a=li(Tb(n+1),function(){return[]});function i(o){if(!R_e(e,o)){e[o]=!0;var l=t.node(o);a[l.rank].push(o),Rt(t.successors(o),i)}}var s=IT(r,function(o){return t.node(o).rank});return Rt(s,i),a}function Jht(t,e){return li(e,function(r){var n=t.inEdges(r);if(n.length){var a=NT(n,function(i,s){var o=t.edge(s),l=t.node(s.v);return{sum:i.sum+o.weight*l.order,weight:i.weight+o.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function eft(t,e){var r={};Rt(t,function(a,i){var s=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};Ka(a.barycenter)||(s.barycenter=a.barycenter,s.weight=a.weight)}),Rt(e.edges(),function(a){var i=r[a.v],s=r[a.w];!Ka(i)&&!Ka(s)&&(s.indegree++,i.out.push(r[a.w]))});var n=h0(r,function(a){return!a.indegree});return tft(n)}function tft(t){var e=[];function r(i){return function(s){s.merged||(Ka(s.barycenter)||Ka(i.barycenter)||s.barycenter>=i.barycenter)&&rft(i,s)}}function n(i){return function(s){s.in.push(i),--s.indegree===0&&t.push(s)}}for(;t.length;){var a=t.pop();e.push(a),Rt(a.in.reverse(),r(a)),Rt(a.out,n(a))}return li(h0(e,function(i){return!i.merged}),function(i){return B6(i,["vs","i","barycenter","weight"])})}function rft(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 nft(t,e){var r=Eht(t,function(d){return Object.prototype.hasOwnProperty.call(d,"barycenter")}),n=r.lhs,a=IT(r.rhs,function(d){return-d.i}),i=[],s=0,o=0,l=0;n.sort(aft(!!e)),l=Ine(i,a,l),Rt(n,function(d){l+=d.vs.length,i.push(d.vs),s+=d.barycenter*d.weight,o+=d.weight,l=Ine(i,a,l)});var u={vs:h2(i)};return o&&(u.barycenter=s/o,u.weight=o),u}function Ine(t,e,r){for(var n;e.length&&(n=P6(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function aft(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}function q_e(t,e,r,n){var a=t.children(e),i=t.node(e),s=i?i.borderLeft:void 0,o=i?i.borderRight:void 0,l={};s&&(a=h0(a,function(g){return g!==s&&g!==o}));var u=Jht(t,a);Rt(u,function(g){if(t.children(g.v).length){var m=q_e(t,g.v,r,n);l[g.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&sft(g,m)}});var d=eft(u,r);ift(d,l);var h=nft(d,n);if(s&&(h.vs=h2([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 ift(t,e){Rt(t,function(r){r.vs=h2(r.vs.map(function(n){return e[n]?e[n].vs:n}))})}function sft(t,e){Ka(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 oft(t){var e=O_e(t),r=One(t,Tb(1,e+1),"inEdges"),n=One(t,Tb(e-1,-1,-1),"outEdges"),a=Zht(t);Dne(t,a);for(var i=Number.POSITIVE_INFINITY,s,o=0,l=0;l<4;++o,++l){lft(o%2?r:n,o%4>=2),a=U7(t);var u=jht(t,a);us||o>e[l].lim));for(u=l,l=n;(l=t.parent(l))!==u;)i.push(l);return{path:a.concat(i.reverse()),lca:u}}function dft(t){var e={},r=0;function n(a){var i=r;Rt(t.children(a),n),e[a]={low:i,lim:r++}}return Rt(t.children(),n),e}function hft(t,e){var r={};function n(a,i){var s=0,o=0,l=a.length,u=P6(i);return Rt(i,function(d,h){var f=pft(t,d),p=f?t.node(f).order:l;(f||d===u)&&(Rt(i.slice(o,h+1),function(g){Rt(t.predecessors(g),function(m){var v=t.node(m),y=v.order;(yu)&&Y_e(r,f,d)})})}function a(i,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,i.length)}),s}return NT(e,a),r}function pft(t,e){if(t.node(e).dummy)return jq(t.predecessors(e),function(r){return t.node(r).dummy})}function Y_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 a=t[e];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function gft(t,e,r){if(e>r){var n=e;e=r,r=n}return!!t[e]&&Object.prototype.hasOwnProperty.call(t[e],r)}function mft(t,e,r,n){var a={},i={},s={};return Rt(e,function(o){Rt(o,function(l,u){a[l]=l,i[l]=l,s[l]=u})}),Rt(e,function(o){var l=-1;Rt(o,function(u){var d=n(u);if(d.length){d=IT(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];i[u]===u&&l{var n=r(" buildLayoutGraph",()=>Bft(t));r(" runLayout",()=>kft(n,r)),r(" updateInputGraph",()=>Aft(t,n))})}function kft(t,e){e(" makeSpaceForEdgeLabels",()=>Fft(t)),e(" removeSelfEdges",()=>Wft(t)),e(" acyclic",()=>ght(t)),e(" nestingGraph.run",()=>qht(t)),e(" rank",()=>zht(I_e(t))),e(" injectEdgeLabelProxies",()=>$ft(t)),e(" removeEmptyRanks",()=>bht(t)),e(" nestingGraph.cleanup",()=>Vht(t)),e(" normalizeRanks",()=>_ht(t)),e(" assignRankMinMax",()=>zft(t)),e(" removeEdgeLabelProxies",()=>Uft(t)),e(" normalize.run",()=>Aht(t)),e(" parentDummyChains",()=>cft(t)),e(" addBorderSegments",()=>Tht(t)),e(" order",()=>oft(t)),e(" insertSelfEdges",()=>Kft(t)),e(" adjustCoordinateSystem",()=>xht(t)),e(" position",()=>Cft(t)),e(" positionSelfEdges",()=>Xft(t)),e(" removeBorderNodes",()=>Vft(t)),e(" normalize.undo",()=>Nht(t)),e(" fixupEdgeLabelCoords",()=>Yft(t)),e(" undoCoordinateSystem",()=>Cht(t)),e(" translateGraph",()=>Gft(t)),e(" assignNodeIntersects",()=>qft(t)),e(" reversePoints",()=>Hft(t)),e(" acyclic.undo",()=>vht(t))}function Aft(t,e){Rt(t.nodes(),function(r){var n=t.node(r),a=e.node(r);n&&(n.x=a.x,n.y=a.y,e.children(r).length&&(n.width=a.width,n.height=a.height))}),Rt(t.edges(),function(r){var n=t.edge(r),a=e.edge(r);n.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(n.x=a.x,n.y=a.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}var Rft=["nodesep","edgesep","ranksep","marginx","marginy"],Nft={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ift=["acyclicer","ranker","rankdir","align"],Oft=["width","height"],Dft={width:0,height:0},Lft=["minlen","weight","width","height","labeloffset"],Mft={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Pft=["labelpos"];function Bft(t){var e=new ko({multigraph:!0,compound:!0}),r=fD(t.graph());return e.setGraph(zB({},Nft,hD(r,Rft),B6(r,Ift))),Rt(t.nodes(),function(n){var a=fD(t.node(n));e.setNode(n,Tdt(hD(a,Oft),Dft)),e.setParent(n,t.parent(n))}),Rt(t.edges(),function(n){var a=fD(t.edge(n));e.setEdge(n,zB({},Mft,hD(a,Lft),B6(a,Pft)))}),e}function Fft(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 $ft(t){Rt(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),a=t.node(e.w),i={rank:(a.rank-n.rank)/2+n.rank,e};f2(t,"edge-proxy",i,"_ep")}})}function zft(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=zp(e,n.maxRank))}),t.graph().maxRank=e}function Uft(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 Gft(t){var e=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,a=0,i=t.graph(),s=i.marginx||0,o=i.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),a=Math.max(a,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)}),i.width=r-e+s,i.height=a-n+o}function qft(t){Rt(t.edges(),function(e){var r=t.edge(e),n=t.node(e.v),a=t.node(e.w),i,s;r.points?(i=r.points[0],s=r.points[r.points.length-1]):(r.points=[],i=a,s=n),r.points.unshift(Cne(n,i)),r.points.push(Cne(a,s))})}function Yft(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 Hft(t){Rt(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function Vft(t){Rt(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),a=t.node(r.borderBottom),i=t.node(P6(r.borderLeft)),s=t.node(P6(r.borderRight));r.width=Math.abs(s.x-i.x),r.height=Math.abs(a.y-n.y),r.x=i.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 Wft(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 Kft(t){var e=U7(t);Rt(e,function(r){var n=0;Rt(r,function(a,i){var s=t.node(a);s.order=i+n,Rt(s.selfEdges,function(o){f2(t,"selfedge",{width:o.label.width,height:o.label.height,rank:s.rank,order:i+ ++n,e:o.e,label:o.label},"_se")}),delete s.selfEdges})})}function Xft(t){Rt(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var n=t.node(r.e.v),a=n.x+n.width/2,i=n.y,s=r.x-a,o=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:a+2*s/3,y:i-o},{x:a+5*s/6,y:i-o},{x:a+s,y:i},{x:a+5*s/6,y:i+o},{x:a+2*s/3,y:i+o}],r.label.x=r.x,r.label.y=r.y}})}function hD(t,e){return z7(B6(t,e),Number)}function fD(t){var e={};return Rt(t,function(r,n){e[n.toLowerCase()]=r}),e}function Qc(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:jft(t),edges:Qft(t)};return Ka(t.graph())||(e.value=N0t(t.graph())),e}function jft(t){return li(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),a={v:e};return Ka(r)||(a.value=r),Ka(n)||(a.parent=n),a})}function Qft(t){return li(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return Ka(e.name)||(n.name=e.name),Ka(r)||(n.value=r),n})}var an=new Map,up=new Map,V_e=new Map,Zft=E(()=>{up.clear(),V_e.clear(),an.clear()},"clear"),F6=E((t,e)=>{const r=up.get(e)||[];return oe.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),Jft=E((t,e)=>{const r=up.get(e)||[];return oe.info("Descendants of ",e," is ",r),oe.info("Edge is ",t),t.v===e||t.w===e?!1:r?r.includes(t.v)||F6(t.v,e)||F6(t.w,e)||r.includes(t.w):(oe.debug("Tilt, ",e,",not in descendants"),!1)},"edgeInCluster"),W_e=E((t,e,r,n)=>{oe.warn("Copying children of ",t,"root",n,"data",e.node(t),n);const a=e.children(t)||[];t!==n&&a.push(t),oe.warn("Copying (nodes) clusterId",t,"nodes",a),a.forEach(i=>{if(e.children(i).length>0)W_e(i,e,r,n);else{const s=e.node(i);oe.info("cp ",i," to ",n," with parent ",t),r.setNode(i,s),n!==e.parent(i)&&(oe.warn("Setting parent",i,e.parent(i)),r.setParent(i,e.parent(i))),t!==n&&i!==t?(oe.debug("Setting parent",i,t),r.setParent(i,t)):(oe.info("In copy ",t,"root",n,"data",e.node(t),n),oe.debug("Not Setting parent for node=",i,"cluster!==rootId",t!==n,"node!==clusterId",i!==t));const o=e.edges(i);oe.debug("Copying Edges",o),o.forEach(l=>{oe.info("Edge",l);const u=e.edge(l.v,l.w,l.name);oe.info("Edge data",u,n);try{Jft(l,n)?(oe.info("Copying as ",l.v,l.w,u,l.name),r.setEdge(l.v,l.w,u,l.name),oe.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):oe.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",n," clusterId:",t)}catch(d){oe.error(d)}})}oe.debug("Removing node",i),e.removeNode(i)})},"copy"),K_e=E((t,e)=>{const r=e.children(t);let n=[...r];for(const a of r)V_e.set(a,t),n=[...n,...K_e(a,e)];return n},"extractDescendants"),ept=E((t,e,r)=>{const n=t.edges().filter(l=>l.v===e||l.w===e),a=t.edges().filter(l=>l.v===r||l.w===r),i=n.map(l=>({v:l.v===e?r:l.v,w:l.w===e?e:l.w})),s=a.map(l=>({v:l.v,w:l.w}));return i.filter(l=>s.some(u=>l.v===u.v&&l.w===u.w))},"findCommonEdges"),_4=E((t,e,r)=>{const n=e.children(t);if(oe.trace("Searching children of id ",t,n),n.length<1)return t;let a;for(const i of n){const s=_4(i,e,r),o=ept(e,r,s);if(s)if(o.length>0)a=s;else return s}return a},"findNonClusterChild"),Lne=E(t=>!an.has(t)||!an.get(t).externalConnections?t:an.has(t)?an.get(t).id:t,"getAnchorId"),tpt=E((t,e)=>{if(!t||e>10){oe.debug("Opting out, no graph ");return}else oe.debug("Opting in, graph ");t.nodes().forEach(function(r){t.children(r).length>0&&(oe.warn("Cluster identified",r," Replacement id in edges: ",_4(r,t,r)),up.set(r,K_e(r,t)),an.set(r,{id:_4(r,t,r),clusterData:t.node(r)}))}),t.nodes().forEach(function(r){const n=t.children(r),a=t.edges();n.length>0?(oe.debug("Cluster identified",r,up),a.forEach(i=>{const s=F6(i.v,r),o=F6(i.w,r);s^o&&(oe.warn("Edge: ",i," leaves cluster ",r),oe.warn("Descendants of XXX ",r,": ",up.get(r)),an.get(r).externalConnections=!0)})):oe.debug("Not a cluster ",r,up)});for(let r of an.keys()){const n=an.get(r).id,a=t.parent(n);a!==r&&an.has(a)&&!an.get(a).externalConnections&&(an.get(r).id=a)}t.edges().forEach(function(r){const n=t.edge(r);oe.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),oe.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let a=r.v,i=r.w;if(oe.warn("Fix XXX",an,"ids:",r.v,r.w,"Translating: ",an.get(r.v)," --- ",an.get(r.w)),an.get(r.v)||an.get(r.w)){if(oe.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),a=Lne(r.v),i=Lne(r.w),t.removeEdge(r.v,r.w,r.name),a!==r.v){const s=t.parent(a);an.get(s).externalConnections=!0,n.fromCluster=r.v}if(i!==r.w){const s=t.parent(i);an.get(s).externalConnections=!0,n.toCluster=r.w}oe.warn("Fix Replacing with XXX",a,i,r.name),t.setEdge(a,i,n,r.name)}}),oe.warn("Adjusted Graph",Qc(t)),X_e(t,0),oe.trace(an)},"adjustClustersAndEdges"),X_e=E((t,e)=>{if(oe.warn("extractor - ",e,Qc(t),t.children("D")),e>10){oe.error("Bailing out");return}let r=t.nodes(),n=!1;for(const a of r){const i=t.children(a);n=n||i.length>0}if(!n){oe.debug("Done, no node has children",t.nodes());return}oe.debug("Nodes = ",r,e);for(const a of r)if(oe.debug("Extracting node",a,an,an.has(a)&&!an.get(a).externalConnections,!t.parent(a),t.node(a),t.children("D")," Depth ",e),!an.has(a))oe.debug("Not a cluster",a,e);else if(!an.get(a).externalConnections&&t.children(a)&&t.children(a).length>0){oe.warn("Cluster without external connections, without a parent and with children",a,e);let s=t.graph().rankdir==="TB"?"LR":"TB";an.get(a)?.clusterData?.dir&&(s=an.get(a).clusterData.dir,oe.warn("Fixing dir",an.get(a).clusterData.dir,s));const o=new ko({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});oe.warn("Old graph before copy",Qc(t)),W_e(a,t,o,a),t.setNode(a,{clusterNode:!0,id:a,clusterData:an.get(a).clusterData,label:an.get(a).label,graph:o}),oe.warn("New graph after copy node: (",a,")",Qc(o)),oe.debug("Old graph after copy",Qc(t))}else oe.warn("Cluster ** ",a," **not meeting the criteria !externalConnections:",!an.get(a).externalConnections," no parent: ",!t.parent(a)," children ",t.children(a)&&t.children(a).length>0,t.children("D"),e),oe.debug(an);r=t.nodes(),oe.warn("New list of nodes",r);for(const a of r){const i=t.node(a);oe.warn(" Now next level",a,i),i?.clusterNode&&X_e(i.graph,e+1)}},"extractor"),j_e=E((t,e)=>{if(e.length===0)return[];let r=Object.assign([],e);return e.forEach(n=>{const a=t.children(n),i=j_e(t,a);r=[...r,...i]}),r},"sorter"),rpt=E(t=>j_e(t,t.children()),"sortNodesByHierarchy"),Q_e=E(async(t,e,r,n,a,i)=>{oe.warn("Graph in recursive render:XAX",Qc(e),a);const s=e.graph().rankdir;oe.trace("Dir in recursive render - dir:",s);const o=t.insert("g").attr("class","root");e.nodes()?oe.info("Recursive render XXX",e.nodes()):oe.info("No nodes found for",e),e.edges().length>0&&oe.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 v=e.node(m);if(a!==void 0){const y=JSON.parse(JSON.stringify(a.clusterData));oe.trace(`Setting data for parent cluster XXX +?)[ \r ]*`,DB="[̀-ͯ]",yot=new RegExp(DB+"+$"),_ot="("+Lye+"+)|"+(vot+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(DB+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(DB+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+mot)+("|"+got+")");let $re=class{constructor(e,r){this.input=e,this.settings=r,this.tokenRegex=new RegExp(_ot,"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 Mo("EOF",new ho(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new Yt("Unexpected character: '"+e[r]+"'",new Mo(e[r],new ho(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new Mo(a,new ho(this,r,this.tokenRegex.lastIndex))}};class bot{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 a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var Eot=Tye;Se("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});Se("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});Se("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});Se("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});Se("\\@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}});Se("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Se("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var zre={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};Se("\\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=zre[e.text],n==null||n>=r)throw new Yt("Invalid base-"+r+" digit "+e.text);for(var a;(a=zre[t.future().text])!=null&&a{var a=t.consumeArg().tokens;if(a.length!==1)throw new Yt("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new Yt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new Yt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[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),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};Se("\\newcommand",t=>Dq(t,!1,!0,!1));Se("\\renewcommand",t=>Dq(t,!0,!1,!1));Se("\\providecommand",t=>Dq(t,!0,!0,!0));Se("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});Se("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});Se("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),Hd[r],fa.math[r],fa.text[r]),""});Se("\\bgroup","{");Se("\\egroup","}");Se("~","\\nobreakspace");Se("\\lq","`");Se("\\rq","'");Se("\\aa","\\r a");Se("\\AA","\\r A");Se("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Se("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Se("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Se("ℬ","\\mathscr{B}");Se("ℰ","\\mathscr{E}");Se("ℱ","\\mathscr{F}");Se("ℋ","\\mathscr{H}");Se("ℐ","\\mathscr{I}");Se("ℒ","\\mathscr{L}");Se("ℳ","\\mathscr{M}");Se("ℛ","\\mathscr{R}");Se("ℭ","\\mathfrak{C}");Se("ℌ","\\mathfrak{H}");Se("ℨ","\\mathfrak{Z}");Se("\\Bbbk","\\Bbb{k}");Se("\\llap","\\mathllap{\\textrm{#1}}");Se("\\rlap","\\mathrlap{\\textrm{#1}}");Se("\\clap","\\mathclap{\\textrm{#1}}");Se("\\mathstrut","\\vphantom{(}");Se("\\underbar","\\underline{\\text{#1}}");Se("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Se("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Se("\\ne","\\neq");Se("≠","\\neq");Se("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Se("∉","\\notin");Se("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Se("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Se("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Se("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Se("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Se("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Se("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Se("⟂","\\perp");Se("‼","\\mathclose{!\\mkern-0.8mu!}");Se("∌","\\notni");Se("⌜","\\ulcorner");Se("⌝","\\urcorner");Se("⌞","\\llcorner");Se("⌟","\\lrcorner");Se("©","\\copyright");Se("®","\\textregistered");Se("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Se("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Se("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Se("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Se("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Se("⋮","\\vdots");Se("\\varGamma","\\mathit{\\Gamma}");Se("\\varDelta","\\mathit{\\Delta}");Se("\\varTheta","\\mathit{\\Theta}");Se("\\varLambda","\\mathit{\\Lambda}");Se("\\varXi","\\mathit{\\Xi}");Se("\\varPi","\\mathit{\\Pi}");Se("\\varSigma","\\mathit{\\Sigma}");Se("\\varUpsilon","\\mathit{\\Upsilon}");Se("\\varPhi","\\mathit{\\Phi}");Se("\\varPsi","\\mathit{\\Psi}");Se("\\varOmega","\\mathit{\\Omega}");Se("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Se("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Se("\\boxed","\\fbox{$\\displaystyle{#1}$}");Se("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Se("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Se("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Se("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Se("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ure={",":"\\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"},Sot=new Set(["bin","rel"]);Se("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in Ure?e=Ure[r]:(r.slice(0,4)==="\\not"||r in fa.math&&Sot.has(fa.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};Se("\\dotso",function(t){var e=t.future().text;return e in Lq?"\\ldots\\,":"\\ldots"});Se("\\dotsc",function(t){var e=t.future().text;return e in Lq&&e!==","?"\\ldots\\,":"\\ldots"});Se("\\cdots",function(t){var e=t.future().text;return e in Lq?"\\@cdots\\,":"\\@cdots"});Se("\\dotsb","\\cdots");Se("\\dotsm","\\cdots");Se("\\dotsi","\\!\\cdots");Se("\\dotsx","\\ldots\\,");Se("\\DOTSI","\\relax");Se("\\DOTSB","\\relax");Se("\\DOTSX","\\relax");Se("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Se("\\,","\\tmspace+{3mu}{.1667em}");Se("\\thinspace","\\,");Se("\\>","\\mskip{4mu}");Se("\\:","\\tmspace+{4mu}{.2222em}");Se("\\medspace","\\:");Se("\\;","\\tmspace+{5mu}{.2777em}");Se("\\thickspace","\\;");Se("\\!","\\tmspace-{3mu}{.1667em}");Se("\\negthinspace","\\!");Se("\\negmedspace","\\tmspace-{4mu}{.2222em}");Se("\\negthickspace","\\tmspace-{5mu}{.277em}");Se("\\enspace","\\kern.5em ");Se("\\enskip","\\hskip.5em\\relax");Se("\\quad","\\hskip1em\\relax");Se("\\qquad","\\hskip2em\\relax");Se("\\tag","\\@ifstar\\tag@literal\\tag@paren");Se("\\tag@paren","\\tag@literal{({#1})}");Se("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Yt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Se("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Se("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Se("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Se("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Se("\\newline","\\\\\\relax");Se("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Mye=tr(jc["Main-Regular"][84][1]-.7*jc["Main-Regular"][65][1]);Se("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Mye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Se("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Mye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Se("\\hspace","\\@ifstar\\@hspacer\\@hspace");Se("\\@hspace","\\hskip #1\\relax");Se("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Se("\\ordinarycolon",":");Se("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Se("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Se("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Se("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Se("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Se("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Se("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Se("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Se("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Se("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Se("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Se("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Se("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Se("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Se("∷","\\dblcolon");Se("∹","\\eqcolon");Se("≔","\\coloneqq");Se("≕","\\eqqcolon");Se("⩴","\\Coloneqq");Se("\\ratio","\\vcentcolon");Se("\\coloncolon","\\dblcolon");Se("\\colonequals","\\coloneqq");Se("\\coloncolonequals","\\Coloneqq");Se("\\equalscolon","\\eqqcolon");Se("\\equalscoloncolon","\\Eqqcolon");Se("\\colonminus","\\coloneq");Se("\\coloncolonminus","\\Coloneq");Se("\\minuscolon","\\eqcolon");Se("\\minuscoloncolon","\\Eqcolon");Se("\\coloncolonapprox","\\Colonapprox");Se("\\coloncolonsim","\\Colonsim");Se("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Se("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Se("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Se("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Se("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Se("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Se("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Se("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Se("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Se("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Se("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Se("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Se("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Se("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Se("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Se("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Se("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Se("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Se("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Se("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Se("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Se("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Se("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Se("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Se("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Se("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Se("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Se("\\imath","\\html@mathml{\\@imath}{ı}");Se("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Se("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Se("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Se("⟦","\\llbracket");Se("⟧","\\rrbracket");Se("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Se("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Se("⦃","\\lBrace");Se("⦄","\\rBrace");Se("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Se("⦵","\\minuso");Se("\\darr","\\downarrow");Se("\\dArr","\\Downarrow");Se("\\Darr","\\Downarrow");Se("\\lang","\\langle");Se("\\rang","\\rangle");Se("\\uarr","\\uparrow");Se("\\uArr","\\Uparrow");Se("\\Uarr","\\Uparrow");Se("\\N","\\mathbb{N}");Se("\\R","\\mathbb{R}");Se("\\Z","\\mathbb{Z}");Se("\\alef","\\aleph");Se("\\alefsym","\\aleph");Se("\\Alpha","\\mathrm{A}");Se("\\Beta","\\mathrm{B}");Se("\\bull","\\bullet");Se("\\Chi","\\mathrm{X}");Se("\\clubs","\\clubsuit");Se("\\cnums","\\mathbb{C}");Se("\\Complex","\\mathbb{C}");Se("\\Dagger","\\ddagger");Se("\\diamonds","\\diamondsuit");Se("\\empty","\\emptyset");Se("\\Epsilon","\\mathrm{E}");Se("\\Eta","\\mathrm{H}");Se("\\exist","\\exists");Se("\\harr","\\leftrightarrow");Se("\\hArr","\\Leftrightarrow");Se("\\Harr","\\Leftrightarrow");Se("\\hearts","\\heartsuit");Se("\\image","\\Im");Se("\\infin","\\infty");Se("\\Iota","\\mathrm{I}");Se("\\isin","\\in");Se("\\Kappa","\\mathrm{K}");Se("\\larr","\\leftarrow");Se("\\lArr","\\Leftarrow");Se("\\Larr","\\Leftarrow");Se("\\lrarr","\\leftrightarrow");Se("\\lrArr","\\Leftrightarrow");Se("\\Lrarr","\\Leftrightarrow");Se("\\Mu","\\mathrm{M}");Se("\\natnums","\\mathbb{N}");Se("\\Nu","\\mathrm{N}");Se("\\Omicron","\\mathrm{O}");Se("\\plusmn","\\pm");Se("\\rarr","\\rightarrow");Se("\\rArr","\\Rightarrow");Se("\\Rarr","\\Rightarrow");Se("\\real","\\Re");Se("\\reals","\\mathbb{R}");Se("\\Reals","\\mathbb{R}");Se("\\Rho","\\mathrm{P}");Se("\\sdot","\\cdot");Se("\\sect","\\S");Se("\\spades","\\spadesuit");Se("\\sub","\\subset");Se("\\sube","\\subseteq");Se("\\supe","\\supseteq");Se("\\Tau","\\mathrm{T}");Se("\\thetasym","\\vartheta");Se("\\weierp","\\wp");Se("\\Zeta","\\mathrm{Z}");Se("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Se("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Se("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Se("\\bra","\\mathinner{\\langle{#1}|}");Se("\\ket","\\mathinner{|{#1}\\rangle}");Se("\\braket","\\mathinner{\\langle{#1}\\rangle}");Se("\\Bra","\\left\\langle#1\\right|");Se("\\Ket","\\left|#1\\right\\rangle");var Pye=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=h=>f=>{t&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",o));var p=h;if(!h&&a.length){var g=f.future();g.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...i,...u,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};Se("\\bra@ket",Pye(!1));Se("\\bra@set",Pye(!0));Se("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Se("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Se("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Se("\\angln","{\\angl n}");Se("\\blue","\\textcolor{##6495ed}{#1}");Se("\\orange","\\textcolor{##ffa500}{#1}");Se("\\pink","\\textcolor{##ff00af}{#1}");Se("\\red","\\textcolor{##df0030}{#1}");Se("\\green","\\textcolor{##28ae7b}{#1}");Se("\\gray","\\textcolor{gray}{#1}");Se("\\purple","\\textcolor{##9d38bd}{#1}");Se("\\blueA","\\textcolor{##ccfaff}{#1}");Se("\\blueB","\\textcolor{##80f6ff}{#1}");Se("\\blueC","\\textcolor{##63d9ea}{#1}");Se("\\blueD","\\textcolor{##11accd}{#1}");Se("\\blueE","\\textcolor{##0c7f99}{#1}");Se("\\tealA","\\textcolor{##94fff5}{#1}");Se("\\tealB","\\textcolor{##26edd5}{#1}");Se("\\tealC","\\textcolor{##01d1c1}{#1}");Se("\\tealD","\\textcolor{##01a995}{#1}");Se("\\tealE","\\textcolor{##208170}{#1}");Se("\\greenA","\\textcolor{##b6ffb0}{#1}");Se("\\greenB","\\textcolor{##8af281}{#1}");Se("\\greenC","\\textcolor{##74cf70}{#1}");Se("\\greenD","\\textcolor{##1fab54}{#1}");Se("\\greenE","\\textcolor{##0d923f}{#1}");Se("\\goldA","\\textcolor{##ffd0a9}{#1}");Se("\\goldB","\\textcolor{##ffbb71}{#1}");Se("\\goldC","\\textcolor{##ff9c39}{#1}");Se("\\goldD","\\textcolor{##e07d10}{#1}");Se("\\goldE","\\textcolor{##a75a05}{#1}");Se("\\redA","\\textcolor{##fca9a9}{#1}");Se("\\redB","\\textcolor{##ff8482}{#1}");Se("\\redC","\\textcolor{##f9685d}{#1}");Se("\\redD","\\textcolor{##e84d39}{#1}");Se("\\redE","\\textcolor{##bc2612}{#1}");Se("\\maroonA","\\textcolor{##ffbde0}{#1}");Se("\\maroonB","\\textcolor{##ff92c6}{#1}");Se("\\maroonC","\\textcolor{##ed5fa6}{#1}");Se("\\maroonD","\\textcolor{##ca337c}{#1}");Se("\\maroonE","\\textcolor{##9e034e}{#1}");Se("\\purpleA","\\textcolor{##ddd7ff}{#1}");Se("\\purpleB","\\textcolor{##c6b9fc}{#1}");Se("\\purpleC","\\textcolor{##aa87ff}{#1}");Se("\\purpleD","\\textcolor{##7854ab}{#1}");Se("\\purpleE","\\textcolor{##543b78}{#1}");Se("\\mintA","\\textcolor{##f5f9e8}{#1}");Se("\\mintB","\\textcolor{##edf2df}{#1}");Se("\\mintC","\\textcolor{##e0e5cc}{#1}");Se("\\grayA","\\textcolor{##f6f7f7}{#1}");Se("\\grayB","\\textcolor{##f0f1f2}{#1}");Se("\\grayC","\\textcolor{##e3e5e6}{#1}");Se("\\grayD","\\textcolor{##d6d8da}{#1}");Se("\\grayE","\\textcolor{##babec2}{#1}");Se("\\grayF","\\textcolor{##888d93}{#1}");Se("\\grayG","\\textcolor{##626569}{#1}");Se("\\grayH","\\textcolor{##3b3e40}{#1}");Se("\\grayI","\\textcolor{##21242c}{#1}");Se("\\kaBlue","\\textcolor{##314453}{#1}");Se("\\kaGreen","\\textcolor{##71B307}{#1}");var Bye={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Tot{constructor(e,r,n){this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new bot(Eot,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new $re(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,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new Mo("EOF",n.loc)),this.pushTokens(a),new Mo("",ho.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 a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new Yt("Extra }",i)}else if(i.text==="EOF")throw new Yt("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}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],a=0;athis.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,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new Yt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new Yt("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new Yt("Not a valid argument number",l)}}}return this.pushTokens(i),i.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 Mo(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 a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}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 a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new $re(a,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||Hd.hasOwnProperty(e)||fa.math.hasOwnProperty(e)||fa.text.hasOwnProperty(e)||Bye.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Hd.hasOwnProperty(e)&&!Hd[e].primitive}}var Gre=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,c3=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),aD={"́":{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"}},qre={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Fye=class $ye{constructor(e,r){this.mode="math",this.gullet=new Tot(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 Mo("}")),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 a=this.fetch();if($ye.endOfExpression.has(a.text)||r&&a.text===r||e&&Hd[a.text]&&Hd[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a=128)this.settings.strict&&(qve(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:ho.range(e),text:r};else return null;if(this.consume(),i)for(var h=0;h0){if(++e>=hlt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Bm(t){return function(){return t}}var L6=(function(){try{var t=ug(Object,"defineProperty");return t({},"",{}),t}catch{}})(),mlt=L6?function(t,e){return L6(t,"toString",{configurable:!0,enumerable:!1,value:Bm(e),writable:!0})}:lg,jye=glt(mlt);function Qye(t,e){for(var r=-1,n=t==null?0:t.length;++r-1}var Elt=9007199254740991,Slt=/^(?:0|[1-9]\d*)$/;function A7(t,e){var r=typeof t;return e=e??Elt,!!e&&(r=="number"||r!="symbol"&&Slt.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Clt}function zh(t){return t!=null&&Bq(t.length)&&!h4(t)}function f4(t,e,r){if(!Go(r))return!1;var n=typeof e;return(n=="number"?zh(r)&&A7(e,r.length):n=="string"&&e in r)?d2(r[e],t):!1}function wlt(t){return I7(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,s&&f4(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),e=Object(e);++n-1}function Mct(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 nd(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&z0t?new m4:void 0;for(i.set(t,e),i.set(e,t);++h2?e[2]:void 0;for(a&&f4(e[0],e[1],a)&&(n=1);++r-1?a[i?e[s]:s]:void 0}}var Rdt=Math.max;function Ndt(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:Vot(r);return a<0&&(a=Rdt(n+a,0)),Zye(t,Uh(e),a)}var jq=Adt(Ndt);function A_e(t,e){var r=-1,n=zh(t)?Array(t.length):[];return $7(t,function(a,i,s){n[++r]=e(a,i,s)}),n}function li(t,e){var r=ci(t)?o1:A_e;return r(t,Uh(e))}function Idt(t,e){return t==null?t:Wq(t,Xq(e),dg)}function Odt(t,e){return t&&Kq(t,Xq(e))}function Ddt(t,e){return t>e}var Ldt=Object.prototype,Mdt=Ldt.hasOwnProperty;function Pdt(t,e){return t!=null&&Mdt.call(t,e)}function R_e(t,e){return t!=null&&T_e(t,e,Pdt)}function Bdt(t,e){return o1(e,function(r){return t[r]})}function x0(t){return t==null?[]:Bdt(t,Lo(t))}var Fdt="[object Map]",$dt="[object Set]",zdt=Object.prototype,Udt=zdt.hasOwnProperty;function bne(t){if(t==null)return!0;if(zh(t)&&(ci(t)||typeof t=="string"||typeof t.splice=="function"||Eb(t)||L7(t)||bb(t)))return!t.length;var e=ml(t);if(e==Fdt||e==$dt)return!t.size;if(O7(t))return!i_e(t).length;for(var r in t)if(Udt.call(t,r))return!1;return!0}function Ka(t){return t===void 0}function N_e(t,e){return te||i&&s&&l&&!o&&!u||n&&s&&l||!r&&l||!a)return 1;if(!n&&!i&&!u&&t=o)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return t.index-e.index}function Wdt(t,e,r){e.length?e=o1(e,function(i){return ci(i)?function(s){return F7(s,i.length===1?i[0]:i)}:i}):e=[lg];var n=-1;e=o1(e,D7(Uh));var a=A_e(t,function(i,s,o){var l=o1(e,function(u){return u(i)});return{criteria:l,index:++n,value:i}});return Ydt(a,function(i,s){return Vdt(i,s,r)})}function Kdt(t,e){return qdt(t,e,function(r,n){return x_e(t,n)})}var B6=jct(function(t,e){return t==null?{}:Kdt(t,e)}),Xdt=Math.ceil,jdt=Math.max;function Qdt(t,e,r,n){for(var a=-1,i=jdt(Xdt((e-t)/(r||1)),0),s=Array(i);i--;)s[++a]=t,t+=r;return s}function Zdt(t){return function(e,r,n){return n&&typeof n!="number"&&f4(e,r,n)&&(r=n=void 0),e=b5(e),r===void 0?(r=e,e=0):r=b5(r),n=n===void 0?e1&&f4(t,e[0],e[1])?e=[]:r>2&&f4(e[0],e[1],e[2])&&(e=[e[0]]),Wdt(t,Uq(e),[])}),eht=1/0,tht=l1&&1/Hq(new l1([,-0]))[1]==eht?function(t){return new l1(t)}:dlt,rht=200;function nht(t,e,r){var n=-1,a=blt,i=t.length,s=!0,o=[],l=o;if(i>=rht){var u=tht(t);if(u)return Hq(u);s=!1,a=__e,l=new m4}else l=o;e:for(;++n1?a.setNode(i,r):a.setNode(i)}),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]=mf,this._children[e]={},this._children[mf][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(Lo(this._in[e]),r),delete this._in[e],delete this._preds[e],Rt(Lo(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(Ka(r))r=mf;else{r+="";for(var n=r;!Ka(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!==mf)return r}}children(e){if(Ka(e)&&(e=mf),this._isCompound){var r=this._children[e];if(r)return Lo(r)}else{if(e===mf)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return Lo(r)}successors(e){var r=this._sucs[e];if(r)return Lo(r)}neighbors(e){var r=this.predecessors(e);if(r)return aht(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 a={};function i(s){var o=n.parent(s);return o===void 0||r.hasNode(o)?(a[s]=o,o):o in a?a[o]:i(o)}return this._isCompound&&Rt(r.nodes(),function(s){r.setParent(s,i(s))}),r}setDefaultEdgeLabel(e){return h4(e)||(e=Bm(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return x0(this._edgeObjs)}setPath(e,r){var n=this,a=arguments;return NT(e,function(i,s){return a.length>1?n.setEdge(i,s,r):n.setEdge(i,s),s}),this}setEdge(){var e,r,n,a,i=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,r=s.w,n=s.name,arguments.length===2&&(a=arguments[1],i=!0)):(e=s,r=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],i=!0)),e=""+e,r=""+r,Ka(n)||(n=""+n);var o=RE(this._isDirected,e,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=a),this;if(!Ka(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[o]=i?a:this._defaultEdgeLabelFn(e,r,n);var l=cht(this._isDirected,e,r,n);return e=l.v,r=l.w,Object.freeze(l),this._edgeObjs[o]=l,Sne(this._preds[r],e),Sne(this._sucs[e],r),this._in[r][o]=l,this._out[e][o]=l,this._edgeCount++,this}edge(e,r,n){var a=arguments.length===1?lD(this._isDirected,arguments[0]):RE(this._isDirected,e,r,n);return this._edgeLabels[a]}hasEdge(e,r,n){var a=arguments.length===1?lD(this._isDirected,arguments[0]):RE(this._isDirected,e,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(e,r,n){var a=arguments.length===1?lD(this._isDirected,arguments[0]):RE(this._isDirected,e,r,n),i=this._edgeObjs[a];return i&&(e=i.v,r=i.w,delete this._edgeLabels[a],delete this._edgeObjs[a],Tne(this._preds[r],e),Tne(this._sucs[e],r),delete this._in[r][a],delete this._out[e][a],this._edgeCount--),this}inEdges(e,r){var n=this._in[e];if(n){var a=x0(n);return r?h0(a,function(i){return i.v===r}):a}}outEdges(e,r){var n=this._out[e];if(n){var a=x0(n);return r?h0(a,function(i){return i.w===r}):a}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n)return n.concat(this.outEdges(e,r))}}ko.prototype._nodeCount=0;ko.prototype._edgeCount=0;function Sne(t,e){t[e]?t[e]++:t[e]=1}function Tne(t,e){--t[e]||delete t[e]}function RE(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var s=a;a=i,i=s}return a+Ene+i+Ene+(Ka(n)?lht:n)}function cht(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var s=a;a=i,i=s}var o={v:a,w:i};return n&&(o.name=n),o}function lD(t,e){return RE(t,e.v,e.w,e.name)}class uht{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return xne(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&xne(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,dht)),n=n._prev;return"["+e.join(", ")+"]"}}function xne(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function dht(t,e){if(t!=="_next"&&t!=="_prev")return e}var hht=Bm(1);function fht(t,e){if(t.nodeCount()<=1)return[];var r=ght(t,e||hht),n=pht(r.graph,r.buckets,r.zeroIdx);return h2(li(n,function(a){return t.outEdges(a.v,a.w)}))}function pht(t,e,r){for(var n=[],a=e[e.length-1],i=e[0],s;t.nodeCount();){for(;s=i.dequeue();)cD(t,e,r,s);for(;s=a.dequeue();)cD(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(cD(t,e,r,s,!0));break}}}return n}function cD(t,e,r,n,a){var i=a?[]:void 0;return Rt(t.inEdges(n.v),function(s){var o=t.edge(s),l=t.node(s.v);a&&i.push({v:s.v,w:s.w}),l.out-=o,UB(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,UB(e,r,u)}),t.removeNode(n.v),i}function ght(t,e){var r=new ko,n=0,a=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),a=Math.max(a,r.node(o.v).out+=u),n=Math.max(n,r.node(o.w).in+=u)});var i=Tb(a+n+3).map(function(){return new uht}),s=n+1;return Rt(r.nodes(),function(o){UB(i,s,r.node(o))}),{graph:r,buckets:i,zeroIdx:s}}function UB(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 mht(t){var e=t.graph().acyclicer==="greedy"?fht(t,r(t)):vht(t);Rt(e,function(n){var a=t.edge(n);t.removeEdge(n),a.forwardName=n.name,a.reversed=!0,t.setEdge(n.w,n.v,a,Jq("rev"))});function r(n){return function(a){return n.edge(a).weight}}}function vht(t){var e=[],r={},n={};function a(i){Object.prototype.hasOwnProperty.call(n,i)||(n[i]=!0,r[i]=!0,Rt(t.outEdges(i),function(s){Object.prototype.hasOwnProperty.call(r,s.w)?e.push(s):a(s.w)}),delete r[i])}return Rt(t.nodes(),a),e}function yht(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 f2(t,e,r,n){var a;do a=Jq(n);while(t.hasNode(a));return r.dummy=e,t.setNode(a,r),a}function _ht(t){var e=new ko().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},a=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),e}function I_e(t){var e=new ko({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 Cne(t,e){var r=t.x,n=t.y,a=e.x-r,i=e.y-n,s=t.width/2,o=t.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var l,u;return Math.abs(i)*s>Math.abs(a)*o?(i<0&&(o=-o),l=o*a/i,u=o):(a<0&&(s=-s),l=s,u=s*i/a),{x:r+l,y:n+u}}function U7(t){var e=li(Tb(O_e(t)+1),function(){return[]});return Rt(t.nodes(),function(r){var n=t.node(r),a=n.rank;Ka(a)||(e[a][n.order]=r)}),e}function bht(t){var e=v4(li(t.nodes(),function(r){return t.node(r).rank}));Rt(t.nodes(),function(r){var n=t.node(r);R_e(n,"rank")&&(n.rank-=e)})}function Eht(t){var e=v4(li(t.nodes(),function(i){return t.node(i).rank})),r=[];Rt(t.nodes(),function(i){var s=t.node(i).rank-e;r[s]||(r[s]=[]),r[s].push(i)});var n=0,a=t.graph().nodeRankFactor;Rt(r,function(i,s){Ka(i)&&s%a!==0?--n:n&&Rt(i,function(o){t.node(o).rank+=n})})}function wne(t,e,r,n){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),f2(t,"border",a,e)}function O_e(t){return zp(li(t.nodes(),function(e){var r=t.node(e).rank;if(!Ka(r))return r}))}function Sht(t,e){var r={lhs:[],rhs:[]};return Rt(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r}function Tht(t,e){return e()}function xht(t){function e(r){var n=t.children(r),a=t.node(r);if(n.length&&Rt(n,e),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,s=a.maxRank+1;is.lim&&(o=s,l=!0);var u=h0(e.edges(),function(d){return l===Rne(t,t.node(d.v),o)&&l!==Rne(t,t.node(d.w),o)});return Zq(u,function(d){return y4(e,d)})}function U_e(t,e,r,n){var a=r.v,i=r.w;t.removeEdge(a,i),t.setEdge(n.v,n.w,{}),rY(t),tY(t,e),$ht(t,e)}function $ht(t,e){var r=jq(t.nodes(),function(a){return!e.node(a).parent}),n=Bht(t,r);n=n.slice(1),Rt(n,function(a){var i=t.node(a).parent,s=e.edge(a,i),o=!1;s||(s=e.edge(i,a),o=!0),e.node(a).rank=e.node(i).rank+(o?s.minlen:-s.minlen)})}function zht(t,e,r){return t.hasEdge(e,r)}function Rne(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Uht(t){switch(t.graph().ranker){case"network-simplex":Nne(t);break;case"tight-tree":qht(t);break;case"longest-path":Ght(t);break;default:Nne(t)}}var Ght=eY;function qht(t){eY(t),L_e(t)}function Nne(t){hg(t)}function Yht(t){var e=f2(t,"root",{},"_root"),r=Hht(t),n=zp(x0(r))-1,a=2*n+1;t.graph().nestingRoot=e,Rt(t.edges(),function(s){t.edge(s).minlen*=a});var i=Vht(t)+1;Rt(t.children(),function(s){G_e(t,e,a,i,n,r,s)}),t.graph().nodeRankFactor=a}function G_e(t,e,r,n,a,i,s){var o=t.children(s);if(!o.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:r});return}var l=wne(t,"_bt"),u=wne(t,"_bb"),d=t.node(s);t.setParent(l,s),d.borderTop=l,t.setParent(u,s),d.borderBottom=u,Rt(o,function(h){G_e(t,e,r,n,a,i,h);var f=t.node(h),p=f.borderTop?f.borderTop:h,g=f.borderBottom?f.borderBottom:h,m=f.borderTop?n:2*n,v=p!==g?1:a-i[s]+1;t.setEdge(l,p,{weight:m,minlen:v,nestingEdge:!0}),t.setEdge(g,u,{weight:m,minlen:v,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:a+i[s]})}function Hht(t){var e={};function r(n,a){var i=t.children(n);i&&i.length&&Rt(i,function(s){r(s,a+1)}),e[n]=a}return Rt(t.children(),function(n){r(n,1)}),e}function Vht(t){return NT(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function Wht(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 Kht(t,e,r){var n={},a;Rt(r,function(i){for(var s=t.parent(i),o,l;s;){if(o=t.parent(s),o?(l=n[o],n[o]=s):(l=a,a=s),l&&l!==s){e.setEdge(l,s);return}s=o}})}function Xht(t,e,r){var n=jht(t),a=new ko({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return t.node(i)});return Rt(t.nodes(),function(i){var s=t.node(i),o=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,o||n),Rt(t[r](i),function(l){var u=l.v===i?l.w:l.v,d=a.edge(u,i),h=Ka(d)?0:d.weight;a.setEdge(u,i,{weight:t.edge(l).weight+h})}),Object.prototype.hasOwnProperty.call(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),a}function jht(t){for(var e;t.hasNode(e=Jq("_root")););return e}function Qht(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 Jht(t){var e={},r=h0(t.nodes(),function(o){return!t.children(o).length}),n=zp(li(r,function(o){return t.node(o).rank})),a=li(Tb(n+1),function(){return[]});function i(o){if(!R_e(e,o)){e[o]=!0;var l=t.node(o);a[l.rank].push(o),Rt(t.successors(o),i)}}var s=IT(r,function(o){return t.node(o).rank});return Rt(s,i),a}function eft(t,e){return li(e,function(r){var n=t.inEdges(r);if(n.length){var a=NT(n,function(i,s){var o=t.edge(s),l=t.node(s.v);return{sum:i.sum+o.weight*l.order,weight:i.weight+o.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function tft(t,e){var r={};Rt(t,function(a,i){var s=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};Ka(a.barycenter)||(s.barycenter=a.barycenter,s.weight=a.weight)}),Rt(e.edges(),function(a){var i=r[a.v],s=r[a.w];!Ka(i)&&!Ka(s)&&(s.indegree++,i.out.push(r[a.w]))});var n=h0(r,function(a){return!a.indegree});return rft(n)}function rft(t){var e=[];function r(i){return function(s){s.merged||(Ka(s.barycenter)||Ka(i.barycenter)||s.barycenter>=i.barycenter)&&nft(i,s)}}function n(i){return function(s){s.in.push(i),--s.indegree===0&&t.push(s)}}for(;t.length;){var a=t.pop();e.push(a),Rt(a.in.reverse(),r(a)),Rt(a.out,n(a))}return li(h0(e,function(i){return!i.merged}),function(i){return B6(i,["vs","i","barycenter","weight"])})}function nft(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 aft(t,e){var r=Sht(t,function(d){return Object.prototype.hasOwnProperty.call(d,"barycenter")}),n=r.lhs,a=IT(r.rhs,function(d){return-d.i}),i=[],s=0,o=0,l=0;n.sort(ift(!!e)),l=Ine(i,a,l),Rt(n,function(d){l+=d.vs.length,i.push(d.vs),s+=d.barycenter*d.weight,o+=d.weight,l=Ine(i,a,l)});var u={vs:h2(i)};return o&&(u.barycenter=s/o,u.weight=o),u}function Ine(t,e,r){for(var n;e.length&&(n=P6(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function ift(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}function q_e(t,e,r,n){var a=t.children(e),i=t.node(e),s=i?i.borderLeft:void 0,o=i?i.borderRight:void 0,l={};s&&(a=h0(a,function(g){return g!==s&&g!==o}));var u=eft(t,a);Rt(u,function(g){if(t.children(g.v).length){var m=q_e(t,g.v,r,n);l[g.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&oft(g,m)}});var d=tft(u,r);sft(d,l);var h=aft(d,n);if(s&&(h.vs=h2([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 sft(t,e){Rt(t,function(r){r.vs=h2(r.vs.map(function(n){return e[n]?e[n].vs:n}))})}function oft(t,e){Ka(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 lft(t){var e=O_e(t),r=One(t,Tb(1,e+1),"inEdges"),n=One(t,Tb(e-1,-1,-1),"outEdges"),a=Jht(t);Dne(t,a);for(var i=Number.POSITIVE_INFINITY,s,o=0,l=0;l<4;++o,++l){cft(o%2?r:n,o%4>=2),a=U7(t);var u=Qht(t,a);us||o>e[l].lim));for(u=l,l=n;(l=t.parent(l))!==u;)i.push(l);return{path:a.concat(i.reverse()),lca:u}}function hft(t){var e={},r=0;function n(a){var i=r;Rt(t.children(a),n),e[a]={low:i,lim:r++}}return Rt(t.children(),n),e}function fft(t,e){var r={};function n(a,i){var s=0,o=0,l=a.length,u=P6(i);return Rt(i,function(d,h){var f=gft(t,d),p=f?t.node(f).order:l;(f||d===u)&&(Rt(i.slice(o,h+1),function(g){Rt(t.predecessors(g),function(m){var v=t.node(m),y=v.order;(yu)&&Y_e(r,f,d)})})}function a(i,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,i.length)}),s}return NT(e,a),r}function gft(t,e){if(t.node(e).dummy)return jq(t.predecessors(e),function(r){return t.node(r).dummy})}function Y_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 a=t[e];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function mft(t,e,r){if(e>r){var n=e;e=r,r=n}return!!t[e]&&Object.prototype.hasOwnProperty.call(t[e],r)}function vft(t,e,r,n){var a={},i={},s={};return Rt(e,function(o){Rt(o,function(l,u){a[l]=l,i[l]=l,s[l]=u})}),Rt(e,function(o){var l=-1;Rt(o,function(u){var d=n(u);if(d.length){d=IT(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];i[u]===u&&l{var n=r(" buildLayoutGraph",()=>Fft(t));r(" runLayout",()=>Aft(n,r)),r(" updateInputGraph",()=>Rft(t,n))})}function Aft(t,e){e(" makeSpaceForEdgeLabels",()=>$ft(t)),e(" removeSelfEdges",()=>Kft(t)),e(" acyclic",()=>mht(t)),e(" nestingGraph.run",()=>Yht(t)),e(" rank",()=>Uht(I_e(t))),e(" injectEdgeLabelProxies",()=>zft(t)),e(" removeEmptyRanks",()=>Eht(t)),e(" nestingGraph.cleanup",()=>Wht(t)),e(" normalizeRanks",()=>bht(t)),e(" assignRankMinMax",()=>Uft(t)),e(" removeEdgeLabelProxies",()=>Gft(t)),e(" normalize.run",()=>Rht(t)),e(" parentDummyChains",()=>uft(t)),e(" addBorderSegments",()=>xht(t)),e(" order",()=>lft(t)),e(" insertSelfEdges",()=>Xft(t)),e(" adjustCoordinateSystem",()=>Cht(t)),e(" position",()=>wft(t)),e(" positionSelfEdges",()=>jft(t)),e(" removeBorderNodes",()=>Wft(t)),e(" normalize.undo",()=>Iht(t)),e(" fixupEdgeLabelCoords",()=>Hft(t)),e(" undoCoordinateSystem",()=>wht(t)),e(" translateGraph",()=>qft(t)),e(" assignNodeIntersects",()=>Yft(t)),e(" reversePoints",()=>Vft(t)),e(" acyclic.undo",()=>yht(t))}function Rft(t,e){Rt(t.nodes(),function(r){var n=t.node(r),a=e.node(r);n&&(n.x=a.x,n.y=a.y,e.children(r).length&&(n.width=a.width,n.height=a.height))}),Rt(t.edges(),function(r){var n=t.edge(r),a=e.edge(r);n.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(n.x=a.x,n.y=a.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}var Nft=["nodesep","edgesep","ranksep","marginx","marginy"],Ift={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Oft=["acyclicer","ranker","rankdir","align"],Dft=["width","height"],Lft={width:0,height:0},Mft=["minlen","weight","width","height","labeloffset"],Pft={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Bft=["labelpos"];function Fft(t){var e=new ko({multigraph:!0,compound:!0}),r=fD(t.graph());return e.setGraph(zB({},Ift,hD(r,Nft),B6(r,Oft))),Rt(t.nodes(),function(n){var a=fD(t.node(n));e.setNode(n,xdt(hD(a,Dft),Lft)),e.setParent(n,t.parent(n))}),Rt(t.edges(),function(n){var a=fD(t.edge(n));e.setEdge(n,zB({},Pft,hD(a,Mft),B6(a,Bft)))}),e}function $ft(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 zft(t){Rt(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),a=t.node(e.w),i={rank:(a.rank-n.rank)/2+n.rank,e};f2(t,"edge-proxy",i,"_ep")}})}function Uft(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=zp(e,n.maxRank))}),t.graph().maxRank=e}function Gft(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 qft(t){var e=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,a=0,i=t.graph(),s=i.marginx||0,o=i.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),a=Math.max(a,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)}),i.width=r-e+s,i.height=a-n+o}function Yft(t){Rt(t.edges(),function(e){var r=t.edge(e),n=t.node(e.v),a=t.node(e.w),i,s;r.points?(i=r.points[0],s=r.points[r.points.length-1]):(r.points=[],i=a,s=n),r.points.unshift(Cne(n,i)),r.points.push(Cne(a,s))})}function Hft(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 Vft(t){Rt(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function Wft(t){Rt(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),a=t.node(r.borderBottom),i=t.node(P6(r.borderLeft)),s=t.node(P6(r.borderRight));r.width=Math.abs(s.x-i.x),r.height=Math.abs(a.y-n.y),r.x=i.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 Kft(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 Xft(t){var e=U7(t);Rt(e,function(r){var n=0;Rt(r,function(a,i){var s=t.node(a);s.order=i+n,Rt(s.selfEdges,function(o){f2(t,"selfedge",{width:o.label.width,height:o.label.height,rank:s.rank,order:i+ ++n,e:o.e,label:o.label},"_se")}),delete s.selfEdges})})}function jft(t){Rt(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var n=t.node(r.e.v),a=n.x+n.width/2,i=n.y,s=r.x-a,o=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:a+2*s/3,y:i-o},{x:a+5*s/6,y:i-o},{x:a+s,y:i},{x:a+5*s/6,y:i+o},{x:a+2*s/3,y:i+o}],r.label.x=r.x,r.label.y=r.y}})}function hD(t,e){return z7(B6(t,e),Number)}function fD(t){var e={};return Rt(t,function(r,n){e[n.toLowerCase()]=r}),e}function Qc(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Qft(t),edges:Zft(t)};return Ka(t.graph())||(e.value=I0t(t.graph())),e}function Qft(t){return li(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),a={v:e};return Ka(r)||(a.value=r),Ka(n)||(a.parent=n),a})}function Zft(t){return li(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return Ka(e.name)||(n.name=e.name),Ka(r)||(n.value=r),n})}var an=new Map,up=new Map,V_e=new Map,Jft=E(()=>{up.clear(),V_e.clear(),an.clear()},"clear"),F6=E((t,e)=>{const r=up.get(e)||[];return oe.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),ept=E((t,e)=>{const r=up.get(e)||[];return oe.info("Descendants of ",e," is ",r),oe.info("Edge is ",t),t.v===e||t.w===e?!1:r?r.includes(t.v)||F6(t.v,e)||F6(t.w,e)||r.includes(t.w):(oe.debug("Tilt, ",e,",not in descendants"),!1)},"edgeInCluster"),W_e=E((t,e,r,n)=>{oe.warn("Copying children of ",t,"root",n,"data",e.node(t),n);const a=e.children(t)||[];t!==n&&a.push(t),oe.warn("Copying (nodes) clusterId",t,"nodes",a),a.forEach(i=>{if(e.children(i).length>0)W_e(i,e,r,n);else{const s=e.node(i);oe.info("cp ",i," to ",n," with parent ",t),r.setNode(i,s),n!==e.parent(i)&&(oe.warn("Setting parent",i,e.parent(i)),r.setParent(i,e.parent(i))),t!==n&&i!==t?(oe.debug("Setting parent",i,t),r.setParent(i,t)):(oe.info("In copy ",t,"root",n,"data",e.node(t),n),oe.debug("Not Setting parent for node=",i,"cluster!==rootId",t!==n,"node!==clusterId",i!==t));const o=e.edges(i);oe.debug("Copying Edges",o),o.forEach(l=>{oe.info("Edge",l);const u=e.edge(l.v,l.w,l.name);oe.info("Edge data",u,n);try{ept(l,n)?(oe.info("Copying as ",l.v,l.w,u,l.name),r.setEdge(l.v,l.w,u,l.name),oe.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):oe.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",n," clusterId:",t)}catch(d){oe.error(d)}})}oe.debug("Removing node",i),e.removeNode(i)})},"copy"),K_e=E((t,e)=>{const r=e.children(t);let n=[...r];for(const a of r)V_e.set(a,t),n=[...n,...K_e(a,e)];return n},"extractDescendants"),tpt=E((t,e,r)=>{const n=t.edges().filter(l=>l.v===e||l.w===e),a=t.edges().filter(l=>l.v===r||l.w===r),i=n.map(l=>({v:l.v===e?r:l.v,w:l.w===e?e:l.w})),s=a.map(l=>({v:l.v,w:l.w}));return i.filter(l=>s.some(u=>l.v===u.v&&l.w===u.w))},"findCommonEdges"),_4=E((t,e,r)=>{const n=e.children(t);if(oe.trace("Searching children of id ",t,n),n.length<1)return t;let a;for(const i of n){const s=_4(i,e,r),o=tpt(e,r,s);if(s)if(o.length>0)a=s;else return s}return a},"findNonClusterChild"),Lne=E(t=>!an.has(t)||!an.get(t).externalConnections?t:an.has(t)?an.get(t).id:t,"getAnchorId"),rpt=E((t,e)=>{if(!t||e>10){oe.debug("Opting out, no graph ");return}else oe.debug("Opting in, graph ");t.nodes().forEach(function(r){t.children(r).length>0&&(oe.warn("Cluster identified",r," Replacement id in edges: ",_4(r,t,r)),up.set(r,K_e(r,t)),an.set(r,{id:_4(r,t,r),clusterData:t.node(r)}))}),t.nodes().forEach(function(r){const n=t.children(r),a=t.edges();n.length>0?(oe.debug("Cluster identified",r,up),a.forEach(i=>{const s=F6(i.v,r),o=F6(i.w,r);s^o&&(oe.warn("Edge: ",i," leaves cluster ",r),oe.warn("Descendants of XXX ",r,": ",up.get(r)),an.get(r).externalConnections=!0)})):oe.debug("Not a cluster ",r,up)});for(let r of an.keys()){const n=an.get(r).id,a=t.parent(n);a!==r&&an.has(a)&&!an.get(a).externalConnections&&(an.get(r).id=a)}t.edges().forEach(function(r){const n=t.edge(r);oe.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),oe.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let a=r.v,i=r.w;if(oe.warn("Fix XXX",an,"ids:",r.v,r.w,"Translating: ",an.get(r.v)," --- ",an.get(r.w)),an.get(r.v)||an.get(r.w)){if(oe.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),a=Lne(r.v),i=Lne(r.w),t.removeEdge(r.v,r.w,r.name),a!==r.v){const s=t.parent(a);an.get(s).externalConnections=!0,n.fromCluster=r.v}if(i!==r.w){const s=t.parent(i);an.get(s).externalConnections=!0,n.toCluster=r.w}oe.warn("Fix Replacing with XXX",a,i,r.name),t.setEdge(a,i,n,r.name)}}),oe.warn("Adjusted Graph",Qc(t)),X_e(t,0),oe.trace(an)},"adjustClustersAndEdges"),X_e=E((t,e)=>{if(oe.warn("extractor - ",e,Qc(t),t.children("D")),e>10){oe.error("Bailing out");return}let r=t.nodes(),n=!1;for(const a of r){const i=t.children(a);n=n||i.length>0}if(!n){oe.debug("Done, no node has children",t.nodes());return}oe.debug("Nodes = ",r,e);for(const a of r)if(oe.debug("Extracting node",a,an,an.has(a)&&!an.get(a).externalConnections,!t.parent(a),t.node(a),t.children("D")," Depth ",e),!an.has(a))oe.debug("Not a cluster",a,e);else if(!an.get(a).externalConnections&&t.children(a)&&t.children(a).length>0){oe.warn("Cluster without external connections, without a parent and with children",a,e);let s=t.graph().rankdir==="TB"?"LR":"TB";an.get(a)?.clusterData?.dir&&(s=an.get(a).clusterData.dir,oe.warn("Fixing dir",an.get(a).clusterData.dir,s));const o=new ko({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});oe.warn("Old graph before copy",Qc(t)),W_e(a,t,o,a),t.setNode(a,{clusterNode:!0,id:a,clusterData:an.get(a).clusterData,label:an.get(a).label,graph:o}),oe.warn("New graph after copy node: (",a,")",Qc(o)),oe.debug("Old graph after copy",Qc(t))}else oe.warn("Cluster ** ",a," **not meeting the criteria !externalConnections:",!an.get(a).externalConnections," no parent: ",!t.parent(a)," children ",t.children(a)&&t.children(a).length>0,t.children("D"),e),oe.debug(an);r=t.nodes(),oe.warn("New list of nodes",r);for(const a of r){const i=t.node(a);oe.warn(" Now next level",a,i),i?.clusterNode&&X_e(i.graph,e+1)}},"extractor"),j_e=E((t,e)=>{if(e.length===0)return[];let r=Object.assign([],e);return e.forEach(n=>{const a=t.children(n),i=j_e(t,a);r=[...r,...i]}),r},"sorter"),npt=E(t=>j_e(t,t.children()),"sortNodesByHierarchy"),Q_e=E(async(t,e,r,n,a,i)=>{oe.warn("Graph in recursive render:XAX",Qc(e),a);const s=e.graph().rankdir;oe.trace("Dir in recursive render - dir:",s);const o=t.insert("g").attr("class","root");e.nodes()?oe.info("Recursive render XXX",e.nodes()):oe.info("No nodes found for",e),e.edges().length>0&&oe.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 v=e.node(m);if(a!==void 0){const y=JSON.parse(JSON.stringify(a.clusterData));oe.trace(`Setting data for parent cluster XXX Node.id = `,m,` data=`,y.height,` -Parent cluster`,a.height),e.setNode(a.id,y),e.parent(m)||(oe.trace("Setting parent",m,a.id),e.setParent(m,a.id,y))}if(oe.info("(Insert) Node XXX"+m+": "+JSON.stringify(e.node(m))),v?.clusterNode){oe.info("Cluster identified XBX",m,v.width,e.node(m));const{ranksep:y,nodesep:b}=e.graph();v.graph.setGraph({...v.graph.graph(),ranksep:y+25,nodesep:b});const _=await Q_e(h,v.graph,r,n,e.node(m),i),S=_.elem;vr(v,S),v.diff=_.diff||0,oe.info("New compound node after recursive render XAX",m,"width",v.width,"height",v.height),eje(S,v)}else e.children(m).length>0?(oe.trace("Cluster - the non recursive path XBX",m,v.id,v,v.width,"Graph:",e),oe.trace(_4(v.id,e)),an.set(v.id,{id:_4(v.id,e),node:v})):(oe.trace("Node - the non recursive path XAX",m,h,e.node(m),s),await n7(h,e.node(m),{config:i,dir:s}))})),await E(async()=>{const m=e.edges().map(async function(v){const y=e.edge(v.v,v.w,v.name);oe.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),oe.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(e.edge(v))),oe.info("Fix",an,"ids:",v.v,v.w,"Translating: ",an.get(v.v),an.get(v.w)),await Dme(d,y)});await Promise.all(m)},"processEdges")(),oe.info("Graph before layout:",JSON.stringify(Qc(e))),oe.info("############################################# XXX"),oe.info("### Layout ### XXX"),oe.info("############################################# XXX"),H_e(e),oe.info("Graph after layout:",JSON.stringify(Qc(e)));let p=0,{subGraphTitleTotalMargin:g}=_T(i);return await Promise.all(rpt(e).map(async function(m){const v=e.node(m);if(oe.info("Position XBX => "+m+": ("+v.x,","+v.y,") width: ",v.width," height: ",v.height),v?.clusterNode)v.y+=g,oe.info("A tainted cluster node XBX1",m,v.id,v.width,v.height,v.x,v.y,e.parent(m)),an.get(v.id).node=v,eB(v);else if(e.children(m).length>0){oe.info("A pure cluster node XBX1",m,v.id,v.x,v.y,v.width,v.height,e.parent(m)),v.height+=g,e.node(v.parentId);const y=v?.padding/2||0,b=v?.labelBBox?.height||0,_=b-y||0;oe.debug("OffsetY",_,"labelHeight",b,"halfPadding",y),await VG(l,v),an.get(v.id).node=v}else{const y=e.node(v.parentId);v.y+=g/2,oe.info("A regular node XBX1 - using the padding",v.id,"parent",v.parentId,v.width,v.height,v.x,v.y,"offsetY",v.offsetY,"parent",y,y?.offsetY,v),eB(v)}})),e.edges().forEach(function(m){const v=e.edge(m);oe.info("Edge "+m.v+" -> "+m.w+": "+JSON.stringify(v),v),v.points.forEach(S=>S.y+=g/2);const y=e.node(m.v);var b=e.node(m.w);const _=Pme(u,v,an,r,y,b,n);Lme(v,_)}),e.nodes().forEach(function(m){const v=e.node(m);oe.info(m,v.type,v.diff),v.isGroup&&(p=v.diff)}),oe.warn("Returning from recursive render XAX",o,p),{elem:o,diff:p}},"recursiveRender"),npt=E(async(t,e)=>{const r=new ko({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");$me(n,t.markers,t.type,t.diagramId),tje(),sje(),LXe(),Zft(),t.nodes.forEach(i=>{r.setNode(i.id,{...i}),i.parentId&&r.setParent(i.id,i.parentId)}),oe.debug("Edges:",t.edges),t.edges.forEach(i=>{if(i.start===i.end){const s=i.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(i),h=structuredClone(i),f=structuredClone(i);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:a}}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 i,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,i=l},f:function(){try{s||r.return==null||r.return()}finally{if(o)throw i}}}}function Z_e(t,e,r){return(e=J_e(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lpt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cpt(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,s,o=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function upt(){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 dpt(){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 Za(t,e){return ipt(t)||cpt(t,e)||nY(t,e)||upt()}function $6(t){return spt(t)||lpt(t)||nY(t)||dpt()}function hpt(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 J_e(t){var e=hpt(t,"string");return typeof e=="symbol"?e:e+""}function Ai(t){"@babel/helpers - typeof";return Ai=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},Ai(t)}function nY(t,e){if(t){if(typeof t=="string")return GB(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)?GB(t,e):void 0}}var _i=typeof window>"u"?null:window,Mne=_i?_i.navigator:null;_i&&_i.document;var fpt=Ai(""),ebe=Ai({}),ppt=Ai(function(){}),gpt=typeof HTMLElement>"u"?"undefined":Ai(HTMLElement),OT=function(e){return e&&e.instanceString&&Na(e.instanceString)?e.instanceString():null},wr=function(e){return e!=null&&Ai(e)==fpt},Na=function(e){return e!=null&&Ai(e)===ppt},$n=function(e){return!Po(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},mn=function(e){return e!=null&&Ai(e)===ebe&&!$n(e)&&e.constructor===Object},mpt=function(e){return e!=null&&Ai(e)===ebe},nr=function(e){return e!=null&&Ai(e)===Ai(1)&&!isNaN(e)},vpt=function(e){return nr(e)&&Math.floor(e)===e},z6=function(e){if(gpt!=="undefined")return e!=null&&e instanceof HTMLElement},Po=function(e){return DT(e)||tbe(e)},DT=function(e){return OT(e)==="collection"&&e._private.single},tbe=function(e){return OT(e)==="collection"&&!e._private.single},aY=function(e){return OT(e)==="core"},rbe=function(e){return OT(e)==="stylesheet"},ypt=function(e){return OT(e)==="event"},xh=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},_pt=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},bpt=function(e){return mn(e)&&nr(e.x1)&&nr(e.x2)&&nr(e.y1)&&nr(e.y2)},Ept=function(e){return mpt(e)&&Na(e.then)},Spt=function(){return Mne&&Mne.userAgent.match(/msie|trident|edge/i)},xb=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},Rpt=function(e,r){return-1*abe(e,r)},Or=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(v-=1),v<1/6?g+(m-g)*6*v:v<1/2?m:v<2/3?g+(m-g)*(2/3-v)*6:g}var h=new RegExp("^"+Cpt+"$").exec(e);if(h){if(n=parseInt(h[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,a=parseFloat(h[2]),a<0||a>100||(a=a/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(a===0)o=l=u=Math.round(i*255);else{var f=i<.5?i*(1+a):i+a-i*a,p=2*i-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},Opt=function(e){var r,n=new RegExp("^"+Tpt+"$").exec(e);if(n){r=[];for(var a=[],i=1;i<=3;i++){var s=n[i];if(s[s.length-1]==="%"&&(a[i]=!0),s=parseFloat(s),a[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=a[1]||a[2]||a[3],l=a[1]&&a[2]&&a[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},Dpt=function(e){return Lpt[e.toLowerCase()]},ibe=function(e){return($n(e)?e:null)||Dpt(e)||Npt(e)||Opt(e)||Ipt(e)},Lpt={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]},sbe=function(e){for(var r=e.map,n=e.keys,a=n.length,i=0;i=l||A<0||b&&I>=f}function w(){var F=e();if(T(F))return R(F);g=setTimeout(w,C(F))}function R(F){return g=void 0,_&&d?S(F):(d=h=void 0,p)}function O(){g!==void 0&&clearTimeout(g),v=0,d=m=h=g=void 0}function M(){return g===void 0?p:R(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),S(m)}return g===void 0&&(g=setTimeout(w,l)),p}return $.cancel=O,$.flush=M,$}return kD=s,kD}var Ypt=qpt(),BT=LT(Ypt),AD=_i?_i.performance:null,cbe=AD&&AD.now?function(){return AD.now()}:function(){return Date.now()},Hpt=(function(){if(_i){if(_i.requestAnimationFrame)return function(t){_i.requestAnimationFrame(t)};if(_i.mozRequestAnimationFrame)return function(t){_i.mozRequestAnimationFrame(t)};if(_i.webkitRequestAnimationFrame)return function(t){_i.webkitRequestAnimationFrame(t)};if(_i.msRequestAnimationFrame)return function(t){_i.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(cbe())},1e3/60)}})(),U6=function(e){return Hpt(e)},D0=cbe,qf=9261,ube=65599,pm=5381,dbe=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qf,n=r,a;a=e.next(),!a.done;)n=n*ube+a.value|0;return n},b4=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qf;return r*ube+e|0},E4=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pm;return(r<<5)+r+e|0},Vpt=function(e,r){return e*2097152+r},Sd=function(e){return e[0]*2097152+e[1]},h3=function(e,r){return[b4(e[0],r[0]),E4(e[1],r[1])]},Qne=function(e,r){var n={value:0,done:!1},a=0,i=e.length,s={next:function(){return a=0;a--)e[a]===r&&e.splice(a,1)},cY=function(e){e.splice(0,e.length)},rgt=function(e,r){for(var n=0;n"u"?"undefined":Ai(Set))!==agt?Set:igt,Y7=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!aY(e)){ua("An element must have a core reference and parameters set");return}var a=r.group;if(a==null&&(r.data&&r.data.source!=null&&r.data.target!=null?a="edges":a="nodes"),a!=="nodes"&&a!=="edges"){ua("An element must be of type `nodes` or `edges`; you specified `"+a+"`");return}this.length=1,this[0]=this;var i=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:a,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?a==="edges":!!r.pannable,active:!1,classes:new p2,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(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];$n(r.classes)?u=r.classes:wr(r.classes)&&(u=r.classes.split(/\s+/));for(var d=0,h=u.length;db?1:0},d=function(y,b,_,S,x){var C;if(_==null&&(_=0),x==null&&(x=n),_<0)throw new Error("lo must be non-negative");for(S==null&&(S=y.length);_O;0<=O?R++:R--)w.push(R);return w}).apply(this).reverse(),T=[],S=0,x=C.length;SM;0<=M?++w:--w)$.push(s(y,_));return $},m=function(y,b,_,S){var x,C,T;for(S==null&&(S=n),x=y[_];_>b;){if(T=_-1>>1,C=y[T],S(x,C)<0){y[_]=C,_=T;continue}break}return y[_]=x},v=function(y,b,_){var S,x,C,T,w;for(_==null&&(_=n),x=y.length,w=b,C=y[b],S=2*b+1;S0;){var C=b.pop(),T=v(C),w=C.id();if(f[w]=T,T!==1/0)for(var R=C.neighborhood().intersect(g),O=0;O0)for(N.unshift(L);h[z];){var B=h[z];N.unshift(B.edge),N.unshift(B.node),P=B.node,z=P.id()}return o.spawn(N)}}}},hgt={kruskal:function(e){e=e||function(_){return 1};for(var r=this.byGroup(),n=r.nodes,a=r.edges,i=n.length,s=new Array(i),o=n,l=function(S){for(var x=0;x0;){if(x(),T++,S===d){for(var w=[],R=i,O=d,M=y[O];w.unshift(R),M!=null&&w.unshift(M),R=v[O],R!=null;)O=R.id(),M=y[O];return{found:!0,distance:h[S],path:this.spawn(w),steps:T}}p[S]=!0;for(var $=_._private.edges,F=0;F<$.length;F++){var A=$[F];if(this.hasElementWithId(A.id())&&!(o&&A.data("source")!==S)){var I=A.source(),D=A.target(),L=I.id()!==S?I:D,N=L.id();if(this.hasElementWithId(N)&&!p[N]){var P=h[S]+l(A);if(!C(N)){h[N]=P,f[N]=P+s(L),b(L,N),v[N]=_,y[N]=A;continue}PM&&(g[O]=M,b[O]=R,_[O]=x),!i){var $=R*d+w;!i&&g[$]>M&&(g[$]=M,b[$]=w,_[$]=x)}}}for(var F=0;F1&&arguments[1]!==void 0?arguments[1]:s,$e=_(Re),Ce=[],ut=$e;;){if(ut==null)return r.spawn();var Ae=b(ut),je=Ae.edge,ot=Ae.pred;if(Ce.unshift(ut[0]),ut.same(xe)&&Ce.length>0)break;je!=null&&Ce.unshift(je),ut=ot}return l.spawn(Ce)},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;ga;){var i=Math.floor(Math.random()*r.length);r=bgt(i,e,r),n--}return r},Egt={kargerStein:function(){var e=this,r=this.byGroup(),n=r.nodes,a=r.edges;a.unmergeBy(function(N){return N.isLoop()});var i=n.length,s=a.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/_gt);if(i<2){ua("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,a=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;a?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)}i&&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},kgt=function(e){return Math.PI*e/180},f3=function(e,r){return Math.atan2(r,e)-Math.PI/2},uY=Math.log2||function(t){return Math.log(t)/Math.log(2)},dY=function(e){return e>0?1:e<0?-1:0},Gp=function(e,r){return Math.sqrt(Nf(e,r))},Nf=function(e,r){var n=r.x-e.x,a=r.y-e.y;return n*n+a*a},Agt=function(e){for(var r=e.length,n=0,a=0;a=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}}},Ngt=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Igt=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Ogt=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},ybe=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},S5=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},T5=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,a,i,s;if(r.length===1)n=a=i=s=r[0];else if(r.length===2)n=i=r[0],s=a=r[1];else if(r.length===4){var o=Za(r,4);n=o[0],a=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=a,e.y1-=n,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},nae=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},hY=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Wd=function(e,r,n){return e.x1<=r&&r<=e.x2&&e.y1<=n&&n<=e.y2},aae=function(e,r){return Wd(e,r.x,r.y)},_be=function(e,r){return Wd(e,r.x1,r.y1)&&Wd(e,r.x2,r.y2)},Dgt=(ID=Math.hypot)!==null&&ID!==void 0?ID:function(t,e){return Math.sqrt(t*t+e*e)};function Lgt(t,e){if(t.length<3)throw new Error("Need at least 3 vertices");var r=function(w,R){return{x:w.x+R.x,y:w.y+R.y}},n=function(w,R){return{x:w.x-R.x,y:w.y-R.y}},a=function(w,R){return{x:w.x*R,y:w.y*R}},i=function(w,R){return w.x*R.y-w.y*R.x},s=function(w){var R=Dgt(w.x,w.y);return R===0?{x:0,y:0}:{x:w.x/R,y:w.y/R}},o=function(w){for(var R=0,O=0;O7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?wh(i,s):l,d=i/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,v=a-h-o,y=n+d-u+o,b=v;if(g=Kd(e,r,n,a,m,v,y,b,!1),g.length>0)return g}if(p){var _=n+d+o,S=a-h+u-o,x=_,C=a+h-u+o;if(g=Kd(e,r,n,a,_,S,x,C,!1),g.length>0)return g}if(f){var T=n-d+u-o,w=a+h+o,R=n+d-u+o,O=w;if(g=Kd(e,r,n,a,T,w,R,O,!1),g.length>0)return g}if(p){var M=n-d-o,$=a-h+u-o,F=M,A=a+h-u+o;if(g=Kd(e,r,n,a,M,$,F,A,!1),g.length>0)return g}var I;{var D=n-d+u,L=a-h+u;if(I=NE(e,r,n,a,D,L,u+o),I.length>0&&I[0]<=D&&I[1]<=L)return[I[0],I[1]]}{var N=n+d-u,P=a-h+u;if(I=NE(e,r,n,a,N,P,u+o),I.length>0&&I[0]>=N&&I[1]<=P)return[I[0],I[1]]}{var z=n+d-u,B=a+h-u;if(I=NE(e,r,n,a,z,B,u+o),I.length>0&&I[0]>=z&&I[1]>=B)return[I[0],I[1]]}{var U=n-d+u,G=a+h-u;if(I=NE(e,r,n,a,U,G,u+o),I.length>0&&I[0]<=U&&I[1]>=G)return[I[0],I[1]]}return[]},Pgt=function(e,r,n,a,i,s,o){var l=o,u=Math.min(n,i),d=Math.max(n,i),h=Math.min(a,s),f=Math.max(a,s);return u-l<=e&&e<=d+l&&h-l<=r&&r<=f+l},Bgt=function(e,r,n,a,i,s,o,l,u){var d={x1:Math.min(n,o,i)-u,x2:Math.max(n,o,i)+u,y1:Math.min(a,l,s)-u,y2:Math.max(a,l,s)+u};return!(ed.x2||rd.y2)},Fgt=function(e,r,n,a){n-=a;var i=r*r-4*e*n;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},$gt=function(e,r,n,a,i){var s=1e-5;e===0&&(e=s),r/=e,n/=e,a/=e;var o,l,u,d,h,f,p,g;if(l=(3*n-r*r)/9,u=-(27*a)+r*(9*n-2*(r*r)),u/=54,o=l*l*l+u*u,i[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),i[0]=-p+h+f,p+=(h+f)/2,i[4]=i[2]=-p,p=Math.sqrt(3)*(-f+h)/2,i[3]=p,i[5]=-p;return}if(i[5]=i[3]=0,o===0){g=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-p+2*g,i[4]=i[2]=-(g+p);return}l=-l,d=l*l*l,d=Math.acos(u/Math.sqrt(d)),g=2*Math.sqrt(l),i[0]=-p+g*Math.cos(d/3),i[2]=-p+g*Math.cos((d+2*Math.PI)/3),i[4]=-p+g*Math.cos((d+4*Math.PI)/3)},zgt=function(e,r,n,a,i,s,o,l){var u=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+a*a-4*a*s+2*a*l+4*s*s-4*s*l+l*l,d=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*a*s-3*a*a-3*a*l-6*s*s+3*s*l,h=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*a*a-6*a*s+a*l-a*r+2*s*s+2*s*r-l*r,f=1*n*i-n*n+n*e-i*e+a*s-a*a+a*r-s*r,p=[];$gt(u,d,h,f,p);for(var g=1e-7,m=[],v=0;v<6;v+=2)Math.abs(p[v+1])=0&&p[v]<=1&&m.push(p[v]);m.push(1),m.push(0);for(var y=-1,b,_,S,x=0;x=0?Su?(e-i)*(e-i)+(r-s)*(r-s):d-f},go=function(e,r,n){for(var a,i,s,o,l,u=0,d=0;d=e&&e>=s||a<=e&&e<=s)l=(e-a)/(s-a)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},L0=function(e,r,n,a,i,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 v=Y6(d,-u);m=q6(v)}else m=d;return go(e,r,m)},Ggt=function(e,r,n,a,i,s,o,l){for(var u=new Array(n.length*2),d=0;d=0&&v<=1&&b.push(v),y>=0&&y<=1&&b.push(y),b.length===0)return[];var _=b[0]*l[0]+e,S=b[0]*l[1]+r;if(b.length>1){if(b[0]==b[1])return[_,S];var x=b[1]*l[0]+e,C=b[1]*l[1]+r;return[_,S,x,C]}else return[_,S]},OD=function(e,r,n){return r<=e&&e<=n||n<=e&&e<=r?e:e<=r&&r<=n||n<=r&&r<=e?r:n},Kd=function(e,r,n,a,i,s,o,l,u){var d=e-i,h=n-e,f=o-i,p=r-s,g=a-r,m=l-s,v=f*p-m*d,y=h*p-g*d,b=m*h-f*g;if(b!==0){var _=v/b,S=y/b,x=.001,C=0-x,T=1+x;return C<=_&&_<=T&&C<=S&&S<=T?[e+_*h,r+_*g]:u?[e+_*h,r+_*g]:[]}else return v===0||y===0?OD(e,n,o)===o?[o,l]:OD(e,n,i)===i?[i,s]:OD(i,o,n)===n?[n,a]:[]:[]},Ygt=function(e,r,n,a,i){var s=[],o=a/2,l=i/2,u=r,d=n;s.push({x:u+o*e[0],y:d+l*e[1]});for(var h=1;h0){var m=Y6(h,-l);p=q6(m)}else p=h}else p=n;for(var v,y,b,_,S=0;S2){for(var g=[d[0],d[1]],m=Math.pow(g[0]-e,2)+Math.pow(g[1]-r,2),v=1;vd&&(d=S)},get:function(_){return u[_]}},f=0;f0?I=A.edgesTo(F)[0]:I=F.edgesTo(A)[0];var D=a(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=S.pop(),U=0;U0&&o.push(n[l]);o.length!==0&&i.push(a.collection(o))}return i},imt=function(e,r){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:lmt,o=a,l,u,d=0;d=2?Q2(e,r,n,0,cae,cmt):Q2(e,r,n,0,lae)},squaredEuclidean:function(e,r,n){return Q2(e,r,n,0,cae)},manhattan:function(e,r,n){return Q2(e,r,n,0,lae)},max:function(e,r,n){return Q2(e,r,n,-1/0,umt)}};Cb["squared-euclidean"]=Cb.squaredEuclidean;Cb.squaredeuclidean=Cb.squaredEuclidean;function V7(t,e,r,n,a,i){var s;return Na(t)?s=t:s=Cb[t]||Cb.euclidean,e===0&&Na(t)?s(a,i):s(e,r,n,a,i)}var dmt=ts({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),pY=function(e){return dmt(e)},H6=function(e,r,n,a,i){var s=i!=="kMedoids",o=s?function(h){return n[h]}:function(h){return a[h](n)},l=function(f){return a[f](r)},u=n,d=r;return V7(e,a.length,o,l,u,d)},LD=function(e,r,n){for(var a=n.length,i=new Array(a),s=new Array(a),o=new Array(r),l=null,u=0;un)return!1}return!0},pmt=function(e,r,n){for(var a=0;ao&&(o=r[u][d],l=d);i[l].push(e[u])}for(var h=0;h=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var g=r[s],m=r[a[s]],v;i.mode==="dendrogram"?v={left:g,right:m,key:g.key}:v={value:g.value.concat(m.value),key:g.key},e[g.index]=v,e.splice(m.index,1),r[g.key]=v;for(var y=0;yn[m.key][b.key]&&(l=n[m.key][b.key])):i.linkage==="max"?(l=n[g.key][b.key],n[g.key][b.key]0&&a.push(i);return a},gae=function(e,r,n){for(var a=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&a.push(s)}for(var d=0;du&&(l=d,u=h)}n[i]=s[l]}return a=gae(e,r,n),a},mae=function(e){for(var r=this.cy(),n=this.nodes(),a=wmt(e),i={},s=0;s=M?($=M,M=A,F=I):A>$&&($=A);for(var D=0;D0?1:0;T[R%a.minIterations*o+U]=G,B+=G}if(B>0&&(R>=a.minIterations-1||R==a.maxIterations-1)){for(var K=0,Y=0;Y1||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 S=b.degree(!0);S%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(i){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 S=_,x=[_],C,T,w;h[S].length;)C=h[S].shift(),T=f[C][0],w=f[C][1],S!=w?(h[w]=h[w].filter(function(R){return R!=C}),S=w):!i&&S!=T&&(h[T]=h[T].filter(function(R){return R!=C}),S=T),x.unshift(C),x.unshift(S);return x},m=[],v=[];for(v=g(d);v.length!=1;)h[v[0]].length==0?(m.unshift(s.getElementById(v.shift())),m.unshift(s.getElementById(v.shift()))):v=g(v.shift()).concat(v);m.unshift(s.getElementById(v.shift()));for(var y in h)if(h[y].length)return p;return p.found=!0,p.trail=this.spawn(m,!0),p}},g3=function(){var e=this,r={},n=0,a=0,i=[],s=[],o={},l=function(f,p){for(var g=s.length-1,m=[],v=e.spawn();s[g].x!=f||s[g].y!=p;)m.push(s.pop().edge),g--;m.push(s.pop().edge),m.forEach(function(y){var b=y.connectedNodes().intersection(e);v.merge(y),b.forEach(function(_){var S=_.id(),x=_.connectedEdges().intersection(e);v.merge(_),r[S].cutVertex?v.merge(x.filter(function(C){return C.isLoop()})):v.merge(x)})}),i.push(v)},u=function(f,p,g){f===g&&(a+=1),r[p]={id:n,low:n++,cutVertex:!1};var m=e.getElementById(p).connectedEdges().intersection(e);if(m.size()===0)i.push(e.spawn(e.getElementById(p)));else{var v,y,b,_;m.forEach(function(S){v=S.source().id(),y=S.target().id(),b=v===p?y:v,b!==g&&(_=S.id(),o[_]||(o[_]=!0,s.push({x:p,y:b,edge:S})),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||(a=0,u(f,f),r[f].cutVertex=a>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:i}},Lmt={hopcroftTarjanBiconnected:g3,htbc:g3,htb:g3,hopcroftTarjanBiconnectedComponents:g3},m3=function(){var e=this,r={},n=0,a=[],i=[],s=e.spawn(e),o=function(u){i.push(u),r[u]={index:n,low:n++,explored:!1};var d=e.getElementById(u).connectedEdges().intersection(e);if(d.forEach(function(m){var v=m.target().id();v!==u&&(v in r||o(v),r[v].explored||(r[u].low=Math.min(r[u].low,r[v].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var f=i.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);a.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:a}},Mmt={tarjanStronglyConnected:m3,tsc:m3,tscc:m3,tarjanStronglyConnectedComponents:m3},kbe={};[S4,dgt,hgt,pgt,mgt,ygt,Egt,Kgt,u1,d1,HB,omt,bmt,xmt,Imt,Dmt,Lmt,Mmt].forEach(function(t){Or(kbe,t)});var Abe=0,Rbe=1,Nbe=2,gc=function(e){if(!(this instanceof gc))return new gc(e);this.id="Thenable/1.0.7",this.state=Abe,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))};gc.prototype={fulfill:function(e){return vae(this,Rbe,"fulfillValue",e)},reject:function(e){return vae(this,Nbe,"rejectReason",e)},then:function(e,r){var n=this,a=new gc;return n.onFulfilled.push(_ae(e,a,"fulfill")),n.onRejected.push(_ae(r,a,"reject")),Ibe(n),a.proxy}};var vae=function(e,r,n,a){return e.state===Abe&&(e.state=r,e[n]=a,Ibe(e)),e},Ibe=function(e){e.state===Rbe?yae(e,"onFulfilled",e.fulfillValue):e.state===Nbe&&yae(e,"onRejected",e.rejectReason)},yae=function(e,r,n){if(e[r].length!==0){var a=e[r];e[r]=[];var i=function(){for(var o=0;o0}},clearQueue:function(){return function(){var r=this,n=r.length!==void 0,a=n?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var s=0;s-1}return rL=e,rL}var nL,Gae;function e1t(){if(Gae)return nL;Gae=1;var t=X7();function e(r,n){var a=this.__data__,i=t(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return nL=e,nL}var aL,qae;function t1t(){if(qae)return aL;qae=1;var t=jmt(),e=Qmt(),r=Zmt(),n=Jmt(),a=e1t();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o-1&&n%1==0&&n0&&this.spawn(a).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){$n(e)||(e=e.match(/\S+/g)||[]);for(var n=this,a=r===void 0,i=[],s=0,o=n.length;s0&&this.spawn(i).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}};x5.className=x5.classNames=x5.classes;var gn={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Ti,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};gn.variable="(?:[\\w-.]|(?:\\\\"+gn.metaChar+"))+";gn.className="(?:[\\w-]|(?:\\\\"+gn.metaChar+"))+";gn.value=gn.string+"|"+gn.number;gn.id=gn.variable;(function(){var t,e,r;for(t=gn.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(gn.comparatorOp+="|\\!"+e)})();var Bn=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},XB=[{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 Rpt(t.selector,e.selector)}),O1t=(function(){for(var t={},e,r=0;r0&&d.edgeCount>0)return Mn("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(d.edgeCount>1)return Mn("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;d.edgeCount===1&&Mn("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},F1t=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(d){return d??""},r=function(d){return wr(d)?'"'+d+'"':e(d)},n=function(d){return" "+d+" "},a=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,v=d.operator;return"["+m+n(e(v))+r(p)+"]"}case pr.DATA_BOOL:{var y=d.operator,b=d.field;return"["+e(y)+b+"]"}case pr.DATA_EXIST:{var _=d.field;return"["+_+"]"}case pr.META_COMPARE:{var S=d.operator,x=d.field;return"[["+x+n(e(S))+r(p)+"]]"}case pr.STATE:return p;case pr.ID:return"#"+p;case pr.CLASS:return"."+p;case pr.PARENT:case pr.CHILD:return i(d.parent,h)+n(">")+i(d.child,h);case pr.ANCESTOR:case pr.DESCENDANT:return i(d.ancestor,h)+" "+i(d.descendant,h);case pr.COMPOUND_SPLIT:{var C=i(d.left,h),T=i(d.subject,h),w=i(d.right,h);return C+(C.length>0?" ":"")+T+w}case pr.TRUE:return""}},i=function(d,h){return d.checks.reduce(function(f,p,g){return f+(h===d&&g===0?"$":"")+a(p,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),d=!0),(i||o||d)&&(l=!i&&!s?"":""+e,u=""+n),d&&(e=l=l.toLowerCase(),n=u=u.toLowerCase()),r){case"*=":a=l.indexOf(u)>=0;break;case"$=":a=l.indexOf(u,l.length-u.length)>=0;break;case"^=":a=l.indexOf(u)===0;break;case"=":a=e===n;break;case">":f=!0,a=e>n;break;case">=":f=!0,a=e>=n;break;case"<":f=!0,a=e0;){var d=a.shift();e(d),i.add(d.id()),o&&n(a,i,d)}return t}function $be(t,e,r){if(r.isParent())for(var n=r._private.children,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0;return yY(this,t,e,$be)};function zbe(t,e,r){if(r.isChild()){var n=r._private.parent;e.has(n.id())||t.push(n)}}wb.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return yY(this,t,e,zbe)};function V1t(t,e,r){zbe(t,e,r),$be(t,e,r)}wb.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return yY(this,t,e,V1t)};wb.ancestors=wb.parents;var C4,Ube;C4=Ube={data:Dn.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:Dn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Dn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Dn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Dn.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Dn.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};C4.attr=C4.data;C4.removeAttr=C4.removeData;var W1t=Ube,Q7={};function OL(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,a=r[0],i=a._private.edges,s=0;se}),minIndegree:Kg("indegree",function(t,e){return te}),minOutdegree:Kg("outdegree",function(t,e){return te})});Or(Q7,{totalDegree:function(e){for(var r=0,n=this.nodes(),a=0;a0,f=h;h&&(d=d[0]);var p=f?d.position():{x:0,y:0};r!==void 0?u.position(e,r+p[e]):i!==void 0&&u.position({x:i.x+p.x,y:i.y+p.y})}else{var g=n.position(),m=o?n.parent():null,v=m&&m.length>0,y=v;v&&(m=m[0]);var b=y?m.position():{x:0,y:0};return i={x:g.x-b.x,y:g.y-b.y},e===void 0?i:i[e]}else if(!s)return;return this}};oc.modelPosition=oc.point=oc.position;oc.modelPositions=oc.points=oc.positions;oc.renderedPoint=oc.renderedPosition;oc.relativePoint=oc.relativePosition;var K1t=Gbe,h1,Yh;h1=Yh={};Yh.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),n=r.zoom(),a=r.pan(),i=e.x1*n+a.x,s=e.x2*n+a.x,o=e.y1*n+a.y,l=e.y2*n+a.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}};Yh.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)};Yh.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(R,O,M){var $=0,F=0,A=O+M;return R>0&&A>0&&($=O/A*R,F=M/A*R),{biasDiff:$,biasComplementDiff:F}}function g(R,O,M,$){if(M.units==="%")switch($){case"width":return R>0?M.pfValue*R:0;case"height":return O>0?M.pfValue*O:0;case"average":return R>0&&O>0?M.pfValue*(R+O)/2:0;case"min":return R>0&&O>0?R>O?M.pfValue*O:M.pfValue*R:0;case"max":return R>0&&O>0?R>O?M.pfValue*R: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 v=d.width.right.value;d.width.right.units==="px"&&d.width.val>0&&(v=v*100/d.width.val);var y=d.height.top.value;d.height.top.units==="px"&&d.height.val>0&&(y=y*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,v),S=_.biasDiff,x=_.biasComplementDiff,C=p(d.height.val-h.h,y,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=(-S+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?a:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},Rd=function(e,r){return r==null?e:Vl(e,r.x1,r.y1,r.x2,r.y2)},Z2=function(e,r,n){return po(e,r,n)},v3=function(e,r,n){if(!r.cy().headless()){var a=r._private,i=a.rstyle,s=i.arrowWidth/2,o=r.pstyle(n+"-arrow-shape").value,l,u;if(o!=="none"){n==="source"?(l=i.srcX,u=i.srcY):n==="target"?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var d=a.arrowBounds=a.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,S5(h,1),Vl(e,h.x1,h.y1,h.x2,h.y2)}}},DL=function(e,r,n){if(!r.cy().headless()){var a;n?a=n+"-":a="";var i=r._private,s=i.rstyle,o=r.pstyle(a+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),d=Z2(s,"labelWidth",n),h=Z2(s,"labelHeight",n),f=Z2(s,"labelX",n),p=Z2(s,"labelY",n),g=r.pstyle(a+"text-margin-x").pfValue,m=r.pstyle(a+"text-margin-y").pfValue,v=r.isEdge(),y=r.pstyle(a+"text-rotation"),b=r.pstyle("text-outline-width").pfValue,_=r.pstyle("text-border-width").pfValue,S=_/2,x=r.pstyle("text-background-padding").pfValue,C=2,T=h,w=d,R=w/2,O=T/2,M,$,F,A;if(v)M=f-R,$=f+R,F=p-O,A=p+O;else{switch(l.value){case"left":M=f-w,$=f;break;case"center":M=f-R,$=f+R;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,S)-x-C,D=g+Math.max(b,S)+x+C,L=m-Math.max(b,S)-x-C,N=m+Math.max(b,S)+x+C;M+=I,$+=D,F+=L,A+=N;var P=n||"main",z=i.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=N;var U=v&&y.strValue==="autorotate",G=y.pfValue!=null&&y.pfValue!==0;if(U||G){var K=U?Z2(i.rstyle,"labelAngle",n):y.pfValue,Y=Math.cos(K),ee=Math.sin(K),X=(M+$)/2,le=(F+A)/2;if(!v){switch(l.value){case"left":X=$;break;case"right":X=M;break}switch(u.value){case"top":le=A;break;case"bottom":le=F;break}}var te=function(He,Re){return He=He-X,Re=Re-le,{x:He*Y-Re*ee+X,y:He*ee+Re*Y+le}},ne=te(M,F),ae=te(M,A),re=te($,F),ge=te($,A);M=Math.min(ne.x,ae.x,re.x,ge.x),$=Math.max(ne.x,ae.x,re.x,ge.x),F=Math.min(ne.y,ae.y,re.y,ge.y),A=Math.max(ne.y,ae.y,re.y,ge.y)}var pe=P+"Rot",Be=z[pe]=z[pe]||{};Be.x1=M,Be.y1=F,Be.x2=$,Be.y2=A,Be.w=$-M,Be.h=A-F,Vl(e,M,F,$,A),Vl(i.labelBounds.all,M,F,$,A)}return e}},yie=function(e,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,a=r.pstyle("outline-width").value,i=r.pstyle("outline-offset").value,s=a+i;Ybe(e,r,n,s,"outside",s/2)}},Ybe=function(e,r,n,a,i,s){if(!(n===0||a<=0||i==="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){i==="center"&&(a/=2);var m=u.miterBounds(h,f,p,g,a);Rd(e,m)}else s!=null&&s>0&&T5(e,[s,s,s,s])}},X1t=function(e,r){if(!r.cy().headless()){var n=r.pstyle("border-opacity").value,a=r.pstyle("border-width").pfValue,i=r.pstyle("border-position").value;Ybe(e,r,n,a,i)}},j1t=function(e,r){var n=e._private.cy,a=n.styleEnabled(),i=n.headless(),s=Ws(),o=e._private,l=e.isNode(),u=e.isEdge(),d,h,f,p,g,m,v=o.rstyle,y=l&&a?e.pstyle("bounds-expansion").pfValue:[0],b=function(Le){return Le.pstyle("display").value!=="none"},_=!a||b(e)&&(!u||b(e.source())&&b(e.target()));if(_){var S=0,x=0;a&&r.includeOverlays&&(S=e.pstyle("overlay-opacity").value,S!==0&&(x=e.pstyle("overlay-padding").value));var C=0,T=0;a&&r.includeUnderlays&&(C=e.pstyle("underlay-opacity").value,C!==0&&(T=e.pstyle("underlay-padding").value));var w=Math.max(x,T),R=0,O=0;if(a&&(R=e.pstyle("width").pfValue,O=R/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,Vl(s,d,f,h,p),a&&yie(s,e),a&&r.includeOutlines&&!i&&yie(s,e),a&&X1t(s,e)}else if(u&&r.includeEdges)if(a&&!i){var D=e.pstyle("curve-style").strValue;if(d=Math.min(v.srcX,v.midX,v.tgtX),h=Math.max(v.srcX,v.midX,v.tgtX),f=Math.min(v.srcY,v.midY,v.tgtY),p=Math.max(v.srcY,v.midY,v.tgtY),d-=O,h+=O,f-=O,p+=O,Vl(s,d,f,h,p),D==="haystack"){var L=v.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 N=d;d=h,h=N}if(f>p){var P=f;f=p,p=P}Vl(s,d-O,f-O,h+O,p+O)}}else if(D==="bezier"||D==="unbundled-bezier"||Vd(D,"segments")||Vd(D,"taxi")){var z;switch(D){case"bezier":case"unbundled-bezier":z=v.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":z=v.linePts;break}if(z!=null)for(var B=0;Bh){var X=d;d=h,h=X}if(f>p){var le=f;f=p,p=le}d-=O,h+=O,f-=O,p+=O,Vl(s,d,f,h,p)}if(a&&r.includeEdges&&u&&(v3(s,e,"mid-source"),v3(s,e,"mid-target"),v3(s,e,"source"),v3(s,e,"target")),a){var te=e.pstyle("ghost").value==="yes";if(te){var ne=e.pstyle("ghost-offset-x").pfValue,ae=e.pstyle("ghost-offset-y").pfValue;Vl(s,s.x1+ne,s.y1+ae,s.x2+ne,s.y2+ae)}}var re=o.bodyBounds=o.bodyBounds||{};nae(re,s),T5(re,y),S5(re,1),a&&(d=s.x1,h=s.x2,f=s.y1,p=s.y2,Vl(s,d-w,f-w,h+w,p+w));var ge=o.overlayBounds=o.overlayBounds||{};nae(ge,s),T5(ge,y),S5(ge,1);var pe=o.labelBounds=o.labelBounds||{};pe.all!=null?Igt(pe.all):pe.all=Ws(),a&&r.includeLabels&&(r.includeMainLabels&&DL(s,e,null),u&&(r.includeSourceLabels&&DL(s,e,"source"),r.includeTargetLabels&&DL(s,e,"target")))}return s.x1=vl(s.x1),s.y1=vl(s.y1),s.x2=vl(s.x2),s.y2=vl(s.y2),s.w=vl(s.x2-s.x1),s.h=vl(s.y2-s.y1),s.w>0&&s.h>0&&_&&(T5(s,y),S5(s,1)),s},Hbe=function(e){var r=0,n=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:dvt,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);return this};Rh.removeAllListeners=function(){return this.removeListener("*")};Rh.emit=Rh.trigger=function(t,e,r){var n=this.listeners,a=n.length;return this.emitting++,$n(e)||(e=[e]),hvt(this,function(i,s){r!=null&&(n=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],a=n.length);for(var o=function(){var d=n[l];if(d.type===s.type&&(!d.namespace||d.namespace===s.namespace||d.namespace===uvt)&&i.eventMatches(i.context,d,s)){var h=[s];e!=null&&rgt(h,e),i.beforeEmit(i.context,d,s),d.conf&&d.conf.one&&(i.listeners=i.listeners.filter(function(g){return g!==d}));var f=i.callbackContext(i.context,d,s),p=d.callback.apply(f,h);i.afterEmit(i.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,i.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,a=r.map,i=a.get(n);if(!i)return this;var s=i.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&wr(e)){var n=e;e=r.mutableElements().filter(n)}for(var a=0;a=0;r--){var n=this[r];e(n)&&this.unmergeAt(r)}return this},map:function(e,r){for(var n=[],a=this,i=0;in&&(n=l,a=o)}return{value:n,ele:a}},min:function(e,r){for(var n=1/0,a,i=this,s=0;s=0&&i"u"?"undefined":Ai(Symbol))!=e&&Ai(Symbol.iterator)!=e;r&&(V6[Symbol.iterator]=function(){var n=this,a={value:void 0,done:!1},i=0,s=this.length;return Z_e({next:function(){return i1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],a=n.cy();if(a.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,a.style().apply(n));var i=n._private.style[e];return i??(r?a.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 a=!1,i=n.style();if(mn(e)){var s=e;i.applyBypass(this,s,a),this.emitAndNotify("style")}else if(wr(e))if(r===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,r,a),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,a=r.style(),i=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)}});ps.neighbourhood=ps.neighborhood;ps.closedNeighbourhood=ps.closedNeighborhood;ps.openNeighbourhood=ps.openNeighborhood;Or(ps,{source:Tl(function(e){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&e?n.filter(e):n},"source"),target:Tl(function(e){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&e?n.filter(e):n},"target"),sources:Rie({attr:"source"}),targets:Rie({attr:"target"})});function Rie(t){return function(r){for(var n=[],a=0;a0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});ps.componentsOf=ps.components;var Zi=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){ua("A collection must have a reference to the core");return}var i=new f0,s=!1;if(!r)r=[];else if(r.length>0&&mn(r[0])&&!DT(r[0])){s=!0;for(var o=[],l=new p2,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(),a=n._private,i=[],s=[],o,l=0,u=r.length;l0){for(var P=o.length===r.length?r:new Zi(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=[],a={},i=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=i?b(O,I):D===0?I:S(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:v(x(M),e,n)};w.getControlPoints=function(){return[{x:t,y:e},{x:r,y:n}]};var R="generateBezier("+[t,e,r,n]+")";return w.toString=function(){return R},w}var Tvt=(function(){function t(n){return-n.tension*n.x-n.friction*n.v}function e(n,a,i){var s={x:n.x+i.dx*a,v:n.v+i.dv*a,tension:n.tension,friction:n.friction};return{dx:s.v,dv:t(s)}}function r(n,a){var i={dx:n.v,dv:t(n)},s=e(n,a*.5,i),o=e(n,a*.5,s),l=e(n,a,o),u=1/6*(i.dx+2*(s.dx+o.dx)+l.dx),d=1/6*(i.dv+2*(s.dv+o.dv)+l.dv);return n.x=n.x+u*a,n.v=n.v+d*a,n}return function n(a,i,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(a=parseFloat(a)||500,i=parseFloat(i)||20,s=s||null,o.tension=a,o.friction=i,f=s!==null,f?(u=n(a,i),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}})(),Vn=function(e,r,n,a){var i=Svt(e,r,n,a);return function(s,o,l){return s+(o-s)*i(l)}},w5={linear:function(e,r,n){return e+(r-e)*n},ease:Vn(.25,.1,.25,1),"ease-in":Vn(.42,0,1,1),"ease-out":Vn(0,0,.58,1),"ease-in-out":Vn(.42,0,.58,1),"ease-in-sine":Vn(.47,0,.745,.715),"ease-out-sine":Vn(.39,.575,.565,1),"ease-in-out-sine":Vn(.445,.05,.55,.95),"ease-in-quad":Vn(.55,.085,.68,.53),"ease-out-quad":Vn(.25,.46,.45,.94),"ease-in-out-quad":Vn(.455,.03,.515,.955),"ease-in-cubic":Vn(.55,.055,.675,.19),"ease-out-cubic":Vn(.215,.61,.355,1),"ease-in-out-cubic":Vn(.645,.045,.355,1),"ease-in-quart":Vn(.895,.03,.685,.22),"ease-out-quart":Vn(.165,.84,.44,1),"ease-in-out-quart":Vn(.77,0,.175,1),"ease-in-quint":Vn(.755,.05,.855,.06),"ease-out-quint":Vn(.23,1,.32,1),"ease-in-out-quint":Vn(.86,0,.07,1),"ease-in-expo":Vn(.95,.05,.795,.035),"ease-out-expo":Vn(.19,1,.22,1),"ease-in-out-expo":Vn(1,0,0,1),"ease-in-circ":Vn(.6,.04,.98,.335),"ease-out-circ":Vn(.075,.82,.165,1),"ease-in-out-circ":Vn(.785,.135,.15,.86),spring:function(e,r,n){if(n===0)return w5.linear;var a=Tvt(e,r,n);return function(i,s,o){return i+(s-i)*a(o)}},"cubic-bezier":Vn};function Oie(t,e,r,n,a){if(n===1||e===r)return r;var i=a(e,r,n);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Die(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function Xg(t,e,r,n,a){var i=a!=null?a.type:null;r<0?r=0:r>1&&(r=1);var s=Die(t,a),o=Die(e,a);if(nr(s)&&nr(o))return Oie(i,s,o,r,n);if($n(s)&&$n(o)){for(var l=[],u=0;u0?(p==="spring"&&g.push(s.duration),s.easingImpl=w5[p].apply(null,g)):s.easingImpl=w5[p]}var m=s.easingImpl,v;if(s.duration===0?v=1:v=(r-l)/s.duration,s.applying&&(v=s.progress),v<0?v=0:v>1&&(v=1),s.delay==null){var y=s.startPosition,b=s.position;if(b&&a&&!t.locked()){var _={};eE(y.x,b.x)&&(_.x=Xg(y.x,b.x,v,m)),eE(y.y,b.y)&&(_.y=Xg(y.y,b.y,v,m)),t.position(_)}var S=s.startPan,x=s.pan,C=i.pan,T=x!=null&&n;T&&(eE(S.x,x.x)&&(C.x=Xg(S.x,x.x,v,m)),eE(S.y,x.y)&&(C.y=Xg(S.y,x.y,v,m)),t.emit("pan"));var w=s.startZoom,R=s.zoom,O=R!=null&&n;O&&(eE(w,R)&&(i.zoom=T4(i.minZoom,Xg(w,R,v,m),i.maxZoom)),t.emit("zoom")),(T||O)&&t.emit("viewport");var M=s.style;if(M&&M.length>0&&a){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],S=_._private;if(S.stopped){p.splice(b,1),S.hooked=!1,S.playing=!1,S.started=!1,y(S.frames);continue}!S.playing&&!S.applying||(S.playing&&S.applying&&(S.applying=!1),S.started||Cvt(d,_,t),xvt(d,_,t,h),S.applying&&(S.applying=!1),y(S.frames),S.step!=null&&S.step(t),_.completed()&&(p.splice(b,1),S.hooked=!1,S.playing=!1,S.started=!1,y(S.completes)),m=!0)}return!h&&p.length===0&&g.length===0&&n.push(d),m}for(var i=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(n),e.emit("step")}var wvt={animate:Dn.animate(),animation:Dn.animation(),animated:Dn.animated(),clearQueue:Dn.clearQueue(),delay:Dn.delay(),delayAnimation:Dn.delayAnimation(),stop:Dn.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&&U6(function(i){Lie(i,e),r()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(i,s){Lie(s,e)},n.beforeRenderPriorities.animations):r()}},kvt={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,n){var a=r.qualifier;return a!=null?e!==n.target&&DT(n.target)&&a.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}},b3=function(e){return wr(e)?new kh(e):e},r2e={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Z7(kvt,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,n){return this.emitter().on(e,b3(r),n),this},removeListener:function(e,r,n){return this.emitter().removeListener(e,b3(r),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,n){return this.emitter().one(e,b3(r),n),this},once:function(e,r,n){return this.emitter().one(e,b3(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}};Dn.eventAliasesOn(r2e);var QB={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)}};QB.jpeg=QB.jpg;var k5={layout:function(e){var r=this;if(e==null){ua("Layout options must be specified to make a layout");return}if(e.name==null){ua("A `name` must be specified to make a layout");return}var n=e.name,a=r.extension("layout",n);if(a==null){ua("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;wr(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var s=new a(Or({},e,{cy:r,eles:i}));return s}};k5.createLayout=k5.makeLayout=k5.layout;var Avt={notify:function(e,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var a=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();r!=null&&a.merge(r);return}if(n.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.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 a=e.batchNotifications[n];a.empty()?r.notify(n):r.notify(n,a)})}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),a=0;a0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var a=n._private;a.rscratch={},a.rstyle={},a.animation.current=[],a.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};ZB.invalidateDimensions=ZB.resize;var A5={collection:function(e,r){return wr(e)?this.$(e):Po(e)?e.collection():$n(e)?(r||(r={}),new Zi(this,e,r.unique,r.removed)):new Zi(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}};A5.elements=A5.filter=A5.$;var Gi={},mS="t",Nvt="f";Gi.apply=function(t){for(var e=this,r=e._private,n=r.cy,a=n.collection(),i=0;i0;if(f||h&&p){var g=void 0;f&&p||f?g=u.properties:p&&(g=u.mappedProperties);for(var m=0;m1&&(S=1),o.color){var C=n.valueMin[0],T=n.valueMax[0],w=n.valueMin[1],R=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)*S),Math.round(w+(R-w)*S),Math.round(O+(M-O)*S),Math.round($+(F-$)*S)];i={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)*S;i=this.parse(n.name,I,n.bypass,f)}else return!1;if(!i)return m(),!1;i.mapping=n,n=i;break}case s.data:{for(var D=n.field.split("."),L=h.data,N=0;N0&&i>0){for(var o={},l=!1,u=0;u0?t.delayAnimation(s).play().promise().then(_):_()}).then(function(){return t.animation({style:o,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,a),t.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(t,a),t.emitAndNotify("style"),n.transitioning=!1)};Gi.checkTrigger=function(t,e,r,n,a,i){var s=this.properties[e],o=a(s);t.removed()||o!=null&&o(r,n,t)&&i(s)};Gi.checkZOrderTrigger=function(t,e,r,n){var a=this;this.checkTrigger(t,e,r,n,function(i){return i.triggersZOrder},function(){a._private.cy.notify("zorder",t)})};Gi.checkBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(a){return a.triggersBounds},function(a){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache()})};Gi.checkConnectedEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(a){return a.triggersBoundsOfConnectedEdges},function(a){t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};Gi.checkParallelEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(a){return a.triggersBoundsOfParallelEdges},function(a){t.parallelEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};Gi.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 zT={};zT.applyBypass=function(t,e,r,n){var a=this,i=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;oa.length?n=n.substr(a.length):n=""}function l(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var u=n.match(/^\s*$/);if(u)break;var d=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!d){Mn("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}a=d[0];var h=d[1];if(h!=="core"){var f=new kh(h);if(f.invalid){Mn("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var p=d[2],g=!1;i=p;for(var m=[];;){var v=i.match(/^\s*$/);if(v)break;var y=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!y){Mn("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+p),g=!0;break}s=y[0];var b=y[1],_=y[2],S=e.properties[b];if(!S){Mn("Skipping property: Invalid property name in: "+s),l();continue}var x=r.parse(b,_);if(!x){Mn("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 Mn("`"+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 v=g.value,y=m.value,b=v[0]===y[0]&&v[1]===y[1]&&v[2]===y[2]&&(v[3]===y[3]||(v[3]==null||v[3]===1)&&(y[3]==null||y[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+/):$n(e)?_=e:_=[e],u.evenMultiple&&_.length%2!==0)return null;for(var S=[],x=[],C=[],T="",w=!1,R=0;R<_.length;R++){var O=a.parse(t,_[R],r,"multiple");w=w||wr(O.value),S.push(O.value),C.push(O.pfValue!=null?O.pfValue:O.value),x.push(O.units),T+=(R>0?" ":"")+O.strValue}return u.validate&&!u.validate(S,x)?null:u.singleEnum&&w?S.length===1&&wr(S[0])?{name:t,value:S[0],strValue:S[0],bypass:r}:null:{name:t,value:S,pfValue:C,strValue:T,bypass:r,units:x}}var M=function(){for(var te=0;teu.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:kgt(e)),$==="%"&&(D.pfValue=e/100),D}else if(u.propList){var L=[],N=""+e;if(N!=="none"){for(var P=N.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,a=r.zoom,i,s,o=!1;if(r.zoomingEnabled||(o=!0),nr(e)?s=e:mn(e)&&(s=e.level,e.position!=null?i=H7(e.position,a,n):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,i.push("zoom"))}if(a&&(!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||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.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(wr(e)){var n=e;e=this.mutableElements().filter(n)}else Po(e)||(e=this.mutableElements());if(e.length!==0){var a=e.boundingBox(),i=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(i-r*(a.x1+a.x2))/2,y:(s-r*(a.y1+a.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 a=n.window().getComputedStyle(r),i=function(o){return parseFloat(a.getPropertyValue(o))};return{width:r.clientWidth-i("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("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(),a={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 a.w=a.x2-a.x1,a.h=a.y2-a.y1,a},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}};Yp.centre=Yp.center;Yp.autolockNodes=Yp.autolock;Yp.autoungrabifyNodes=Yp.autoungrabify;var k4={data:Dn.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Dn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Dn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Dn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};k4.attr=k4.data;k4.removeAttr=k4.removeData;var A4=function(e){var r=this;e=Or({},e);var n=e.container;n&&!z6(n)&&z6(n[0])&&(n=n[0]);var a=n?n._cyreg:null;a=a||{},a&&a.cy&&(a.cy.destroy(),a={});var i=a.readies=a.readies||[];n&&(n._cyreg=a),a.cy=r;var s=_i!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=Or({name:s?"grid":"null"},o.layout),o.renderer=Or({name:s?"canvas":"null"},o.renderer);var l=function(g,m,v){return m!==void 0?m:v!==void 0?v:g},u=this._private={container:n,ready:!1,options:o,elements:new Zi(this),listeners:[],aniEles:new Zi(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:mn(o.pan)&&nr(o.pan.x)?o.pan.x:0,y:mn(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 v=g.some(Ept);if(v)return g2.all(g).then(m);m(g)};u.styleEnabled&&r.setStyle([]);var h=Or({},o,o.renderer);r.initRenderer(h);var f=function(g,m,v){r.notifications(!1);var y=r.mutableElements();y.length>0&&y.remove(),g!=null&&(mn(g)||$n(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",v),r.emit("done")});var b=Or({},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,Na(o.ready)&&r.on("ready",o.ready);for(var v=0;v0,o=!!t.boundingBox,l=Ws(o?t.boundingBox:structuredClone(e.extent())),u;if(Po(t.roots))u=t.roots;else if($n(t.roots)){for(var d=[],h=0;h0;){var A=F(),I=R(A,M);if(I)A.outgoers().filter(function(xe){return xe.isNode()&&r.has(xe)}).forEach($);else if(I===null){Mn("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&&y[0].length<=3?je/2:0),lt=2*Math.PI/y[ut].length*Ae;return ut===0&&y[0].length===1&&(ot=1),{x:re.x+ot*Math.cos(lt),y:re.y+ot*Math.sin(lt)}}else{var ct=y[ut].length,it=Math.max(ct===1?0:o?(l.w-t.padding*2-ge.w)/((t.grid?Be:ct)-1):(l.w-t.padding*2-ge.w)/((t.grid?Be:ct)+1),D),ke={x:re.x+(Ae+1-(ct+1)/2)*it,y:re.y+(ut+1-(Y+1)/2)*pe};return ke}},He={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(He).indexOf(t.direction)===-1&&ua("Invalid direction '".concat(t.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(He).join(", ")));var Re=function($e){return jpt(Le($e),l,He[t.direction])};return r.nodes().layoutPositions(this,t,Re),this};var Mvt={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 a2e(t){this.options=Or({},Mvt,t)}a2e.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,a=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=n.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var s=Ws(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/i.length:e.sweep,u=l/Math.max(1,i.length-1),d,h=0,f=0;f1&&e.avoidOverlap){h*=1.75;var y=Math.cos(u)-Math.cos(0),b=Math.sin(u)-Math.sin(0),_=Math.sqrt(h*h/(y*y+b*b));d=Math.max(_,d)}var S=function(C,T){var w=e.startAngle+T*u*(a?1:-1),R=d*Math.cos(w),O=d*Math.sin(w),M={x:o.x+R,y:o.y+O};return M};return n.nodes().layoutPositions(this,e,S),this};var Pvt={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 i2e(t){this.options=Or({},Pvt,t)}i2e.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=t.cy,a=e.eles,i=a.nodes().not(":parent"),s=Ws(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-S.value);x>=v&&(b=[],y.push(b))}b.push(S)}var C=u+e.minNodeSpacing;if(!e.avoidOverlap){var T=y.length>0&&y[0].length>1,w=Math.min(s.w,s.h)/2-C,R=w/(y.length+T?1:0);C=Math.min(C,R)}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 N=0,P=0,z=0;z=t.numIter||(qvt(n,t),n.temperature=n.temperature*t.coolingFactor,n.temperature=t.animationThreshold&&i(),U6(d)}};d()}else{for(;u;)u=s(l),l++;Bie(n,t),o()}return this};nA.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};nA.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Fvt=function(e,r,n){for(var a=n.eles.edges(),i=n.eles.nodes(),s=Ws(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:a.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;da.count?0:a.graph},s2e=function(e,r,n,a){var i=a.graphSet[n];if(-10)var h=a.nodeOverlap*d,f=Math.sqrt(o*o+l*l),p=h*o/f,g=h*l/f;else var m=K6(e,o,l),v=K6(r,-1*o,-1*l),y=v.x-m.x,b=v.y-m.y,_=y*y+b*b,f=Math.sqrt(_),h=(e.nodeRepulsion+r.nodeRepulsion)/_,p=h*y/f,g=h*b/f;e.isLocked||(e.offsetX-=p,e.offsetY-=g),r.isLocked||(r.offsetX+=p,r.offsetY+=g)}},Vvt=function(e,r,n,a){if(n>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(a>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},K6=function(e,r,n){var a=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=n/r,u=s/o,d={};return r===0&&0n?(d.x=a,d.y=i+s/2,d):0r&&-1*u<=l&&l<=u?(d.x=a-o/2,d.y=i-o*n/2/r,d):0=u)?(d.x=a+s*r/2/n,d.y=i+s/2,d):(0>n&&(l<=-1*u||l>=u)&&(d.x=a-s*r/2/n,d.y=i-s/2),d)},Wvt=function(e,r){for(var n=0;nn){var v=r.gravity*p/m,y=r.gravity*g/m;f.offsetX+=v,f.offsetY+=y}}}}},Xvt=function(e,r){var n=[],a=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;a<=i;){var s=n[a++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0n)var i={x:n*e/a,y:n*r/a};else var i={x:e,y:r};return i},l2e=function(e,r){var n=e.parentId;if(n!=null){var a=r.layoutNodes[r.idToIndex[n]],i=!1;if((a.maxX==null||e.maxX+a.padRight>a.maxX)&&(a.maxX=e.maxX+a.padRight,i=!0),(a.minX==null||e.minX-a.padLefta.maxY)&&(a.maxY=e.maxY+a.padBottom,i=!0),(a.minY==null||e.minY-a.padTopy&&(g+=v+r.componentSpacing,p=0,m=0,v=0)}}},Zvt={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 c2e(t){this.options=Or({},Zvt,t)}c2e.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));var i=Ws(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)n.nodes().layoutPositions(this,e,function(G){return{x:i.x1,y:i.y1}});else{var s=a.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),d=function(K){if(K==null)return Math.min(l,u);var Y=Math.min(l,u);Y==l?l=K:u=K},h=function(K){if(K==null)return Math.max(l,u);var Y=Math.max(l,u);Y==l?l=K:u=K},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(y+1):d(v+1)}var b=i.w/u,_=i.h/l;if(e.condense&&(b=0,_=0),e.avoidOverlap)for(var S=0;S=u&&(I=0,A++)},L={},N=0;N(I=Ugt(t,e,D[L],D[L+1],D[L+2],D[L+3])))return v(T,I),!0}else if(R.edgeType==="bezier"||R.edgeType==="multibezier"||R.edgeType==="self"||R.edgeType==="compound"){for(var D=R.allpts,L=0;L+5(I=zgt(t,e,D[L],D[L+1],D[L+2],D[L+3],D[L+4],D[L+5])))return v(T,I),!0}for(var N=N||w.source,P=P||w.target,z=a.getArrowWidth(O,M),B=[{name:"source",x:R.arrowStartX,y:R.arrowStartY,angle:R.srcArrowAngle},{name:"target",x:R.arrowEndX,y:R.arrowEndY,angle:R.tgtArrowAngle},{name:"mid-source",x:R.midX,y:R.midY,angle:R.midsrcArrowAngle},{name:"mid-target",x:R.midX,y:R.midY,angle:R.midtgtArrowAngle}],L=0;L0&&(y(N),y(P))}function _(T,w,R){return po(T,w,R)}function S(T,w){var R=T._private,O=f,M;w?M=w+"-":M="",T.boundingBox();var $=R.labelBounds[w||"main"],F=T.pstyle(M+"label").value,A=T.pstyle("text-events").strValue==="yes";if(!(!A||!F)){var I=_(R.rscratch,"labelX",w),D=_(R.rscratch,"labelY",w),L=_(R.rscratch,"labelAngle",w),N=T.pstyle(M+"text-margin-x").pfValue,P=T.pstyle(M+"text-margin-y").pfValue,z=$.x1-O-N,B=$.x2+O-N,U=$.y1-O-P,G=$.y2+O-P;if(L){var K=Math.cos(L),Y=Math.sin(L),ee=function(ge,pe){return ge=ge-I,pe=pe-D,{x:ge*K-pe*Y+I,y:ge*Y+pe*K+D}},X=ee(z,U),le=ee(z,G),te=ee(B,U),ne=ee(B,G),ae=[X.x+N,X.y+P,te.x+N,te.y+P,ne.x+N,ne.y+P,le.x+N,le.y+P];if(go(t,e,ae))return v(T),!0}else if(Wd($,t,e))return v(T),!0}}for(var x=s.length-1;x>=0;x--){var C=s[x];C.isNode()?y(C)||S(C):b(C)||S(C)||S(C,"source")||S(C,"target")}return o};fg.getAllInBox=function(t,e,r,n){var a=this.getCachedZSortedEles().interactive,i=this.cy.zoom(),s=2/i,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=Ws({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(ge,pe,Be){return po(ge,pe,Be)}function v(ge,pe){var Be=ge._private,Le=s,He="";ge.boundingBox();var Re=Be.labelBounds.main;if(!Re)return null;var xe=m(Be.rscratch,"labelX",pe),$e=m(Be.rscratch,"labelY",pe),Ce=m(Be.rscratch,"labelAngle",pe),ut=ge.pstyle(He+"text-margin-x").pfValue,Ae=ge.pstyle(He+"text-margin-y").pfValue,je=Re.x1-Le-ut,ot=Re.x2+Le-ut,lt=Re.y1-Le-Ae,ct=Re.y2+Le-Ae;if(Ce){var it=Math.cos(Ce),ke=Math.sin(Ce),Qe=function(ye,q){return ye=ye-xe,q=q-$e,{x:ye*it-q*ke+xe,y:ye*ke+q*it+$e}};return[Qe(je,lt),Qe(ot,lt),Qe(ot,ct),Qe(je,ct)]}else return[{x:je,y:lt},{x:ot,y:lt},{x:ot,y:ct},{x:je,y:ct}]}function y(ge,pe,Be,Le){function He(Re,xe,$e){return($e.y-Re.y)*(xe.x-Re.x)>(xe.y-Re.y)*($e.x-Re.x)}return He(ge,Be,Le)!==He(pe,Be,Le)&&He(ge,pe,Be)!==He(ge,pe,Le)}for(var b=0;b0?-(Math.PI-e.ang):Math.PI+e.ang},ayt=function(e,r,n,a,i){if(e!==Gie?qie(r,e,Oc):nyt(ul,Oc),qie(r,n,ul),zie=Oc.nx*ul.ny-Oc.ny*ul.nx,Uie=Oc.nx*ul.nx-Oc.ny*-ul.ny,Yu=Math.asin(Math.max(-1,Math.min(1,zie))),Math.abs(Yu)<1e-6){JB=r.x,eF=r.y,If=Qg=0;return}Yf=1,R5=!1,Uie<0?Yu<0?Yu=Math.PI+Yu:(Yu=Math.PI-Yu,Yf=-1,R5=!0):Yu>0&&(Yf=-1,R5=!0),r.radius!==void 0?Qg=r.radius:Qg=a,vf=Yu/2,E3=Math.min(Oc.len/2,ul.len/2),i?(wc=Math.abs(Math.cos(vf)*Qg/Math.sin(vf)),wc>E3?(wc=E3,If=Math.abs(wc*Math.sin(vf)/Math.cos(vf))):If=Qg):(wc=Math.min(E3,Qg),If=Math.abs(wc*Math.sin(vf)/Math.cos(vf))),tF=r.x+ul.nx*wc,rF=r.y+ul.ny*wc,JB=tF-ul.ny*If*Yf,eF=rF+ul.nx*If*Yf,f2e=r.x+Oc.nx*wc,p2e=r.y+Oc.ny*wc,Gie=r};function g2e(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 xY(t,e,r,n){var a=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}:(ayt(t,e,r,n,a),{cx:JB,cy:eF,radius:If,startX:f2e,startY:p2e,stopX:tF,stopY:rF,startAngle:Oc.ang+Math.PI/2*Yf,endAngle:ul.ang-Math.PI/2*Yf,counterClockwise:R5})}var R4=.01,iyt=Math.sqrt(2*R4),vs={};vs.findMidptPtsEtc=function(t,e){var r=e.posPts,n=e.intersectionPts,a=e.vectorNormInverse,i,s=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),l=s.units!=null&&o.units!=null,u=function(x,C,T,w){var R=w-C,O=T-x,M=Math.sqrt(O*O+R*R);return{x:-R/M,y:O/M}},d=t.pstyle("edge-distances").value;switch(d){case"node-position":i=r;break;case"intersection":i=n;break;case"endpoints":{if(l){var h=this.manualEndptToPx(t.source()[0],s),f=Za(h,2),p=f[0],g=f[1],m=this.manualEndptToPx(t.target()[0],o),v=Za(m,2),y=v[0],b=v[1],_={x1:p,y1:g,x2:y,y2:b};a=u(p,g,y,b),i=_}else Mn("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).")),i=n;break}}return{midptPts:i,vectorNormInverse:a}};vs.findHaystackPoints=function(t){for(var e=0;e0?Math.max(q-fe,0):Math.min(q+fe,0)},F=$(O,w),A=$(M,R),I=!1;b===u?y=Math.abs(F)>Math.abs(A)?a:n:b===l||b===o?(y=n,I=!0):(b===i||b===s)&&(y=a,I=!0);var D=y===n,L=D?A:F,N=D?M:O,P=dY(N),z=!1;!(I&&(S||C))&&(b===o&&N<0||b===l&&N>0||b===i&&N>0||b===s&&N<0)&&(P*=-1,L=P*Math.abs(L),z=!0);var B;if(S){var U=x<0?1+x:x;B=U*L}else{var G=x<0?L:0;B=G+x*P}var K=function(q){return Math.abs(q)=Math.abs(L)},Y=K(B),ee=K(Math.abs(L)-Math.abs(B)),X=Y||ee;if(X&&!z)if(D){var le=Math.abs(N)<=f/2,te=Math.abs(O)<=p/2;if(le){var ne=(d.x1+d.x2)/2,ae=d.y1,re=d.y2;r.segpts=[ne,ae,ne,re]}else if(te){var ge=(d.y1+d.y2)/2,pe=d.x1,Be=d.x2;r.segpts=[pe,ge,Be,ge]}else r.segpts=[d.x1,d.y2]}else{var Le=Math.abs(N)<=h/2,He=Math.abs(M)<=g/2;if(Le){var Re=(d.y1+d.y2)/2,xe=d.x1,$e=d.x2;r.segpts=[xe,Re,$e,Re]}else if(He){var Ce=(d.x1+d.x2)/2,ut=d.y1,Ae=d.y2;r.segpts=[Ce,ut,Ce,Ae]}else r.segpts=[d.x2,d.y1]}else if(D){var je=d.y1+B+(v?f/2*P:0),ot=d.x1,lt=d.x2;r.segpts=[ot,je,lt,je]}else{var ct=d.x1+B+(v?h/2*P:0),it=d.y1,ke=d.y2;r.segpts=[ct,it,ct,ke]}if(r.isRound){var Qe=t.pstyle("taxi-radius").value,_e=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(Qe),r.isArcRadius=new Array(r.segpts.length/2).fill(_e)}};vs.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var n=e.srcPos,a=e.tgtPos,i=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),v=!nr(r.arrowStartX)||!nr(r.arrowStartY),y=!nr(r.endX)||!nr(r.endY),b=!nr(r.arrowEndX)||!nr(r.arrowEndY),_=3,S=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,x=_*S,C=Gp({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),T=CN.poolIndex()){var P=L;L=N,N=P}var z=F.srcPos=L.position(),B=F.tgtPos=N.position(),U=F.srcW=L.outerWidth(),G=F.srcH=L.outerHeight(),K=F.tgtW=N.outerWidth(),Y=F.tgtH=N.outerHeight(),ee=F.srcShape=r.nodeShapes[e.getNodeShape(L)],X=F.tgtShape=r.nodeShapes[e.getNodeShape(N)],le=F.srcCornerRadius=L.pstyle("corner-radius").value==="auto"?"auto":L.pstyle("corner-radius").pfValue,te=F.tgtCornerRadius=N.pstyle("corner-radius").value==="auto"?"auto":N.pstyle("corner-radius").pfValue,ne=F.tgtRs=N._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 re=0;re=iyt||(lt=Math.sqrt(Math.max(ot*ot,R4)+Math.max(je*je,R4)));var ct=F.vector={x:ot,y:je},it=F.vectorNorm={x:ct.x/lt,y:ct.y/lt},ke={x:-it.y,y:it.x};F.nodesOverlap=!nr(lt)||X.checkPoint(Re[0],Re[1],0,K,Y,B.x,B.y,te,ne)||ee.checkPoint($e[0],$e[1],0,U,G,z.x,z.y,le,ae),F.vectorNormInverse=ke,A={nodesOverlap:F.nodesOverlap,dirCounts:F.dirCounts,calculatedIntersection:!0,hasBezier:F.hasBezier,hasUnbundled:F.hasUnbundled,eles:F.eles,srcPos:B,srcRs:ne,tgtPos:z,tgtRs:ae,srcW:K,srcH:Y,tgtW:U,tgtH:G,srcIntn:Ce,tgtIntn:xe,srcShape:X,tgtShape:ee,posPts:{x1:Ae.x2,y1:Ae.y2,x2:Ae.x1,y2:Ae.y1},intersectionPts:{x1:ut.x2,y1:ut.y2,x2:ut.x1,y2:ut.y1},vector:{x:-ct.x,y:-ct.y},vectorNorm:{x:-it.x,y:-it.y},vectorNormInverse:{x:-ke.x,y:-ke.y}}}var Qe=He?A:F;pe.nodesOverlap=Qe.nodesOverlap,pe.srcIntn=Qe.srcIntn,pe.tgtIntn=Qe.tgtIntn,pe.isRound=Be.startsWith("round"),a&&(L.isParent()||L.isChild()||N.isParent()||N.isChild())&&(L.parents().anySame(N)||N.parents().anySame(L)||L.same(N)&&L.isParent())?e.findCompoundLoopPoints(ge,Qe,re,Le):L===N?e.findLoopPoints(ge,Qe,re,Le):Be.endsWith("segments")?e.findSegmentsPoints(ge,Qe):Be.endsWith("taxi")?e.findTaxiPoints(ge,Qe):Be==="straight"||!Le&&F.eles.length%2===1&&re===Math.floor(F.eles.length/2)?e.findStraightEdgePoints(ge):e.findBezierPoints(ge,Qe,re,Le,He),e.findEndpoints(ge),e.tryToCorrectInvalidPoints(ge,Qe),e.checkForInvalidEdgeWarning(ge),e.storeAllpts(ge),e.storeEdgeProjections(ge),e.calculateArrowAngles(ge),e.recalculateEdgeLabelProjections(ge),e.calculateLabelAngles(ge)}},T=0;T0){var Re=u,xe=Nf(Re,Fm(s)),$e=Nf(Re,Fm(He)),Ce=xe;if($e2){var ut=Nf(Re,{x:He[2],y:He[3]});ut0){var j=d,we=Nf(j,Fm(s)),Te=Nf(j,Fm(fe)),rt=we;if(Te2){var Oe=Nf(j,{x:fe[2],y:fe[3]});Oe=g||T){v={cp:S,segment:C};break}}if(v)break}var w=v.cp,R=v.segment,O=(g-y)/R.length,M=R.t1-R.t0,$=p?R.t0+M*O:R.t1-M*O;$=T4(0,$,1),e=c1(w.p0,w.p1,w.p2,$),f=oyt(w.p0,w.p1,w.p2,$);break}case"straight":case"segments":case"haystack":{for(var F=0,A,I,D,L,N=n.allpts.length,P=0;P+3=g));P+=2);var z=g-I,B=z/A;B=T4(0,B,1),e=Rgt(D,L,B),f=y2e(D,L);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,f)}};u("source"),u("target"),this.applyLabelDimensions(t)}};Au.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};Au.applyPrefixedLabelDimensions=function(t,e){var r=t._private,n=this.getLabelText(t,e),a=Up(n,t._private.labelDimsKey);if(po(r.rscratch,"prefixedLabelDimsKey",e)!==a){r0(r.rscratch,"prefixedLabelDimsKey",e,a);var i=this.calculateLabelDimensions(t,n),s=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,l=po(r.rscratch,"labelWrapCachedLines",e)||[],u=o!=="wrap"?1:Math.max(l.length,1),d=i.height/u,h=d*s,f=i.width,p=i.height+(u-1)*(s-1)*d;r0(r.rstyle,"labelWidth",e,f),r0(r.rscratch,"labelWidth",e,f),r0(r.rstyle,"labelHeight",e,p),r0(r.rscratch,"labelHeight",e,p),r0(r.rscratch,"labelLineHeight",e,h)}};Au.getLabelText=function(t,e){var r=t._private,n=e?e+"-":"",a=t.pstyle(n+"label").strValue,i=t.pstyle("text-transform").value,s=function(G,K){return K?(r0(r.rscratch,G,e,K),K):po(r.rscratch,G,e)};if(!a)return"";i=="none"||(i=="uppercase"?a=a.toUpperCase():i=="lowercase"&&(a=a.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=a.split(` +Parent cluster`,a.height),e.setNode(a.id,y),e.parent(m)||(oe.trace("Setting parent",m,a.id),e.setParent(m,a.id,y))}if(oe.info("(Insert) Node XXX"+m+": "+JSON.stringify(e.node(m))),v?.clusterNode){oe.info("Cluster identified XBX",m,v.width,e.node(m));const{ranksep:y,nodesep:b}=e.graph();v.graph.setGraph({...v.graph.graph(),ranksep:y+25,nodesep:b});const _=await Q_e(h,v.graph,r,n,e.node(m),i),S=_.elem;vr(v,S),v.diff=_.diff||0,oe.info("New compound node after recursive render XAX",m,"width",v.width,"height",v.height),tje(S,v)}else e.children(m).length>0?(oe.trace("Cluster - the non recursive path XBX",m,v.id,v,v.width,"Graph:",e),oe.trace(_4(v.id,e)),an.set(v.id,{id:_4(v.id,e),node:v})):(oe.trace("Node - the non recursive path XAX",m,h,e.node(m),s),await n7(h,e.node(m),{config:i,dir:s}))})),await E(async()=>{const m=e.edges().map(async function(v){const y=e.edge(v.v,v.w,v.name);oe.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),oe.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(e.edge(v))),oe.info("Fix",an,"ids:",v.v,v.w,"Translating: ",an.get(v.v),an.get(v.w)),await Dme(d,y)});await Promise.all(m)},"processEdges")(),oe.info("Graph before layout:",JSON.stringify(Qc(e))),oe.info("############################################# XXX"),oe.info("### Layout ### XXX"),oe.info("############################################# XXX"),H_e(e),oe.info("Graph after layout:",JSON.stringify(Qc(e)));let p=0,{subGraphTitleTotalMargin:g}=_T(i);return await Promise.all(npt(e).map(async function(m){const v=e.node(m);if(oe.info("Position XBX => "+m+": ("+v.x,","+v.y,") width: ",v.width," height: ",v.height),v?.clusterNode)v.y+=g,oe.info("A tainted cluster node XBX1",m,v.id,v.width,v.height,v.x,v.y,e.parent(m)),an.get(v.id).node=v,eB(v);else if(e.children(m).length>0){oe.info("A pure cluster node XBX1",m,v.id,v.x,v.y,v.width,v.height,e.parent(m)),v.height+=g,e.node(v.parentId);const y=v?.padding/2||0,b=v?.labelBBox?.height||0,_=b-y||0;oe.debug("OffsetY",_,"labelHeight",b,"halfPadding",y),await VG(l,v),an.get(v.id).node=v}else{const y=e.node(v.parentId);v.y+=g/2,oe.info("A regular node XBX1 - using the padding",v.id,"parent",v.parentId,v.width,v.height,v.x,v.y,"offsetY",v.offsetY,"parent",y,y?.offsetY,v),eB(v)}})),e.edges().forEach(function(m){const v=e.edge(m);oe.info("Edge "+m.v+" -> "+m.w+": "+JSON.stringify(v),v),v.points.forEach(S=>S.y+=g/2);const y=e.node(m.v);var b=e.node(m.w);const _=Pme(u,v,an,r,y,b,n);Lme(v,_)}),e.nodes().forEach(function(m){const v=e.node(m);oe.info(m,v.type,v.diff),v.isGroup&&(p=v.diff)}),oe.warn("Returning from recursive render XAX",o,p),{elem:o,diff:p}},"recursiveRender"),apt=E(async(t,e)=>{const r=new ko({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");$me(n,t.markers,t.type,t.diagramId),rje(),oje(),MXe(),Jft(),t.nodes.forEach(i=>{r.setNode(i.id,{...i}),i.parentId&&r.setParent(i.id,i.parentId)}),oe.debug("Edges:",t.edges),t.edges.forEach(i=>{if(i.start===i.end){const s=i.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(i),h=structuredClone(i),f=structuredClone(i);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:a}}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 i,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,i=l},f:function(){try{s||r.return==null||r.return()}finally{if(o)throw i}}}}function Z_e(t,e,r){return(e=J_e(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cpt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function upt(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,s,o=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function dpt(){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 hpt(){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 Za(t,e){return spt(t)||upt(t,e)||nY(t,e)||dpt()}function $6(t){return opt(t)||cpt(t)||nY(t)||hpt()}function fpt(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 J_e(t){var e=fpt(t,"string");return typeof e=="symbol"?e:e+""}function Ai(t){"@babel/helpers - typeof";return Ai=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},Ai(t)}function nY(t,e){if(t){if(typeof t=="string")return GB(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)?GB(t,e):void 0}}var _i=typeof window>"u"?null:window,Mne=_i?_i.navigator:null;_i&&_i.document;var ppt=Ai(""),ebe=Ai({}),gpt=Ai(function(){}),mpt=typeof HTMLElement>"u"?"undefined":Ai(HTMLElement),OT=function(e){return e&&e.instanceString&&Na(e.instanceString)?e.instanceString():null},wr=function(e){return e!=null&&Ai(e)==ppt},Na=function(e){return e!=null&&Ai(e)===gpt},$n=function(e){return!Po(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},mn=function(e){return e!=null&&Ai(e)===ebe&&!$n(e)&&e.constructor===Object},vpt=function(e){return e!=null&&Ai(e)===ebe},nr=function(e){return e!=null&&Ai(e)===Ai(1)&&!isNaN(e)},ypt=function(e){return nr(e)&&Math.floor(e)===e},z6=function(e){if(mpt!=="undefined")return e!=null&&e instanceof HTMLElement},Po=function(e){return DT(e)||tbe(e)},DT=function(e){return OT(e)==="collection"&&e._private.single},tbe=function(e){return OT(e)==="collection"&&!e._private.single},aY=function(e){return OT(e)==="core"},rbe=function(e){return OT(e)==="stylesheet"},_pt=function(e){return OT(e)==="event"},xh=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},bpt=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Ept=function(e){return mn(e)&&nr(e.x1)&&nr(e.x2)&&nr(e.y1)&&nr(e.y2)},Spt=function(e){return vpt(e)&&Na(e.then)},Tpt=function(){return Mne&&Mne.userAgent.match(/msie|trident|edge/i)},xb=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},Npt=function(e,r){return-1*abe(e,r)},Or=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(v-=1),v<1/6?g+(m-g)*6*v:v<1/2?m:v<2/3?g+(m-g)*(2/3-v)*6:g}var h=new RegExp("^"+wpt+"$").exec(e);if(h){if(n=parseInt(h[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,a=parseFloat(h[2]),a<0||a>100||(a=a/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(a===0)o=l=u=Math.round(i*255);else{var f=i<.5?i*(1+a):i+a-i*a,p=2*i-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},Dpt=function(e){var r,n=new RegExp("^"+xpt+"$").exec(e);if(n){r=[];for(var a=[],i=1;i<=3;i++){var s=n[i];if(s[s.length-1]==="%"&&(a[i]=!0),s=parseFloat(s),a[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=a[1]||a[2]||a[3],l=a[1]&&a[2]&&a[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},Lpt=function(e){return Mpt[e.toLowerCase()]},ibe=function(e){return($n(e)?e:null)||Lpt(e)||Ipt(e)||Dpt(e)||Opt(e)},Mpt={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]},sbe=function(e){for(var r=e.map,n=e.keys,a=n.length,i=0;i=l||A<0||b&&I>=f}function w(){var F=e();if(T(F))return R(F);g=setTimeout(w,C(F))}function R(F){return g=void 0,_&&d?S(F):(d=h=void 0,p)}function O(){g!==void 0&&clearTimeout(g),v=0,d=m=h=g=void 0}function M(){return g===void 0?p:R(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),S(m)}return g===void 0&&(g=setTimeout(w,l)),p}return $.cancel=O,$.flush=M,$}return kD=s,kD}var Hpt=Ypt(),BT=LT(Hpt),AD=_i?_i.performance:null,cbe=AD&&AD.now?function(){return AD.now()}:function(){return Date.now()},Vpt=(function(){if(_i){if(_i.requestAnimationFrame)return function(t){_i.requestAnimationFrame(t)};if(_i.mozRequestAnimationFrame)return function(t){_i.mozRequestAnimationFrame(t)};if(_i.webkitRequestAnimationFrame)return function(t){_i.webkitRequestAnimationFrame(t)};if(_i.msRequestAnimationFrame)return function(t){_i.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(cbe())},1e3/60)}})(),U6=function(e){return Vpt(e)},D0=cbe,qf=9261,ube=65599,pm=5381,dbe=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qf,n=r,a;a=e.next(),!a.done;)n=n*ube+a.value|0;return n},b4=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qf;return r*ube+e|0},E4=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pm;return(r<<5)+r+e|0},Wpt=function(e,r){return e*2097152+r},Sd=function(e){return e[0]*2097152+e[1]},h3=function(e,r){return[b4(e[0],r[0]),E4(e[1],r[1])]},Qne=function(e,r){var n={value:0,done:!1},a=0,i=e.length,s={next:function(){return a=0;a--)e[a]===r&&e.splice(a,1)},cY=function(e){e.splice(0,e.length)},ngt=function(e,r){for(var n=0;n"u"?"undefined":Ai(Set))!==igt?Set:sgt,Y7=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!aY(e)){ua("An element must have a core reference and parameters set");return}var a=r.group;if(a==null&&(r.data&&r.data.source!=null&&r.data.target!=null?a="edges":a="nodes"),a!=="nodes"&&a!=="edges"){ua("An element must be of type `nodes` or `edges`; you specified `"+a+"`");return}this.length=1,this[0]=this;var i=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:a,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?a==="edges":!!r.pannable,active:!1,classes:new p2,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(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];$n(r.classes)?u=r.classes:wr(r.classes)&&(u=r.classes.split(/\s+/));for(var d=0,h=u.length;db?1:0},d=function(y,b,_,S,x){var C;if(_==null&&(_=0),x==null&&(x=n),_<0)throw new Error("lo must be non-negative");for(S==null&&(S=y.length);_O;0<=O?R++:R--)w.push(R);return w}).apply(this).reverse(),T=[],S=0,x=C.length;SM;0<=M?++w:--w)$.push(s(y,_));return $},m=function(y,b,_,S){var x,C,T;for(S==null&&(S=n),x=y[_];_>b;){if(T=_-1>>1,C=y[T],S(x,C)<0){y[_]=C,_=T;continue}break}return y[_]=x},v=function(y,b,_){var S,x,C,T,w;for(_==null&&(_=n),x=y.length,w=b,C=y[b],S=2*b+1;S0;){var C=b.pop(),T=v(C),w=C.id();if(f[w]=T,T!==1/0)for(var R=C.neighborhood().intersect(g),O=0;O0)for(N.unshift(L);h[z];){var B=h[z];N.unshift(B.edge),N.unshift(B.node),P=B.node,z=P.id()}return o.spawn(N)}}}},fgt={kruskal:function(e){e=e||function(_){return 1};for(var r=this.byGroup(),n=r.nodes,a=r.edges,i=n.length,s=new Array(i),o=n,l=function(S){for(var x=0;x0;){if(x(),T++,S===d){for(var w=[],R=i,O=d,M=y[O];w.unshift(R),M!=null&&w.unshift(M),R=v[O],R!=null;)O=R.id(),M=y[O];return{found:!0,distance:h[S],path:this.spawn(w),steps:T}}p[S]=!0;for(var $=_._private.edges,F=0;F<$.length;F++){var A=$[F];if(this.hasElementWithId(A.id())&&!(o&&A.data("source")!==S)){var I=A.source(),D=A.target(),L=I.id()!==S?I:D,N=L.id();if(this.hasElementWithId(N)&&!p[N]){var P=h[S]+l(A);if(!C(N)){h[N]=P,f[N]=P+s(L),b(L,N),v[N]=_,y[N]=A;continue}PM&&(g[O]=M,b[O]=R,_[O]=x),!i){var $=R*d+w;!i&&g[$]>M&&(g[$]=M,b[$]=w,_[$]=x)}}}for(var F=0;F1&&arguments[1]!==void 0?arguments[1]:s,$e=_(Re),Ce=[],ut=$e;;){if(ut==null)return r.spawn();var Ae=b(ut),je=Ae.edge,ot=Ae.pred;if(Ce.unshift(ut[0]),ut.same(xe)&&Ce.length>0)break;je!=null&&Ce.unshift(je),ut=ot}return l.spawn(Ce)},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;ga;){var i=Math.floor(Math.random()*r.length);r=Egt(i,e,r),n--}return r},Sgt={kargerStein:function(){var e=this,r=this.byGroup(),n=r.nodes,a=r.edges;a.unmergeBy(function(N){return N.isLoop()});var i=n.length,s=a.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/bgt);if(i<2){ua("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,a=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;a?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)}i&&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},Agt=function(e){return Math.PI*e/180},f3=function(e,r){return Math.atan2(r,e)-Math.PI/2},uY=Math.log2||function(t){return Math.log(t)/Math.log(2)},dY=function(e){return e>0?1:e<0?-1:0},Gp=function(e,r){return Math.sqrt(Nf(e,r))},Nf=function(e,r){var n=r.x-e.x,a=r.y-e.y;return n*n+a*a},Rgt=function(e){for(var r=e.length,n=0,a=0;a=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}}},Igt=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Ogt=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Dgt=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},ybe=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},S5=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},T5=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,a,i,s;if(r.length===1)n=a=i=s=r[0];else if(r.length===2)n=i=r[0],s=a=r[1];else if(r.length===4){var o=Za(r,4);n=o[0],a=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=a,e.y1-=n,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},nae=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},hY=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Wd=function(e,r,n){return e.x1<=r&&r<=e.x2&&e.y1<=n&&n<=e.y2},aae=function(e,r){return Wd(e,r.x,r.y)},_be=function(e,r){return Wd(e,r.x1,r.y1)&&Wd(e,r.x2,r.y2)},Lgt=(ID=Math.hypot)!==null&&ID!==void 0?ID:function(t,e){return Math.sqrt(t*t+e*e)};function Mgt(t,e){if(t.length<3)throw new Error("Need at least 3 vertices");var r=function(w,R){return{x:w.x+R.x,y:w.y+R.y}},n=function(w,R){return{x:w.x-R.x,y:w.y-R.y}},a=function(w,R){return{x:w.x*R,y:w.y*R}},i=function(w,R){return w.x*R.y-w.y*R.x},s=function(w){var R=Lgt(w.x,w.y);return R===0?{x:0,y:0}:{x:w.x/R,y:w.y/R}},o=function(w){for(var R=0,O=0;O7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?wh(i,s):l,d=i/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,v=a-h-o,y=n+d-u+o,b=v;if(g=Kd(e,r,n,a,m,v,y,b,!1),g.length>0)return g}if(p){var _=n+d+o,S=a-h+u-o,x=_,C=a+h-u+o;if(g=Kd(e,r,n,a,_,S,x,C,!1),g.length>0)return g}if(f){var T=n-d+u-o,w=a+h+o,R=n+d-u+o,O=w;if(g=Kd(e,r,n,a,T,w,R,O,!1),g.length>0)return g}if(p){var M=n-d-o,$=a-h+u-o,F=M,A=a+h-u+o;if(g=Kd(e,r,n,a,M,$,F,A,!1),g.length>0)return g}var I;{var D=n-d+u,L=a-h+u;if(I=NE(e,r,n,a,D,L,u+o),I.length>0&&I[0]<=D&&I[1]<=L)return[I[0],I[1]]}{var N=n+d-u,P=a-h+u;if(I=NE(e,r,n,a,N,P,u+o),I.length>0&&I[0]>=N&&I[1]<=P)return[I[0],I[1]]}{var z=n+d-u,B=a+h-u;if(I=NE(e,r,n,a,z,B,u+o),I.length>0&&I[0]>=z&&I[1]>=B)return[I[0],I[1]]}{var U=n-d+u,G=a+h-u;if(I=NE(e,r,n,a,U,G,u+o),I.length>0&&I[0]<=U&&I[1]>=G)return[I[0],I[1]]}return[]},Bgt=function(e,r,n,a,i,s,o){var l=o,u=Math.min(n,i),d=Math.max(n,i),h=Math.min(a,s),f=Math.max(a,s);return u-l<=e&&e<=d+l&&h-l<=r&&r<=f+l},Fgt=function(e,r,n,a,i,s,o,l,u){var d={x1:Math.min(n,o,i)-u,x2:Math.max(n,o,i)+u,y1:Math.min(a,l,s)-u,y2:Math.max(a,l,s)+u};return!(ed.x2||rd.y2)},$gt=function(e,r,n,a){n-=a;var i=r*r-4*e*n;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},zgt=function(e,r,n,a,i){var s=1e-5;e===0&&(e=s),r/=e,n/=e,a/=e;var o,l,u,d,h,f,p,g;if(l=(3*n-r*r)/9,u=-(27*a)+r*(9*n-2*(r*r)),u/=54,o=l*l*l+u*u,i[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),i[0]=-p+h+f,p+=(h+f)/2,i[4]=i[2]=-p,p=Math.sqrt(3)*(-f+h)/2,i[3]=p,i[5]=-p;return}if(i[5]=i[3]=0,o===0){g=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-p+2*g,i[4]=i[2]=-(g+p);return}l=-l,d=l*l*l,d=Math.acos(u/Math.sqrt(d)),g=2*Math.sqrt(l),i[0]=-p+g*Math.cos(d/3),i[2]=-p+g*Math.cos((d+2*Math.PI)/3),i[4]=-p+g*Math.cos((d+4*Math.PI)/3)},Ugt=function(e,r,n,a,i,s,o,l){var u=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+a*a-4*a*s+2*a*l+4*s*s-4*s*l+l*l,d=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*a*s-3*a*a-3*a*l-6*s*s+3*s*l,h=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*a*a-6*a*s+a*l-a*r+2*s*s+2*s*r-l*r,f=1*n*i-n*n+n*e-i*e+a*s-a*a+a*r-s*r,p=[];zgt(u,d,h,f,p);for(var g=1e-7,m=[],v=0;v<6;v+=2)Math.abs(p[v+1])=0&&p[v]<=1&&m.push(p[v]);m.push(1),m.push(0);for(var y=-1,b,_,S,x=0;x=0?Su?(e-i)*(e-i)+(r-s)*(r-s):d-f},go=function(e,r,n){for(var a,i,s,o,l,u=0,d=0;d=e&&e>=s||a<=e&&e<=s)l=(e-a)/(s-a)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},L0=function(e,r,n,a,i,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 v=Y6(d,-u);m=q6(v)}else m=d;return go(e,r,m)},qgt=function(e,r,n,a,i,s,o,l){for(var u=new Array(n.length*2),d=0;d=0&&v<=1&&b.push(v),y>=0&&y<=1&&b.push(y),b.length===0)return[];var _=b[0]*l[0]+e,S=b[0]*l[1]+r;if(b.length>1){if(b[0]==b[1])return[_,S];var x=b[1]*l[0]+e,C=b[1]*l[1]+r;return[_,S,x,C]}else return[_,S]},OD=function(e,r,n){return r<=e&&e<=n||n<=e&&e<=r?e:e<=r&&r<=n||n<=r&&r<=e?r:n},Kd=function(e,r,n,a,i,s,o,l,u){var d=e-i,h=n-e,f=o-i,p=r-s,g=a-r,m=l-s,v=f*p-m*d,y=h*p-g*d,b=m*h-f*g;if(b!==0){var _=v/b,S=y/b,x=.001,C=0-x,T=1+x;return C<=_&&_<=T&&C<=S&&S<=T?[e+_*h,r+_*g]:u?[e+_*h,r+_*g]:[]}else return v===0||y===0?OD(e,n,o)===o?[o,l]:OD(e,n,i)===i?[i,s]:OD(i,o,n)===n?[n,a]:[]:[]},Hgt=function(e,r,n,a,i){var s=[],o=a/2,l=i/2,u=r,d=n;s.push({x:u+o*e[0],y:d+l*e[1]});for(var h=1;h0){var m=Y6(h,-l);p=q6(m)}else p=h}else p=n;for(var v,y,b,_,S=0;S2){for(var g=[d[0],d[1]],m=Math.pow(g[0]-e,2)+Math.pow(g[1]-r,2),v=1;vd&&(d=S)},get:function(_){return u[_]}},f=0;f0?I=A.edgesTo(F)[0]:I=F.edgesTo(A)[0];var D=a(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=S.pop(),U=0;U0&&o.push(n[l]);o.length!==0&&i.push(a.collection(o))}return i},smt=function(e,r){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:cmt,o=a,l,u,d=0;d=2?Q2(e,r,n,0,cae,umt):Q2(e,r,n,0,lae)},squaredEuclidean:function(e,r,n){return Q2(e,r,n,0,cae)},manhattan:function(e,r,n){return Q2(e,r,n,0,lae)},max:function(e,r,n){return Q2(e,r,n,-1/0,dmt)}};Cb["squared-euclidean"]=Cb.squaredEuclidean;Cb.squaredeuclidean=Cb.squaredEuclidean;function V7(t,e,r,n,a,i){var s;return Na(t)?s=t:s=Cb[t]||Cb.euclidean,e===0&&Na(t)?s(a,i):s(e,r,n,a,i)}var hmt=ts({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),pY=function(e){return hmt(e)},H6=function(e,r,n,a,i){var s=i!=="kMedoids",o=s?function(h){return n[h]}:function(h){return a[h](n)},l=function(f){return a[f](r)},u=n,d=r;return V7(e,a.length,o,l,u,d)},LD=function(e,r,n){for(var a=n.length,i=new Array(a),s=new Array(a),o=new Array(r),l=null,u=0;un)return!1}return!0},gmt=function(e,r,n){for(var a=0;ao&&(o=r[u][d],l=d);i[l].push(e[u])}for(var h=0;h=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var g=r[s],m=r[a[s]],v;i.mode==="dendrogram"?v={left:g,right:m,key:g.key}:v={value:g.value.concat(m.value),key:g.key},e[g.index]=v,e.splice(m.index,1),r[g.key]=v;for(var y=0;yn[m.key][b.key]&&(l=n[m.key][b.key])):i.linkage==="max"?(l=n[g.key][b.key],n[g.key][b.key]0&&a.push(i);return a},gae=function(e,r,n){for(var a=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&a.push(s)}for(var d=0;du&&(l=d,u=h)}n[i]=s[l]}return a=gae(e,r,n),a},mae=function(e){for(var r=this.cy(),n=this.nodes(),a=kmt(e),i={},s=0;s=M?($=M,M=A,F=I):A>$&&($=A);for(var D=0;D0?1:0;T[R%a.minIterations*o+U]=G,B+=G}if(B>0&&(R>=a.minIterations-1||R==a.maxIterations-1)){for(var K=0,Y=0;Y1||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 S=b.degree(!0);S%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(i){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 S=_,x=[_],C,T,w;h[S].length;)C=h[S].shift(),T=f[C][0],w=f[C][1],S!=w?(h[w]=h[w].filter(function(R){return R!=C}),S=w):!i&&S!=T&&(h[T]=h[T].filter(function(R){return R!=C}),S=T),x.unshift(C),x.unshift(S);return x},m=[],v=[];for(v=g(d);v.length!=1;)h[v[0]].length==0?(m.unshift(s.getElementById(v.shift())),m.unshift(s.getElementById(v.shift()))):v=g(v.shift()).concat(v);m.unshift(s.getElementById(v.shift()));for(var y in h)if(h[y].length)return p;return p.found=!0,p.trail=this.spawn(m,!0),p}},g3=function(){var e=this,r={},n=0,a=0,i=[],s=[],o={},l=function(f,p){for(var g=s.length-1,m=[],v=e.spawn();s[g].x!=f||s[g].y!=p;)m.push(s.pop().edge),g--;m.push(s.pop().edge),m.forEach(function(y){var b=y.connectedNodes().intersection(e);v.merge(y),b.forEach(function(_){var S=_.id(),x=_.connectedEdges().intersection(e);v.merge(_),r[S].cutVertex?v.merge(x.filter(function(C){return C.isLoop()})):v.merge(x)})}),i.push(v)},u=function(f,p,g){f===g&&(a+=1),r[p]={id:n,low:n++,cutVertex:!1};var m=e.getElementById(p).connectedEdges().intersection(e);if(m.size()===0)i.push(e.spawn(e.getElementById(p)));else{var v,y,b,_;m.forEach(function(S){v=S.source().id(),y=S.target().id(),b=v===p?y:v,b!==g&&(_=S.id(),o[_]||(o[_]=!0,s.push({x:p,y:b,edge:S})),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||(a=0,u(f,f),r[f].cutVertex=a>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:i}},Mmt={hopcroftTarjanBiconnected:g3,htbc:g3,htb:g3,hopcroftTarjanBiconnectedComponents:g3},m3=function(){var e=this,r={},n=0,a=[],i=[],s=e.spawn(e),o=function(u){i.push(u),r[u]={index:n,low:n++,explored:!1};var d=e.getElementById(u).connectedEdges().intersection(e);if(d.forEach(function(m){var v=m.target().id();v!==u&&(v in r||o(v),r[v].explored||(r[u].low=Math.min(r[u].low,r[v].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var f=i.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);a.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:a}},Pmt={tarjanStronglyConnected:m3,tsc:m3,tscc:m3,tarjanStronglyConnectedComponents:m3},kbe={};[S4,hgt,fgt,ggt,vgt,_gt,Sgt,Xgt,u1,d1,HB,lmt,Emt,Cmt,Omt,Lmt,Mmt,Pmt].forEach(function(t){Or(kbe,t)});var Abe=0,Rbe=1,Nbe=2,gc=function(e){if(!(this instanceof gc))return new gc(e);this.id="Thenable/1.0.7",this.state=Abe,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))};gc.prototype={fulfill:function(e){return vae(this,Rbe,"fulfillValue",e)},reject:function(e){return vae(this,Nbe,"rejectReason",e)},then:function(e,r){var n=this,a=new gc;return n.onFulfilled.push(_ae(e,a,"fulfill")),n.onRejected.push(_ae(r,a,"reject")),Ibe(n),a.proxy}};var vae=function(e,r,n,a){return e.state===Abe&&(e.state=r,e[n]=a,Ibe(e)),e},Ibe=function(e){e.state===Rbe?yae(e,"onFulfilled",e.fulfillValue):e.state===Nbe&&yae(e,"onRejected",e.rejectReason)},yae=function(e,r,n){if(e[r].length!==0){var a=e[r];e[r]=[];var i=function(){for(var o=0;o0}},clearQueue:function(){return function(){var r=this,n=r.length!==void 0,a=n?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var s=0;s-1}return rL=e,rL}var nL,Gae;function t1t(){if(Gae)return nL;Gae=1;var t=X7();function e(r,n){var a=this.__data__,i=t(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return nL=e,nL}var aL,qae;function r1t(){if(qae)return aL;qae=1;var t=Qmt(),e=Zmt(),r=Jmt(),n=e1t(),a=t1t();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o-1&&n%1==0&&n0&&this.spawn(a).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){$n(e)||(e=e.match(/\S+/g)||[]);for(var n=this,a=r===void 0,i=[],s=0,o=n.length;s0&&this.spawn(i).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}};x5.className=x5.classNames=x5.classes;var gn={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Ti,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};gn.variable="(?:[\\w-.]|(?:\\\\"+gn.metaChar+"))+";gn.className="(?:[\\w-]|(?:\\\\"+gn.metaChar+"))+";gn.value=gn.string+"|"+gn.number;gn.id=gn.variable;(function(){var t,e,r;for(t=gn.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(gn.comparatorOp+="|\\!"+e)})();var Bn=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},XB=[{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 Npt(t.selector,e.selector)}),D1t=(function(){for(var t={},e,r=0;r0&&d.edgeCount>0)return Mn("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(d.edgeCount>1)return Mn("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;d.edgeCount===1&&Mn("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},$1t=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(d){return d??""},r=function(d){return wr(d)?'"'+d+'"':e(d)},n=function(d){return" "+d+" "},a=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,v=d.operator;return"["+m+n(e(v))+r(p)+"]"}case pr.DATA_BOOL:{var y=d.operator,b=d.field;return"["+e(y)+b+"]"}case pr.DATA_EXIST:{var _=d.field;return"["+_+"]"}case pr.META_COMPARE:{var S=d.operator,x=d.field;return"[["+x+n(e(S))+r(p)+"]]"}case pr.STATE:return p;case pr.ID:return"#"+p;case pr.CLASS:return"."+p;case pr.PARENT:case pr.CHILD:return i(d.parent,h)+n(">")+i(d.child,h);case pr.ANCESTOR:case pr.DESCENDANT:return i(d.ancestor,h)+" "+i(d.descendant,h);case pr.COMPOUND_SPLIT:{var C=i(d.left,h),T=i(d.subject,h),w=i(d.right,h);return C+(C.length>0?" ":"")+T+w}case pr.TRUE:return""}},i=function(d,h){return d.checks.reduce(function(f,p,g){return f+(h===d&&g===0?"$":"")+a(p,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),d=!0),(i||o||d)&&(l=!i&&!s?"":""+e,u=""+n),d&&(e=l=l.toLowerCase(),n=u=u.toLowerCase()),r){case"*=":a=l.indexOf(u)>=0;break;case"$=":a=l.indexOf(u,l.length-u.length)>=0;break;case"^=":a=l.indexOf(u)===0;break;case"=":a=e===n;break;case">":f=!0,a=e>n;break;case">=":f=!0,a=e>=n;break;case"<":f=!0,a=e0;){var d=a.shift();e(d),i.add(d.id()),o&&n(a,i,d)}return t}function $be(t,e,r){if(r.isParent())for(var n=r._private.children,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0;return yY(this,t,e,$be)};function zbe(t,e,r){if(r.isChild()){var n=r._private.parent;e.has(n.id())||t.push(n)}}wb.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return yY(this,t,e,zbe)};function W1t(t,e,r){zbe(t,e,r),$be(t,e,r)}wb.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return yY(this,t,e,W1t)};wb.ancestors=wb.parents;var C4,Ube;C4=Ube={data:Dn.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:Dn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Dn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Dn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Dn.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Dn.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};C4.attr=C4.data;C4.removeAttr=C4.removeData;var K1t=Ube,Q7={};function OL(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,a=r[0],i=a._private.edges,s=0;se}),minIndegree:Kg("indegree",function(t,e){return te}),minOutdegree:Kg("outdegree",function(t,e){return te})});Or(Q7,{totalDegree:function(e){for(var r=0,n=this.nodes(),a=0;a0,f=h;h&&(d=d[0]);var p=f?d.position():{x:0,y:0};r!==void 0?u.position(e,r+p[e]):i!==void 0&&u.position({x:i.x+p.x,y:i.y+p.y})}else{var g=n.position(),m=o?n.parent():null,v=m&&m.length>0,y=v;v&&(m=m[0]);var b=y?m.position():{x:0,y:0};return i={x:g.x-b.x,y:g.y-b.y},e===void 0?i:i[e]}else if(!s)return;return this}};oc.modelPosition=oc.point=oc.position;oc.modelPositions=oc.points=oc.positions;oc.renderedPoint=oc.renderedPosition;oc.relativePoint=oc.relativePosition;var X1t=Gbe,h1,Yh;h1=Yh={};Yh.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),n=r.zoom(),a=r.pan(),i=e.x1*n+a.x,s=e.x2*n+a.x,o=e.y1*n+a.y,l=e.y2*n+a.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}};Yh.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)};Yh.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(R,O,M){var $=0,F=0,A=O+M;return R>0&&A>0&&($=O/A*R,F=M/A*R),{biasDiff:$,biasComplementDiff:F}}function g(R,O,M,$){if(M.units==="%")switch($){case"width":return R>0?M.pfValue*R:0;case"height":return O>0?M.pfValue*O:0;case"average":return R>0&&O>0?M.pfValue*(R+O)/2:0;case"min":return R>0&&O>0?R>O?M.pfValue*O:M.pfValue*R:0;case"max":return R>0&&O>0?R>O?M.pfValue*R: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 v=d.width.right.value;d.width.right.units==="px"&&d.width.val>0&&(v=v*100/d.width.val);var y=d.height.top.value;d.height.top.units==="px"&&d.height.val>0&&(y=y*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,v),S=_.biasDiff,x=_.biasComplementDiff,C=p(d.height.val-h.h,y,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=(-S+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?a:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},Rd=function(e,r){return r==null?e:Vl(e,r.x1,r.y1,r.x2,r.y2)},Z2=function(e,r,n){return po(e,r,n)},v3=function(e,r,n){if(!r.cy().headless()){var a=r._private,i=a.rstyle,s=i.arrowWidth/2,o=r.pstyle(n+"-arrow-shape").value,l,u;if(o!=="none"){n==="source"?(l=i.srcX,u=i.srcY):n==="target"?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var d=a.arrowBounds=a.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,S5(h,1),Vl(e,h.x1,h.y1,h.x2,h.y2)}}},DL=function(e,r,n){if(!r.cy().headless()){var a;n?a=n+"-":a="";var i=r._private,s=i.rstyle,o=r.pstyle(a+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),d=Z2(s,"labelWidth",n),h=Z2(s,"labelHeight",n),f=Z2(s,"labelX",n),p=Z2(s,"labelY",n),g=r.pstyle(a+"text-margin-x").pfValue,m=r.pstyle(a+"text-margin-y").pfValue,v=r.isEdge(),y=r.pstyle(a+"text-rotation"),b=r.pstyle("text-outline-width").pfValue,_=r.pstyle("text-border-width").pfValue,S=_/2,x=r.pstyle("text-background-padding").pfValue,C=2,T=h,w=d,R=w/2,O=T/2,M,$,F,A;if(v)M=f-R,$=f+R,F=p-O,A=p+O;else{switch(l.value){case"left":M=f-w,$=f;break;case"center":M=f-R,$=f+R;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,S)-x-C,D=g+Math.max(b,S)+x+C,L=m-Math.max(b,S)-x-C,N=m+Math.max(b,S)+x+C;M+=I,$+=D,F+=L,A+=N;var P=n||"main",z=i.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=N;var U=v&&y.strValue==="autorotate",G=y.pfValue!=null&&y.pfValue!==0;if(U||G){var K=U?Z2(i.rstyle,"labelAngle",n):y.pfValue,Y=Math.cos(K),ee=Math.sin(K),X=(M+$)/2,le=(F+A)/2;if(!v){switch(l.value){case"left":X=$;break;case"right":X=M;break}switch(u.value){case"top":le=A;break;case"bottom":le=F;break}}var te=function(He,Re){return He=He-X,Re=Re-le,{x:He*Y-Re*ee+X,y:He*ee+Re*Y+le}},ne=te(M,F),ae=te(M,A),re=te($,F),ge=te($,A);M=Math.min(ne.x,ae.x,re.x,ge.x),$=Math.max(ne.x,ae.x,re.x,ge.x),F=Math.min(ne.y,ae.y,re.y,ge.y),A=Math.max(ne.y,ae.y,re.y,ge.y)}var pe=P+"Rot",Be=z[pe]=z[pe]||{};Be.x1=M,Be.y1=F,Be.x2=$,Be.y2=A,Be.w=$-M,Be.h=A-F,Vl(e,M,F,$,A),Vl(i.labelBounds.all,M,F,$,A)}return e}},yie=function(e,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,a=r.pstyle("outline-width").value,i=r.pstyle("outline-offset").value,s=a+i;Ybe(e,r,n,s,"outside",s/2)}},Ybe=function(e,r,n,a,i,s){if(!(n===0||a<=0||i==="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){i==="center"&&(a/=2);var m=u.miterBounds(h,f,p,g,a);Rd(e,m)}else s!=null&&s>0&&T5(e,[s,s,s,s])}},j1t=function(e,r){if(!r.cy().headless()){var n=r.pstyle("border-opacity").value,a=r.pstyle("border-width").pfValue,i=r.pstyle("border-position").value;Ybe(e,r,n,a,i)}},Q1t=function(e,r){var n=e._private.cy,a=n.styleEnabled(),i=n.headless(),s=Ws(),o=e._private,l=e.isNode(),u=e.isEdge(),d,h,f,p,g,m,v=o.rstyle,y=l&&a?e.pstyle("bounds-expansion").pfValue:[0],b=function(Le){return Le.pstyle("display").value!=="none"},_=!a||b(e)&&(!u||b(e.source())&&b(e.target()));if(_){var S=0,x=0;a&&r.includeOverlays&&(S=e.pstyle("overlay-opacity").value,S!==0&&(x=e.pstyle("overlay-padding").value));var C=0,T=0;a&&r.includeUnderlays&&(C=e.pstyle("underlay-opacity").value,C!==0&&(T=e.pstyle("underlay-padding").value));var w=Math.max(x,T),R=0,O=0;if(a&&(R=e.pstyle("width").pfValue,O=R/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,Vl(s,d,f,h,p),a&&yie(s,e),a&&r.includeOutlines&&!i&&yie(s,e),a&&j1t(s,e)}else if(u&&r.includeEdges)if(a&&!i){var D=e.pstyle("curve-style").strValue;if(d=Math.min(v.srcX,v.midX,v.tgtX),h=Math.max(v.srcX,v.midX,v.tgtX),f=Math.min(v.srcY,v.midY,v.tgtY),p=Math.max(v.srcY,v.midY,v.tgtY),d-=O,h+=O,f-=O,p+=O,Vl(s,d,f,h,p),D==="haystack"){var L=v.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 N=d;d=h,h=N}if(f>p){var P=f;f=p,p=P}Vl(s,d-O,f-O,h+O,p+O)}}else if(D==="bezier"||D==="unbundled-bezier"||Vd(D,"segments")||Vd(D,"taxi")){var z;switch(D){case"bezier":case"unbundled-bezier":z=v.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":z=v.linePts;break}if(z!=null)for(var B=0;Bh){var X=d;d=h,h=X}if(f>p){var le=f;f=p,p=le}d-=O,h+=O,f-=O,p+=O,Vl(s,d,f,h,p)}if(a&&r.includeEdges&&u&&(v3(s,e,"mid-source"),v3(s,e,"mid-target"),v3(s,e,"source"),v3(s,e,"target")),a){var te=e.pstyle("ghost").value==="yes";if(te){var ne=e.pstyle("ghost-offset-x").pfValue,ae=e.pstyle("ghost-offset-y").pfValue;Vl(s,s.x1+ne,s.y1+ae,s.x2+ne,s.y2+ae)}}var re=o.bodyBounds=o.bodyBounds||{};nae(re,s),T5(re,y),S5(re,1),a&&(d=s.x1,h=s.x2,f=s.y1,p=s.y2,Vl(s,d-w,f-w,h+w,p+w));var ge=o.overlayBounds=o.overlayBounds||{};nae(ge,s),T5(ge,y),S5(ge,1);var pe=o.labelBounds=o.labelBounds||{};pe.all!=null?Ogt(pe.all):pe.all=Ws(),a&&r.includeLabels&&(r.includeMainLabels&&DL(s,e,null),u&&(r.includeSourceLabels&&DL(s,e,"source"),r.includeTargetLabels&&DL(s,e,"target")))}return s.x1=vl(s.x1),s.y1=vl(s.y1),s.x2=vl(s.x2),s.y2=vl(s.y2),s.w=vl(s.x2-s.x1),s.h=vl(s.y2-s.y1),s.w>0&&s.h>0&&_&&(T5(s,y),S5(s,1)),s},Hbe=function(e){var r=0,n=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:hvt,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);return this};Rh.removeAllListeners=function(){return this.removeListener("*")};Rh.emit=Rh.trigger=function(t,e,r){var n=this.listeners,a=n.length;return this.emitting++,$n(e)||(e=[e]),fvt(this,function(i,s){r!=null&&(n=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],a=n.length);for(var o=function(){var d=n[l];if(d.type===s.type&&(!d.namespace||d.namespace===s.namespace||d.namespace===dvt)&&i.eventMatches(i.context,d,s)){var h=[s];e!=null&&ngt(h,e),i.beforeEmit(i.context,d,s),d.conf&&d.conf.one&&(i.listeners=i.listeners.filter(function(g){return g!==d}));var f=i.callbackContext(i.context,d,s),p=d.callback.apply(f,h);i.afterEmit(i.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,i.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,a=r.map,i=a.get(n);if(!i)return this;var s=i.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&wr(e)){var n=e;e=r.mutableElements().filter(n)}for(var a=0;a=0;r--){var n=this[r];e(n)&&this.unmergeAt(r)}return this},map:function(e,r){for(var n=[],a=this,i=0;in&&(n=l,a=o)}return{value:n,ele:a}},min:function(e,r){for(var n=1/0,a,i=this,s=0;s=0&&i"u"?"undefined":Ai(Symbol))!=e&&Ai(Symbol.iterator)!=e;r&&(V6[Symbol.iterator]=function(){var n=this,a={value:void 0,done:!1},i=0,s=this.length;return Z_e({next:function(){return i1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],a=n.cy();if(a.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,a.style().apply(n));var i=n._private.style[e];return i??(r?a.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 a=!1,i=n.style();if(mn(e)){var s=e;i.applyBypass(this,s,a),this.emitAndNotify("style")}else if(wr(e))if(r===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,r,a),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,a=r.style(),i=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)}});ps.neighbourhood=ps.neighborhood;ps.closedNeighbourhood=ps.closedNeighborhood;ps.openNeighbourhood=ps.openNeighborhood;Or(ps,{source:Tl(function(e){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&e?n.filter(e):n},"source"),target:Tl(function(e){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&e?n.filter(e):n},"target"),sources:Rie({attr:"source"}),targets:Rie({attr:"target"})});function Rie(t){return function(r){for(var n=[],a=0;a0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});ps.componentsOf=ps.components;var Zi=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){ua("A collection must have a reference to the core");return}var i=new f0,s=!1;if(!r)r=[];else if(r.length>0&&mn(r[0])&&!DT(r[0])){s=!0;for(var o=[],l=new p2,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(),a=n._private,i=[],s=[],o,l=0,u=r.length;l0){for(var P=o.length===r.length?r:new Zi(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=[],a={},i=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=i?b(O,I):D===0?I:S(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:v(x(M),e,n)};w.getControlPoints=function(){return[{x:t,y:e},{x:r,y:n}]};var R="generateBezier("+[t,e,r,n]+")";return w.toString=function(){return R},w}var xvt=(function(){function t(n){return-n.tension*n.x-n.friction*n.v}function e(n,a,i){var s={x:n.x+i.dx*a,v:n.v+i.dv*a,tension:n.tension,friction:n.friction};return{dx:s.v,dv:t(s)}}function r(n,a){var i={dx:n.v,dv:t(n)},s=e(n,a*.5,i),o=e(n,a*.5,s),l=e(n,a,o),u=1/6*(i.dx+2*(s.dx+o.dx)+l.dx),d=1/6*(i.dv+2*(s.dv+o.dv)+l.dv);return n.x=n.x+u*a,n.v=n.v+d*a,n}return function n(a,i,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(a=parseFloat(a)||500,i=parseFloat(i)||20,s=s||null,o.tension=a,o.friction=i,f=s!==null,f?(u=n(a,i),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}})(),Vn=function(e,r,n,a){var i=Tvt(e,r,n,a);return function(s,o,l){return s+(o-s)*i(l)}},w5={linear:function(e,r,n){return e+(r-e)*n},ease:Vn(.25,.1,.25,1),"ease-in":Vn(.42,0,1,1),"ease-out":Vn(0,0,.58,1),"ease-in-out":Vn(.42,0,.58,1),"ease-in-sine":Vn(.47,0,.745,.715),"ease-out-sine":Vn(.39,.575,.565,1),"ease-in-out-sine":Vn(.445,.05,.55,.95),"ease-in-quad":Vn(.55,.085,.68,.53),"ease-out-quad":Vn(.25,.46,.45,.94),"ease-in-out-quad":Vn(.455,.03,.515,.955),"ease-in-cubic":Vn(.55,.055,.675,.19),"ease-out-cubic":Vn(.215,.61,.355,1),"ease-in-out-cubic":Vn(.645,.045,.355,1),"ease-in-quart":Vn(.895,.03,.685,.22),"ease-out-quart":Vn(.165,.84,.44,1),"ease-in-out-quart":Vn(.77,0,.175,1),"ease-in-quint":Vn(.755,.05,.855,.06),"ease-out-quint":Vn(.23,1,.32,1),"ease-in-out-quint":Vn(.86,0,.07,1),"ease-in-expo":Vn(.95,.05,.795,.035),"ease-out-expo":Vn(.19,1,.22,1),"ease-in-out-expo":Vn(1,0,0,1),"ease-in-circ":Vn(.6,.04,.98,.335),"ease-out-circ":Vn(.075,.82,.165,1),"ease-in-out-circ":Vn(.785,.135,.15,.86),spring:function(e,r,n){if(n===0)return w5.linear;var a=xvt(e,r,n);return function(i,s,o){return i+(s-i)*a(o)}},"cubic-bezier":Vn};function Oie(t,e,r,n,a){if(n===1||e===r)return r;var i=a(e,r,n);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Die(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function Xg(t,e,r,n,a){var i=a!=null?a.type:null;r<0?r=0:r>1&&(r=1);var s=Die(t,a),o=Die(e,a);if(nr(s)&&nr(o))return Oie(i,s,o,r,n);if($n(s)&&$n(o)){for(var l=[],u=0;u0?(p==="spring"&&g.push(s.duration),s.easingImpl=w5[p].apply(null,g)):s.easingImpl=w5[p]}var m=s.easingImpl,v;if(s.duration===0?v=1:v=(r-l)/s.duration,s.applying&&(v=s.progress),v<0?v=0:v>1&&(v=1),s.delay==null){var y=s.startPosition,b=s.position;if(b&&a&&!t.locked()){var _={};eE(y.x,b.x)&&(_.x=Xg(y.x,b.x,v,m)),eE(y.y,b.y)&&(_.y=Xg(y.y,b.y,v,m)),t.position(_)}var S=s.startPan,x=s.pan,C=i.pan,T=x!=null&&n;T&&(eE(S.x,x.x)&&(C.x=Xg(S.x,x.x,v,m)),eE(S.y,x.y)&&(C.y=Xg(S.y,x.y,v,m)),t.emit("pan"));var w=s.startZoom,R=s.zoom,O=R!=null&&n;O&&(eE(w,R)&&(i.zoom=T4(i.minZoom,Xg(w,R,v,m),i.maxZoom)),t.emit("zoom")),(T||O)&&t.emit("viewport");var M=s.style;if(M&&M.length>0&&a){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],S=_._private;if(S.stopped){p.splice(b,1),S.hooked=!1,S.playing=!1,S.started=!1,y(S.frames);continue}!S.playing&&!S.applying||(S.playing&&S.applying&&(S.applying=!1),S.started||wvt(d,_,t),Cvt(d,_,t,h),S.applying&&(S.applying=!1),y(S.frames),S.step!=null&&S.step(t),_.completed()&&(p.splice(b,1),S.hooked=!1,S.playing=!1,S.started=!1,y(S.completes)),m=!0)}return!h&&p.length===0&&g.length===0&&n.push(d),m}for(var i=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(n),e.emit("step")}var kvt={animate:Dn.animate(),animation:Dn.animation(),animated:Dn.animated(),clearQueue:Dn.clearQueue(),delay:Dn.delay(),delayAnimation:Dn.delayAnimation(),stop:Dn.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&&U6(function(i){Lie(i,e),r()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(i,s){Lie(s,e)},n.beforeRenderPriorities.animations):r()}},Avt={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,n){var a=r.qualifier;return a!=null?e!==n.target&&DT(n.target)&&a.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}},b3=function(e){return wr(e)?new kh(e):e},r2e={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Z7(Avt,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,n){return this.emitter().on(e,b3(r),n),this},removeListener:function(e,r,n){return this.emitter().removeListener(e,b3(r),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,n){return this.emitter().one(e,b3(r),n),this},once:function(e,r,n){return this.emitter().one(e,b3(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}};Dn.eventAliasesOn(r2e);var QB={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)}};QB.jpeg=QB.jpg;var k5={layout:function(e){var r=this;if(e==null){ua("Layout options must be specified to make a layout");return}if(e.name==null){ua("A `name` must be specified to make a layout");return}var n=e.name,a=r.extension("layout",n);if(a==null){ua("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;wr(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var s=new a(Or({},e,{cy:r,eles:i}));return s}};k5.createLayout=k5.makeLayout=k5.layout;var Rvt={notify:function(e,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var a=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();r!=null&&a.merge(r);return}if(n.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.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 a=e.batchNotifications[n];a.empty()?r.notify(n):r.notify(n,a)})}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),a=0;a0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var a=n._private;a.rscratch={},a.rstyle={},a.animation.current=[],a.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};ZB.invalidateDimensions=ZB.resize;var A5={collection:function(e,r){return wr(e)?this.$(e):Po(e)?e.collection():$n(e)?(r||(r={}),new Zi(this,e,r.unique,r.removed)):new Zi(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}};A5.elements=A5.filter=A5.$;var Gi={},mS="t",Ivt="f";Gi.apply=function(t){for(var e=this,r=e._private,n=r.cy,a=n.collection(),i=0;i0;if(f||h&&p){var g=void 0;f&&p||f?g=u.properties:p&&(g=u.mappedProperties);for(var m=0;m1&&(S=1),o.color){var C=n.valueMin[0],T=n.valueMax[0],w=n.valueMin[1],R=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)*S),Math.round(w+(R-w)*S),Math.round(O+(M-O)*S),Math.round($+(F-$)*S)];i={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)*S;i=this.parse(n.name,I,n.bypass,f)}else return!1;if(!i)return m(),!1;i.mapping=n,n=i;break}case s.data:{for(var D=n.field.split("."),L=h.data,N=0;N0&&i>0){for(var o={},l=!1,u=0;u0?t.delayAnimation(s).play().promise().then(_):_()}).then(function(){return t.animation({style:o,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,a),t.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(t,a),t.emitAndNotify("style"),n.transitioning=!1)};Gi.checkTrigger=function(t,e,r,n,a,i){var s=this.properties[e],o=a(s);t.removed()||o!=null&&o(r,n,t)&&i(s)};Gi.checkZOrderTrigger=function(t,e,r,n){var a=this;this.checkTrigger(t,e,r,n,function(i){return i.triggersZOrder},function(){a._private.cy.notify("zorder",t)})};Gi.checkBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(a){return a.triggersBounds},function(a){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache()})};Gi.checkConnectedEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(a){return a.triggersBoundsOfConnectedEdges},function(a){t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};Gi.checkParallelEdgesBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(a){return a.triggersBoundsOfParallelEdges},function(a){t.parallelEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};Gi.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 zT={};zT.applyBypass=function(t,e,r,n){var a=this,i=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;oa.length?n=n.substr(a.length):n=""}function l(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var u=n.match(/^\s*$/);if(u)break;var d=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!d){Mn("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}a=d[0];var h=d[1];if(h!=="core"){var f=new kh(h);if(f.invalid){Mn("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var p=d[2],g=!1;i=p;for(var m=[];;){var v=i.match(/^\s*$/);if(v)break;var y=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!y){Mn("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+p),g=!0;break}s=y[0];var b=y[1],_=y[2],S=e.properties[b];if(!S){Mn("Skipping property: Invalid property name in: "+s),l();continue}var x=r.parse(b,_);if(!x){Mn("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 Mn("`"+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 v=g.value,y=m.value,b=v[0]===y[0]&&v[1]===y[1]&&v[2]===y[2]&&(v[3]===y[3]||(v[3]==null||v[3]===1)&&(y[3]==null||y[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+/):$n(e)?_=e:_=[e],u.evenMultiple&&_.length%2!==0)return null;for(var S=[],x=[],C=[],T="",w=!1,R=0;R<_.length;R++){var O=a.parse(t,_[R],r,"multiple");w=w||wr(O.value),S.push(O.value),C.push(O.pfValue!=null?O.pfValue:O.value),x.push(O.units),T+=(R>0?" ":"")+O.strValue}return u.validate&&!u.validate(S,x)?null:u.singleEnum&&w?S.length===1&&wr(S[0])?{name:t,value:S[0],strValue:S[0],bypass:r}:null:{name:t,value:S,pfValue:C,strValue:T,bypass:r,units:x}}var M=function(){for(var te=0;teu.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:Agt(e)),$==="%"&&(D.pfValue=e/100),D}else if(u.propList){var L=[],N=""+e;if(N!=="none"){for(var P=N.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,a=r.zoom,i,s,o=!1;if(r.zoomingEnabled||(o=!0),nr(e)?s=e:mn(e)&&(s=e.level,e.position!=null?i=H7(e.position,a,n):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,i.push("zoom"))}if(a&&(!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||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.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(wr(e)){var n=e;e=this.mutableElements().filter(n)}else Po(e)||(e=this.mutableElements());if(e.length!==0){var a=e.boundingBox(),i=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(i-r*(a.x1+a.x2))/2,y:(s-r*(a.y1+a.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 a=n.window().getComputedStyle(r),i=function(o){return parseFloat(a.getPropertyValue(o))};return{width:r.clientWidth-i("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("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(),a={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 a.w=a.x2-a.x1,a.h=a.y2-a.y1,a},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}};Yp.centre=Yp.center;Yp.autolockNodes=Yp.autolock;Yp.autoungrabifyNodes=Yp.autoungrabify;var k4={data:Dn.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Dn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Dn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Dn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};k4.attr=k4.data;k4.removeAttr=k4.removeData;var A4=function(e){var r=this;e=Or({},e);var n=e.container;n&&!z6(n)&&z6(n[0])&&(n=n[0]);var a=n?n._cyreg:null;a=a||{},a&&a.cy&&(a.cy.destroy(),a={});var i=a.readies=a.readies||[];n&&(n._cyreg=a),a.cy=r;var s=_i!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=Or({name:s?"grid":"null"},o.layout),o.renderer=Or({name:s?"canvas":"null"},o.renderer);var l=function(g,m,v){return m!==void 0?m:v!==void 0?v:g},u=this._private={container:n,ready:!1,options:o,elements:new Zi(this),listeners:[],aniEles:new Zi(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:mn(o.pan)&&nr(o.pan.x)?o.pan.x:0,y:mn(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 v=g.some(Spt);if(v)return g2.all(g).then(m);m(g)};u.styleEnabled&&r.setStyle([]);var h=Or({},o,o.renderer);r.initRenderer(h);var f=function(g,m,v){r.notifications(!1);var y=r.mutableElements();y.length>0&&y.remove(),g!=null&&(mn(g)||$n(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",v),r.emit("done")});var b=Or({},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,Na(o.ready)&&r.on("ready",o.ready);for(var v=0;v0,o=!!t.boundingBox,l=Ws(o?t.boundingBox:structuredClone(e.extent())),u;if(Po(t.roots))u=t.roots;else if($n(t.roots)){for(var d=[],h=0;h0;){var A=F(),I=R(A,M);if(I)A.outgoers().filter(function(xe){return xe.isNode()&&r.has(xe)}).forEach($);else if(I===null){Mn("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&&y[0].length<=3?je/2:0),lt=2*Math.PI/y[ut].length*Ae;return ut===0&&y[0].length===1&&(ot=1),{x:re.x+ot*Math.cos(lt),y:re.y+ot*Math.sin(lt)}}else{var ct=y[ut].length,it=Math.max(ct===1?0:o?(l.w-t.padding*2-ge.w)/((t.grid?Be:ct)-1):(l.w-t.padding*2-ge.w)/((t.grid?Be:ct)+1),D),ke={x:re.x+(Ae+1-(ct+1)/2)*it,y:re.y+(ut+1-(Y+1)/2)*pe};return ke}},He={downward:0,leftward:90,upward:180,rightward:-90};Object.keys(He).indexOf(t.direction)===-1&&ua("Invalid direction '".concat(t.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(He).join(", ")));var Re=function($e){return Qpt(Le($e),l,He[t.direction])};return r.nodes().layoutPositions(this,t,Re),this};var Pvt={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 a2e(t){this.options=Or({},Pvt,t)}a2e.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,a=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=n.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var s=Ws(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/i.length:e.sweep,u=l/Math.max(1,i.length-1),d,h=0,f=0;f1&&e.avoidOverlap){h*=1.75;var y=Math.cos(u)-Math.cos(0),b=Math.sin(u)-Math.sin(0),_=Math.sqrt(h*h/(y*y+b*b));d=Math.max(_,d)}var S=function(C,T){var w=e.startAngle+T*u*(a?1:-1),R=d*Math.cos(w),O=d*Math.sin(w),M={x:o.x+R,y:o.y+O};return M};return n.nodes().layoutPositions(this,e,S),this};var Bvt={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 i2e(t){this.options=Or({},Bvt,t)}i2e.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=t.cy,a=e.eles,i=a.nodes().not(":parent"),s=Ws(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-S.value);x>=v&&(b=[],y.push(b))}b.push(S)}var C=u+e.minNodeSpacing;if(!e.avoidOverlap){var T=y.length>0&&y[0].length>1,w=Math.min(s.w,s.h)/2-C,R=w/(y.length+T?1:0);C=Math.min(C,R)}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 N=0,P=0,z=0;z=t.numIter||(Yvt(n,t),n.temperature=n.temperature*t.coolingFactor,n.temperature=t.animationThreshold&&i(),U6(d)}};d()}else{for(;u;)u=s(l),l++;Bie(n,t),o()}return this};nA.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};nA.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var $vt=function(e,r,n){for(var a=n.eles.edges(),i=n.eles.nodes(),s=Ws(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:a.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;da.count?0:a.graph},s2e=function(e,r,n,a){var i=a.graphSet[n];if(-10)var h=a.nodeOverlap*d,f=Math.sqrt(o*o+l*l),p=h*o/f,g=h*l/f;else var m=K6(e,o,l),v=K6(r,-1*o,-1*l),y=v.x-m.x,b=v.y-m.y,_=y*y+b*b,f=Math.sqrt(_),h=(e.nodeRepulsion+r.nodeRepulsion)/_,p=h*y/f,g=h*b/f;e.isLocked||(e.offsetX-=p,e.offsetY-=g),r.isLocked||(r.offsetX+=p,r.offsetY+=g)}},Wvt=function(e,r,n,a){if(n>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(a>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},K6=function(e,r,n){var a=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=n/r,u=s/o,d={};return r===0&&0n?(d.x=a,d.y=i+s/2,d):0r&&-1*u<=l&&l<=u?(d.x=a-o/2,d.y=i-o*n/2/r,d):0=u)?(d.x=a+s*r/2/n,d.y=i+s/2,d):(0>n&&(l<=-1*u||l>=u)&&(d.x=a-s*r/2/n,d.y=i-s/2),d)},Kvt=function(e,r){for(var n=0;nn){var v=r.gravity*p/m,y=r.gravity*g/m;f.offsetX+=v,f.offsetY+=y}}}}},jvt=function(e,r){var n=[],a=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;a<=i;){var s=n[a++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0n)var i={x:n*e/a,y:n*r/a};else var i={x:e,y:r};return i},l2e=function(e,r){var n=e.parentId;if(n!=null){var a=r.layoutNodes[r.idToIndex[n]],i=!1;if((a.maxX==null||e.maxX+a.padRight>a.maxX)&&(a.maxX=e.maxX+a.padRight,i=!0),(a.minX==null||e.minX-a.padLefta.maxY)&&(a.maxY=e.maxY+a.padBottom,i=!0),(a.minY==null||e.minY-a.padTopy&&(g+=v+r.componentSpacing,p=0,m=0,v=0)}}},Jvt={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 c2e(t){this.options=Or({},Jvt,t)}c2e.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));var i=Ws(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)n.nodes().layoutPositions(this,e,function(G){return{x:i.x1,y:i.y1}});else{var s=a.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),d=function(K){if(K==null)return Math.min(l,u);var Y=Math.min(l,u);Y==l?l=K:u=K},h=function(K){if(K==null)return Math.max(l,u);var Y=Math.max(l,u);Y==l?l=K:u=K},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(y+1):d(v+1)}var b=i.w/u,_=i.h/l;if(e.condense&&(b=0,_=0),e.avoidOverlap)for(var S=0;S=u&&(I=0,A++)},L={},N=0;N(I=Ggt(t,e,D[L],D[L+1],D[L+2],D[L+3])))return v(T,I),!0}else if(R.edgeType==="bezier"||R.edgeType==="multibezier"||R.edgeType==="self"||R.edgeType==="compound"){for(var D=R.allpts,L=0;L+5(I=Ugt(t,e,D[L],D[L+1],D[L+2],D[L+3],D[L+4],D[L+5])))return v(T,I),!0}for(var N=N||w.source,P=P||w.target,z=a.getArrowWidth(O,M),B=[{name:"source",x:R.arrowStartX,y:R.arrowStartY,angle:R.srcArrowAngle},{name:"target",x:R.arrowEndX,y:R.arrowEndY,angle:R.tgtArrowAngle},{name:"mid-source",x:R.midX,y:R.midY,angle:R.midsrcArrowAngle},{name:"mid-target",x:R.midX,y:R.midY,angle:R.midtgtArrowAngle}],L=0;L0&&(y(N),y(P))}function _(T,w,R){return po(T,w,R)}function S(T,w){var R=T._private,O=f,M;w?M=w+"-":M="",T.boundingBox();var $=R.labelBounds[w||"main"],F=T.pstyle(M+"label").value,A=T.pstyle("text-events").strValue==="yes";if(!(!A||!F)){var I=_(R.rscratch,"labelX",w),D=_(R.rscratch,"labelY",w),L=_(R.rscratch,"labelAngle",w),N=T.pstyle(M+"text-margin-x").pfValue,P=T.pstyle(M+"text-margin-y").pfValue,z=$.x1-O-N,B=$.x2+O-N,U=$.y1-O-P,G=$.y2+O-P;if(L){var K=Math.cos(L),Y=Math.sin(L),ee=function(ge,pe){return ge=ge-I,pe=pe-D,{x:ge*K-pe*Y+I,y:ge*Y+pe*K+D}},X=ee(z,U),le=ee(z,G),te=ee(B,U),ne=ee(B,G),ae=[X.x+N,X.y+P,te.x+N,te.y+P,ne.x+N,ne.y+P,le.x+N,le.y+P];if(go(t,e,ae))return v(T),!0}else if(Wd($,t,e))return v(T),!0}}for(var x=s.length-1;x>=0;x--){var C=s[x];C.isNode()?y(C)||S(C):b(C)||S(C)||S(C,"source")||S(C,"target")}return o};fg.getAllInBox=function(t,e,r,n){var a=this.getCachedZSortedEles().interactive,i=this.cy.zoom(),s=2/i,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=Ws({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(ge,pe,Be){return po(ge,pe,Be)}function v(ge,pe){var Be=ge._private,Le=s,He="";ge.boundingBox();var Re=Be.labelBounds.main;if(!Re)return null;var xe=m(Be.rscratch,"labelX",pe),$e=m(Be.rscratch,"labelY",pe),Ce=m(Be.rscratch,"labelAngle",pe),ut=ge.pstyle(He+"text-margin-x").pfValue,Ae=ge.pstyle(He+"text-margin-y").pfValue,je=Re.x1-Le-ut,ot=Re.x2+Le-ut,lt=Re.y1-Le-Ae,ct=Re.y2+Le-Ae;if(Ce){var it=Math.cos(Ce),ke=Math.sin(Ce),Qe=function(ye,q){return ye=ye-xe,q=q-$e,{x:ye*it-q*ke+xe,y:ye*ke+q*it+$e}};return[Qe(je,lt),Qe(ot,lt),Qe(ot,ct),Qe(je,ct)]}else return[{x:je,y:lt},{x:ot,y:lt},{x:ot,y:ct},{x:je,y:ct}]}function y(ge,pe,Be,Le){function He(Re,xe,$e){return($e.y-Re.y)*(xe.x-Re.x)>(xe.y-Re.y)*($e.x-Re.x)}return He(ge,Be,Le)!==He(pe,Be,Le)&&He(ge,pe,Be)!==He(ge,pe,Le)}for(var b=0;b0?-(Math.PI-e.ang):Math.PI+e.ang},iyt=function(e,r,n,a,i){if(e!==Gie?qie(r,e,Oc):ayt(ul,Oc),qie(r,n,ul),zie=Oc.nx*ul.ny-Oc.ny*ul.nx,Uie=Oc.nx*ul.nx-Oc.ny*-ul.ny,Yu=Math.asin(Math.max(-1,Math.min(1,zie))),Math.abs(Yu)<1e-6){JB=r.x,eF=r.y,If=Qg=0;return}Yf=1,R5=!1,Uie<0?Yu<0?Yu=Math.PI+Yu:(Yu=Math.PI-Yu,Yf=-1,R5=!0):Yu>0&&(Yf=-1,R5=!0),r.radius!==void 0?Qg=r.radius:Qg=a,vf=Yu/2,E3=Math.min(Oc.len/2,ul.len/2),i?(wc=Math.abs(Math.cos(vf)*Qg/Math.sin(vf)),wc>E3?(wc=E3,If=Math.abs(wc*Math.sin(vf)/Math.cos(vf))):If=Qg):(wc=Math.min(E3,Qg),If=Math.abs(wc*Math.sin(vf)/Math.cos(vf))),tF=r.x+ul.nx*wc,rF=r.y+ul.ny*wc,JB=tF-ul.ny*If*Yf,eF=rF+ul.nx*If*Yf,f2e=r.x+Oc.nx*wc,p2e=r.y+Oc.ny*wc,Gie=r};function g2e(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 xY(t,e,r,n){var a=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}:(iyt(t,e,r,n,a),{cx:JB,cy:eF,radius:If,startX:f2e,startY:p2e,stopX:tF,stopY:rF,startAngle:Oc.ang+Math.PI/2*Yf,endAngle:ul.ang-Math.PI/2*Yf,counterClockwise:R5})}var R4=.01,syt=Math.sqrt(2*R4),vs={};vs.findMidptPtsEtc=function(t,e){var r=e.posPts,n=e.intersectionPts,a=e.vectorNormInverse,i,s=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),l=s.units!=null&&o.units!=null,u=function(x,C,T,w){var R=w-C,O=T-x,M=Math.sqrt(O*O+R*R);return{x:-R/M,y:O/M}},d=t.pstyle("edge-distances").value;switch(d){case"node-position":i=r;break;case"intersection":i=n;break;case"endpoints":{if(l){var h=this.manualEndptToPx(t.source()[0],s),f=Za(h,2),p=f[0],g=f[1],m=this.manualEndptToPx(t.target()[0],o),v=Za(m,2),y=v[0],b=v[1],_={x1:p,y1:g,x2:y,y2:b};a=u(p,g,y,b),i=_}else Mn("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).")),i=n;break}}return{midptPts:i,vectorNormInverse:a}};vs.findHaystackPoints=function(t){for(var e=0;e0?Math.max(q-fe,0):Math.min(q+fe,0)},F=$(O,w),A=$(M,R),I=!1;b===u?y=Math.abs(F)>Math.abs(A)?a:n:b===l||b===o?(y=n,I=!0):(b===i||b===s)&&(y=a,I=!0);var D=y===n,L=D?A:F,N=D?M:O,P=dY(N),z=!1;!(I&&(S||C))&&(b===o&&N<0||b===l&&N>0||b===i&&N>0||b===s&&N<0)&&(P*=-1,L=P*Math.abs(L),z=!0);var B;if(S){var U=x<0?1+x:x;B=U*L}else{var G=x<0?L:0;B=G+x*P}var K=function(q){return Math.abs(q)=Math.abs(L)},Y=K(B),ee=K(Math.abs(L)-Math.abs(B)),X=Y||ee;if(X&&!z)if(D){var le=Math.abs(N)<=f/2,te=Math.abs(O)<=p/2;if(le){var ne=(d.x1+d.x2)/2,ae=d.y1,re=d.y2;r.segpts=[ne,ae,ne,re]}else if(te){var ge=(d.y1+d.y2)/2,pe=d.x1,Be=d.x2;r.segpts=[pe,ge,Be,ge]}else r.segpts=[d.x1,d.y2]}else{var Le=Math.abs(N)<=h/2,He=Math.abs(M)<=g/2;if(Le){var Re=(d.y1+d.y2)/2,xe=d.x1,$e=d.x2;r.segpts=[xe,Re,$e,Re]}else if(He){var Ce=(d.x1+d.x2)/2,ut=d.y1,Ae=d.y2;r.segpts=[Ce,ut,Ce,Ae]}else r.segpts=[d.x2,d.y1]}else if(D){var je=d.y1+B+(v?f/2*P:0),ot=d.x1,lt=d.x2;r.segpts=[ot,je,lt,je]}else{var ct=d.x1+B+(v?h/2*P:0),it=d.y1,ke=d.y2;r.segpts=[ct,it,ct,ke]}if(r.isRound){var Qe=t.pstyle("taxi-radius").value,_e=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(Qe),r.isArcRadius=new Array(r.segpts.length/2).fill(_e)}};vs.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var n=e.srcPos,a=e.tgtPos,i=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),v=!nr(r.arrowStartX)||!nr(r.arrowStartY),y=!nr(r.endX)||!nr(r.endY),b=!nr(r.arrowEndX)||!nr(r.arrowEndY),_=3,S=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,x=_*S,C=Gp({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),T=CN.poolIndex()){var P=L;L=N,N=P}var z=F.srcPos=L.position(),B=F.tgtPos=N.position(),U=F.srcW=L.outerWidth(),G=F.srcH=L.outerHeight(),K=F.tgtW=N.outerWidth(),Y=F.tgtH=N.outerHeight(),ee=F.srcShape=r.nodeShapes[e.getNodeShape(L)],X=F.tgtShape=r.nodeShapes[e.getNodeShape(N)],le=F.srcCornerRadius=L.pstyle("corner-radius").value==="auto"?"auto":L.pstyle("corner-radius").pfValue,te=F.tgtCornerRadius=N.pstyle("corner-radius").value==="auto"?"auto":N.pstyle("corner-radius").pfValue,ne=F.tgtRs=N._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 re=0;re=syt||(lt=Math.sqrt(Math.max(ot*ot,R4)+Math.max(je*je,R4)));var ct=F.vector={x:ot,y:je},it=F.vectorNorm={x:ct.x/lt,y:ct.y/lt},ke={x:-it.y,y:it.x};F.nodesOverlap=!nr(lt)||X.checkPoint(Re[0],Re[1],0,K,Y,B.x,B.y,te,ne)||ee.checkPoint($e[0],$e[1],0,U,G,z.x,z.y,le,ae),F.vectorNormInverse=ke,A={nodesOverlap:F.nodesOverlap,dirCounts:F.dirCounts,calculatedIntersection:!0,hasBezier:F.hasBezier,hasUnbundled:F.hasUnbundled,eles:F.eles,srcPos:B,srcRs:ne,tgtPos:z,tgtRs:ae,srcW:K,srcH:Y,tgtW:U,tgtH:G,srcIntn:Ce,tgtIntn:xe,srcShape:X,tgtShape:ee,posPts:{x1:Ae.x2,y1:Ae.y2,x2:Ae.x1,y2:Ae.y1},intersectionPts:{x1:ut.x2,y1:ut.y2,x2:ut.x1,y2:ut.y1},vector:{x:-ct.x,y:-ct.y},vectorNorm:{x:-it.x,y:-it.y},vectorNormInverse:{x:-ke.x,y:-ke.y}}}var Qe=He?A:F;pe.nodesOverlap=Qe.nodesOverlap,pe.srcIntn=Qe.srcIntn,pe.tgtIntn=Qe.tgtIntn,pe.isRound=Be.startsWith("round"),a&&(L.isParent()||L.isChild()||N.isParent()||N.isChild())&&(L.parents().anySame(N)||N.parents().anySame(L)||L.same(N)&&L.isParent())?e.findCompoundLoopPoints(ge,Qe,re,Le):L===N?e.findLoopPoints(ge,Qe,re,Le):Be.endsWith("segments")?e.findSegmentsPoints(ge,Qe):Be.endsWith("taxi")?e.findTaxiPoints(ge,Qe):Be==="straight"||!Le&&F.eles.length%2===1&&re===Math.floor(F.eles.length/2)?e.findStraightEdgePoints(ge):e.findBezierPoints(ge,Qe,re,Le,He),e.findEndpoints(ge),e.tryToCorrectInvalidPoints(ge,Qe),e.checkForInvalidEdgeWarning(ge),e.storeAllpts(ge),e.storeEdgeProjections(ge),e.calculateArrowAngles(ge),e.recalculateEdgeLabelProjections(ge),e.calculateLabelAngles(ge)}},T=0;T0){var Re=u,xe=Nf(Re,Fm(s)),$e=Nf(Re,Fm(He)),Ce=xe;if($e2){var ut=Nf(Re,{x:He[2],y:He[3]});ut0){var j=d,we=Nf(j,Fm(s)),Te=Nf(j,Fm(fe)),rt=we;if(Te2){var Oe=Nf(j,{x:fe[2],y:fe[3]});Oe=g||T){v={cp:S,segment:C};break}}if(v)break}var w=v.cp,R=v.segment,O=(g-y)/R.length,M=R.t1-R.t0,$=p?R.t0+M*O:R.t1-M*O;$=T4(0,$,1),e=c1(w.p0,w.p1,w.p2,$),f=lyt(w.p0,w.p1,w.p2,$);break}case"straight":case"segments":case"haystack":{for(var F=0,A,I,D,L,N=n.allpts.length,P=0;P+3=g));P+=2);var z=g-I,B=z/A;B=T4(0,B,1),e=Ngt(D,L,B),f=y2e(D,L);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,f)}};u("source"),u("target"),this.applyLabelDimensions(t)}};Au.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};Au.applyPrefixedLabelDimensions=function(t,e){var r=t._private,n=this.getLabelText(t,e),a=Up(n,t._private.labelDimsKey);if(po(r.rscratch,"prefixedLabelDimsKey",e)!==a){r0(r.rscratch,"prefixedLabelDimsKey",e,a);var i=this.calculateLabelDimensions(t,n),s=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,l=po(r.rscratch,"labelWrapCachedLines",e)||[],u=o!=="wrap"?1:Math.max(l.length,1),d=i.height/u,h=d*s,f=i.width,p=i.height+(u-1)*(s-1)*d;r0(r.rstyle,"labelWidth",e,f),r0(r.rscratch,"labelWidth",e,f),r0(r.rstyle,"labelHeight",e,p),r0(r.rscratch,"labelHeight",e,p),r0(r.rscratch,"labelLineHeight",e,h)}};Au.getLabelText=function(t,e){var r=t._private,n=e?e+"-":"",a=t.pstyle(n+"label").strValue,i=t.pstyle("text-transform").value,s=function(G,K){return K?(r0(r.rscratch,G,e,K),K):po(r.rscratch,G,e)};if(!a)return"";i=="none"||(i=="uppercase"?a=a.toUpperCase():i=="lowercase"&&(a=a.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=a.split(` `),h=t.pstyle("text-max-width").pfValue,f=t.pstyle("text-overflow-wrap").value,p=f==="anywhere",g=[],m=/[\s\u200b]+|$/g,v=0;vh){var x=y.matchAll(m),C="",T=0,w=bo(x),R;try{for(w.s();!(R=w.n()).done;){var O=R.value,M=O[0],$=y.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(U){w.e(U)}finally{w.f()}C.match(/^[\s\u200b]+$/)||g.push(C)}else g.push(y)}s("labelWrapCachedLines",g),a=s("labelWrapCachedText",g.join(` `)),s("labelWrapKey",l)}else if(o==="ellipsis"){var D=t.pstyle("text-max-width").pfValue,L="",N="…",P=!1;if(this.calculateLabelDimensions(t,a).widthD)break;L+=a[z],z===a.length-1&&(P=!0)}return P||(L+=N),L}return a};Au.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};Au.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window(),a=n.document,i=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=a.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(` -`),v=0;v1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l=t.desktopTapThreshold2}var se=i(q);Tt&&(t.hoverData.tapholdCancelled=!0);var It=function(){var Ct=t.hoverData.dragDelta=t.hoverData.dragDelta||[];Ct.length===0?(Ct.push(Ve[0]),Ct.push(Ve[1])):(Ct[0]+=Ve[0],Ct[1]+=Ve[1])};j=!0,a(ze,["mousemove","vmousemove","tapdrag"],q,{x:Oe[0],y:Oe[1]});var bt=function(Ct){return{originalEvent:q,type:Ct,position:{x:Oe[0],y:Oe[1]}}},Et=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||we.emit(bt("boxstart")),Ze[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Tt){var Nt=bt("cxtdrag");ie?ie.emit(Nt):we.emit(Nt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||ze!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit(bt("cxtdragout")),t.hoverData.cxtOver=ze,ze&&ze.emit(bt("cxtdragover")))}}else if(t.hoverData.dragging){if(j=!0,we.panningEnabled()&&we.userPanningEnabled()){var Vr;if(t.hoverData.justStartedPan){var Ne=t.hoverData.mdownPos;Vr={x:(Oe[0]-Ne[0])*Te,y:(Oe[1]-Ne[1])*Te},t.hoverData.justStartedPan=!1}else Vr={x:Ve[0]*Te,y:Ve[1]*Te};we.panBy(Vr),we.emit(bt("dragpan")),t.hoverData.dragged=!0}Oe=t.projectIntoViewport(q.clientX,q.clientY)}else if(Ze[4]==1&&(ie==null||ie.pannable())){if(Tt){if(!t.hoverData.dragging&&we.boxSelectionEnabled()&&(se||!we.panningEnabled()||!we.userPanningEnabled()))Et();else if(!t.hoverData.selecting&&we.panningEnabled()&&we.userPanningEnabled()){var mt=s(ie,t.hoverData.downs);mt&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Ze[4]=0,t.data.bgActivePosistion=Fm(Pe),t.redrawHint("select",!0),t.redraw())}ie&&ie.pannable()&&ie.active()&&ie.unactivate()}}else{if(ie&&ie.pannable()&&ie.active()&&ie.unactivate(),(!ie||!ie.grabbed())&&ze!=me&&(me&&a(me,["mouseout","tapdragout"],q,{x:Oe[0],y:Oe[1]}),ze&&a(ze,["mouseover","tapdragover"],q,{x:Oe[0],y:Oe[1]}),t.hoverData.last=ze),ie)if(Tt){if(we.boxSelectionEnabled()&&se)ie&&ie.grabbed()&&(y(ve),ie.emit(bt("freeon")),ve.emit(bt("free")),t.dragData.didDrag&&(ie.emit(bt("dragfreeon")),ve.emit(bt("dragfree")))),Et();else if(ie&&ie.grabbed()&&t.nodeIsDraggable(ie)){var _t=!t.dragData.didDrag;_t&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||m(ve,{inDragLayer:!0});var Ot={x:0,y:0};if(nr(Ve[0])&&nr(Ve[1])&&(Ot.x+=Ve[0],Ot.y+=Ve[1],_t)){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(bt("position")).emit(bt("drag")),t.redrawHint("drag",!0),t.redraw()}}else It();j=!0}if(Ze[2]=Oe[0],Ze[3]=Oe[1],j)return q.stopPropagation&&q.stopPropagation(),q.preventDefault&&q.preventDefault(),!1}},!1);var $,F,A;t.registerBinding(e,"mouseup",function(q){if(!(t.hoverData.which===1&&q.which!==1&&t.hoverData.capture)){var fe=t.hoverData.capture;if(fe){t.hoverData.capture=!1;var j=t.cy,we=t.projectIntoViewport(q.clientX,q.clientY),Te=t.selection,rt=t.findNearestElement(we[0],we[1],!0,!1),Oe=t.dragData.possibleDragElements,Pe=t.hoverData.down,Ie=i(q);t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Pe&&Pe.unactivate();var Ze=function(St){return{originalEvent:q,type:St,position:{x:we[0],y:we[1]}}};if(t.hoverData.which===3){var ze=Ze("cxttapend");if(Pe?Pe.emit(ze):j.emit(ze),!t.hoverData.cxtDragged){var me=Ze("cxttap");Pe?Pe.emit(me):j.emit(me)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(rt,["mouseup","tapend","vmouseup"],q,{x:we[0],y:we[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(Pe,["click","tap","vclick"],q,{x:we[0],y:we[1]}),F=!1,q.timeStamp-A<=j.multiClickDebounceTime()?($&&clearTimeout($),F=!0,A=null,a(Pe,["dblclick","dbltap","vdblclick"],q,{x:we[0],y:we[1]})):($=setTimeout(function(){F||a(Pe,["oneclick","onetap","voneclick"],q,{x:we[0],y:we[1]})},j.multiClickDebounceTime()),A=q.timeStamp)),Pe==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!i(q)&&(j.$(r).unselect(["tapunselect"]),Oe.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=Oe=j.collection()),rt==Pe&&!t.dragData.didDrag&&!t.hoverData.selecting&&rt!=null&&rt._private.selectable&&(t.hoverData.dragging||(j.selectionType()==="additive"||Ie?rt.selected()?rt.unselect(["tapunselect"]):rt.select(["tapselect"]):Ie||(j.$(r).unmerge(rt).unselect(["tapunselect"]),rt.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var ie=j.collection(t.getAllInBox(Te[0],Te[1],Te[2],Te[3]));t.redrawHint("select",!0),ie.length>0&&t.redrawHint("eles",!0),j.emit(Ze("boxend"));var Ve=function(St){return St.selectable()&&!St.selected()};j.selectionType()==="additive"||Ie||j.$(r).unmerge(ie).unselect(),ie.emit(Ze("box")).stdFilter(Ve).select().emit(Ze("boxselect")),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!Te[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var ve=Pe&&Pe.grabbed();y(Oe),ve&&(Pe.emit(Ze("freeon")),Oe.emit(Ze("free")),t.dragData.didDrag&&(Pe.emit(Ze("dragfreeon")),Oe.emit(Ze("dragfree"))))}}Te[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,N=1e5,P=function(q,fe){for(var j=0;j=D){var we=I;if(L=P(we,5),!L){var Te=Math.abs(we[0]);L=z(we)&&Te>5}if(L)for(var rt=0;rt5&&(j=dY(j)*5),me=j/-250,L&&(me/=N,me*=3),me=me*t.wheelSensitivity;var ie=q.deltaMode===1;ie&&(me*=33);var Ve=Oe.zoom()*Math.pow(10,me);q.type==="gesturechange"&&(Ve=t.gestureStartZoom*q.scale),Oe.zoom({level:Ve,renderedPosition:{x:ze[0],y:ze[1]}}),Oe.emit({type:q.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:q,position:{x:Ze[0],y:Ze[1]}})}}}};t.registerBinding(t.container,"wheel",B,!0),t.registerBinding(e,"scroll",function(q){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(q){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||q.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(ye){t.hasTouchStarted||B(ye)},!0),t.registerBinding(t.container,"mouseout",function(q){var fe=t.projectIntoViewport(q.clientX,q.clientY);t.cy.emit({originalEvent:q,type:"mouseout",position:{x:fe[0],y:fe[1]}})},!1),t.registerBinding(t.container,"mouseover",function(q){var fe=t.projectIntoViewport(q.clientX,q.clientY);t.cy.emit({originalEvent:q,type:"mouseover",position:{x:fe[0],y:fe[1]}})},!1);var U,G,K,Y,ee,X,le,te,ne,ae,re,ge,pe,Be=function(q,fe,j,we){return Math.sqrt((j-q)*(j-q)+(we-fe)*(we-fe))},Le=function(q,fe,j,we){return(j-q)*(j-q)+(we-fe)*(we-fe)},He;t.registerBinding(t.container,"touchstart",He=function(q){if(t.hasTouchStarted=!0,!!O(q)){_(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var fe=t.cy,j=t.touchData.now,we=t.touchData.earlier;if(q.touches[0]){var Te=t.projectIntoViewport(q.touches[0].clientX,q.touches[0].clientY);j[0]=Te[0],j[1]=Te[1]}if(q.touches[1]){var Te=t.projectIntoViewport(q.touches[1].clientX,q.touches[1].clientY);j[2]=Te[0],j[3]=Te[1]}if(q.touches[2]){var Te=t.projectIntoViewport(q.touches[2].clientX,q.touches[2].clientY);j[4]=Te[0],j[5]=Te[1]}var rt=function(se){return{originalEvent:q,type:se,position:{x:j[0],y:j[1]}}};if(q.touches[1]){t.touchData.singleTouchMoved=!0,y(t.dragData.touchDragEles);var Oe=t.findContainerClientCoords();ne=Oe[0],ae=Oe[1],re=Oe[2],ge=Oe[3],U=q.touches[0].clientX-ne,G=q.touches[0].clientY-ae,K=q.touches[1].clientX-ne,Y=q.touches[1].clientY-ae,pe=0<=U&&U<=re&&0<=K&&K<=re&&0<=G&&G<=ge&&0<=Y&&Y<=ge;var Pe=fe.pan(),Ie=fe.zoom();ee=Be(U,G,K,Y),X=Le(U,G,K,Y),le=[(U+K)/2,(G+Y)/2],te=[(le[0]-Pe.x)/Ie,(le[1]-Pe.y)/Ie];var Ze=200,ze=Ze*Ze;if(X=1){for(var nt=t.touchData.startPosition=[null,null,null,null,null,null],dt=0;dt=t.touchTapThreshold2}if(fe&&t.touchData.cxt){q.preventDefault();var dt=q.touches[0].clientX-ne,ft=q.touches[0].clientY-ae,gt=q.touches[1].clientX-ne,se=q.touches[1].clientY-ae,It=Le(dt,ft,gt,se),bt=It/X,Et=150,Nt=Et*Et,Vr=1.5,Ne=Vr*Vr;if(bt>=Ne||It>=Nt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var mt=Ie("cxttapend");t.touchData.start?(t.touchData.start.unactivate().emit(mt),t.touchData.start=null):we.emit(mt)}}if(fe&&t.touchData.cxt){var mt=Ie("cxtdrag");t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(mt):we.emit(mt),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var _t=t.findNearestElement(Te[0],Te[1],!0,!0);(!t.touchData.cxtOver||_t!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit(Ie("cxtdragout")),t.touchData.cxtOver=_t,_t&&_t.emit(Ie("cxtdragover")))}else if(fe&&q.touches[2]&&we.boxSelectionEnabled())q.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||we.emit(Ie("boxstart")),t.touchData.selecting=!0,t.touchData.didSelect=!0,j[4]=1,!j||j.length===0||j[0]===void 0?(j[0]=(Te[0]+Te[2]+Te[4])/3,j[1]=(Te[1]+Te[3]+Te[5])/3,j[2]=(Te[0]+Te[2]+Te[4])/3+1,j[3]=(Te[1]+Te[3]+Te[5])/3+1):(j[2]=(Te[0]+Te[2]+Te[4])/3,j[3]=(Te[1]+Te[3]+Te[5])/3),t.redrawHint("select",!0),t.redraw();else if(fe&&q.touches[1]&&!t.touchData.didSelect&&we.zoomingEnabled()&&we.panningEnabled()&&we.userZoomingEnabled()&&we.userPanningEnabled()){q.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 xe;t.registerBinding(e,"touchcancel",xe=function(q){var fe=t.touchData.start;t.touchData.capture=!1,fe&&fe.unactivate()});var $e,Ce,ut,Ae;if(t.registerBinding(e,"touchend",$e=function(q){var fe=t.touchData.start,j=t.touchData.capture;if(j)q.touches.length===0&&(t.touchData.capture=!1),q.preventDefault();else return;var we=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var Te=t.cy,rt=Te.zoom(),Oe=t.touchData.now,Pe=t.touchData.earlier;if(q.touches[0]){var Ie=t.projectIntoViewport(q.touches[0].clientX,q.touches[0].clientY);Oe[0]=Ie[0],Oe[1]=Ie[1]}if(q.touches[1]){var Ie=t.projectIntoViewport(q.touches[1].clientX,q.touches[1].clientY);Oe[2]=Ie[0],Oe[3]=Ie[1]}if(q.touches[2]){var Ie=t.projectIntoViewport(q.touches[2].clientX,q.touches[2].clientY);Oe[4]=Ie[0],Oe[5]=Ie[1]}var Ze=function(Nt){return{originalEvent:q,type:Nt,position:{x:Oe[0],y:Oe[1]}}};fe&&fe.unactivate();var ze;if(t.touchData.cxt){if(ze=Ze("cxttapend"),fe?fe.emit(ze):Te.emit(ze),!t.touchData.cxtDragged){var me=Ze("cxttap");fe?fe.emit(me):Te.emit(me)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!q.touches[2]&&Te.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var ie=Te.collection(t.getAllInBox(we[0],we[1],we[2],we[3]));we[0]=void 0,we[1]=void 0,we[2]=void 0,we[3]=void 0,we[4]=0,t.redrawHint("select",!0),Te.emit(Ze("boxend"));var Ve=function(Nt){return Nt.selectable()&&!Nt.selected()};ie.emit(Ze("box")).stdFilter(Ve).select().emit(Ze("boxselect")),ie.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(fe?.unactivate(),q.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!q.touches[1]){if(!q.touches[0]){if(!q.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var ve=t.dragData.touchDragEles;if(fe!=null){var Tt=fe._private.grabbed;y(ve),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Tt&&(fe.emit(Ze("freeon")),ve.emit(Ze("free")),t.dragData.didDrag&&(fe.emit(Ze("dragfreeon")),ve.emit(Ze("dragfree")))),a(fe,["touchend","tapend","vmouseup","tapdragout"],q,{x:Oe[0],y:Oe[1]}),fe.unactivate(),t.touchData.start=null}else{var St=t.findNearestElement(Oe[0],Oe[1],!0,!0);a(St,["touchend","tapend","vmouseup","tapdragout"],q,{x:Oe[0],y:Oe[1]})}var nt=t.touchData.startPosition[0]-Oe[0],dt=nt*nt,ft=t.touchData.startPosition[1]-Oe[1],gt=ft*ft,se=dt+gt,It=se*rt*rt;t.touchData.singleTouchMoved||(fe||Te.$(":selected").unselect(["tapunselect"]),a(fe,["tap","vclick"],q,{x:Oe[0],y:Oe[1]}),Ce=!1,q.timeStamp-Ae<=Te.multiClickDebounceTime()?(ut&&clearTimeout(ut),Ce=!0,Ae=null,a(fe,["dbltap","vdblclick"],q,{x:Oe[0],y:Oe[1]})):(ut=setTimeout(function(){Ce||a(fe,["onetap","voneclick"],q,{x:Oe[0],y:Oe[1]})},Te.multiClickDebounceTime()),Ae=q.timeStamp)),fe!=null&&!t.dragData.didDrag&&fe._private.selectable&&It"u"){var je=[],ot=function(q){return{clientX:q.clientX,clientY:q.clientY,force:1,identifier:q.pointerId,pageX:q.pageX,pageY:q.pageY,radiusX:q.width/2,radiusY:q.height/2,screenX:q.screenX,screenY:q.screenY,target:q.target}},lt=function(q){return{event:q,touch:ot(q)}},ct=function(q){je.push(lt(q))},it=function(q){for(var fe=0;fe0)return U[0]}return null},g=Object.keys(f),m=0;m0?p:bbe(i,s,e,r,n,a,o,l)},checkPoint:function(e,r,n,a,i,s,o,l){l=l==="auto"?wh(a,i):l;var u=2*l;if(L0(e,r,this.points,s,o,a,i-u,[0,-1],n)||L0(e,r,this.points,s,o,a-u,i,[0,-1],n))return!0;var d=a/2+2*n,h=i/2+2*n,f=[s-d,o-h,s-d,o,s+d,o,s+d,o-h];return!!(go(e,r,f)||dp(e,r,u,u,s+a/2-l,o+i/2-l,n)||dp(e,r,u,u,s-a/2+l,o+i/2-l,n))}}};id.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",As(3,0)),this.generateRoundPolygon("round-triangle",As(3,0)),this.generatePolygon("rectangle",As(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",As(5,0)),this.generateRoundPolygon("round-pentagon",As(5,0)),this.generatePolygon("hexagon",As(6,0)),this.generateRoundPolygon("round-hexagon",As(6,0)),this.generatePolygon("heptagon",As(7,0)),this.generateRoundPolygon("round-heptagon",As(7,0)),this.generatePolygon("octagon",As(8,0)),this.generateRoundPolygon("round-octagon",As(8,0));var n=new Array(20);{var a=qB(5,0),i=qB(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*S)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,v,m);if(x.length>0)for(var C=0;C0&&(e.onDeqd(n,g),!u&&e.shouldRedraw(n,g,v,m)&&i())},o=e.priority||lY;a.beforeRender(s,o(n))}}}},cyt=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G6;Gh(this,t),this.idsByKey=new f0,this.keyForId=new f0,this.cachesByLvl=new f0,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return qh(t,[{key:"getIdsFor",value:function(r){r==null&&ua("Can not get id list for null key");var n=this.idsByKey,a=this.idsByKey.get(r);return a||(a=new p2,n.set(r,a)),a}},{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(),a=this.keyForId.get(n),i=this.getKey(r);this.deleteIdForKey(a,n),this.addIdForKey(i,n),this.keyForId.set(n,i)}},{key:"deleteKeyMappingFor",value:function(r){var n=r.id(),a=this.keyForId.get(n);this.deleteIdForKey(a,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(r){var n=r.id(),a=this.keyForId.get(n),i=this.getKey(r);return a!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var n=this.cachesByLvl,a=this.lvls,i=n.get(r);return i||(i=new f0,n.set(r,i),a.push(r)),i}},{key:"getCache",value:function(r,n){return this.getCachesAt(n).get(r)}},{key:"get",value:function(r,n){var a=this.getKey(r),i=this.getCache(a,n);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,n){var a=this.keyForId.get(r.id()),i=this.getCache(a,n);return i}},{key:"hasCache",value:function(r,n){return this.getCachesAt(n).has(r)}},{key:"has",value:function(r,n){var a=this.getKey(r);return this.hasCache(a,n)}},{key:"setCache",value:function(r,n,a){a.key=r,this.getCachesAt(n).set(r,a)}},{key:"set",value:function(r,n,a){var i=this.getKey(r);this.setCache(i,n,a),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,n){this.getCachesAt(n).delete(r)}},{key:"delete",value:function(r,n){var a=this.getKey(r);this.deleteCache(a,n)}},{key:"invalidateKey",value:function(r){var n=this;this.lvls.forEach(function(a){return n.deleteCache(r,a)})}},{key:"invalidate",value:function(r){var n=r.id(),a=this.keyForId.get(n);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(a),i||this.getNumberOfIdsForKey(a)===0}}])})(),Wie=25,S3=50,N5=-4,nF=3,x2e=7.99,uyt=8,dyt=1024,hyt=1024,fyt=1024,pyt=.2,gyt=.8,myt=10,vyt=.15,yyt=.1,_yt=.9,byt=.9,Eyt=100,Syt=1,zm={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Tyt=ts({getKey:null,doesEleInvalidateKey:G6,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:fbe,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),OE=function(e,r){var n=this;n.renderer=e,n.onDequeues=[];var a=Tyt(r);Or(n,a),n.lookup=new cyt(a.getKey,a.doesEleInvalidateKey),n.setupDequeueing()},Ni=OE.prototype;Ni.reasons=zm;Ni.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};Ni.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=r[t]=r[t]||[];return n};Ni.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new FT(function(r,n){return n.reqs-r.reqs});return e};Ni.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};Ni.getElement=function(t,e,r,n,a){var i=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()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(n==null&&(n=Math.ceil(uY(o*r))),n=x2e||n>nF)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<=Wie?g=Wie:d<=S3?g=S3:g=Math.ceil(d/S3)*S3,d>fyt||h>hyt)return null;var m=i.getTextureQueue(g),v=m[m.length-2],y=function(){return i.recycleTexture(g,h)||i.addTexture(g,h)};v||(v=m[m.length-1]),v||(v=y()),v.width-v.usedWidthn;M--)R=i.getElement(t,e,r,M,zm.downscale);O()}else return i.queueElement(t,C.level-1),C;else{var $;if(!_&&!S&&!x)for(var F=n-1;F>=N5;F--){var A=l.get(t,F);if(A){$=A;break}}if(b($))return i.queueElement(t,n),$;v.context.translate(v.usedWidth,0),v.context.scale(u,u),this.drawElement(v.context,t,e,f,!1),v.context.scale(1/u,1/u),v.context.translate(-v.usedWidth,0)}return p={x:v.usedWidth,texture:v,level:n,scale:u,width:h,height:d,scaledLabelShown:f},v.usedWidth+=Math.ceil(h+uyt),v.eleCaches.push(p),l.set(t,n,p),i.checkTextureFullness(v),p};Ni.invalidateElements=function(t){for(var e=0;e=pyt*t.width&&this.retireTexture(t)};Ni.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>gyt&&t.fullnessChecks>=myt?Ch(r,t):t.fullnessChecks++};Ni.retireTexture=function(t){var e=this,r=t.height,n=e.getTextureQueue(r),a=this.lookup;Ch(n,t),t.retired=!0;for(var i=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,cY(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),Ch(a,s),n.push(s),s}};Ni.queueElement=function(t,e){var r=this,n=r.getElementQueue(),a=r.getElementKeyToQueue(),i=this.getKey(t),s=a[i];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:i};n.push(o),a[i]=o}};Ni.dequeue=function(t){for(var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),a=[],i=e.lookup,s=0;s0;s++){var o=r.pop(),l=o.key,u=o.eles[0],d=i.hasCache(u,o.level);if(n[l]=null,d)continue;a.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,zm.dequeue)}return a};Ni.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),a=this.getKey(t),i=n[a];i!=null&&(i.eles.length===1?(i.reqs=oY,r.updateItem(i),r.pop(),n[a]=null):i.eles.unmerge(t))};Ni.onDequeue=function(t){this.onDequeues.push(t)};Ni.offDequeue=function(t){Ch(this.onDequeues,t)};Ni.setupDequeueing=T2e.setupDequeueing({deqRedrawThreshold:Eyt,deqCost:vyt,deqAvgCost:yyt,deqNoDrawCost:_yt,deqFastCost:byt,deq:function(e,r,n){return e.dequeue(r,n)},onDeqd:function(e,r){for(var n=0;n=Cyt||r>j6)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;vS<=D&&D<=j6&&!O(D);D+=I);};M(1),M(-1);for(var $=d.length-1;$>=0;$--){var F=d[$];F.invalid&&Ch(d,F)}};if(!f)g();else return d;var m=function(){if(!h){h=Ws();for(var O=0;OXie||F>Xie)return null;var A=$*F;if(A>Dyt)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 y=null,b=t.length/xyt,_=!o,S=0;S=b||!_be(y.bb,x.boundingBox()))&&(y=v({insert:!0,after:y}),!y))return null;p||_?n.queueLayer(y,x):n.drawEleInLayer(y,x,r,e),y.eles.push(x),T[r]=y}return p||(_?null:d)};rs.getEleLevelForLayerLevel=function(t,e){return t};rs.drawEleInLayer=function(t,e,r,n){var a=this,i=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=a.getEleLevelForLayerLevel(r,n),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,r,Lyt),i.setImgSmoothing(s,!0))};rs.levelIsComplete=function(t,e){var r=this,n=r.layersByLevel[t];if(!n||n.length===0)return!1;for(var a=0,i=0;i0||s.invalid)return!1;a+=s.eles.length}return a===e.length};rs.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var n=0;n0){e=!0;break}}return e};rs.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=D0(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(n,a,i){e.invalidateLayer(n)}))};rs.invalidateLayer=function(t){if(this.lastInvalidationTime=D0(),!t.invalid){var e=t.level,r=t.eles,n=this.layersByLevel[e];Ch(n,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var a=0;a3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(i&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=i?e.pstyle("opacity").value:1,d=i?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,v=e.pstyle("line-outline-color").value,y=u*d,b=u*d,_=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;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")},S=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;if(t.lineWidth=p+m,t.lineCap=g,m>0)s.colorStrokeStyle(t,v[0],v[1],v[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(){a&&s.drawEdgeOverlay(t,e)},C=function(){a&&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 R=e.pstyle("ghost").value==="yes";if(R){var O=e.pstyle("ghost-offset-x").pfValue,M=e.pstyle("ghost-offset-y").pfValue,$=e.pstyle("ghost-opacity").value,F=y*$;t.translate(O,M),_(F),T(F),t.translate(-O,-M)}else S();C(),_(),T(),x(),w(),r&&t.translate(l.x1,l.y1)}};var k2e=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n){if(n.visible()){var a=n.pstyle("".concat(e,"-opacity")).value;if(a!==0){var i=this,s=i.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",i.colorStrokeStyle(r,d[0],d[1],d[2],a),i.drawEdgePath(n,r,o.allpts,"solid")}}}};sd.drawEdgeOverlay=k2e("overlay");sd.drawEdgeUnderlay=k2e("underlay");sd.drawEdgePath=function(t,e,r,n){var a=t._private.rscratch,i=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=a.pathCacheKey&&a.pathCacheKey===h;f?(s=e=a.pathCache,o=!0):(s=e=new Path2D,a.pathCacheKey=h,a.pathCache=s)}if(i.setLineDash)switch(n){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=d;break;case"solid":i.setLineDash([]);break}if(!o&&!a.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),a.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(i&&!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)),a==null?(s.drawText(t,e,null,p,i),e.isEdge()&&(s.drawText(t,e,"source",p,i),s.drawText(t,e,"target",p,i))):s.drawText(t,e,a,p,i),r&&t.translate(g.x1,g.y1)};pg.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,a=e.pstyle("font-size").pfValue+"px",i=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+" "+a+" "+i,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,d[0],d[1],d[2],l)};function Hyt(t,e,r,n,a){var i=Math.min(n,a),s=i/2,o=e+n/2,l=r+a/2;t.beginPath(),t.arc(o,l,s,0,Math.PI*2),t.closePath()}function Jie(t,e,r,n,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=Math.min(i,n/2,a/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+a-s),t.quadraticCurveTo(e+n,r+a,e+n-s,r+a),t.lineTo(e+s,r+a),t.quadraticCurveTo(e,r+a,e,r+a-s),t.lineTo(e,r+s),t.quadraticCurveTo(e,r,e+s,r),t.closePath()}pg.getTextAngle=function(t,e){var r,n=t._private,a=n.rscratch,i=e?e+"-":"",s=t.pstyle(i+"text-rotation");if(s.strValue==="autorotate"){var o=po(a,"labelAngle",e);r=t.isEdge()?o:0}else s.strValue==="none"?r=0:r=s.pfValue;return r};pg.drawText=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,s=i.rscratch,o=a?e.effectiveOpacity():1;if(!(a&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var l=po(s,"labelX",r),u=po(s,"labelY",r),d,h,f=this.getLabelText(e,r);if(f!=null&&f!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,a);var p=r?r+"-":"",g=po(s,"labelWidth",r),m=po(s,"labelHeight",r),v=e.pstyle(p+"text-margin-x").pfValue,y=e.pstyle(p+"text-margin-y").pfValue,b=e.isEdge(),_=e.pstyle("text-halign").value,S=e.pstyle("text-valign").value;b&&(_="center",S="center"),l+=v,u+=y;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),S){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,R=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,N=e.pstyle("text-border-color").value,P=e.pstyle("text-border-style").value,z=C>0,B=w>0&&T>0,U=l-R;switch(_){case"left":U-=g;break;case"center":U-=g/2;break}var G=u-m-R,K=g+2*R,Y=m+2*R;if(z&&(t.fillStyle="rgba(".concat(L[0],",").concat(L[1],",").concat(L[2],",").concat(C*o,")")),B&&(t.strokeStyle="rgba(".concat(N[0],",").concat(N[1],",").concat(N[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(),Jie(t,U,G,K,Y,F)):$?(t.beginPath(),Hyt(t,U,G,K,Y)):(t.beginPath(),t.rect(U,G,K,Y)),z&&t.fill(),B&&t.stroke(),B&&P==="double"){var ee=w/2;t.beginPath(),M?Jie(t,U+ee,G+ee,K-2*ee,Y-2*ee,F):t.rect(U+ee,G+ee,K-2*ee,Y-2*ee),t.stroke()}t.fillStyle=A,t.strokeStyle=I,t.lineWidth=D,t.setLineDash&&t.setLineDash([])}var X=2*e.pstyle("text-outline-width").pfValue;if(X>0&&(t.lineWidth=X),e.pstyle("text-wrap").value==="wrap"){var le=po(s,"labelWrapCachedLines",r),te=po(s,"labelLineHeight",r),ne=g/2,ae=this.getLabelJustification(e);switch(ae==="auto"||(_==="left"?ae==="left"?l+=-g:ae==="center"&&(l+=-ne):_==="center"?ae==="left"?l+=-ne:ae==="right"&&(l+=ne):_==="right"&&(ae==="center"?l+=ne:ae==="right"&&(l+=g))),S){case"top":u-=(le.length-1)*te;break;case"center":case"bottom":u-=(le.length-1)*te;break}for(var re=0;re0&&t.strokeText(le[re],l,u),t.fillText(le[re],l,u),u+=te}else X>0&&t.strokeText(f,l,u),t.fillText(f,l,u);x!==0&&(t.rotate(-x),t.translate(-d,-h))}}};var Hh={};Hh.drawNode=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=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))&&!(i&&!e.visible())){var f=i?e.effectiveOpacity():1,p=s.usePaths(),g,m=!1,v=e.padding();o=e.width()+2*v,l=e.height()+2*v;var y;r&&(y=r,t.translate(-y.x1,-y.y1));for(var b=e.pstyle("background-image"),_=b.value,S=new Array(_.length),x=new Array(_.length),C=0,T=0;T<_.length;T++){var w=_[T],R=S[T]=w!=null&&w!=="none";if(R){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,N=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,U=e.pstyle("outline-width").pfValue,G=e.pstyle("outline-color").value,K=e.pstyle("outline-style").value,Y=e.pstyle("outline-opacity").value*f,ee=e.pstyle("outline-offset").value,X=e.pstyle("corner-radius").value;X!=="auto"&&(X=e.pstyle("corner-radius").pfValue);var le=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F;s.eleFillStyle(t,e,_e)},te=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B;s.colorStrokeStyle(t,A[0],A[1],A[2],_e)},ne=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y;s.colorStrokeStyle(t,G[0],G[1],G[2],_e)},ae=function(_e,ye,q,fe){var j=s.nodePathCache=s.nodePathCache||[],we=hbe(q==="polygon"?q+","+fe.join(","):q,""+ye,""+_e,""+X),Te=j[we],rt,Oe=!1;return Te!=null?(rt=Te,Oe=!0,d.pathCache=rt):(rt=new Path2D,j[we]=d.pathCache=rt),{path:rt,cacheHit:Oe}},re=e.pstyle("shape").strValue,ge=e.pstyle("shape-polygon-points").pfValue;if(p){t.translate(h.x,h.y);var pe=ae(o,l,re,ge);g=pe.path,m=pe.cacheHit}var Be=function(){if(!m){var _e=h;p&&(_e={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(g||t,_e.x,_e.y,o,l,X,d)}p?t.fill(g):t.fill()},Le=function(){for(var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,q=u.backgrounding,fe=0,j=0;j0&&arguments[0]!==void 0?arguments[0]:!1,ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;s.hasPie(e)&&(s.drawPie(t,e,ye),_e&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,X,d)))},Re=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ye=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,X,d),t.clip()),s.drawStripe(t,e,ye),t.restore(),_e&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,X,d)))},xe=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,ye=(M>0?M:-M)*_e,q=M>0?0:255;M!==0&&(s.colorFillStyle(t,q,q,q,ye),p?t.fill(g):t.fill())},$e=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(N!=="center"){if(t.save(),t.lineWidth*=2,N==="inside")p?t.clip(g):t.clip();else{var _e=new Path2D;_e.rect(-o/2-$,-l/2-$,o+2*$,l+2*$),_e.addPath(g),t.clip(_e,"evenodd")}p?t.stroke(g):t.stroke(),t.restore()}else p?t.stroke(g):t.stroke();if(I==="double"){t.lineWidth=$/3;var ye=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(g):t.stroke(),t.globalCompositeOperation=ye}t.setLineDash&&t.setLineDash([])}},Ce=function(){if(U>0){if(t.lineWidth=U,t.lineCap="butt",t.setLineDash)switch(K){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var _e=h;p&&(_e={x:0,y:0});var ye=s.getNodeShape(e),q=$;N==="inside"&&(q=0),N==="outside"&&(q*=2);var fe=(o+q+(U+ee))/o,j=(l+q+(U+ee))/l,we=o*fe,Te=l*j,rt=s.nodeShapes[ye].points,Oe;if(p){var Pe=ae(we,Te,ye,rt);Oe=Pe.path}if(ye==="ellipse")s.drawEllipsePath(Oe||t,_e.x,_e.y,we,Te);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(ye)){var Ie=0,Ze=0,ze=0;ye==="round-diamond"?Ie=(q+ee+U)*1.4:ye==="round-heptagon"?(Ie=(q+ee+U)*1.075,ze=-(q/2+ee+U)/35):ye==="round-hexagon"?Ie=(q+ee+U)*1.12:ye==="round-pentagon"?(Ie=(q+ee+U)*1.13,ze=-(q/2+ee+U)/15):ye==="round-tag"?(Ie=(q+ee+U)*1.12,Ze=(q/2+U+ee)*.07):ye==="round-triangle"&&(Ie=(q+ee+U)*(Math.PI/2),ze=-(q+ee/2+U)/Math.PI),Ie!==0&&(fe=(o+Ie)/o,we=o*fe,["round-hexagon","round-tag"].includes(ye)||(j=(l+Ie)/l,Te=l*j)),X=X==="auto"?Sbe(we,Te):X;for(var me=we/2,ie=Te/2,Ve=X+(q+U+ee)/2,ve=new Array(rt.length/2),Tt=new Array(rt.length/2),St=0;St0){if(a=a||n.position(),i==null||s==null){var p=n.padding();i=n.width()+2*p,s=n.height()+2*p}o.colorFillStyle(r,d[0],d[1],d[2],u),o.nodeShapes[h].draw(r,a.x,a.y,i+l*2,s+l*2,f),r.fill()}}}};Hh.drawNodeOverlay=A2e("overlay");Hh.drawNodeUnderlay=A2e("underlay");Hh.hasPie=function(t){return t=t[0],t._private.hasPie};Hh.hasStripe=function(t){return t=t[0],t._private.hasStripe};Hh.drawPie=function(t,e,r,n){e=e[0],n=n||e.position();var a=e.cy().style(),i=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),i.units==="%"?f=f*i.pfValue:i.pfValue!==void 0&&(f=i.pfValue/2),s.units==="%"?p=f*s.pfValue:s.pfValue!==void 0&&(p=s.pfValue/2),!(p>=f))for(var v=1;v<=a.pieBackgroundN;v++){var y=e.pstyle("pie-"+v+"-background-size").value,b=e.pstyle("pie-"+v+"-background-color").value,_=e.pstyle("pie-"+v+"-background-opacity").value*r,S=y/100;S+g>1&&(S=1-g);var x=1.5*Math.PI+2*Math.PI*g;x+=o;var C=2*Math.PI*S,T=x+C;y===0||g>=1||g+S>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+=S)}};Hh.drawStripe=function(t,e,r,n){e=e[0],n=n||e.position();var a=e.cy().style(),i=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&&(i=0,s=0),s-=p/2,i-=g/2;for(var m=1;m<=a.stripeBackgroundN;m++){var v=e.pstyle("stripe-"+m+"-background-size").value,y=e.pstyle("stripe-"+m+"-background-color").value,b=e.pstyle("stripe-"+m+"-background-opacity").value*r,_=v/100;_+u>1&&(_=1-u),!(v===0||u>=1||u+_>1)&&(t.beginPath(),t.rect(i,s+g*u,p,g*_),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],b),t.fill(),u+=_)}t.restore()};var no={},Vyt=100;no.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};no.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,n,a=0;ae.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(),S=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,R=w===void 0||T.zoom!==w.zoom||T.pan.x!==w.pan.x||T.pan.y!==w.pan.y;!R&&!(m&&!g)&&(e.motionBlurPxRatio=1),o&&(C=o),S*=l,C.x*=l,C.y*=l;var O=e.getCachedZSortedEles();function M(te,ne,ae,re,ge){var pe=te.globalCompositeOperation;te.globalCompositeOperation="destination-out",e.colorFillStyle(te,255,255,255,e.motionBlurTransparency),te.fillRect(ne,ae,re,ge),te.globalCompositeOperation=pe}function $(te,ne){var ae,re,ge,pe;!e.clearingMotionBlur&&(te===u.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]||te===u.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG])?(ae={x:x.x*p,y:x.y*p},re=_*p,ge=e.canvasWidth*p,pe=e.canvasHeight*p):(ae=C,re=S,ge=e.canvasWidth,pe=e.canvasHeight),te.setTransform(1,0,0,1,0,0),ne==="motionBlur"?M(te,0,0,ge,pe):!n&&(ne===void 0||ne)&&te.clearRect(0,0,ge,pe),a||(te.translate(ae.x,ae.y),te.scale(re,re)),o&&te.translate(o.x,o.y),s&&te.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 N=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]||a||i||B[e.NODE]){var U=f&&!B[e.NODE]&&p!==1,A=n||(U?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]:u.contexts[e.NODE]),G=f&&!U?"motionBlur":void 0;$(A,G),z?e.drawCachedNodes(A,O.nondrag,l,N):e.drawLayeredElements(A,O.nondrag,l,N),e.debug&&e.drawDebugPoints(A,O.nondrag),!a&&!f&&(d[e.NODE]=!1)}if(!i&&(d[e.DRAG]||a||B[e.DRAG])){var U=f&&!B[e.DRAG]&&p!==1,A=n||(U?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]:u.contexts[e.DRAG]);$(A,f&&!U?"motionBlur":void 0),z?e.drawCachedNodes(A,O.drag,l,N):e.drawCachedElements(A,O.drag,l,N),e.debug&&e.drawDebugPoints(A,O.drag),!a&&!f&&(d[e.DRAG]=!1)}if(this.drawSelectionRectangle(t,$),f&&p!==1){var K=u.contexts[e.NODE],Y=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE],ee=u.contexts[e.DRAG],X=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG],le=function(ne,ae,re){ne.setTransform(1,0,0,1,0,0),re||!y?ne.clearRect(0,0,e.canvasWidth,e.canvasHeight):M(ne,0,0,e.canvasWidth,e.canvasHeight);var ge=p;ne.drawImage(ae,0,0,e.canvasWidth*ge,e.canvasHeight*ge,0,0,e.canvasWidth,e.canvasHeight)};(d[e.NODE]||B[e.NODE])&&(le(K,Y,B[e.NODE]),d[e.NODE]=!1),(d[e.DRAG]||B[e.DRAG])&&(le(ee,X,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()},Vyt)),n||r.emit("render")};var tE;no.drawSelectionRectangle=function(t,e){var r=this,n=r.cy,a=r.data,i=n.style(),s=t.drawOnlyNodeLayer,o=t.drawAllLayers,l=a.canvasNeedsRedraw,u=t.forcedContext;if(r.showFps||!s&&l[r.SELECT_BOX]&&!o){var d=u||a.contexts[r.SELECT_BOX];if(e(d),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var h=r.cy.zoom(),f=i.core("selection-box-border-width").value/h;d.lineWidth=f,d.fillStyle="rgba("+i.core("selection-box-color").value[0]+","+i.core("selection-box-color").value[1]+","+i.core("selection-box-color").value[2]+","+i.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("+i.core("selection-box-border-color").value[0]+","+i.core("selection-box-border-color").value[1]+","+i.core("selection-box-border-color").value[2]+","+i.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(a.bgActivePosistion&&!r.hoverData.selecting){var h=r.cy.zoom(),p=a.bgActivePosistion;d.fillStyle="rgba("+i.core("active-bg-color").value[0]+","+i.core("active-bg-color").value[1]+","+i.core("active-bg-color").value[2]+","+i.core("active-bg-opacity").value+")",d.beginPath(),d.arc(p.x,p.y,i.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),v="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",!tE){var y=d.measureText(v);tE=y.actualBoundingBoxAscent}d.fillText(v,0,tE);var b=60;d.strokeRect(0,tE+10,250,20),d.fillRect(0,tE+10,250*Math.min(m/b,1),20)}o||(l[r.SELECT_BOX]=!1)}};function ese(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 Wyt(t,e,r){var n=ese(t,t.VERTEX_SHADER,e),a=ese(t,t.FRAGMENT_SHADER,r),i=t.createProgram();if(t.attachShader(i,n),t.attachShader(i,a),t.linkProgram(i),!t.getProgramParameter(i,t.LINK_STATUS))throw new Error("Could not initialize shaders");return i}function Kyt(t,e,r){r===void 0&&(r=e);var n=t.makeOffscreenCanvas(e,r),a=n.context=n.getContext("2d");return n.clear=function(){return a.clearRect(0,0,n.width,n.height)},n.clear(),n}function kY(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 Xyt(t){var e=t.pixelRatio,r=t.cy.zoom();return r*e}function jyt(t,e,r,n,a){var i=n*r+e.x,s=a*r+e.y;return s=Math.round(t.canvasHeight-s),[i,s]}function Qyt(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 Zyt(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 Jyt(t){return t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]<<24)}function e_t(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 R2e(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 N2e(t,e,r){switch(e){case t.FLOAT:return new Float32Array(r);case t.INT:return new Int32Array(r)}}function t_t(t,e,r,n,a,i){switch(e){case t.FLOAT:return new Float32Array(r.buffer,i*n,a);case t.INT:return new Int32Array(r.buffer,i*n,a)}}function r_t(t,e,r,n){var a=R2e(t,e),i=Za(a,2),s=i[0],o=i[1],l=N2e(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 kc(t,e,r,n){var a=R2e(t,r),i=Za(a,3),s=i[0],o=i[1],l=i[2],u=N2e(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=a*o),{scale:o,texW:l,texH:u}}},{key:"draw",value:function(r,n,a){var i=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(_,S){if(a&&S){var x=S.context,C=_.x,T=_.row,w=C,R=l*T;x.save(),x.translate(w,R),x.scale(d,d),a(x,n),x.restore()}},g=[null,null],m=function(){p(i.freePointer,i.canvas),g[0]={x:i.freePointer.x,y:i.freePointer.row*l,w:h,h:f},g[1]={x:i.freePointer.x+h,y:i.freePointer.row*l,w:0,h:f},i.freePointer.x+=h,i.freePointer.x==s&&(i.freePointer.x=0,i.freePointer.row++)},v=function(){var _=i.scratch,S=i.canvas;_.clear(),p({x:0,row:0},_);var x=s-i.freePointer.x,C=h-x,T=l;{var w=i.freePointer.x,R=i.freePointer.row*l,O=x;S.context.drawImage(_,0,0,O,T,w,R,O,T),g[0]={x:w,y:R,w:O,h:f}}{var M=x,$=(i.freePointer.row+1)*l,F=C;S&&S.context.drawImage(_,M,0,F,T,0,$,F,T),g[1]={x:0,y:$,w:F,h:f}}i.freePointer.x=C,i.freePointer.row++},y=function(){i.freePointer.x=0,i.freePointer.row++};if(this.freePointer.x+h<=s)m();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===s?(y(),m()):this.enableWrapping?v():(y(),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,a=this.texRows,i=this.getScale(r),s=i.texW;return this.freePointer.x+s>n?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},i=a.forceRedraw,s=i===void 0?!1:i,o=a.filterEle,l=o===void 0?function(){return!0}:o,u=a.filterType,d=u===void 0?function(){return!0}:u,h=!1,f=!1,p=bo(r),g;try{for(p.s();!(g=p.n()).done;){var m=g.value;if(l(m)){var v=bo(this.renderTypes.values()),y;try{var b=function(){var S=y.value,x=S.type;if(d(x)){var C=n.collections.get(S.collection),T=S.getKey(m),w=Array.isArray(T)?T:[T];if(s)w.forEach(function($){return C.markKeyForGC($)}),f=!0;else{var R=S.getID?S.getID(m):m.id(),O=n._key(x,R),M=n.typeAndIdToKey.get(O);M!==void 0&&!Zyt(w,M)&&(h=!0,n.typeAndIdToKey.delete(O),M.forEach(function($){return C.markKeyForGC($)}))}}};for(v.s();!(y=v.n()).done;)b()}catch(_){v.e(_)}finally{v.f()}}}}catch(_){p.e(_)}finally{p.f()}return f&&(this.gc(),h=!1),h}},{key:"gc",value:function(){var r=bo(this.collections.values()),n;try{for(r.s();!(n=r.n()).done;){var a=n.value;a.gc()}}catch(i){r.e(i)}finally{r.f()}}},{key:"getOrCreateAtlas",value:function(r,n,a,i){var s=this.renderTypes.get(n),o=this.collections.get(s.collection),l=!1,u=o.draw(i,a,function(f){s.drawClipped?(f.save(),f.beginPath(),f.rect(0,0,a.w,a.h),f.clip(),s.drawElement(f,r,a,!0,!0),f.restore()):s.drawElement(f,r,a,!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(i):this.typeAndIdToKey.set(h,[i])}return u}},{key:"getAtlasInfo",value:function(r,n){var a=this,i=this.renderTypes.get(n),s=i.getKey(r),o=Array.isArray(s)?s:[s];return o.map(function(l){var u=i.getBoundingBox(r,l),d=a.getOrCreateAtlas(r,n,u,l),h=d.getOffsets(l),f=Za(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=bo(this.collections),a;try{for(n.s();!(a=n.n()).done;){var i=Za(a.value,2),s=i[0],o=i[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}}])})(),d_t=(function(){function t(e){Gh(this,t),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return qh(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}}])})(),h_t=` +`),v=0;v1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l=t.desktopTapThreshold2}var se=i(q);Tt&&(t.hoverData.tapholdCancelled=!0);var It=function(){var Ct=t.hoverData.dragDelta=t.hoverData.dragDelta||[];Ct.length===0?(Ct.push(Ve[0]),Ct.push(Ve[1])):(Ct[0]+=Ve[0],Ct[1]+=Ve[1])};j=!0,a(ze,["mousemove","vmousemove","tapdrag"],q,{x:Oe[0],y:Oe[1]});var bt=function(Ct){return{originalEvent:q,type:Ct,position:{x:Oe[0],y:Oe[1]}}},Et=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||we.emit(bt("boxstart")),Ze[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Tt){var Nt=bt("cxtdrag");ie?ie.emit(Nt):we.emit(Nt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||ze!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit(bt("cxtdragout")),t.hoverData.cxtOver=ze,ze&&ze.emit(bt("cxtdragover")))}}else if(t.hoverData.dragging){if(j=!0,we.panningEnabled()&&we.userPanningEnabled()){var Vr;if(t.hoverData.justStartedPan){var Ne=t.hoverData.mdownPos;Vr={x:(Oe[0]-Ne[0])*Te,y:(Oe[1]-Ne[1])*Te},t.hoverData.justStartedPan=!1}else Vr={x:Ve[0]*Te,y:Ve[1]*Te};we.panBy(Vr),we.emit(bt("dragpan")),t.hoverData.dragged=!0}Oe=t.projectIntoViewport(q.clientX,q.clientY)}else if(Ze[4]==1&&(ie==null||ie.pannable())){if(Tt){if(!t.hoverData.dragging&&we.boxSelectionEnabled()&&(se||!we.panningEnabled()||!we.userPanningEnabled()))Et();else if(!t.hoverData.selecting&&we.panningEnabled()&&we.userPanningEnabled()){var mt=s(ie,t.hoverData.downs);mt&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Ze[4]=0,t.data.bgActivePosistion=Fm(Pe),t.redrawHint("select",!0),t.redraw())}ie&&ie.pannable()&&ie.active()&&ie.unactivate()}}else{if(ie&&ie.pannable()&&ie.active()&&ie.unactivate(),(!ie||!ie.grabbed())&&ze!=me&&(me&&a(me,["mouseout","tapdragout"],q,{x:Oe[0],y:Oe[1]}),ze&&a(ze,["mouseover","tapdragover"],q,{x:Oe[0],y:Oe[1]}),t.hoverData.last=ze),ie)if(Tt){if(we.boxSelectionEnabled()&&se)ie&&ie.grabbed()&&(y(ve),ie.emit(bt("freeon")),ve.emit(bt("free")),t.dragData.didDrag&&(ie.emit(bt("dragfreeon")),ve.emit(bt("dragfree")))),Et();else if(ie&&ie.grabbed()&&t.nodeIsDraggable(ie)){var _t=!t.dragData.didDrag;_t&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||m(ve,{inDragLayer:!0});var Ot={x:0,y:0};if(nr(Ve[0])&&nr(Ve[1])&&(Ot.x+=Ve[0],Ot.y+=Ve[1],_t)){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(bt("position")).emit(bt("drag")),t.redrawHint("drag",!0),t.redraw()}}else It();j=!0}if(Ze[2]=Oe[0],Ze[3]=Oe[1],j)return q.stopPropagation&&q.stopPropagation(),q.preventDefault&&q.preventDefault(),!1}},!1);var $,F,A;t.registerBinding(e,"mouseup",function(q){if(!(t.hoverData.which===1&&q.which!==1&&t.hoverData.capture)){var fe=t.hoverData.capture;if(fe){t.hoverData.capture=!1;var j=t.cy,we=t.projectIntoViewport(q.clientX,q.clientY),Te=t.selection,rt=t.findNearestElement(we[0],we[1],!0,!1),Oe=t.dragData.possibleDragElements,Pe=t.hoverData.down,Ie=i(q);t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Pe&&Pe.unactivate();var Ze=function(St){return{originalEvent:q,type:St,position:{x:we[0],y:we[1]}}};if(t.hoverData.which===3){var ze=Ze("cxttapend");if(Pe?Pe.emit(ze):j.emit(ze),!t.hoverData.cxtDragged){var me=Ze("cxttap");Pe?Pe.emit(me):j.emit(me)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(rt,["mouseup","tapend","vmouseup"],q,{x:we[0],y:we[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(Pe,["click","tap","vclick"],q,{x:we[0],y:we[1]}),F=!1,q.timeStamp-A<=j.multiClickDebounceTime()?($&&clearTimeout($),F=!0,A=null,a(Pe,["dblclick","dbltap","vdblclick"],q,{x:we[0],y:we[1]})):($=setTimeout(function(){F||a(Pe,["oneclick","onetap","voneclick"],q,{x:we[0],y:we[1]})},j.multiClickDebounceTime()),A=q.timeStamp)),Pe==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!i(q)&&(j.$(r).unselect(["tapunselect"]),Oe.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=Oe=j.collection()),rt==Pe&&!t.dragData.didDrag&&!t.hoverData.selecting&&rt!=null&&rt._private.selectable&&(t.hoverData.dragging||(j.selectionType()==="additive"||Ie?rt.selected()?rt.unselect(["tapunselect"]):rt.select(["tapselect"]):Ie||(j.$(r).unmerge(rt).unselect(["tapunselect"]),rt.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var ie=j.collection(t.getAllInBox(Te[0],Te[1],Te[2],Te[3]));t.redrawHint("select",!0),ie.length>0&&t.redrawHint("eles",!0),j.emit(Ze("boxend"));var Ve=function(St){return St.selectable()&&!St.selected()};j.selectionType()==="additive"||Ie||j.$(r).unmerge(ie).unselect(),ie.emit(Ze("box")).stdFilter(Ve).select().emit(Ze("boxselect")),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!Te[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var ve=Pe&&Pe.grabbed();y(Oe),ve&&(Pe.emit(Ze("freeon")),Oe.emit(Ze("free")),t.dragData.didDrag&&(Pe.emit(Ze("dragfreeon")),Oe.emit(Ze("dragfree"))))}}Te[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,N=1e5,P=function(q,fe){for(var j=0;j=D){var we=I;if(L=P(we,5),!L){var Te=Math.abs(we[0]);L=z(we)&&Te>5}if(L)for(var rt=0;rt5&&(j=dY(j)*5),me=j/-250,L&&(me/=N,me*=3),me=me*t.wheelSensitivity;var ie=q.deltaMode===1;ie&&(me*=33);var Ve=Oe.zoom()*Math.pow(10,me);q.type==="gesturechange"&&(Ve=t.gestureStartZoom*q.scale),Oe.zoom({level:Ve,renderedPosition:{x:ze[0],y:ze[1]}}),Oe.emit({type:q.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:q,position:{x:Ze[0],y:Ze[1]}})}}}};t.registerBinding(t.container,"wheel",B,!0),t.registerBinding(e,"scroll",function(q){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(q){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||q.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(ye){t.hasTouchStarted||B(ye)},!0),t.registerBinding(t.container,"mouseout",function(q){var fe=t.projectIntoViewport(q.clientX,q.clientY);t.cy.emit({originalEvent:q,type:"mouseout",position:{x:fe[0],y:fe[1]}})},!1),t.registerBinding(t.container,"mouseover",function(q){var fe=t.projectIntoViewport(q.clientX,q.clientY);t.cy.emit({originalEvent:q,type:"mouseover",position:{x:fe[0],y:fe[1]}})},!1);var U,G,K,Y,ee,X,le,te,ne,ae,re,ge,pe,Be=function(q,fe,j,we){return Math.sqrt((j-q)*(j-q)+(we-fe)*(we-fe))},Le=function(q,fe,j,we){return(j-q)*(j-q)+(we-fe)*(we-fe)},He;t.registerBinding(t.container,"touchstart",He=function(q){if(t.hasTouchStarted=!0,!!O(q)){_(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var fe=t.cy,j=t.touchData.now,we=t.touchData.earlier;if(q.touches[0]){var Te=t.projectIntoViewport(q.touches[0].clientX,q.touches[0].clientY);j[0]=Te[0],j[1]=Te[1]}if(q.touches[1]){var Te=t.projectIntoViewport(q.touches[1].clientX,q.touches[1].clientY);j[2]=Te[0],j[3]=Te[1]}if(q.touches[2]){var Te=t.projectIntoViewport(q.touches[2].clientX,q.touches[2].clientY);j[4]=Te[0],j[5]=Te[1]}var rt=function(se){return{originalEvent:q,type:se,position:{x:j[0],y:j[1]}}};if(q.touches[1]){t.touchData.singleTouchMoved=!0,y(t.dragData.touchDragEles);var Oe=t.findContainerClientCoords();ne=Oe[0],ae=Oe[1],re=Oe[2],ge=Oe[3],U=q.touches[0].clientX-ne,G=q.touches[0].clientY-ae,K=q.touches[1].clientX-ne,Y=q.touches[1].clientY-ae,pe=0<=U&&U<=re&&0<=K&&K<=re&&0<=G&&G<=ge&&0<=Y&&Y<=ge;var Pe=fe.pan(),Ie=fe.zoom();ee=Be(U,G,K,Y),X=Le(U,G,K,Y),le=[(U+K)/2,(G+Y)/2],te=[(le[0]-Pe.x)/Ie,(le[1]-Pe.y)/Ie];var Ze=200,ze=Ze*Ze;if(X=1){for(var nt=t.touchData.startPosition=[null,null,null,null,null,null],dt=0;dt=t.touchTapThreshold2}if(fe&&t.touchData.cxt){q.preventDefault();var dt=q.touches[0].clientX-ne,ft=q.touches[0].clientY-ae,gt=q.touches[1].clientX-ne,se=q.touches[1].clientY-ae,It=Le(dt,ft,gt,se),bt=It/X,Et=150,Nt=Et*Et,Vr=1.5,Ne=Vr*Vr;if(bt>=Ne||It>=Nt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var mt=Ie("cxttapend");t.touchData.start?(t.touchData.start.unactivate().emit(mt),t.touchData.start=null):we.emit(mt)}}if(fe&&t.touchData.cxt){var mt=Ie("cxtdrag");t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(mt):we.emit(mt),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var _t=t.findNearestElement(Te[0],Te[1],!0,!0);(!t.touchData.cxtOver||_t!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit(Ie("cxtdragout")),t.touchData.cxtOver=_t,_t&&_t.emit(Ie("cxtdragover")))}else if(fe&&q.touches[2]&&we.boxSelectionEnabled())q.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||we.emit(Ie("boxstart")),t.touchData.selecting=!0,t.touchData.didSelect=!0,j[4]=1,!j||j.length===0||j[0]===void 0?(j[0]=(Te[0]+Te[2]+Te[4])/3,j[1]=(Te[1]+Te[3]+Te[5])/3,j[2]=(Te[0]+Te[2]+Te[4])/3+1,j[3]=(Te[1]+Te[3]+Te[5])/3+1):(j[2]=(Te[0]+Te[2]+Te[4])/3,j[3]=(Te[1]+Te[3]+Te[5])/3),t.redrawHint("select",!0),t.redraw();else if(fe&&q.touches[1]&&!t.touchData.didSelect&&we.zoomingEnabled()&&we.panningEnabled()&&we.userZoomingEnabled()&&we.userPanningEnabled()){q.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 xe;t.registerBinding(e,"touchcancel",xe=function(q){var fe=t.touchData.start;t.touchData.capture=!1,fe&&fe.unactivate()});var $e,Ce,ut,Ae;if(t.registerBinding(e,"touchend",$e=function(q){var fe=t.touchData.start,j=t.touchData.capture;if(j)q.touches.length===0&&(t.touchData.capture=!1),q.preventDefault();else return;var we=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var Te=t.cy,rt=Te.zoom(),Oe=t.touchData.now,Pe=t.touchData.earlier;if(q.touches[0]){var Ie=t.projectIntoViewport(q.touches[0].clientX,q.touches[0].clientY);Oe[0]=Ie[0],Oe[1]=Ie[1]}if(q.touches[1]){var Ie=t.projectIntoViewport(q.touches[1].clientX,q.touches[1].clientY);Oe[2]=Ie[0],Oe[3]=Ie[1]}if(q.touches[2]){var Ie=t.projectIntoViewport(q.touches[2].clientX,q.touches[2].clientY);Oe[4]=Ie[0],Oe[5]=Ie[1]}var Ze=function(Nt){return{originalEvent:q,type:Nt,position:{x:Oe[0],y:Oe[1]}}};fe&&fe.unactivate();var ze;if(t.touchData.cxt){if(ze=Ze("cxttapend"),fe?fe.emit(ze):Te.emit(ze),!t.touchData.cxtDragged){var me=Ze("cxttap");fe?fe.emit(me):Te.emit(me)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!q.touches[2]&&Te.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var ie=Te.collection(t.getAllInBox(we[0],we[1],we[2],we[3]));we[0]=void 0,we[1]=void 0,we[2]=void 0,we[3]=void 0,we[4]=0,t.redrawHint("select",!0),Te.emit(Ze("boxend"));var Ve=function(Nt){return Nt.selectable()&&!Nt.selected()};ie.emit(Ze("box")).stdFilter(Ve).select().emit(Ze("boxselect")),ie.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(fe?.unactivate(),q.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!q.touches[1]){if(!q.touches[0]){if(!q.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var ve=t.dragData.touchDragEles;if(fe!=null){var Tt=fe._private.grabbed;y(ve),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Tt&&(fe.emit(Ze("freeon")),ve.emit(Ze("free")),t.dragData.didDrag&&(fe.emit(Ze("dragfreeon")),ve.emit(Ze("dragfree")))),a(fe,["touchend","tapend","vmouseup","tapdragout"],q,{x:Oe[0],y:Oe[1]}),fe.unactivate(),t.touchData.start=null}else{var St=t.findNearestElement(Oe[0],Oe[1],!0,!0);a(St,["touchend","tapend","vmouseup","tapdragout"],q,{x:Oe[0],y:Oe[1]})}var nt=t.touchData.startPosition[0]-Oe[0],dt=nt*nt,ft=t.touchData.startPosition[1]-Oe[1],gt=ft*ft,se=dt+gt,It=se*rt*rt;t.touchData.singleTouchMoved||(fe||Te.$(":selected").unselect(["tapunselect"]),a(fe,["tap","vclick"],q,{x:Oe[0],y:Oe[1]}),Ce=!1,q.timeStamp-Ae<=Te.multiClickDebounceTime()?(ut&&clearTimeout(ut),Ce=!0,Ae=null,a(fe,["dbltap","vdblclick"],q,{x:Oe[0],y:Oe[1]})):(ut=setTimeout(function(){Ce||a(fe,["onetap","voneclick"],q,{x:Oe[0],y:Oe[1]})},Te.multiClickDebounceTime()),Ae=q.timeStamp)),fe!=null&&!t.dragData.didDrag&&fe._private.selectable&&It"u"){var je=[],ot=function(q){return{clientX:q.clientX,clientY:q.clientY,force:1,identifier:q.pointerId,pageX:q.pageX,pageY:q.pageY,radiusX:q.width/2,radiusY:q.height/2,screenX:q.screenX,screenY:q.screenY,target:q.target}},lt=function(q){return{event:q,touch:ot(q)}},ct=function(q){je.push(lt(q))},it=function(q){for(var fe=0;fe0)return U[0]}return null},g=Object.keys(f),m=0;m0?p:bbe(i,s,e,r,n,a,o,l)},checkPoint:function(e,r,n,a,i,s,o,l){l=l==="auto"?wh(a,i):l;var u=2*l;if(L0(e,r,this.points,s,o,a,i-u,[0,-1],n)||L0(e,r,this.points,s,o,a-u,i,[0,-1],n))return!0;var d=a/2+2*n,h=i/2+2*n,f=[s-d,o-h,s-d,o,s+d,o,s+d,o-h];return!!(go(e,r,f)||dp(e,r,u,u,s+a/2-l,o+i/2-l,n)||dp(e,r,u,u,s-a/2+l,o+i/2-l,n))}}};id.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",As(3,0)),this.generateRoundPolygon("round-triangle",As(3,0)),this.generatePolygon("rectangle",As(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",As(5,0)),this.generateRoundPolygon("round-pentagon",As(5,0)),this.generatePolygon("hexagon",As(6,0)),this.generateRoundPolygon("round-hexagon",As(6,0)),this.generatePolygon("heptagon",As(7,0)),this.generateRoundPolygon("round-heptagon",As(7,0)),this.generatePolygon("octagon",As(8,0)),this.generateRoundPolygon("round-octagon",As(8,0));var n=new Array(20);{var a=qB(5,0),i=qB(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*S)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,v,m);if(x.length>0)for(var C=0;C0&&(e.onDeqd(n,g),!u&&e.shouldRedraw(n,g,v,m)&&i())},o=e.priority||lY;a.beforeRender(s,o(n))}}}},uyt=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G6;Gh(this,t),this.idsByKey=new f0,this.keyForId=new f0,this.cachesByLvl=new f0,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return qh(t,[{key:"getIdsFor",value:function(r){r==null&&ua("Can not get id list for null key");var n=this.idsByKey,a=this.idsByKey.get(r);return a||(a=new p2,n.set(r,a)),a}},{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(),a=this.keyForId.get(n),i=this.getKey(r);this.deleteIdForKey(a,n),this.addIdForKey(i,n),this.keyForId.set(n,i)}},{key:"deleteKeyMappingFor",value:function(r){var n=r.id(),a=this.keyForId.get(n);this.deleteIdForKey(a,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(r){var n=r.id(),a=this.keyForId.get(n),i=this.getKey(r);return a!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var n=this.cachesByLvl,a=this.lvls,i=n.get(r);return i||(i=new f0,n.set(r,i),a.push(r)),i}},{key:"getCache",value:function(r,n){return this.getCachesAt(n).get(r)}},{key:"get",value:function(r,n){var a=this.getKey(r),i=this.getCache(a,n);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,n){var a=this.keyForId.get(r.id()),i=this.getCache(a,n);return i}},{key:"hasCache",value:function(r,n){return this.getCachesAt(n).has(r)}},{key:"has",value:function(r,n){var a=this.getKey(r);return this.hasCache(a,n)}},{key:"setCache",value:function(r,n,a){a.key=r,this.getCachesAt(n).set(r,a)}},{key:"set",value:function(r,n,a){var i=this.getKey(r);this.setCache(i,n,a),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,n){this.getCachesAt(n).delete(r)}},{key:"delete",value:function(r,n){var a=this.getKey(r);this.deleteCache(a,n)}},{key:"invalidateKey",value:function(r){var n=this;this.lvls.forEach(function(a){return n.deleteCache(r,a)})}},{key:"invalidate",value:function(r){var n=r.id(),a=this.keyForId.get(n);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(a),i||this.getNumberOfIdsForKey(a)===0}}])})(),Wie=25,S3=50,N5=-4,nF=3,x2e=7.99,dyt=8,hyt=1024,fyt=1024,pyt=1024,gyt=.2,myt=.8,vyt=10,yyt=.15,_yt=.1,byt=.9,Eyt=.9,Syt=100,Tyt=1,zm={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},xyt=ts({getKey:null,doesEleInvalidateKey:G6,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:fbe,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),OE=function(e,r){var n=this;n.renderer=e,n.onDequeues=[];var a=xyt(r);Or(n,a),n.lookup=new uyt(a.getKey,a.doesEleInvalidateKey),n.setupDequeueing()},Ni=OE.prototype;Ni.reasons=zm;Ni.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};Ni.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=r[t]=r[t]||[];return n};Ni.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new FT(function(r,n){return n.reqs-r.reqs});return e};Ni.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};Ni.getElement=function(t,e,r,n,a){var i=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()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(n==null&&(n=Math.ceil(uY(o*r))),n=x2e||n>nF)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<=Wie?g=Wie:d<=S3?g=S3:g=Math.ceil(d/S3)*S3,d>pyt||h>fyt)return null;var m=i.getTextureQueue(g),v=m[m.length-2],y=function(){return i.recycleTexture(g,h)||i.addTexture(g,h)};v||(v=m[m.length-1]),v||(v=y()),v.width-v.usedWidthn;M--)R=i.getElement(t,e,r,M,zm.downscale);O()}else return i.queueElement(t,C.level-1),C;else{var $;if(!_&&!S&&!x)for(var F=n-1;F>=N5;F--){var A=l.get(t,F);if(A){$=A;break}}if(b($))return i.queueElement(t,n),$;v.context.translate(v.usedWidth,0),v.context.scale(u,u),this.drawElement(v.context,t,e,f,!1),v.context.scale(1/u,1/u),v.context.translate(-v.usedWidth,0)}return p={x:v.usedWidth,texture:v,level:n,scale:u,width:h,height:d,scaledLabelShown:f},v.usedWidth+=Math.ceil(h+dyt),v.eleCaches.push(p),l.set(t,n,p),i.checkTextureFullness(v),p};Ni.invalidateElements=function(t){for(var e=0;e=gyt*t.width&&this.retireTexture(t)};Ni.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>myt&&t.fullnessChecks>=vyt?Ch(r,t):t.fullnessChecks++};Ni.retireTexture=function(t){var e=this,r=t.height,n=e.getTextureQueue(r),a=this.lookup;Ch(n,t),t.retired=!0;for(var i=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,cY(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),Ch(a,s),n.push(s),s}};Ni.queueElement=function(t,e){var r=this,n=r.getElementQueue(),a=r.getElementKeyToQueue(),i=this.getKey(t),s=a[i];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:i};n.push(o),a[i]=o}};Ni.dequeue=function(t){for(var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),a=[],i=e.lookup,s=0;s0;s++){var o=r.pop(),l=o.key,u=o.eles[0],d=i.hasCache(u,o.level);if(n[l]=null,d)continue;a.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,zm.dequeue)}return a};Ni.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),a=this.getKey(t),i=n[a];i!=null&&(i.eles.length===1?(i.reqs=oY,r.updateItem(i),r.pop(),n[a]=null):i.eles.unmerge(t))};Ni.onDequeue=function(t){this.onDequeues.push(t)};Ni.offDequeue=function(t){Ch(this.onDequeues,t)};Ni.setupDequeueing=T2e.setupDequeueing({deqRedrawThreshold:Syt,deqCost:yyt,deqAvgCost:_yt,deqNoDrawCost:byt,deqFastCost:Eyt,deq:function(e,r,n){return e.dequeue(r,n)},onDeqd:function(e,r){for(var n=0;n=wyt||r>j6)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;vS<=D&&D<=j6&&!O(D);D+=I);};M(1),M(-1);for(var $=d.length-1;$>=0;$--){var F=d[$];F.invalid&&Ch(d,F)}};if(!f)g();else return d;var m=function(){if(!h){h=Ws();for(var O=0;OXie||F>Xie)return null;var A=$*F;if(A>Lyt)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 y=null,b=t.length/Cyt,_=!o,S=0;S=b||!_be(y.bb,x.boundingBox()))&&(y=v({insert:!0,after:y}),!y))return null;p||_?n.queueLayer(y,x):n.drawEleInLayer(y,x,r,e),y.eles.push(x),T[r]=y}return p||(_?null:d)};rs.getEleLevelForLayerLevel=function(t,e){return t};rs.drawEleInLayer=function(t,e,r,n){var a=this,i=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=a.getEleLevelForLayerLevel(r,n),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,r,Myt),i.setImgSmoothing(s,!0))};rs.levelIsComplete=function(t,e){var r=this,n=r.layersByLevel[t];if(!n||n.length===0)return!1;for(var a=0,i=0;i0||s.invalid)return!1;a+=s.eles.length}return a===e.length};rs.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var n=0;n0){e=!0;break}}return e};rs.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=D0(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(n,a,i){e.invalidateLayer(n)}))};rs.invalidateLayer=function(t){if(this.lastInvalidationTime=D0(),!t.invalid){var e=t.level,r=t.eles,n=this.layersByLevel[e];Ch(n,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var a=0;a3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(i&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=i?e.pstyle("opacity").value:1,d=i?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,v=e.pstyle("line-outline-color").value,y=u*d,b=u*d,_=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;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")},S=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;if(t.lineWidth=p+m,t.lineCap=g,m>0)s.colorStrokeStyle(t,v[0],v[1],v[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(){a&&s.drawEdgeOverlay(t,e)},C=function(){a&&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 R=e.pstyle("ghost").value==="yes";if(R){var O=e.pstyle("ghost-offset-x").pfValue,M=e.pstyle("ghost-offset-y").pfValue,$=e.pstyle("ghost-opacity").value,F=y*$;t.translate(O,M),_(F),T(F),t.translate(-O,-M)}else S();C(),_(),T(),x(),w(),r&&t.translate(l.x1,l.y1)}};var k2e=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n){if(n.visible()){var a=n.pstyle("".concat(e,"-opacity")).value;if(a!==0){var i=this,s=i.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",i.colorStrokeStyle(r,d[0],d[1],d[2],a),i.drawEdgePath(n,r,o.allpts,"solid")}}}};sd.drawEdgeOverlay=k2e("overlay");sd.drawEdgeUnderlay=k2e("underlay");sd.drawEdgePath=function(t,e,r,n){var a=t._private.rscratch,i=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=a.pathCacheKey&&a.pathCacheKey===h;f?(s=e=a.pathCache,o=!0):(s=e=new Path2D,a.pathCacheKey=h,a.pathCache=s)}if(i.setLineDash)switch(n){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=d;break;case"solid":i.setLineDash([]);break}if(!o&&!a.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),a.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(i&&!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)),a==null?(s.drawText(t,e,null,p,i),e.isEdge()&&(s.drawText(t,e,"source",p,i),s.drawText(t,e,"target",p,i))):s.drawText(t,e,a,p,i),r&&t.translate(g.x1,g.y1)};pg.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,a=e.pstyle("font-size").pfValue+"px",i=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+" "+a+" "+i,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,d[0],d[1],d[2],l)};function Vyt(t,e,r,n,a){var i=Math.min(n,a),s=i/2,o=e+n/2,l=r+a/2;t.beginPath(),t.arc(o,l,s,0,Math.PI*2),t.closePath()}function Jie(t,e,r,n,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=Math.min(i,n/2,a/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+a-s),t.quadraticCurveTo(e+n,r+a,e+n-s,r+a),t.lineTo(e+s,r+a),t.quadraticCurveTo(e,r+a,e,r+a-s),t.lineTo(e,r+s),t.quadraticCurveTo(e,r,e+s,r),t.closePath()}pg.getTextAngle=function(t,e){var r,n=t._private,a=n.rscratch,i=e?e+"-":"",s=t.pstyle(i+"text-rotation");if(s.strValue==="autorotate"){var o=po(a,"labelAngle",e);r=t.isEdge()?o:0}else s.strValue==="none"?r=0:r=s.pfValue;return r};pg.drawText=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,s=i.rscratch,o=a?e.effectiveOpacity():1;if(!(a&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var l=po(s,"labelX",r),u=po(s,"labelY",r),d,h,f=this.getLabelText(e,r);if(f!=null&&f!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,a);var p=r?r+"-":"",g=po(s,"labelWidth",r),m=po(s,"labelHeight",r),v=e.pstyle(p+"text-margin-x").pfValue,y=e.pstyle(p+"text-margin-y").pfValue,b=e.isEdge(),_=e.pstyle("text-halign").value,S=e.pstyle("text-valign").value;b&&(_="center",S="center"),l+=v,u+=y;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),S){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,R=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,N=e.pstyle("text-border-color").value,P=e.pstyle("text-border-style").value,z=C>0,B=w>0&&T>0,U=l-R;switch(_){case"left":U-=g;break;case"center":U-=g/2;break}var G=u-m-R,K=g+2*R,Y=m+2*R;if(z&&(t.fillStyle="rgba(".concat(L[0],",").concat(L[1],",").concat(L[2],",").concat(C*o,")")),B&&(t.strokeStyle="rgba(".concat(N[0],",").concat(N[1],",").concat(N[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(),Jie(t,U,G,K,Y,F)):$?(t.beginPath(),Vyt(t,U,G,K,Y)):(t.beginPath(),t.rect(U,G,K,Y)),z&&t.fill(),B&&t.stroke(),B&&P==="double"){var ee=w/2;t.beginPath(),M?Jie(t,U+ee,G+ee,K-2*ee,Y-2*ee,F):t.rect(U+ee,G+ee,K-2*ee,Y-2*ee),t.stroke()}t.fillStyle=A,t.strokeStyle=I,t.lineWidth=D,t.setLineDash&&t.setLineDash([])}var X=2*e.pstyle("text-outline-width").pfValue;if(X>0&&(t.lineWidth=X),e.pstyle("text-wrap").value==="wrap"){var le=po(s,"labelWrapCachedLines",r),te=po(s,"labelLineHeight",r),ne=g/2,ae=this.getLabelJustification(e);switch(ae==="auto"||(_==="left"?ae==="left"?l+=-g:ae==="center"&&(l+=-ne):_==="center"?ae==="left"?l+=-ne:ae==="right"&&(l+=ne):_==="right"&&(ae==="center"?l+=ne:ae==="right"&&(l+=g))),S){case"top":u-=(le.length-1)*te;break;case"center":case"bottom":u-=(le.length-1)*te;break}for(var re=0;re0&&t.strokeText(le[re],l,u),t.fillText(le[re],l,u),u+=te}else X>0&&t.strokeText(f,l,u),t.fillText(f,l,u);x!==0&&(t.rotate(-x),t.translate(-d,-h))}}};var Hh={};Hh.drawNode=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=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))&&!(i&&!e.visible())){var f=i?e.effectiveOpacity():1,p=s.usePaths(),g,m=!1,v=e.padding();o=e.width()+2*v,l=e.height()+2*v;var y;r&&(y=r,t.translate(-y.x1,-y.y1));for(var b=e.pstyle("background-image"),_=b.value,S=new Array(_.length),x=new Array(_.length),C=0,T=0;T<_.length;T++){var w=_[T],R=S[T]=w!=null&&w!=="none";if(R){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,N=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,U=e.pstyle("outline-width").pfValue,G=e.pstyle("outline-color").value,K=e.pstyle("outline-style").value,Y=e.pstyle("outline-opacity").value*f,ee=e.pstyle("outline-offset").value,X=e.pstyle("corner-radius").value;X!=="auto"&&(X=e.pstyle("corner-radius").pfValue);var le=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F;s.eleFillStyle(t,e,_e)},te=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B;s.colorStrokeStyle(t,A[0],A[1],A[2],_e)},ne=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y;s.colorStrokeStyle(t,G[0],G[1],G[2],_e)},ae=function(_e,ye,q,fe){var j=s.nodePathCache=s.nodePathCache||[],we=hbe(q==="polygon"?q+","+fe.join(","):q,""+ye,""+_e,""+X),Te=j[we],rt,Oe=!1;return Te!=null?(rt=Te,Oe=!0,d.pathCache=rt):(rt=new Path2D,j[we]=d.pathCache=rt),{path:rt,cacheHit:Oe}},re=e.pstyle("shape").strValue,ge=e.pstyle("shape-polygon-points").pfValue;if(p){t.translate(h.x,h.y);var pe=ae(o,l,re,ge);g=pe.path,m=pe.cacheHit}var Be=function(){if(!m){var _e=h;p&&(_e={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(g||t,_e.x,_e.y,o,l,X,d)}p?t.fill(g):t.fill()},Le=function(){for(var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,q=u.backgrounding,fe=0,j=0;j0&&arguments[0]!==void 0?arguments[0]:!1,ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;s.hasPie(e)&&(s.drawPie(t,e,ye),_e&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,X,d)))},Re=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ye=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,X,d),t.clip()),s.drawStripe(t,e,ye),t.restore(),_e&&(p||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,X,d)))},xe=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,ye=(M>0?M:-M)*_e,q=M>0?0:255;M!==0&&(s.colorFillStyle(t,q,q,q,ye),p?t.fill(g):t.fill())},$e=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(N!=="center"){if(t.save(),t.lineWidth*=2,N==="inside")p?t.clip(g):t.clip();else{var _e=new Path2D;_e.rect(-o/2-$,-l/2-$,o+2*$,l+2*$),_e.addPath(g),t.clip(_e,"evenodd")}p?t.stroke(g):t.stroke(),t.restore()}else p?t.stroke(g):t.stroke();if(I==="double"){t.lineWidth=$/3;var ye=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(g):t.stroke(),t.globalCompositeOperation=ye}t.setLineDash&&t.setLineDash([])}},Ce=function(){if(U>0){if(t.lineWidth=U,t.lineCap="butt",t.setLineDash)switch(K){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var _e=h;p&&(_e={x:0,y:0});var ye=s.getNodeShape(e),q=$;N==="inside"&&(q=0),N==="outside"&&(q*=2);var fe=(o+q+(U+ee))/o,j=(l+q+(U+ee))/l,we=o*fe,Te=l*j,rt=s.nodeShapes[ye].points,Oe;if(p){var Pe=ae(we,Te,ye,rt);Oe=Pe.path}if(ye==="ellipse")s.drawEllipsePath(Oe||t,_e.x,_e.y,we,Te);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(ye)){var Ie=0,Ze=0,ze=0;ye==="round-diamond"?Ie=(q+ee+U)*1.4:ye==="round-heptagon"?(Ie=(q+ee+U)*1.075,ze=-(q/2+ee+U)/35):ye==="round-hexagon"?Ie=(q+ee+U)*1.12:ye==="round-pentagon"?(Ie=(q+ee+U)*1.13,ze=-(q/2+ee+U)/15):ye==="round-tag"?(Ie=(q+ee+U)*1.12,Ze=(q/2+U+ee)*.07):ye==="round-triangle"&&(Ie=(q+ee+U)*(Math.PI/2),ze=-(q+ee/2+U)/Math.PI),Ie!==0&&(fe=(o+Ie)/o,we=o*fe,["round-hexagon","round-tag"].includes(ye)||(j=(l+Ie)/l,Te=l*j)),X=X==="auto"?Sbe(we,Te):X;for(var me=we/2,ie=Te/2,Ve=X+(q+U+ee)/2,ve=new Array(rt.length/2),Tt=new Array(rt.length/2),St=0;St0){if(a=a||n.position(),i==null||s==null){var p=n.padding();i=n.width()+2*p,s=n.height()+2*p}o.colorFillStyle(r,d[0],d[1],d[2],u),o.nodeShapes[h].draw(r,a.x,a.y,i+l*2,s+l*2,f),r.fill()}}}};Hh.drawNodeOverlay=A2e("overlay");Hh.drawNodeUnderlay=A2e("underlay");Hh.hasPie=function(t){return t=t[0],t._private.hasPie};Hh.hasStripe=function(t){return t=t[0],t._private.hasStripe};Hh.drawPie=function(t,e,r,n){e=e[0],n=n||e.position();var a=e.cy().style(),i=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),i.units==="%"?f=f*i.pfValue:i.pfValue!==void 0&&(f=i.pfValue/2),s.units==="%"?p=f*s.pfValue:s.pfValue!==void 0&&(p=s.pfValue/2),!(p>=f))for(var v=1;v<=a.pieBackgroundN;v++){var y=e.pstyle("pie-"+v+"-background-size").value,b=e.pstyle("pie-"+v+"-background-color").value,_=e.pstyle("pie-"+v+"-background-opacity").value*r,S=y/100;S+g>1&&(S=1-g);var x=1.5*Math.PI+2*Math.PI*g;x+=o;var C=2*Math.PI*S,T=x+C;y===0||g>=1||g+S>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+=S)}};Hh.drawStripe=function(t,e,r,n){e=e[0],n=n||e.position();var a=e.cy().style(),i=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&&(i=0,s=0),s-=p/2,i-=g/2;for(var m=1;m<=a.stripeBackgroundN;m++){var v=e.pstyle("stripe-"+m+"-background-size").value,y=e.pstyle("stripe-"+m+"-background-color").value,b=e.pstyle("stripe-"+m+"-background-opacity").value*r,_=v/100;_+u>1&&(_=1-u),!(v===0||u>=1||u+_>1)&&(t.beginPath(),t.rect(i,s+g*u,p,g*_),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],b),t.fill(),u+=_)}t.restore()};var no={},Wyt=100;no.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};no.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,n,a=0;ae.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(),S=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,R=w===void 0||T.zoom!==w.zoom||T.pan.x!==w.pan.x||T.pan.y!==w.pan.y;!R&&!(m&&!g)&&(e.motionBlurPxRatio=1),o&&(C=o),S*=l,C.x*=l,C.y*=l;var O=e.getCachedZSortedEles();function M(te,ne,ae,re,ge){var pe=te.globalCompositeOperation;te.globalCompositeOperation="destination-out",e.colorFillStyle(te,255,255,255,e.motionBlurTransparency),te.fillRect(ne,ae,re,ge),te.globalCompositeOperation=pe}function $(te,ne){var ae,re,ge,pe;!e.clearingMotionBlur&&(te===u.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]||te===u.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG])?(ae={x:x.x*p,y:x.y*p},re=_*p,ge=e.canvasWidth*p,pe=e.canvasHeight*p):(ae=C,re=S,ge=e.canvasWidth,pe=e.canvasHeight),te.setTransform(1,0,0,1,0,0),ne==="motionBlur"?M(te,0,0,ge,pe):!n&&(ne===void 0||ne)&&te.clearRect(0,0,ge,pe),a||(te.translate(ae.x,ae.y),te.scale(re,re)),o&&te.translate(o.x,o.y),s&&te.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 N=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]||a||i||B[e.NODE]){var U=f&&!B[e.NODE]&&p!==1,A=n||(U?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE]:u.contexts[e.NODE]),G=f&&!U?"motionBlur":void 0;$(A,G),z?e.drawCachedNodes(A,O.nondrag,l,N):e.drawLayeredElements(A,O.nondrag,l,N),e.debug&&e.drawDebugPoints(A,O.nondrag),!a&&!f&&(d[e.NODE]=!1)}if(!i&&(d[e.DRAG]||a||B[e.DRAG])){var U=f&&!B[e.DRAG]&&p!==1,A=n||(U?e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]:u.contexts[e.DRAG]);$(A,f&&!U?"motionBlur":void 0),z?e.drawCachedNodes(A,O.drag,l,N):e.drawCachedElements(A,O.drag,l,N),e.debug&&e.drawDebugPoints(A,O.drag),!a&&!f&&(d[e.DRAG]=!1)}if(this.drawSelectionRectangle(t,$),f&&p!==1){var K=u.contexts[e.NODE],Y=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE],ee=u.contexts[e.DRAG],X=e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG],le=function(ne,ae,re){ne.setTransform(1,0,0,1,0,0),re||!y?ne.clearRect(0,0,e.canvasWidth,e.canvasHeight):M(ne,0,0,e.canvasWidth,e.canvasHeight);var ge=p;ne.drawImage(ae,0,0,e.canvasWidth*ge,e.canvasHeight*ge,0,0,e.canvasWidth,e.canvasHeight)};(d[e.NODE]||B[e.NODE])&&(le(K,Y,B[e.NODE]),d[e.NODE]=!1),(d[e.DRAG]||B[e.DRAG])&&(le(ee,X,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()},Wyt)),n||r.emit("render")};var tE;no.drawSelectionRectangle=function(t,e){var r=this,n=r.cy,a=r.data,i=n.style(),s=t.drawOnlyNodeLayer,o=t.drawAllLayers,l=a.canvasNeedsRedraw,u=t.forcedContext;if(r.showFps||!s&&l[r.SELECT_BOX]&&!o){var d=u||a.contexts[r.SELECT_BOX];if(e(d),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var h=r.cy.zoom(),f=i.core("selection-box-border-width").value/h;d.lineWidth=f,d.fillStyle="rgba("+i.core("selection-box-color").value[0]+","+i.core("selection-box-color").value[1]+","+i.core("selection-box-color").value[2]+","+i.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("+i.core("selection-box-border-color").value[0]+","+i.core("selection-box-border-color").value[1]+","+i.core("selection-box-border-color").value[2]+","+i.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(a.bgActivePosistion&&!r.hoverData.selecting){var h=r.cy.zoom(),p=a.bgActivePosistion;d.fillStyle="rgba("+i.core("active-bg-color").value[0]+","+i.core("active-bg-color").value[1]+","+i.core("active-bg-color").value[2]+","+i.core("active-bg-opacity").value+")",d.beginPath(),d.arc(p.x,p.y,i.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),v="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",!tE){var y=d.measureText(v);tE=y.actualBoundingBoxAscent}d.fillText(v,0,tE);var b=60;d.strokeRect(0,tE+10,250,20),d.fillRect(0,tE+10,250*Math.min(m/b,1),20)}o||(l[r.SELECT_BOX]=!1)}};function ese(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 Kyt(t,e,r){var n=ese(t,t.VERTEX_SHADER,e),a=ese(t,t.FRAGMENT_SHADER,r),i=t.createProgram();if(t.attachShader(i,n),t.attachShader(i,a),t.linkProgram(i),!t.getProgramParameter(i,t.LINK_STATUS))throw new Error("Could not initialize shaders");return i}function Xyt(t,e,r){r===void 0&&(r=e);var n=t.makeOffscreenCanvas(e,r),a=n.context=n.getContext("2d");return n.clear=function(){return a.clearRect(0,0,n.width,n.height)},n.clear(),n}function kY(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 jyt(t){var e=t.pixelRatio,r=t.cy.zoom();return r*e}function Qyt(t,e,r,n,a){var i=n*r+e.x,s=a*r+e.y;return s=Math.round(t.canvasHeight-s),[i,s]}function Zyt(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 Jyt(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 e_t(t){return t[0]+(t[1]<<8)+(t[2]<<16)+(t[3]<<24)}function t_t(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 R2e(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 N2e(t,e,r){switch(e){case t.FLOAT:return new Float32Array(r);case t.INT:return new Int32Array(r)}}function r_t(t,e,r,n,a,i){switch(e){case t.FLOAT:return new Float32Array(r.buffer,i*n,a);case t.INT:return new Int32Array(r.buffer,i*n,a)}}function n_t(t,e,r,n){var a=R2e(t,e),i=Za(a,2),s=i[0],o=i[1],l=N2e(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 kc(t,e,r,n){var a=R2e(t,r),i=Za(a,3),s=i[0],o=i[1],l=i[2],u=N2e(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=a*o),{scale:o,texW:l,texH:u}}},{key:"draw",value:function(r,n,a){var i=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(_,S){if(a&&S){var x=S.context,C=_.x,T=_.row,w=C,R=l*T;x.save(),x.translate(w,R),x.scale(d,d),a(x,n),x.restore()}},g=[null,null],m=function(){p(i.freePointer,i.canvas),g[0]={x:i.freePointer.x,y:i.freePointer.row*l,w:h,h:f},g[1]={x:i.freePointer.x+h,y:i.freePointer.row*l,w:0,h:f},i.freePointer.x+=h,i.freePointer.x==s&&(i.freePointer.x=0,i.freePointer.row++)},v=function(){var _=i.scratch,S=i.canvas;_.clear(),p({x:0,row:0},_);var x=s-i.freePointer.x,C=h-x,T=l;{var w=i.freePointer.x,R=i.freePointer.row*l,O=x;S.context.drawImage(_,0,0,O,T,w,R,O,T),g[0]={x:w,y:R,w:O,h:f}}{var M=x,$=(i.freePointer.row+1)*l,F=C;S&&S.context.drawImage(_,M,0,F,T,0,$,F,T),g[1]={x:0,y:$,w:F,h:f}}i.freePointer.x=C,i.freePointer.row++},y=function(){i.freePointer.x=0,i.freePointer.row++};if(this.freePointer.x+h<=s)m();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===s?(y(),m()):this.enableWrapping?v():(y(),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,a=this.texRows,i=this.getScale(r),s=i.texW;return this.freePointer.x+s>n?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},i=a.forceRedraw,s=i===void 0?!1:i,o=a.filterEle,l=o===void 0?function(){return!0}:o,u=a.filterType,d=u===void 0?function(){return!0}:u,h=!1,f=!1,p=bo(r),g;try{for(p.s();!(g=p.n()).done;){var m=g.value;if(l(m)){var v=bo(this.renderTypes.values()),y;try{var b=function(){var S=y.value,x=S.type;if(d(x)){var C=n.collections.get(S.collection),T=S.getKey(m),w=Array.isArray(T)?T:[T];if(s)w.forEach(function($){return C.markKeyForGC($)}),f=!0;else{var R=S.getID?S.getID(m):m.id(),O=n._key(x,R),M=n.typeAndIdToKey.get(O);M!==void 0&&!Jyt(w,M)&&(h=!0,n.typeAndIdToKey.delete(O),M.forEach(function($){return C.markKeyForGC($)}))}}};for(v.s();!(y=v.n()).done;)b()}catch(_){v.e(_)}finally{v.f()}}}}catch(_){p.e(_)}finally{p.f()}return f&&(this.gc(),h=!1),h}},{key:"gc",value:function(){var r=bo(this.collections.values()),n;try{for(r.s();!(n=r.n()).done;){var a=n.value;a.gc()}}catch(i){r.e(i)}finally{r.f()}}},{key:"getOrCreateAtlas",value:function(r,n,a,i){var s=this.renderTypes.get(n),o=this.collections.get(s.collection),l=!1,u=o.draw(i,a,function(f){s.drawClipped?(f.save(),f.beginPath(),f.rect(0,0,a.w,a.h),f.clip(),s.drawElement(f,r,a,!0,!0),f.restore()):s.drawElement(f,r,a,!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(i):this.typeAndIdToKey.set(h,[i])}return u}},{key:"getAtlasInfo",value:function(r,n){var a=this,i=this.renderTypes.get(n),s=i.getKey(r),o=Array.isArray(s)?s:[s];return o.map(function(l){var u=i.getBoundingBox(r,l),d=a.getOrCreateAtlas(r,n,u,l),h=d.getOffsets(l),f=Za(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=bo(this.collections),a;try{for(n.s();!(a=n.n()).done;){var i=Za(a.value,2),s=i[0],o=i[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}}])})(),h_t=(function(){function t(e){Gh(this,t),this.globalOptions=e,this.atlasSize=e.webglTexSize,this.maxAtlasesPerBatch=e.webglTexPerBatch,this.batchAtlases=[]}return qh(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}}])})(),f_t=` float circleSD(vec2 p, float r) { return distance(vec2(0), p) - r; // signed distance } -`,f_t=` +`,p_t=` 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); } -`,p_t=` +`,g_t=` 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; } -`,g_t=` +`,m_t=` float ellipseSD(vec2 p, vec2 ab) { p = abs( p ); // symmetry @@ -4682,7 +4687,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; } -`,yS={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},Q6={IGNORE:1,USE_BB:2},$L=0,ase=1,ise=2,zL=3,Jg=4,T3=5,rE=6,nE=7,m_t=(function(){function t(e,r,n){Gh(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=Kyt,this.atlasManager=new u_t(e,n),this.batchManager=new d_t(n),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(yS.SCREEN),this.pickingProgram=this._createShaderProgram(yS.PICKING),this.vao=this._createVAO()}return qh(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]:{},a=n.type,i=this.atlasManager;return a?i.invalidate(r,{filterType:function(o){return o===a},forceRedraw:!0}):i.invalidate(r)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(r){var n=this.gl,a=`#version 300 es +`,yS={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},Q6={IGNORE:1,USE_BB:2},$L=0,ase=1,ise=2,zL=3,Jg=4,T3=5,rE=6,nE=7,v_t=(function(){function t(e,r,n){Gh(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=Xyt,this.atlasManager=new d_t(e,n),this.batchManager=new h_t(n),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(yS.SCREEN),this.pickingProgram=this._createShaderProgram(yS.PICKING),this.vao=this._createVAO()}return qh(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]:{},a=n.type,i=this.atlasManager;return a?i.invalidate(r,{filterType:function(o){return o===a},forceRedraw:!0}):i.invalidate(r)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(r){var n=this.gl,a=`#version 300 es precision highp float; uniform mat3 uPanZoomMatrix; @@ -4872,10 +4877,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho out vec4 outColor; - `).concat(h_t,` `).concat(f_t,` `).concat(p_t,` `).concat(g_t,` + `).concat(m_t,` vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha return vec4( @@ -4960,16 +4965,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=Wyt(n,a,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]:yS.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,a){var i=this.atlasManager,s=this.batchManager,o=i.getRenderTypeOpts(a);if(this._isVisible(r,o)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&o.getTexPickingMode){var l=o.getTexPickingMode(r);if(l===Q6.IGNORE)return;if(l==Q6.USE_BB){this.drawPickingRectangle(r,n,a);return}}var u=i.getAtlasInfo(r,a),d=bo(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 v=s.getAtlasIndexForBatch(p),y=0,b=[[g,!0],[m,!1]];y=this.maxInstances&&this.endBatch()}}}}catch(M){d.e(M)}finally{d.f()}}}},{key:"setTransformMatrix",value:function(r,n,a,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(a.shapeProps&&a.shapeProps.padding&&(o=r.pstyle(a.shapeProps.padding).pfValue),i){var l=i.bb,u=i.tex1,d=i.tex2,h=u.w/(u.w+d.w);s||(h=1-h);var f=this._getAdjustedBB(l,o,s,h);this._applyTransformMatrix(n,f,a,r)}else{var p=a.getBoundingBox(r),g=this._getAdjustedBB(p,o,!0,1);this._applyTransformMatrix(n,g,a,r)}}},{key:"_applyTransformMatrix",value:function(r,n,a,i){var s,o;rse(r);var l=a.getRotation?a.getRotation(i):0;if(l!==0){var u=a.getRotationPoint(i),d=u.x,h=u.y;I5(r,r,[d,h]),nse(r,r,l);var f=a.getRotationOffset(i);s=f.x+(n.xOffset||0),o=f.y+(n.yOffset||0)}else s=n.x1,o=n.y1;I5(r,r,[s,o]),aF(r,r,[n.w,n.h])}},{key:"_getAdjustedBB",value:function(r,n,a,i){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*i;return a&&i<1?l=f:!a&&i<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,a){var i=this.atlasManager.getRenderTypeOpts(a),s=this.instanceCount;this.vertTypeBuffer.getView(s)[0]=Jg;var o=this.indexBuffer.getView(s);Zg(n,o);var l=this.colorBuffer.getView(s);yf([0,0,0],1,l);var u=this.transformBuffer.getMatrixView(s);this.setTransformMatrix(r,u,i),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(r,n,a){var i=this.simpleShapeOptions.get(a);if(this._isVisible(r,i)){var s=i.shapeProps,o=this._getVertTypeForShape(r,s.shape);if(o===void 0||i.isSimple&&!i.isSimple(r)){this.drawTexture(r,n,a);return}var l=this.instanceCount;if(this.vertTypeBuffer.getView(l)[0]=o,o===T3||o===rE){var u=i.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===rE&&(h[0]=0,h[2]=0)}var f=this.indexBuffer.getView(l);Zg(n,f);var p=r.pstyle(s.color).value,g=r.pstyle(s.opacity).value,m=this.colorBuffer.getView(l);yf(p,g,m);var v=this.lineWidthBuffer.getView(l);if(v[0]=0,v[1]=0,s.border){var y=r.pstyle("border-width").value;if(y>0){var b=r.pstyle("border-color").value,_=r.pstyle("border-opacity").value,S=this.borderColorBuffer.getView(l);yf(b,_,S);var x=r.pstyle("border-position").value;if(x==="inside")v[0]=0,v[1]=-y;else if(x==="outside")v[0]=y,v[1]=0;else{var C=y/2;v[0]=C,v[1]=-C}}}var T=this.transformBuffer.getMatrixView(l);this.setTransformMatrix(r,T,i),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(r,n){var a=r.pstyle(n).value;switch(a){case"rectangle":return Jg;case"ellipse":return nE;case"roundrectangle":case"round-rectangle":return T3;case"bottom-round-rectangle":return rE;default:return}}},{key:"_getCornerRadius",value:function(r,n,a){var i=a.w,s=a.h;if(r.pstyle(n).value==="auto")return wh(i,s);var o=r.pstyle(n).pfValue,l=i/2,u=s/2;return Math.min(o,u,l)}},{key:"drawEdgeArrow",value:function(r,n,a){if(r.visible()){var i=r._private.rscratch,s,o,l;if(a==="source"?(s=i.arrowStartX,o=i.arrowStartY,l=i.srcArrowAngle):(s=i.arrowEndX,o=i.arrowEndY,l=i.tgtArrowAngle),!(isNaN(s)||s==null||isNaN(o)||o==null||isNaN(l)||l==null)){var u=r.pstyle(a+"-arrow-shape").value;if(u!=="none"){var d=r.pstyle(a+"-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,v=this.r.getArrowWidth(g,m),y=this.instanceCount,b=this.transformBuffer.getMatrixView(y);rse(b),I5(b,b,[s,o]),aF(b,b,[v,v]),nse(b,b,l),this.vertTypeBuffer.getView(y)[0]=zL;var _=this.indexBuffer.getView(y);Zg(n,_);var S=this.colorBuffer.getView(y);yf(d,p,S),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(r,n){if(r.visible()){var a=this._getEdgePoints(r);if(a){var i=r.pstyle("opacity").value,s=r.pstyle("line-opacity").value,o=r.pstyle("width").pfValue,l=r.pstyle("line-color").value,u=i*s;if(a.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),a.length==4){var d=this.instanceCount;this.vertTypeBuffer.getView(d)[0]=ase;var h=this.indexBuffer.getView(d);Zg(n,h);var f=this.colorBuffer.getView(d);yf(l,u,f);var p=this.lineWidthBuffer.getView(d);p[0]=o;var g=this.pointAPointBBuffer.getView(d);g[0]=a[0],g[1]=a[1],g[2]=a[2],g[3]=a[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 a=n.allpts;if(a.length==4)return a;var i=this._getNumSegments(r);return this._getCurveSegmentPoints(a,i)}}},{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 a=Array((n+1)*2),i=0;i<=n;i++)if(i==0)a[0]=r[0],a[1]=r[1];else if(i==n)a[i*2]=r[r.length-2],a[i*2+1]=r[r.length-1];else{var s=i/n;this._setCurvePoint(r,s,a,i*2)}return a}},{key:"_setCurvePoint",value:function(r,n,a,i){if(r.length<=2)a[i]=r[0],a[i+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?Q6.USE_BB:Q6.IGNORE},l=function(h){var f=h.position(),p=f.x,g=f.y,m=h.outerWidth(),v=h.outerHeight();return{w:m,h:v,x1:p-m/2,y1:g-v/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:Qyt,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:UL(e.getLabelKey,null),getBoundingBox:GL(e.getLabelBox,null),drawClipped:!0,drawElement:e.drawLabel,getRotation:a(null),getRotationPoint:e.getLabelRotationPoint,getRotationOffset:e.getLabelRotationOffset,isVisible:i("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:o,getKey:UL(e.getSourceLabelKey,"source"),getBoundingBox:GL(e.getSourceLabelBox,"source"),drawClipped:!0,drawElement:e.drawSourceLabel,getRotation:a("source"),getRotationPoint:e.getSourceLabelRotationPoint,getRotationOffset:e.getSourceLabelRotationOffset,isVisible:i("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:o,getKey:UL(e.getTargetLabelKey,"target"),getBoundingBox:GL(e.getTargetLabelBox,"target"),drawClipped:!0,drawElement:e.drawTargetLabel,getRotation:a("target"),getRotationPoint:e.getTargetLabelRotationPoint,getRotationOffset:e.getTargetLabelRotationOffset,isVisible:i("target-label")});var u=BT(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()}),y_t(r)};function v_t(t){var e=t.cy.container(),r=e&&e.style&&e.style.backgroundColor||"white";return ibe(r)}function O2e(t,e){var r=t._private.rscratch;return po(r,"labelWrapCachedLines",e)||[]}var UL=function(e,r){return function(n){var a=e(n),i=O2e(n,r);return i.length>1?i.map(function(s,o){return"".concat(a,"_").concat(o)}):a}},GL=function(e,r){return function(n,a){var i=e(n);if(typeof a=="string"){var s=a.indexOf("_");if(s>0){var o=Number(a.substring(s+1)),l=O2e(n,r),u=i.h/l.length,d=u*o,h=i.y1+d;return{x1:i.x1,w:i.w,y1:h,h:u,yOffset:d}}}return i}};function y_t(t){{var e=t.render;t.render=function(i){i=i||{};var s=t.cy;t.webgl&&(s.zoom()>x2e?(__t(t),e.call(t,i)):(b_t(t),L2e(t,i,yS.SCREEN)))}}{var r=t.matchCanvasSize;t.matchCanvasSize=function(i){r.call(t,i),t.pickingFrameBuffer.setFramebufferAttachmentSizes(t.canvasWidth,t.canvasHeight),t.pickingFrameBuffer.needsDraw=!0}}t.findNearestElements=function(i,s,o,l){return w_t(t,i,s)};{var n=t.invalidateCachedZSortedEles;t.invalidateCachedZSortedEles=function(){n.call(t),t.pickingFrameBuffer.needsDraw=!0}}{var a=t.notify;t.notify=function(i,s){a.call(t,i,s),i==="viewport"||i==="bounds"?t.pickingFrameBuffer.needsDraw=!0:i==="background"&&t.drawing.invalidate(s,{type:"node-body"})}}}function __t(t){var e=t.data.contexts[t.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function b_t(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 E_t(t){var e=t.canvasWidth,r=t.canvasHeight,n=kY(t),a=n.pan,i=n.zoom,s=FL();I5(s,s,[a.x,a.y]),aF(s,s,[i,i]);var o=FL();s_t(o,e,r);var l=FL();return i_t(l,o,s),l}function D2e(t,e){var r=t.canvasWidth,n=t.canvasHeight,a=kY(t),i=a.pan,s=a.zoom;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,r,n),e.translate(i.x,i.y),e.scale(s,s)}function S_t(t,e){t.drawSelectionRectangle(e,function(r){return D2e(t,r)})}function T_t(t){var e=t.data.contexts[t.NODE];e.save(),D2e(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 x_t(t){var e=function(a,i,s){for(var o=a.atlasManager.getAtlasCollection(i),l=t.data.contexts[t.NODE],u=o.atlases,d=0;d=0&&S.add(T)}return S}function w_t(t,e,r){var n=C_t(t,e,r),a=t.getCachedZSortedEles(),i,s,o=bo(n),l;try{for(o.s();!(l=o.n()).done;){var u=l.value,d=a[u];if(!i&&d.isNode()&&(i=d),!s&&d.isEdge()&&(s=d),i&&s)break}}catch(h){o.e(h)}finally{o.f()}return[i,s].filter(Boolean)}function qL(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 L2e(t,e,r){var n;t.webglDebug&&(n=performance.now());var a=t.drawing,i=0;if(r.screen&&t.data.canvasNeedsRedraw[t.SELECT_BOX]&&S_t(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=E_t(t),l=t.getCachedZSortedEles();if(i=l.length,a.startFrame(o,r),r.screen){for(var u=0;u0&&s>0){p.clearRect(0,0,i,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(),v={x:m.x*u,y:m.y*u};u*=e.zoom(),p.translate(v.x,v.y),p.scale(u,u),this.drawElements(p,g),p.scale(1/u,1/u),p.translate(-v.x,-v.y)}t.bg&&(p.globalCompositeOperation="destination-over",p.fillStyle=t.bg,p.rect(0,0,i,s),p.fill())}return f};function k_t(t,e){for(var r=atob(t),n=new ArrayBuffer(r.length),a=new Uint8Array(n),i=0;i"u"?"undefined":Ai(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var n=this.cy.window(),a=n.document;r=a.createElement("canvas"),r.width=t,r.height=e}return r};[w2e,Ru,sd,wY,pg,Hh,no,I2e,Vh,qT,B2e].forEach(function(t){Or(nn,t)});var N_t=[{name:"null",impl:h2e},{name:"base",impl:S2e},{name:"canvas",impl:A_t}],I_t=[{type:"layout",extensions:ryt},{type:"renderer",extensions:N_t}],$2e={},z2e={};function U2e(t,e,r){var n=r,a=function(w){Mn("Can not register `"+e+"` for `"+t+"` since `"+w+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(A4.prototype[e])return a(e);A4.prototype[e]=r}else if(t==="collection"){if(Zi.prototype[e])return a(e);Zi.prototype[e]=r}else if(t==="layout"){for(var i=function(w){this.options=w,r.call(this,w),mn(this._private)||(this._private={}),this._private.cy=w.cy,this._private.listeners=[],this.createEmitter()},s=i.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 v=new d(g,m),y=p.inverseTransformPoint(v);this.setLocation(y.x,y.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,a){function i(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(s){this.x=s},i.prototype.setY=function(s){this.y=s},i.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=i}),(function(r,n,a){var i=a(2),s=a(10),o=a(0),l=a(6),u=a(3),d=a(1),h=a(13),f=a(12),p=a(11);function g(v,y,b){i.call(this,b),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=v,y!=null&&y instanceof l?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}g.prototype=Object.create(i.prototype);for(var m in i)g[m]=i[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(v,y,b){if(y==null&&b==null){var _=v;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 S=v;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(b)>-1))throw"Source or target not in graph!";if(!(y.owner==b.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=b.owner?null:(S.source=y,S.target=b,S.isInterGraph=!1,this.getEdges().push(S),y.edges.push(S),b!=y&&b.edges.push(S),S)}},g.prototype.remove=function(v){var y=v;if(v instanceof u){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var b=y.edges.slice(),_,S=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 v=s.MAX_VALUE,y=s.MAX_VALUE,b,_,S,x=this.getNodes(),C=x.length,T=0;Tb&&(v=b),y>_&&(y=_)}return v==s.MAX_VALUE?null:(x[0].getParent().paddingLeft!=null?S=x[0].getParent().paddingLeft:S=this.margin,this.left=y-S,this.top=v-S,new f(this.left,this.top))},g.prototype.updateBounds=function(v){for(var y=s.MAX_VALUE,b=-s.MAX_VALUE,_=s.MAX_VALUE,S=-s.MAX_VALUE,x,C,T,w,R,O=this.nodes,M=O.length,$=0;$x&&(y=x),bT&&(_=T),Sx&&(y=x),bT&&(_=T),S=this.nodes.length){var M=0;b.forEach(function($){$.owner==v&&M++}),M==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,a){var i,s=a(1);function o(l){i=a(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 i){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]=y,u[1]=b,A=!0):(u[0]=v,u[1]=m,A=!0):D===N&&(d>f?(u[0]=g,u[1]=m,A=!0):(u[0]=_,u[1]=b,A=!0)),-L===N?f>d?(u[2]=R,u[3]=O,I=!0):(u[2]=w,u[3]=T,I=!0):L===N&&(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,N,4),z=this.getCardinalDirection(L,N,2)):(P=this.getCardinalDirection(-D,N,3),z=this.getCardinalDirection(-L,N,1)):h>p?(P=this.getCardinalDirection(-D,N,1),z=this.getCardinalDirection(-L,N,3)):(P=this.getCardinalDirection(D,N,2),z=this.getCardinalDirection(L,N,4)),!A)switch(P){case 1:U=m,B=d+-x/N,u[0]=B,u[1]=U;break;case 2:B=_,U=h+S*N,u[0]=B,u[1]=U;break;case 3:U=b,B=d+x/N,u[0]=B,u[1]=U;break;case 4:B=y,U=h+-S*N,u[0]=B,u[1]=U;break}if(!I)switch(z){case 1:K=T,G=f+-F/N,u[2]=G,u[3]=K;break;case 2:G=M,K=p+$*N,u[2]=G,u[3]=K;break;case 3:K=O,G=f+F/N,u[2]=G,u[3]=K;break;case 4:G=R,K=p+-$*N,u[2]=G,u[3]=K;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,v=u.y,y=d.x,b=d.y,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,w=void 0,R=void 0,O=void 0,M=void 0;return x=g-f,T=h-p,R=p*f-h*g,C=b-v,w=m-y,O=y*v-m*b,M=x*w-C*T,M===0?null:(_=(T*O-w*R)/M,S=(C*R-x*O)/M,new i(_,S))},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},i.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},i.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=i}),(function(r,n,a){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,r.exports=i}),(function(r,n,a){var i=(function(){function h(f,p){for(var g=0;g"u"?"undefined":i(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,a){function i(m){if(Array.isArray(m)){for(var v=0,y=Array(m.length);v0&&v;){for(x.push(T[0]);x.length>0&&v;){var w=x[0];x.splice(0,1),S.add(w);for(var R=w.getEdges(),_=0;_-1&&T.splice(F,1)}S=new Set,C=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var v=[],y=m.source,b=this.graphManager.calcLowestCommonAncestor(m.source,m.target),_=0;_0){for(var b=this.edgeToDummyNodes.get(y),_=0;_=0&&v.splice(O,1);var M=C.getNeighborsList();M.forEach(function(A){if(y.indexOf(A)<0){var I=b.get(A),D=I-1;D==1&&w.push(A),b.set(A,D)}})}y=y.concat(w),(v.length==1||v.length==2)&&(_=!0,S=v[0])}return S},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,a){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},r.exports=i}),(function(r,n,a){var i=a(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 i(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,a){function i(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,v,y,b,_=this.getAllNodes(),S;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),S=new Set,m=0;m<_.length;m++)y=_[m],this.calculateRepulsionForceOfANode(y,S,p,g),S.add(y);else for(m=0;m<_.length;m++)for(y=_[m],v=m+1;v<_.length;v++)b=_[v],y.getOwner()==b.getOwner()&&this.calcRepulsionForce(y,b)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;mx||S>x)&&(p.gravitationForceX=-this.gravityConstant*y,p.gravitationForceY=-this.gravityConstant*b)):(x=g.getEstimatedSize()*this.compoundGravityRangeFactor,(_>x||S>x)&&(p.gravitationForceX=-this.gravityConstant*y*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<_[S][x].length;C++)if(b=_[S][x][C],!(p.getOwner()!=b.getOwner()||p==b)&&!g.has(b)&&!y.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&&y.add(b)}}p.surrounding=[].concat(i(y))}for(S=0;Sh}}]),u})();r.exports=l}),(function(r,n,a){var i=(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()),R=this.nodesWithGravity.filter(function(O){return w.has(O)});this.graphManager.setAllNodesToApplyGravitation(R),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 R=!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(R,O),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},x.prototype.getPositionsData=function(){for(var T=this.graphManager.getAllNodes(),w={},R=0;R1){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,R){var O=Math.max(this.maxDiagonalInTree(T),h.DEFAULT_RADIAL_SEPARATION);x.branchRadialLayout(w,null,0,359,0,O);var M=_.calculateBounds(T),$=new S;$.setDeviceOrgX(M.getMinX()),$.setDeviceOrgY(M.getMinY()),$.setWorldOrgX(R.x),$.setWorldOrgY(R.y);for(var F=0;F1;){var K=G[0];G.splice(0,1);var Y=N.indexOf(K);Y>=0&&N.splice(Y,1),B--,P--}w!=null?U=(N.indexOf(G[0])+1)%B:U=0;for(var ee=Math.abs(O-R)/P,X=U;z!=P;X=++X%B){var le=N[X].getOtherEnd(T);if(le!=w){var te=(R+z*ee)%360,ne=(te+ee)%360;x.branchRadialLayout(le,T,te,ne,M+$,$),z++}}},x.maxDiagonalInTree=function(T){for(var w=y.MIN_VALUE,R=0;Rw&&(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 R=[],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(),N=new u(T.graphManager);N.id=D,N.paddingLeft=L.paddingLeft||0,N.paddingRight=L.paddingRight||0,N.paddingBottom=L.paddingBottom||0,N.paddingTop=L.paddingTop||0,T.idToDummyNode[D]=N;var P=T.getGraphManager().add(T.newGraph(),N),z=L.getChild();z.add(N);for(var B=0;B=0;T--){var w=this.compoundOrder[T],R=w.id,O=w.paddingLeft,M=w.paddingTop;this.adjustLocations(this.tiledMemberPack[R],w.rect.x,w.rect.y,O,M)}},x.prototype.repopulateZeroDegreeMembers=function(){var T=this,w=this.tiledZeroDegreePack;Object.keys(w).forEach(function(R){var O=T.idToDummyNode[R],M=O.paddingLeft,$=O.paddingTop;T.adjustLocations(w[R],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 R=T.getChild();if(R==null)return this.toBeTiled[w]=!1,!1;for(var O=R.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(),R=0,O=0;OI&&(I=L.rect.height)}R+=I+T.verticalPadding}},x.prototype.tileCompoundMembers=function(T,w){var R=this;this.tiledMemberPack=[],Object.keys(T).forEach(function(O){var M=w[O];R.tiledMemberPack[O]=R.tileNodes(T[O],M.paddingLeft+M.paddingRight),M.rect.width=R.tiledMemberPack[O].width,M.rect.height=R.tiledMemberPack[O].height})},x.prototype.tileNodes=function(T,w){var R=h.TILING_PADDING_VERTICAL,O=h.TILING_PADDING_HORIZONTAL,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:w,verticalPadding:R,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[R]=F,T.width0&&(A+=T.verticalPadding);var I=0;A>T.rowHeight[R]&&(I=T.rowHeight[R],T.rowHeight[R]=A,I=T.rowHeight[R]-I),T.height+=I,T.rows[R].push(w)},x.prototype.getShortestRowIndex=function(T){for(var w=-1,R=Number.MAX_VALUE,O=0;OR&&(w=O,R=T.rowWidth[O]);return w},x.prototype.canAddHorizontal=function(T,w,R){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&&($=R+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,$=R+T.verticalPadding;var A;return T.width$&&w!=R){O.splice(-1,1),T.rows[R].push(M),T.rowWidth[w]=T.rowWidth[w]-$,T.rowWidth[R]=T.rowWidth[R]+$,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[R];T.rowHeight[w]=F,T.rowHeight[R]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=y.MAX_VALUE,U,G,K=0;K0){var A;A=S.getGraphManager().add(S.newGraph(),R),this.processChildrenList(A,w,S)}}},m.prototype.stop=function(){return this.stopped=!0,this};var y=function(_){_("layout","cose-bilkent",m)};typeof cytoscape<"u"&&y(cytoscape),n.exports=y})])})})(O5)),O5.exports}var U_t=z_t();const G_t=Fl(U_t);uu.use(G_t);function q2e(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(a=>{["id","label","height","width","padding","x","y"].includes(a)||(n[a]=r[a])}),e.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}E(q2e,"addNodes");function Y2e(t,e){t.forEach(r=>{const n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach(a=>{["id","start","end"].includes(a)||(n[a]=r[a])}),e.add({group:"edges",data:n})})}E(Y2e,"addEdges");function H2e(t){return new Promise(e=>{const r=At("body").append("div").attr("id","cy").attr("style","display:none"),n=uu({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),q2e(t.nodes,n),Y2e(t.edges,n),n.nodes().forEach(function(i){i.layoutDimensions=()=>{const s=i.data();return{w:s.width,h:s.height}}});const a={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(a).run(),n.ready(i=>{oe.info("Cytoscape ready",i),e(n)})})}E(H2e,"createCytoscapeInstance");function V2e(t){return t.nodes().map(e=>{const r=e.data(),n=e.position(),a={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach(i=>{i!=="id"&&(a[i]=r[i])}),a})}E(V2e,"extractPositionedNodes");function W2e(t){return t.edges().map(e=>{const r=e.data(),n=e._private.rscratch,a={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(i=>{["id","source","target"].includes(i)||(a[i]=r[i])}),a})}E(W2e,"extractPositionedEdges");async function K2e(t,e){oe.debug("Starting cose-bilkent layout algorithm");try{X2e(t);const r=await H2e(t),n=V2e(r),a=W2e(r);return oe.debug(`Layout completed: ${n.length} nodes, ${a.length} edges`),{nodes:n,edges:a}}catch(r){throw oe.error("Error in cose-bilkent layout algorithm:",r),r}}E(K2e,"executeCoseBilkentLayout");function X2e(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}E(X2e,"validateLayoutData");var q_t=E(async(t,e,{insertCluster:r,insertEdge:n,insertEdgeLabel:a,insertMarkers:i,insertNode:s,log:o,positionEdgeLabel:l},{algorithm:u})=>{const d={},h={},f=e.select("g");i(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"),v=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 S={..._};h[_.id]=S,d[_.id]=S,await r(p,_)}else{const S={..._};d[_.id]=S;const x=await s(v,_,{config:t.config,dir:t.direction||"TB"}),C=x.node().getBBox();S.width=C.width,S.height=C.height,S.domId=x,o.debug(`Node ${_.id} dimensions: ${C.width}x${C.height}`)}})),o.debug("Running cose-bilkent layout algorithm");const y={...t,nodes:t.nodes.map(_=>{const S=d[_.id];return{..._,width:S.width,height:S.height}})},b=await K2e(y,t.config);o.debug("Positioning nodes based on layout results"),b.nodes.forEach(_=>{const S=d[_.id];S?.domId&&(S.domId.attr("transform",`translate(${_.x}, ${_.y})`),S.x=_.x,S.y=_.y,o.debug(`Positioned node ${S.id} at center (${_.x}, ${_.y})`))}),b.edges.forEach(_=>{const S=t.edges.find(x=>x.id===_.id);S&&(S.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 a(m,_);const S=d[_.start??""],x=d[_.end??""];if(S&&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,S,x,t.diagramId);l(T,w)}else{const T={..._,points:[{x:S.x||0,y:S.y||0},{x:x.x||0,y:x.y||0}]},w=n(g,T,h,t.type,S,x,t.diagramId);l(T,w)}}})),o.debug("Cose-bilkent rendering completed")},"render"),Y_t=q_t;const H_t=Object.freeze(Object.defineProperty({__proto__:null,render:Y_t},Symbol.toStringTag,{value:"Module"}));var sA=E((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"),j2e=E((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"};sA(t,r).lower()},"drawBackgroundRect"),V_t=E((t,e)=>{const r=e.text.replace(Zb," "),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 a=n.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.text(r),n},"drawText"),AY=E((t,e,r,n)=>{const a=t.append("image");a.attr("x",e),a.attr("y",r);const i=ng.sanitizeUrl(n);a.attr("xlink:href",i)},"drawImage"),RY=E((t,e,r,n)=>{const a=t.append("use");a.attr("x",e),a.attr("y",r);const i=ng.sanitizeUrl(n);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),Zo=E(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),NY=E(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),Q2e=E(()=>{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"),J6=(function(){var t=E(function(Ae,je,ot,lt){for(ot=ot||{},lt=Ae.length;lt--;ot[Ae[lt]]=je);return ot},"o"),e=[1,24],r=[1,25],n=[1,26],a=[1,27],i=[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],v=[1,32],y=[1,33],b=[1,34],_=[1,35],S=[1,36],x=[1,37],C=[1,38],T=[1,39],w=[1,40],R=[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],N=[1,51],P=[1,52],z=[1,53],B=[1,54],U=[1,55],G=[1,56],K=[1,57],Y=[1,58],ee=[1,59],X=[1,60],le=[14,42],te=[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],ne=[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],re=[1,83],ge=[1,84],pe=[1,85],Be=[12,14,42],Le=[12,14,33,42],He=[12,14,33,42,76,77,79,80],Re=[12,33],xe=[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],$e={trace:E(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:E(function(je,ot,lt,ct,it,ke,Qe){var _e=ke.length-1;switch(it){case 3:ct.setDirection("TB");break;case 4:ct.setDirection("BT");break;case 5:ct.setDirection("RL");break;case 6:ct.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:ct.setC4Type(ke[_e-3]);break;case 19:ct.setTitle(ke[_e].substring(6)),this.$=ke[_e].substring(6);break;case 20:ct.setAccDescription(ke[_e].substring(15)),this.$=ke[_e].substring(15);break;case 21:this.$=ke[_e].trim(),ct.setTitle(this.$);break;case 22:case 23:this.$=ke[_e].trim(),ct.setAccDescription(this.$);break;case 28:ke[_e].splice(2,0,"ENTERPRISE"),ct.addPersonOrSystemBoundary(...ke[_e]),this.$=ke[_e];break;case 29:ke[_e].splice(2,0,"SYSTEM"),ct.addPersonOrSystemBoundary(...ke[_e]),this.$=ke[_e];break;case 30:ct.addPersonOrSystemBoundary(...ke[_e]),this.$=ke[_e];break;case 31:ke[_e].splice(2,0,"CONTAINER"),ct.addContainerBoundary(...ke[_e]),this.$=ke[_e];break;case 32:ct.addDeploymentNode("node",...ke[_e]),this.$=ke[_e];break;case 33:ct.addDeploymentNode("nodeL",...ke[_e]),this.$=ke[_e];break;case 34:ct.addDeploymentNode("nodeR",...ke[_e]),this.$=ke[_e];break;case 35:ct.popBoundaryParseStack();break;case 39:ct.addPersonOrSystem("person",...ke[_e]),this.$=ke[_e];break;case 40:ct.addPersonOrSystem("external_person",...ke[_e]),this.$=ke[_e];break;case 41:ct.addPersonOrSystem("system",...ke[_e]),this.$=ke[_e];break;case 42:ct.addPersonOrSystem("system_db",...ke[_e]),this.$=ke[_e];break;case 43:ct.addPersonOrSystem("system_queue",...ke[_e]),this.$=ke[_e];break;case 44:ct.addPersonOrSystem("external_system",...ke[_e]),this.$=ke[_e];break;case 45:ct.addPersonOrSystem("external_system_db",...ke[_e]),this.$=ke[_e];break;case 46:ct.addPersonOrSystem("external_system_queue",...ke[_e]),this.$=ke[_e];break;case 47:ct.addContainer("container",...ke[_e]),this.$=ke[_e];break;case 48:ct.addContainer("container_db",...ke[_e]),this.$=ke[_e];break;case 49:ct.addContainer("container_queue",...ke[_e]),this.$=ke[_e];break;case 50:ct.addContainer("external_container",...ke[_e]),this.$=ke[_e];break;case 51:ct.addContainer("external_container_db",...ke[_e]),this.$=ke[_e];break;case 52:ct.addContainer("external_container_queue",...ke[_e]),this.$=ke[_e];break;case 53:ct.addComponent("component",...ke[_e]),this.$=ke[_e];break;case 54:ct.addComponent("component_db",...ke[_e]),this.$=ke[_e];break;case 55:ct.addComponent("component_queue",...ke[_e]),this.$=ke[_e];break;case 56:ct.addComponent("external_component",...ke[_e]),this.$=ke[_e];break;case 57:ct.addComponent("external_component_db",...ke[_e]),this.$=ke[_e];break;case 58:ct.addComponent("external_component_queue",...ke[_e]),this.$=ke[_e];break;case 60:ct.addRel("rel",...ke[_e]),this.$=ke[_e];break;case 61:ct.addRel("birel",...ke[_e]),this.$=ke[_e];break;case 62:ct.addRel("rel_u",...ke[_e]),this.$=ke[_e];break;case 63:ct.addRel("rel_d",...ke[_e]),this.$=ke[_e];break;case 64:ct.addRel("rel_l",...ke[_e]),this.$=ke[_e];break;case 65:ct.addRel("rel_r",...ke[_e]),this.$=ke[_e];break;case 66:ct.addRel("rel_b",...ke[_e]),this.$=ke[_e];break;case 67:ke[_e].splice(0,1),ct.addRel("rel",...ke[_e]),this.$=ke[_e];break;case 68:ct.updateElStyle("update_el_style",...ke[_e]),this.$=ke[_e];break;case 69:ct.updateRelStyle("update_rel_style",...ke[_e]),this.$=ke[_e];break;case 70:ct.updateLayoutConfig("update_layout_config",...ke[_e]),this.$=ke[_e];break;case 71:this.$=[ke[_e]];break;case 72:ke[_e].unshift(ke[_e-1]),this.$=ke[_e];break;case 73:case 75:this.$=ke[_e].trim();break;case 74:let ye={};ye[ke[_e-1].trim()]=ke[_e].trim(),this.$=ye;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:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{13:70,19:20,20:21,21:22,22:e,23:r,24:n,26:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{13:71,19:20,20:21,21:22,22:e,23:r,24:n,26:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{13:72,19:20,20:21,21:22,22:e,23:r,24:n,26:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{13:73,19:20,20:21,21:22,22:e,23:r,24:n,26:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{14:[1,74]},t(le,[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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X}),t(le,[2,14]),t(te,[2,16],{12:[1,76]}),t(le,[2,36],{12:[1,77]}),t(ne,[2,19]),t(ne,[2,20]),{25:[1,78]},{27:[1,79]},t(ne,[2,23]),{35:80,75:81,76:ae,77:re,79:ge,80:pe},{35:86,75:81,76:ae,77:re,79:ge,80:pe},{35:87,75:81,76:ae,77:re,79:ge,80:pe},{35:88,75:81,76:ae,77:re,79:ge,80:pe},{35:89,75:81,76:ae,77:re,79:ge,80:pe},{35:90,75:81,76:ae,77:re,79:ge,80:pe},{35:91,75:81,76:ae,77:re,79:ge,80:pe},{35:92,75:81,76:ae,77:re,79:ge,80:pe},{35:93,75:81,76:ae,77:re,79:ge,80:pe},{35:94,75:81,76:ae,77:re,79:ge,80:pe},{35:95,75:81,76:ae,77:re,79:ge,80:pe},{35:96,75:81,76:ae,77:re,79:ge,80:pe},{35:97,75:81,76:ae,77:re,79:ge,80:pe},{35:98,75:81,76:ae,77:re,79:ge,80:pe},{35:99,75:81,76:ae,77:re,79:ge,80:pe},{35:100,75:81,76:ae,77:re,79:ge,80:pe},{35:101,75:81,76:ae,77:re,79:ge,80:pe},{35:102,75:81,76:ae,77:re,79:ge,80:pe},{35:103,75:81,76:ae,77:re,79:ge,80:pe},{35:104,75:81,76:ae,77:re,79:ge,80:pe},t(Be,[2,59]),{35:105,75:81,76:ae,77:re,79:ge,80:pe},{35:106,75:81,76:ae,77:re,79:ge,80:pe},{35:107,75:81,76:ae,77:re,79:ge,80:pe},{35:108,75:81,76:ae,77:re,79:ge,80:pe},{35:109,75:81,76:ae,77:re,79:ge,80:pe},{35:110,75:81,76:ae,77:re,79:ge,80:pe},{35:111,75:81,76:ae,77:re,79:ge,80:pe},{35:112,75:81,76:ae,77:re,79:ge,80:pe},{35:113,75:81,76:ae,77:re,79:ge,80:pe},{35:114,75:81,76:ae,77:re,79:ge,80:pe},{35:115,75:81,76:ae,77:re,79:ge,80:pe},{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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{12:[1,118],33:[1,117]},{35:119,75:81,76:ae,77:re,79:ge,80:pe},{35:120,75:81,76:ae,77:re,79:ge,80:pe},{35:121,75:81,76:ae,77:re,79:ge,80:pe},{35:122,75:81,76:ae,77:re,79:ge,80:pe},{35:123,75:81,76:ae,77:re,79:ge,80:pe},{35:124,75:81,76:ae,77:re,79:ge,80:pe},{35:125,75:81,76:ae,77:re,79:ge,80:pe},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(le,[2,15]),t(te,[2,17],{21:22,19:130,22:e,23:r,24:n,26:a,28:i}),t(le,[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:a,28:i,34:s,36:o,37:l,38:u,39:d,40:h,41:f,44:p,45:g,46:m,47:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X}),t(ne,[2,21]),t(ne,[2,22]),t(Be,[2,39]),t(Le,[2,71],{75:81,35:132,76:ae,77:re,79:ge,80:pe}),t(He,[2,73]),{78:[1,133]},t(He,[2,75]),t(He,[2,76]),t(Be,[2,40]),t(Be,[2,41]),t(Be,[2,42]),t(Be,[2,43]),t(Be,[2,44]),t(Be,[2,45]),t(Be,[2,46]),t(Be,[2,47]),t(Be,[2,48]),t(Be,[2,49]),t(Be,[2,50]),t(Be,[2,51]),t(Be,[2,52]),t(Be,[2,53]),t(Be,[2,54]),t(Be,[2,55]),t(Be,[2,56]),t(Be,[2,57]),t(Be,[2,58]),t(Be,[2,60]),t(Be,[2,61]),t(Be,[2,62]),t(Be,[2,63]),t(Be,[2,64]),t(Be,[2,65]),t(Be,[2,66]),t(Be,[2,67]),t(Be,[2,68]),t(Be,[2,69]),t(Be,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(Re,[2,28]),t(Re,[2,29]),t(Re,[2,30]),t(Re,[2,31]),t(Re,[2,32]),t(Re,[2,33]),t(Re,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(te,[2,18]),t(le,[2,38]),t(Le,[2,72]),t(He,[2,74]),t(Be,[2,24]),t(Be,[2,35]),t(xe,[2,25]),t(xe,[2,26],{12:[1,138]}),t(xe,[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:E(function(je,ot){if(ot.recoverable)this.trace(je);else{var lt=new Error(je);throw lt.hash=ot,lt}},"parseError"),parse:E(function(je){var ot=this,lt=[0],ct=[],it=[null],ke=[],Qe=this.table,_e="",ye=0,q=0,fe=2,j=1,we=ke.slice.call(arguments,1),Te=Object.create(this.lexer),rt={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(rt.yy[Oe]=this.yy[Oe]);Te.setInput(je,rt.yy),rt.yy.lexer=Te,rt.yy.parser=this,typeof Te.yylloc>"u"&&(Te.yylloc={});var Pe=Te.yylloc;ke.push(Pe);var Ie=Te.options&&Te.options.ranges;typeof rt.yy.parseError=="function"?this.parseError=rt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ze(se){lt.length=lt.length-2*se,it.length=it.length-se,ke.length=ke.length-se}E(Ze,"popStack");function ze(){var se;return se=ct.pop()||Te.lex()||j,typeof se!="number"&&(se instanceof Array&&(ct=se,se=ct.pop()),se=ot.symbols_[se]||se),se}E(ze,"lex");for(var me,ie,Ve,ve,Tt={},St,nt,dt,ft;;){if(ie=lt[lt.length-1],this.defaultActions[ie]?Ve=this.defaultActions[ie]:((me===null||typeof me>"u")&&(me=ze()),Ve=Qe[ie]&&Qe[ie][me]),typeof Ve>"u"||!Ve.length||!Ve[0]){var gt="";ft=[];for(St in Qe[ie])this.terminals_[St]&&St>fe&&ft.push("'"+this.terminals_[St]+"'");Te.showPosition?gt="Parse error on line "+(ye+1)+`: + `),o=Kyt(n,a,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]:yS.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,a){var i=this.atlasManager,s=this.batchManager,o=i.getRenderTypeOpts(a);if(this._isVisible(r,o)&&!(r.isEdge()&&!this._isValidEdge(r))){if(this.renderTarget.picking&&o.getTexPickingMode){var l=o.getTexPickingMode(r);if(l===Q6.IGNORE)return;if(l==Q6.USE_BB){this.drawPickingRectangle(r,n,a);return}}var u=i.getAtlasInfo(r,a),d=bo(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 v=s.getAtlasIndexForBatch(p),y=0,b=[[g,!0],[m,!1]];y=this.maxInstances&&this.endBatch()}}}}catch(M){d.e(M)}finally{d.f()}}}},{key:"setTransformMatrix",value:function(r,n,a,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(a.shapeProps&&a.shapeProps.padding&&(o=r.pstyle(a.shapeProps.padding).pfValue),i){var l=i.bb,u=i.tex1,d=i.tex2,h=u.w/(u.w+d.w);s||(h=1-h);var f=this._getAdjustedBB(l,o,s,h);this._applyTransformMatrix(n,f,a,r)}else{var p=a.getBoundingBox(r),g=this._getAdjustedBB(p,o,!0,1);this._applyTransformMatrix(n,g,a,r)}}},{key:"_applyTransformMatrix",value:function(r,n,a,i){var s,o;rse(r);var l=a.getRotation?a.getRotation(i):0;if(l!==0){var u=a.getRotationPoint(i),d=u.x,h=u.y;I5(r,r,[d,h]),nse(r,r,l);var f=a.getRotationOffset(i);s=f.x+(n.xOffset||0),o=f.y+(n.yOffset||0)}else s=n.x1,o=n.y1;I5(r,r,[s,o]),aF(r,r,[n.w,n.h])}},{key:"_getAdjustedBB",value:function(r,n,a,i){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*i;return a&&i<1?l=f:!a&&i<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,a){var i=this.atlasManager.getRenderTypeOpts(a),s=this.instanceCount;this.vertTypeBuffer.getView(s)[0]=Jg;var o=this.indexBuffer.getView(s);Zg(n,o);var l=this.colorBuffer.getView(s);yf([0,0,0],1,l);var u=this.transformBuffer.getMatrixView(s);this.setTransformMatrix(r,u,i),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(r,n,a){var i=this.simpleShapeOptions.get(a);if(this._isVisible(r,i)){var s=i.shapeProps,o=this._getVertTypeForShape(r,s.shape);if(o===void 0||i.isSimple&&!i.isSimple(r)){this.drawTexture(r,n,a);return}var l=this.instanceCount;if(this.vertTypeBuffer.getView(l)[0]=o,o===T3||o===rE){var u=i.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===rE&&(h[0]=0,h[2]=0)}var f=this.indexBuffer.getView(l);Zg(n,f);var p=r.pstyle(s.color).value,g=r.pstyle(s.opacity).value,m=this.colorBuffer.getView(l);yf(p,g,m);var v=this.lineWidthBuffer.getView(l);if(v[0]=0,v[1]=0,s.border){var y=r.pstyle("border-width").value;if(y>0){var b=r.pstyle("border-color").value,_=r.pstyle("border-opacity").value,S=this.borderColorBuffer.getView(l);yf(b,_,S);var x=r.pstyle("border-position").value;if(x==="inside")v[0]=0,v[1]=-y;else if(x==="outside")v[0]=y,v[1]=0;else{var C=y/2;v[0]=C,v[1]=-C}}}var T=this.transformBuffer.getMatrixView(l);this.setTransformMatrix(r,T,i),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(r,n){var a=r.pstyle(n).value;switch(a){case"rectangle":return Jg;case"ellipse":return nE;case"roundrectangle":case"round-rectangle":return T3;case"bottom-round-rectangle":return rE;default:return}}},{key:"_getCornerRadius",value:function(r,n,a){var i=a.w,s=a.h;if(r.pstyle(n).value==="auto")return wh(i,s);var o=r.pstyle(n).pfValue,l=i/2,u=s/2;return Math.min(o,u,l)}},{key:"drawEdgeArrow",value:function(r,n,a){if(r.visible()){var i=r._private.rscratch,s,o,l;if(a==="source"?(s=i.arrowStartX,o=i.arrowStartY,l=i.srcArrowAngle):(s=i.arrowEndX,o=i.arrowEndY,l=i.tgtArrowAngle),!(isNaN(s)||s==null||isNaN(o)||o==null||isNaN(l)||l==null)){var u=r.pstyle(a+"-arrow-shape").value;if(u!=="none"){var d=r.pstyle(a+"-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,v=this.r.getArrowWidth(g,m),y=this.instanceCount,b=this.transformBuffer.getMatrixView(y);rse(b),I5(b,b,[s,o]),aF(b,b,[v,v]),nse(b,b,l),this.vertTypeBuffer.getView(y)[0]=zL;var _=this.indexBuffer.getView(y);Zg(n,_);var S=this.colorBuffer.getView(y);yf(d,p,S),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"drawEdgeLine",value:function(r,n){if(r.visible()){var a=this._getEdgePoints(r);if(a){var i=r.pstyle("opacity").value,s=r.pstyle("line-opacity").value,o=r.pstyle("width").pfValue,l=r.pstyle("line-color").value,u=i*s;if(a.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),a.length==4){var d=this.instanceCount;this.vertTypeBuffer.getView(d)[0]=ase;var h=this.indexBuffer.getView(d);Zg(n,h);var f=this.colorBuffer.getView(d);yf(l,u,f);var p=this.lineWidthBuffer.getView(d);p[0]=o;var g=this.pointAPointBBuffer.getView(d);g[0]=a[0],g[1]=a[1],g[2]=a[2],g[3]=a[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 a=n.allpts;if(a.length==4)return a;var i=this._getNumSegments(r);return this._getCurveSegmentPoints(a,i)}}},{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 a=Array((n+1)*2),i=0;i<=n;i++)if(i==0)a[0]=r[0],a[1]=r[1];else if(i==n)a[i*2]=r[r.length-2],a[i*2+1]=r[r.length-1];else{var s=i/n;this._setCurvePoint(r,s,a,i*2)}return a}},{key:"_setCurvePoint",value:function(r,n,a,i){if(r.length<=2)a[i]=r[0],a[i+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?Q6.USE_BB:Q6.IGNORE},l=function(h){var f=h.position(),p=f.x,g=f.y,m=h.outerWidth(),v=h.outerHeight();return{w:m,h:v,x1:p-m/2,y1:g-v/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:Zyt,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:UL(e.getLabelKey,null),getBoundingBox:GL(e.getLabelBox,null),drawClipped:!0,drawElement:e.drawLabel,getRotation:a(null),getRotationPoint:e.getLabelRotationPoint,getRotationOffset:e.getLabelRotationOffset,isVisible:i("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:o,getKey:UL(e.getSourceLabelKey,"source"),getBoundingBox:GL(e.getSourceLabelBox,"source"),drawClipped:!0,drawElement:e.drawSourceLabel,getRotation:a("source"),getRotationPoint:e.getSourceLabelRotationPoint,getRotationOffset:e.getSourceLabelRotationOffset,isVisible:i("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:o,getKey:UL(e.getTargetLabelKey,"target"),getBoundingBox:GL(e.getTargetLabelBox,"target"),drawClipped:!0,drawElement:e.drawTargetLabel,getRotation:a("target"),getRotationPoint:e.getTargetLabelRotationPoint,getRotationOffset:e.getTargetLabelRotationOffset,isVisible:i("target-label")});var u=BT(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()}),__t(r)};function y_t(t){var e=t.cy.container(),r=e&&e.style&&e.style.backgroundColor||"white";return ibe(r)}function O2e(t,e){var r=t._private.rscratch;return po(r,"labelWrapCachedLines",e)||[]}var UL=function(e,r){return function(n){var a=e(n),i=O2e(n,r);return i.length>1?i.map(function(s,o){return"".concat(a,"_").concat(o)}):a}},GL=function(e,r){return function(n,a){var i=e(n);if(typeof a=="string"){var s=a.indexOf("_");if(s>0){var o=Number(a.substring(s+1)),l=O2e(n,r),u=i.h/l.length,d=u*o,h=i.y1+d;return{x1:i.x1,w:i.w,y1:h,h:u,yOffset:d}}}return i}};function __t(t){{var e=t.render;t.render=function(i){i=i||{};var s=t.cy;t.webgl&&(s.zoom()>x2e?(b_t(t),e.call(t,i)):(E_t(t),L2e(t,i,yS.SCREEN)))}}{var r=t.matchCanvasSize;t.matchCanvasSize=function(i){r.call(t,i),t.pickingFrameBuffer.setFramebufferAttachmentSizes(t.canvasWidth,t.canvasHeight),t.pickingFrameBuffer.needsDraw=!0}}t.findNearestElements=function(i,s,o,l){return k_t(t,i,s)};{var n=t.invalidateCachedZSortedEles;t.invalidateCachedZSortedEles=function(){n.call(t),t.pickingFrameBuffer.needsDraw=!0}}{var a=t.notify;t.notify=function(i,s){a.call(t,i,s),i==="viewport"||i==="bounds"?t.pickingFrameBuffer.needsDraw=!0:i==="background"&&t.drawing.invalidate(s,{type:"node-body"})}}}function b_t(t){var e=t.data.contexts[t.WEBGL];e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function E_t(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 S_t(t){var e=t.canvasWidth,r=t.canvasHeight,n=kY(t),a=n.pan,i=n.zoom,s=FL();I5(s,s,[a.x,a.y]),aF(s,s,[i,i]);var o=FL();o_t(o,e,r);var l=FL();return s_t(l,o,s),l}function D2e(t,e){var r=t.canvasWidth,n=t.canvasHeight,a=kY(t),i=a.pan,s=a.zoom;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,r,n),e.translate(i.x,i.y),e.scale(s,s)}function T_t(t,e){t.drawSelectionRectangle(e,function(r){return D2e(t,r)})}function x_t(t){var e=t.data.contexts[t.NODE];e.save(),D2e(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 C_t(t){var e=function(a,i,s){for(var o=a.atlasManager.getAtlasCollection(i),l=t.data.contexts[t.NODE],u=o.atlases,d=0;d=0&&S.add(T)}return S}function k_t(t,e,r){var n=w_t(t,e,r),a=t.getCachedZSortedEles(),i,s,o=bo(n),l;try{for(o.s();!(l=o.n()).done;){var u=l.value,d=a[u];if(!i&&d.isNode()&&(i=d),!s&&d.isEdge()&&(s=d),i&&s)break}}catch(h){o.e(h)}finally{o.f()}return[i,s].filter(Boolean)}function qL(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 L2e(t,e,r){var n;t.webglDebug&&(n=performance.now());var a=t.drawing,i=0;if(r.screen&&t.data.canvasNeedsRedraw[t.SELECT_BOX]&&T_t(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=S_t(t),l=t.getCachedZSortedEles();if(i=l.length,a.startFrame(o,r),r.screen){for(var u=0;u0&&s>0){p.clearRect(0,0,i,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(),v={x:m.x*u,y:m.y*u};u*=e.zoom(),p.translate(v.x,v.y),p.scale(u,u),this.drawElements(p,g),p.scale(1/u,1/u),p.translate(-v.x,-v.y)}t.bg&&(p.globalCompositeOperation="destination-over",p.fillStyle=t.bg,p.rect(0,0,i,s),p.fill())}return f};function A_t(t,e){for(var r=atob(t),n=new ArrayBuffer(r.length),a=new Uint8Array(n),i=0;i"u"?"undefined":Ai(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var n=this.cy.window(),a=n.document;r=a.createElement("canvas"),r.width=t,r.height=e}return r};[w2e,Ru,sd,wY,pg,Hh,no,I2e,Vh,qT,B2e].forEach(function(t){Or(nn,t)});var I_t=[{name:"null",impl:h2e},{name:"base",impl:S2e},{name:"canvas",impl:R_t}],O_t=[{type:"layout",extensions:nyt},{type:"renderer",extensions:I_t}],$2e={},z2e={};function U2e(t,e,r){var n=r,a=function(w){Mn("Can not register `"+e+"` for `"+t+"` since `"+w+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(A4.prototype[e])return a(e);A4.prototype[e]=r}else if(t==="collection"){if(Zi.prototype[e])return a(e);Zi.prototype[e]=r}else if(t==="layout"){for(var i=function(w){this.options=w,r.call(this,w),mn(this._private)||(this._private={}),this._private.cy=w.cy,this._private.listeners=[],this.createEmitter()},s=i.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 v=new d(g,m),y=p.inverseTransformPoint(v);this.setLocation(y.x,y.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,a){function i(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(s){this.x=s},i.prototype.setY=function(s){this.y=s},i.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=i}),(function(r,n,a){var i=a(2),s=a(10),o=a(0),l=a(6),u=a(3),d=a(1),h=a(13),f=a(12),p=a(11);function g(v,y,b){i.call(this,b),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=v,y!=null&&y instanceof l?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}g.prototype=Object.create(i.prototype);for(var m in i)g[m]=i[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(v,y,b){if(y==null&&b==null){var _=v;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 S=v;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(b)>-1))throw"Source or target not in graph!";if(!(y.owner==b.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=b.owner?null:(S.source=y,S.target=b,S.isInterGraph=!1,this.getEdges().push(S),y.edges.push(S),b!=y&&b.edges.push(S),S)}},g.prototype.remove=function(v){var y=v;if(v instanceof u){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var b=y.edges.slice(),_,S=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 v=s.MAX_VALUE,y=s.MAX_VALUE,b,_,S,x=this.getNodes(),C=x.length,T=0;Tb&&(v=b),y>_&&(y=_)}return v==s.MAX_VALUE?null:(x[0].getParent().paddingLeft!=null?S=x[0].getParent().paddingLeft:S=this.margin,this.left=y-S,this.top=v-S,new f(this.left,this.top))},g.prototype.updateBounds=function(v){for(var y=s.MAX_VALUE,b=-s.MAX_VALUE,_=s.MAX_VALUE,S=-s.MAX_VALUE,x,C,T,w,R,O=this.nodes,M=O.length,$=0;$x&&(y=x),bT&&(_=T),Sx&&(y=x),bT&&(_=T),S=this.nodes.length){var M=0;b.forEach(function($){$.owner==v&&M++}),M==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,a){var i,s=a(1);function o(l){i=a(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 i){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]=y,u[1]=b,A=!0):(u[0]=v,u[1]=m,A=!0):D===N&&(d>f?(u[0]=g,u[1]=m,A=!0):(u[0]=_,u[1]=b,A=!0)),-L===N?f>d?(u[2]=R,u[3]=O,I=!0):(u[2]=w,u[3]=T,I=!0):L===N&&(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,N,4),z=this.getCardinalDirection(L,N,2)):(P=this.getCardinalDirection(-D,N,3),z=this.getCardinalDirection(-L,N,1)):h>p?(P=this.getCardinalDirection(-D,N,1),z=this.getCardinalDirection(-L,N,3)):(P=this.getCardinalDirection(D,N,2),z=this.getCardinalDirection(L,N,4)),!A)switch(P){case 1:U=m,B=d+-x/N,u[0]=B,u[1]=U;break;case 2:B=_,U=h+S*N,u[0]=B,u[1]=U;break;case 3:U=b,B=d+x/N,u[0]=B,u[1]=U;break;case 4:B=y,U=h+-S*N,u[0]=B,u[1]=U;break}if(!I)switch(z){case 1:K=T,G=f+-F/N,u[2]=G,u[3]=K;break;case 2:G=M,K=p+$*N,u[2]=G,u[3]=K;break;case 3:K=O,G=f+F/N,u[2]=G,u[3]=K;break;case 4:G=R,K=p+-$*N,u[2]=G,u[3]=K;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,v=u.y,y=d.x,b=d.y,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,w=void 0,R=void 0,O=void 0,M=void 0;return x=g-f,T=h-p,R=p*f-h*g,C=b-v,w=m-y,O=y*v-m*b,M=x*w-C*T,M===0?null:(_=(T*O-w*R)/M,S=(C*R-x*O)/M,new i(_,S))},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},i.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},i.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=i}),(function(r,n,a){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,r.exports=i}),(function(r,n,a){var i=(function(){function h(f,p){for(var g=0;g"u"?"undefined":i(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,a){function i(m){if(Array.isArray(m)){for(var v=0,y=Array(m.length);v0&&v;){for(x.push(T[0]);x.length>0&&v;){var w=x[0];x.splice(0,1),S.add(w);for(var R=w.getEdges(),_=0;_-1&&T.splice(F,1)}S=new Set,C=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var v=[],y=m.source,b=this.graphManager.calcLowestCommonAncestor(m.source,m.target),_=0;_0){for(var b=this.edgeToDummyNodes.get(y),_=0;_=0&&v.splice(O,1);var M=C.getNeighborsList();M.forEach(function(A){if(y.indexOf(A)<0){var I=b.get(A),D=I-1;D==1&&w.push(A),b.set(A,D)}})}y=y.concat(w),(v.length==1||v.length==2)&&(_=!0,S=v[0])}return S},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,a){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},r.exports=i}),(function(r,n,a){var i=a(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 i(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,a){function i(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,v,y,b,_=this.getAllNodes(),S;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),S=new Set,m=0;m<_.length;m++)y=_[m],this.calculateRepulsionForceOfANode(y,S,p,g),S.add(y);else for(m=0;m<_.length;m++)for(y=_[m],v=m+1;v<_.length;v++)b=_[v],y.getOwner()==b.getOwner()&&this.calcRepulsionForce(y,b)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;mx||S>x)&&(p.gravitationForceX=-this.gravityConstant*y,p.gravitationForceY=-this.gravityConstant*b)):(x=g.getEstimatedSize()*this.compoundGravityRangeFactor,(_>x||S>x)&&(p.gravitationForceX=-this.gravityConstant*y*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<_[S][x].length;C++)if(b=_[S][x][C],!(p.getOwner()!=b.getOwner()||p==b)&&!g.has(b)&&!y.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&&y.add(b)}}p.surrounding=[].concat(i(y))}for(S=0;Sh}}]),u})();r.exports=l}),(function(r,n,a){var i=(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()),R=this.nodesWithGravity.filter(function(O){return w.has(O)});this.graphManager.setAllNodesToApplyGravitation(R),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 R=!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(R,O),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},x.prototype.getPositionsData=function(){for(var T=this.graphManager.getAllNodes(),w={},R=0;R1){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,R){var O=Math.max(this.maxDiagonalInTree(T),h.DEFAULT_RADIAL_SEPARATION);x.branchRadialLayout(w,null,0,359,0,O);var M=_.calculateBounds(T),$=new S;$.setDeviceOrgX(M.getMinX()),$.setDeviceOrgY(M.getMinY()),$.setWorldOrgX(R.x),$.setWorldOrgY(R.y);for(var F=0;F1;){var K=G[0];G.splice(0,1);var Y=N.indexOf(K);Y>=0&&N.splice(Y,1),B--,P--}w!=null?U=(N.indexOf(G[0])+1)%B:U=0;for(var ee=Math.abs(O-R)/P,X=U;z!=P;X=++X%B){var le=N[X].getOtherEnd(T);if(le!=w){var te=(R+z*ee)%360,ne=(te+ee)%360;x.branchRadialLayout(le,T,te,ne,M+$,$),z++}}},x.maxDiagonalInTree=function(T){for(var w=y.MIN_VALUE,R=0;Rw&&(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 R=[],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(),N=new u(T.graphManager);N.id=D,N.paddingLeft=L.paddingLeft||0,N.paddingRight=L.paddingRight||0,N.paddingBottom=L.paddingBottom||0,N.paddingTop=L.paddingTop||0,T.idToDummyNode[D]=N;var P=T.getGraphManager().add(T.newGraph(),N),z=L.getChild();z.add(N);for(var B=0;B=0;T--){var w=this.compoundOrder[T],R=w.id,O=w.paddingLeft,M=w.paddingTop;this.adjustLocations(this.tiledMemberPack[R],w.rect.x,w.rect.y,O,M)}},x.prototype.repopulateZeroDegreeMembers=function(){var T=this,w=this.tiledZeroDegreePack;Object.keys(w).forEach(function(R){var O=T.idToDummyNode[R],M=O.paddingLeft,$=O.paddingTop;T.adjustLocations(w[R],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 R=T.getChild();if(R==null)return this.toBeTiled[w]=!1,!1;for(var O=R.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(),R=0,O=0;OI&&(I=L.rect.height)}R+=I+T.verticalPadding}},x.prototype.tileCompoundMembers=function(T,w){var R=this;this.tiledMemberPack=[],Object.keys(T).forEach(function(O){var M=w[O];R.tiledMemberPack[O]=R.tileNodes(T[O],M.paddingLeft+M.paddingRight),M.rect.width=R.tiledMemberPack[O].width,M.rect.height=R.tiledMemberPack[O].height})},x.prototype.tileNodes=function(T,w){var R=h.TILING_PADDING_VERTICAL,O=h.TILING_PADDING_HORIZONTAL,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:w,verticalPadding:R,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[R]=F,T.width0&&(A+=T.verticalPadding);var I=0;A>T.rowHeight[R]&&(I=T.rowHeight[R],T.rowHeight[R]=A,I=T.rowHeight[R]-I),T.height+=I,T.rows[R].push(w)},x.prototype.getShortestRowIndex=function(T){for(var w=-1,R=Number.MAX_VALUE,O=0;OR&&(w=O,R=T.rowWidth[O]);return w},x.prototype.canAddHorizontal=function(T,w,R){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&&($=R+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,$=R+T.verticalPadding;var A;return T.width$&&w!=R){O.splice(-1,1),T.rows[R].push(M),T.rowWidth[w]=T.rowWidth[w]-$,T.rowWidth[R]=T.rowWidth[R]+$,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[R];T.rowHeight[w]=F,T.rowHeight[R]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=y.MAX_VALUE,U,G,K=0;K0){var A;A=S.getGraphManager().add(S.newGraph(),R),this.processChildrenList(A,w,S)}}},m.prototype.stop=function(){return this.stopped=!0,this};var y=function(_){_("layout","cose-bilkent",m)};typeof cytoscape<"u"&&y(cytoscape),n.exports=y})])})})(O5)),O5.exports}var G_t=U_t();const q_t=Fl(G_t);uu.use(q_t);function q2e(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(a=>{["id","label","height","width","padding","x","y"].includes(a)||(n[a]=r[a])}),e.add({group:"nodes",data:n,position:{x:r.x??0,y:r.y??0}})})}E(q2e,"addNodes");function Y2e(t,e){t.forEach(r=>{const n={id:r.id,source:r.start,target:r.end};Object.keys(r).forEach(a=>{["id","start","end"].includes(a)||(n[a]=r[a])}),e.add({group:"edges",data:n})})}E(Y2e,"addEdges");function H2e(t){return new Promise(e=>{const r=At("body").append("div").attr("id","cy").attr("style","display:none"),n=uu({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),q2e(t.nodes,n),Y2e(t.edges,n),n.nodes().forEach(function(i){i.layoutDimensions=()=>{const s=i.data();return{w:s.width,h:s.height}}});const a={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};n.layout(a).run(),n.ready(i=>{oe.info("Cytoscape ready",i),e(n)})})}E(H2e,"createCytoscapeInstance");function V2e(t){return t.nodes().map(e=>{const r=e.data(),n=e.position(),a={id:r.id,x:n.x,y:n.y};return Object.keys(r).forEach(i=>{i!=="id"&&(a[i]=r[i])}),a})}E(V2e,"extractPositionedNodes");function W2e(t){return t.edges().map(e=>{const r=e.data(),n=e._private.rscratch,a={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(i=>{["id","source","target"].includes(i)||(a[i]=r[i])}),a})}E(W2e,"extractPositionedEdges");async function K2e(t,e){oe.debug("Starting cose-bilkent layout algorithm");try{X2e(t);const r=await H2e(t),n=V2e(r),a=W2e(r);return oe.debug(`Layout completed: ${n.length} nodes, ${a.length} edges`),{nodes:n,edges:a}}catch(r){throw oe.error("Error in cose-bilkent layout algorithm:",r),r}}E(K2e,"executeCoseBilkentLayout");function X2e(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}E(X2e,"validateLayoutData");var Y_t=E(async(t,e,{insertCluster:r,insertEdge:n,insertEdgeLabel:a,insertMarkers:i,insertNode:s,log:o,positionEdgeLabel:l},{algorithm:u})=>{const d={},h={},f=e.select("g");i(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"),v=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 S={..._};h[_.id]=S,d[_.id]=S,await r(p,_)}else{const S={..._};d[_.id]=S;const x=await s(v,_,{config:t.config,dir:t.direction||"TB"}),C=x.node().getBBox();S.width=C.width,S.height=C.height,S.domId=x,o.debug(`Node ${_.id} dimensions: ${C.width}x${C.height}`)}})),o.debug("Running cose-bilkent layout algorithm");const y={...t,nodes:t.nodes.map(_=>{const S=d[_.id];return{..._,width:S.width,height:S.height}})},b=await K2e(y,t.config);o.debug("Positioning nodes based on layout results"),b.nodes.forEach(_=>{const S=d[_.id];S?.domId&&(S.domId.attr("transform",`translate(${_.x}, ${_.y})`),S.x=_.x,S.y=_.y,o.debug(`Positioned node ${S.id} at center (${_.x}, ${_.y})`))}),b.edges.forEach(_=>{const S=t.edges.find(x=>x.id===_.id);S&&(S.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 a(m,_);const S=d[_.start??""],x=d[_.end??""];if(S&&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,S,x,t.diagramId);l(T,w)}else{const T={..._,points:[{x:S.x||0,y:S.y||0},{x:x.x||0,y:x.y||0}]},w=n(g,T,h,t.type,S,x,t.diagramId);l(T,w)}}})),o.debug("Cose-bilkent rendering completed")},"render"),H_t=Y_t;const V_t=Object.freeze(Object.defineProperty({__proto__:null,render:H_t},Symbol.toStringTag,{value:"Module"}));var sA=E((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"),j2e=E((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"};sA(t,r).lower()},"drawBackgroundRect"),W_t=E((t,e)=>{const r=e.text.replace(Zb," "),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 a=n.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.text(r),n},"drawText"),AY=E((t,e,r,n)=>{const a=t.append("image");a.attr("x",e),a.attr("y",r);const i=ng.sanitizeUrl(n);a.attr("xlink:href",i)},"drawImage"),RY=E((t,e,r,n)=>{const a=t.append("use");a.attr("x",e),a.attr("y",r);const i=ng.sanitizeUrl(n);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),Zo=E(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),NY=E(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),Q2e=E(()=>{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"),J6=(function(){var t=E(function(Ae,je,ot,lt){for(ot=ot||{},lt=Ae.length;lt--;ot[Ae[lt]]=je);return ot},"o"),e=[1,24],r=[1,25],n=[1,26],a=[1,27],i=[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],v=[1,32],y=[1,33],b=[1,34],_=[1,35],S=[1,36],x=[1,37],C=[1,38],T=[1,39],w=[1,40],R=[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],N=[1,51],P=[1,52],z=[1,53],B=[1,54],U=[1,55],G=[1,56],K=[1,57],Y=[1,58],ee=[1,59],X=[1,60],le=[14,42],te=[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],ne=[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],re=[1,83],ge=[1,84],pe=[1,85],Be=[12,14,42],Le=[12,14,33,42],He=[12,14,33,42,76,77,79,80],Re=[12,33],xe=[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],$e={trace:E(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:E(function(je,ot,lt,ct,it,ke,Qe){var _e=ke.length-1;switch(it){case 3:ct.setDirection("TB");break;case 4:ct.setDirection("BT");break;case 5:ct.setDirection("RL");break;case 6:ct.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:ct.setC4Type(ke[_e-3]);break;case 19:ct.setTitle(ke[_e].substring(6)),this.$=ke[_e].substring(6);break;case 20:ct.setAccDescription(ke[_e].substring(15)),this.$=ke[_e].substring(15);break;case 21:this.$=ke[_e].trim(),ct.setTitle(this.$);break;case 22:case 23:this.$=ke[_e].trim(),ct.setAccDescription(this.$);break;case 28:ke[_e].splice(2,0,"ENTERPRISE"),ct.addPersonOrSystemBoundary(...ke[_e]),this.$=ke[_e];break;case 29:ke[_e].splice(2,0,"SYSTEM"),ct.addPersonOrSystemBoundary(...ke[_e]),this.$=ke[_e];break;case 30:ct.addPersonOrSystemBoundary(...ke[_e]),this.$=ke[_e];break;case 31:ke[_e].splice(2,0,"CONTAINER"),ct.addContainerBoundary(...ke[_e]),this.$=ke[_e];break;case 32:ct.addDeploymentNode("node",...ke[_e]),this.$=ke[_e];break;case 33:ct.addDeploymentNode("nodeL",...ke[_e]),this.$=ke[_e];break;case 34:ct.addDeploymentNode("nodeR",...ke[_e]),this.$=ke[_e];break;case 35:ct.popBoundaryParseStack();break;case 39:ct.addPersonOrSystem("person",...ke[_e]),this.$=ke[_e];break;case 40:ct.addPersonOrSystem("external_person",...ke[_e]),this.$=ke[_e];break;case 41:ct.addPersonOrSystem("system",...ke[_e]),this.$=ke[_e];break;case 42:ct.addPersonOrSystem("system_db",...ke[_e]),this.$=ke[_e];break;case 43:ct.addPersonOrSystem("system_queue",...ke[_e]),this.$=ke[_e];break;case 44:ct.addPersonOrSystem("external_system",...ke[_e]),this.$=ke[_e];break;case 45:ct.addPersonOrSystem("external_system_db",...ke[_e]),this.$=ke[_e];break;case 46:ct.addPersonOrSystem("external_system_queue",...ke[_e]),this.$=ke[_e];break;case 47:ct.addContainer("container",...ke[_e]),this.$=ke[_e];break;case 48:ct.addContainer("container_db",...ke[_e]),this.$=ke[_e];break;case 49:ct.addContainer("container_queue",...ke[_e]),this.$=ke[_e];break;case 50:ct.addContainer("external_container",...ke[_e]),this.$=ke[_e];break;case 51:ct.addContainer("external_container_db",...ke[_e]),this.$=ke[_e];break;case 52:ct.addContainer("external_container_queue",...ke[_e]),this.$=ke[_e];break;case 53:ct.addComponent("component",...ke[_e]),this.$=ke[_e];break;case 54:ct.addComponent("component_db",...ke[_e]),this.$=ke[_e];break;case 55:ct.addComponent("component_queue",...ke[_e]),this.$=ke[_e];break;case 56:ct.addComponent("external_component",...ke[_e]),this.$=ke[_e];break;case 57:ct.addComponent("external_component_db",...ke[_e]),this.$=ke[_e];break;case 58:ct.addComponent("external_component_queue",...ke[_e]),this.$=ke[_e];break;case 60:ct.addRel("rel",...ke[_e]),this.$=ke[_e];break;case 61:ct.addRel("birel",...ke[_e]),this.$=ke[_e];break;case 62:ct.addRel("rel_u",...ke[_e]),this.$=ke[_e];break;case 63:ct.addRel("rel_d",...ke[_e]),this.$=ke[_e];break;case 64:ct.addRel("rel_l",...ke[_e]),this.$=ke[_e];break;case 65:ct.addRel("rel_r",...ke[_e]),this.$=ke[_e];break;case 66:ct.addRel("rel_b",...ke[_e]),this.$=ke[_e];break;case 67:ke[_e].splice(0,1),ct.addRel("rel",...ke[_e]),this.$=ke[_e];break;case 68:ct.updateElStyle("update_el_style",...ke[_e]),this.$=ke[_e];break;case 69:ct.updateRelStyle("update_rel_style",...ke[_e]),this.$=ke[_e];break;case 70:ct.updateLayoutConfig("update_layout_config",...ke[_e]),this.$=ke[_e];break;case 71:this.$=[ke[_e]];break;case 72:ke[_e].unshift(ke[_e-1]),this.$=ke[_e];break;case 73:case 75:this.$=ke[_e].trim();break;case 74:let ye={};ye[ke[_e-1].trim()]=ke[_e].trim(),this.$=ye;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:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{13:70,19:20,20:21,21:22,22:e,23:r,24:n,26:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{13:71,19:20,20:21,21:22,22:e,23:r,24:n,26:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{13:72,19:20,20:21,21:22,22:e,23:r,24:n,26:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{13:73,19:20,20:21,21:22,22:e,23:r,24:n,26:a,28:i,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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{14:[1,74]},t(le,[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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X}),t(le,[2,14]),t(te,[2,16],{12:[1,76]}),t(le,[2,36],{12:[1,77]}),t(ne,[2,19]),t(ne,[2,20]),{25:[1,78]},{27:[1,79]},t(ne,[2,23]),{35:80,75:81,76:ae,77:re,79:ge,80:pe},{35:86,75:81,76:ae,77:re,79:ge,80:pe},{35:87,75:81,76:ae,77:re,79:ge,80:pe},{35:88,75:81,76:ae,77:re,79:ge,80:pe},{35:89,75:81,76:ae,77:re,79:ge,80:pe},{35:90,75:81,76:ae,77:re,79:ge,80:pe},{35:91,75:81,76:ae,77:re,79:ge,80:pe},{35:92,75:81,76:ae,77:re,79:ge,80:pe},{35:93,75:81,76:ae,77:re,79:ge,80:pe},{35:94,75:81,76:ae,77:re,79:ge,80:pe},{35:95,75:81,76:ae,77:re,79:ge,80:pe},{35:96,75:81,76:ae,77:re,79:ge,80:pe},{35:97,75:81,76:ae,77:re,79:ge,80:pe},{35:98,75:81,76:ae,77:re,79:ge,80:pe},{35:99,75:81,76:ae,77:re,79:ge,80:pe},{35:100,75:81,76:ae,77:re,79:ge,80:pe},{35:101,75:81,76:ae,77:re,79:ge,80:pe},{35:102,75:81,76:ae,77:re,79:ge,80:pe},{35:103,75:81,76:ae,77:re,79:ge,80:pe},{35:104,75:81,76:ae,77:re,79:ge,80:pe},t(Be,[2,59]),{35:105,75:81,76:ae,77:re,79:ge,80:pe},{35:106,75:81,76:ae,77:re,79:ge,80:pe},{35:107,75:81,76:ae,77:re,79:ge,80:pe},{35:108,75:81,76:ae,77:re,79:ge,80:pe},{35:109,75:81,76:ae,77:re,79:ge,80:pe},{35:110,75:81,76:ae,77:re,79:ge,80:pe},{35:111,75:81,76:ae,77:re,79:ge,80:pe},{35:112,75:81,76:ae,77:re,79:ge,80:pe},{35:113,75:81,76:ae,77:re,79:ge,80:pe},{35:114,75:81,76:ae,77:re,79:ge,80:pe},{35:115,75:81,76:ae,77:re,79:ge,80:pe},{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:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X},{12:[1,118],33:[1,117]},{35:119,75:81,76:ae,77:re,79:ge,80:pe},{35:120,75:81,76:ae,77:re,79:ge,80:pe},{35:121,75:81,76:ae,77:re,79:ge,80:pe},{35:122,75:81,76:ae,77:re,79:ge,80:pe},{35:123,75:81,76:ae,77:re,79:ge,80:pe},{35:124,75:81,76:ae,77:re,79:ge,80:pe},{35:125,75:81,76:ae,77:re,79:ge,80:pe},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(le,[2,15]),t(te,[2,17],{21:22,19:130,22:e,23:r,24:n,26:a,28:i}),t(le,[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:a,28:i,34:s,36:o,37:l,38:u,39:d,40:h,41:f,44:p,45:g,46:m,47:v,48:y,49:b,50:_,51:S,52:x,53:C,54:T,55:w,56:R,57:O,58:M,59:$,60:F,61:A,62:I,63:D,64:L,65:N,66:P,67:z,68:B,69:U,70:G,71:K,72:Y,73:ee,74:X}),t(ne,[2,21]),t(ne,[2,22]),t(Be,[2,39]),t(Le,[2,71],{75:81,35:132,76:ae,77:re,79:ge,80:pe}),t(He,[2,73]),{78:[1,133]},t(He,[2,75]),t(He,[2,76]),t(Be,[2,40]),t(Be,[2,41]),t(Be,[2,42]),t(Be,[2,43]),t(Be,[2,44]),t(Be,[2,45]),t(Be,[2,46]),t(Be,[2,47]),t(Be,[2,48]),t(Be,[2,49]),t(Be,[2,50]),t(Be,[2,51]),t(Be,[2,52]),t(Be,[2,53]),t(Be,[2,54]),t(Be,[2,55]),t(Be,[2,56]),t(Be,[2,57]),t(Be,[2,58]),t(Be,[2,60]),t(Be,[2,61]),t(Be,[2,62]),t(Be,[2,63]),t(Be,[2,64]),t(Be,[2,65]),t(Be,[2,66]),t(Be,[2,67]),t(Be,[2,68]),t(Be,[2,69]),t(Be,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(Re,[2,28]),t(Re,[2,29]),t(Re,[2,30]),t(Re,[2,31]),t(Re,[2,32]),t(Re,[2,33]),t(Re,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(te,[2,18]),t(le,[2,38]),t(Le,[2,72]),t(He,[2,74]),t(Be,[2,24]),t(Be,[2,35]),t(xe,[2,25]),t(xe,[2,26],{12:[1,138]}),t(xe,[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:E(function(je,ot){if(ot.recoverable)this.trace(je);else{var lt=new Error(je);throw lt.hash=ot,lt}},"parseError"),parse:E(function(je){var ot=this,lt=[0],ct=[],it=[null],ke=[],Qe=this.table,_e="",ye=0,q=0,fe=2,j=1,we=ke.slice.call(arguments,1),Te=Object.create(this.lexer),rt={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(rt.yy[Oe]=this.yy[Oe]);Te.setInput(je,rt.yy),rt.yy.lexer=Te,rt.yy.parser=this,typeof Te.yylloc>"u"&&(Te.yylloc={});var Pe=Te.yylloc;ke.push(Pe);var Ie=Te.options&&Te.options.ranges;typeof rt.yy.parseError=="function"?this.parseError=rt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ze(se){lt.length=lt.length-2*se,it.length=it.length-se,ke.length=ke.length-se}E(Ze,"popStack");function ze(){var se;return se=ct.pop()||Te.lex()||j,typeof se!="number"&&(se instanceof Array&&(ct=se,se=ct.pop()),se=ot.symbols_[se]||se),se}E(ze,"lex");for(var me,ie,Ve,ve,Tt={},St,nt,dt,ft;;){if(ie=lt[lt.length-1],this.defaultActions[ie]?Ve=this.defaultActions[ie]:((me===null||typeof me>"u")&&(me=ze()),Ve=Qe[ie]&&Qe[ie][me]),typeof Ve>"u"||!Ve.length||!Ve[0]){var gt="";ft=[];for(St in Qe[ie])this.terminals_[St]&&St>fe&&ft.push("'"+this.terminals_[St]+"'");Te.showPosition?gt="Parse error on line "+(ye+1)+`: `+Te.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[me]||me)+"'":gt="Parse error on line "+(ye+1)+": Unexpected "+(me==j?"end of input":"'"+(this.terminals_[me]||me)+"'"),this.parseError(gt,{text:Te.match,token:this.terminals_[me]||me,line:Te.yylineno,loc:Pe,expected:ft})}if(Ve[0]instanceof Array&&Ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ie+", token: "+me);switch(Ve[0]){case 1:lt.push(me),it.push(Te.yytext),ke.push(Te.yylloc),lt.push(Ve[1]),me=null,q=Te.yyleng,_e=Te.yytext,ye=Te.yylineno,Pe=Te.yylloc;break;case 2:if(nt=this.productions_[Ve[1]][1],Tt.$=it[it.length-nt],Tt._$={first_line:ke[ke.length-(nt||1)].first_line,last_line:ke[ke.length-1].last_line,first_column:ke[ke.length-(nt||1)].first_column,last_column:ke[ke.length-1].last_column},Ie&&(Tt._$.range=[ke[ke.length-(nt||1)].range[0],ke[ke.length-1].range[1]]),ve=this.performAction.apply(Tt,[_e,q,ye,rt.yy,Ve[1],it,ke].concat(we)),typeof ve<"u")return ve;nt&&(lt=lt.slice(0,-1*nt*2),it=it.slice(0,-1*nt),ke=ke.slice(0,-1*nt)),lt.push(this.productions_[Ve[1]][0]),it.push(Tt.$),ke.push(Tt._$),dt=Qe[lt[lt.length-2]][lt[lt.length-1]],lt.push(dt);break;case 3:return!0}}return!0},"parse")},Ce=(function(){var Ae={EOF:1,parseError:E(function(ot,lt){if(this.yy.parser)this.yy.parser.parseError(ot,lt);else throw new Error(ot)},"parseError"),setInput:E(function(je,ot){return this.yy=ot||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:E(function(){var je=this._input[0];this.yytext+=je,this.yyleng++,this.offset++,this.match+=je,this.matched+=je;var ot=je.match(/(?:\r\n?|\n).*/g);return ot?(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:E(function(je){var ot=je.length,lt=je.split(/(?:\r\n?|\n)/g);this._input=je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ot),this.offset-=ot;var ct=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),lt.length-1&&(this.yylineno-=lt.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:lt?(lt.length===ct.length?this.yylloc.first_column:0)+ct[ct.length-lt.length].length-lt[0].length:this.yylloc.first_column-ot},this.options.ranges&&(this.yylloc.range=[it[0],it[0]+this.yyleng-ot]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(je){this.unput(this.match.slice(je))},"less"),pastInput:E(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:E(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:E(function(){var je=this.pastInput(),ot=new Array(je.length+1).join("-");return je+this.upcomingInput()+` `+ot+"^"},"showPosition"),test_match:E(function(je,ot){var lt,ct,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))),ct=je[0].match(/(?:\r\n?|\n).*/g),ct&&(this.yylineno+=ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ct?ct[ct.length-1].length-ct[ct.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],lt=this.performAction.call(this,this.yy,this,ot,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),lt)return lt;if(this._backtrack){for(var ke in it)this[ke]=it[ke];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var je,ot,lt,ct;this._more||(this.yytext="",this.match="");for(var it=this._currentRules(),ke=0;keot[0].length)){if(ot=lt,ct=ke,this.options.backtrack_lexer){if(je=this.test_match(lt,it[ke]),je!==!1)return je;if(this._backtrack){ot=!1;continue}else return!1}else if(!this.options.flex)break}return ot?(je=this.test_match(ot,it[ct]),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:E(function(){var ot=this.next();return ot||this.lex()},"lex"),begin:E(function(ot){this.conditionStack.push(ot)},"begin"),popState:E(function(){var ot=this.conditionStack.length-1;return ot>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(ot){return ot=this.conditionStack.length-1-Math.abs(ot||0),ot>=0?this.conditionStack[ot]:"INITIAL"},"topState"),pushState:E(function(ot){this.begin(ot)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:E(function(ot,lt,ct,it){switch(ct){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 Ae})();$e.lexer=Ce;function ut(){this.yy={}}return E(ut,"Parser"),ut.prototype=$e,$e.Parser=ut,new ut})();J6.parser=J6;var W_t=J6,mc=[],th=[""],qs="global",lc="",du=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],N4=[],IY="",OY=!1,ew=4,tw=2,Z2e,K_t=E(function(){return Z2e},"getC4Type"),X_t=E(function(t){Z2e=dn(t,Ye())},"setC4Type"),j_t=E(function(t,e,r,n,a,i,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=N4.find(h=>h.from===e&&h.to===r);if(d?u=d:N4.push(u),u.type=t,u.from=e,u.to=r,u.label={text:n},a==null)u.techn={text:""};else if(typeof a=="object"){let[h,f]=Object.entries(a)[0];u[h]={text:f}}else u.techn={text:a};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[h,f]=Object.entries(i)[0];u[h]={text:f}}else u.descr={text:i};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=Wh()},"addRel"),Q_t=E(function(t,e,r,n,a,i,s){if(e===null||r===null)return;let o={};const l=mc.find(u=>u.alias===e);if(l&&e===l.alias?o=l:(o.alias=e,mc.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 a=="object"){let[u,d]=Object.entries(a)[0];o[u]=d}else o.sprite=a;if(typeof i=="object"){let[u,d]=Object.entries(i)[0];o[u]=d}else o.tags=i;if(typeof s=="object"){let[u,d]=Object.entries(s)[0];o[u]=d}else o.link=s;o.typeC4Shape={text:t},o.parentBoundary=qs,o.wrap=Wh()},"addPersonOrSystem"),Z_t=E(function(t,e,r,n,a,i,s,o){if(e===null||r===null)return;let l={};const u=mc.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,mc.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(a==null)l.descr={text:""};else if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]={text:h}}else l.descr={text:a};if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]=h}else l.sprite=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.wrap=Wh(),l.typeC4Shape={text:t},l.parentBoundary=qs},"addContainer"),J_t=E(function(t,e,r,n,a,i,s,o){if(e===null||r===null)return;let l={};const u=mc.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,mc.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(a==null)l.descr={text:""};else if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]={text:h}}else l.descr={text:a};if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]=h}else l.sprite=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.wrap=Wh(),l.typeC4Shape={text:t},l.parentBoundary=qs},"addComponent"),ebt=E(function(t,e,r,n,a){if(t===null||e===null)return;let i={};const s=du.find(o=>o.alias===t);if(s&&t===s.alias?i=s:(i.alias=t,du.push(i)),e==null?i.label={text:""}:i.label={text:e},r==null)i.type={text:"system"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];i[o]={text:l}}else i.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];i[o]=l}else i.tags=n;if(typeof a=="object"){let[o,l]=Object.entries(a)[0];i[o]=l}else i.link=a;i.parentBoundary=qs,i.wrap=Wh(),lc=qs,qs=t,th.push(lc)},"addPersonOrSystemBoundary"),tbt=E(function(t,e,r,n,a){if(t===null||e===null)return;let i={};const s=du.find(o=>o.alias===t);if(s&&t===s.alias?i=s:(i.alias=t,du.push(i)),e==null?i.label={text:""}:i.label={text:e},r==null)i.type={text:"container"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];i[o]={text:l}}else i.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];i[o]=l}else i.tags=n;if(typeof a=="object"){let[o,l]=Object.entries(a)[0];i[o]=l}else i.link=a;i.parentBoundary=qs,i.wrap=Wh(),lc=qs,qs=t,th.push(lc)},"addContainerBoundary"),rbt=E(function(t,e,r,n,a,i,s,o){if(e===null||r===null)return;let l={};const u=du.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,du.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(a==null)l.descr={text:""};else if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]={text:h}}else l.descr={text: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.nodeType=t,l.parentBoundary=qs,l.wrap=Wh(),lc=qs,qs=e,th.push(lc)},"addDeploymentNode"),nbt=E(function(){qs=lc,th.pop(),lc=th.pop(),th.push(lc)},"popBoundaryParseStack"),abt=E(function(t,e,r,n,a,i,s,o,l,u,d){let h=mc.find(f=>f.alias===e);if(!(h===void 0&&(h=du.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(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.borderColor=a;if(i!=null)if(typeof i=="object"){let[f,p]=Object.entries(i)[0];h[f]=p}else h.shadowing=i;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"),ibt=E(function(t,e,r,n,a,i,s){const o=N4.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(a!=null)if(typeof a=="object"){let[l,u]=Object.entries(a)[0];o[l]=u}else o.lineColor=a;if(i!=null)if(typeof i=="object"){let[l,u]=Object.entries(i)[0];o[l]=parseInt(u)}else o.offsetX=parseInt(i);if(s!=null)if(typeof s=="object"){let[l,u]=Object.entries(s)[0];o[l]=parseInt(u)}else o.offsetY=parseInt(s)}},"updateRelStyle"),sbt=E(function(t,e,r){let n=ew,a=tw;if(typeof e=="object"){const i=Object.values(e)[0];n=parseInt(i)}else n=parseInt(e);if(typeof r=="object"){const i=Object.values(r)[0];a=parseInt(i)}else a=parseInt(r);n>=1&&(ew=n),a>=1&&(tw=a)},"updateLayoutConfig"),obt=E(function(){return ew},"getC4ShapeInRow"),lbt=E(function(){return tw},"getC4BoundaryInRow"),cbt=E(function(){return qs},"getCurrentBoundaryParse"),ubt=E(function(){return lc},"getParentBoundaryParse"),J2e=E(function(t){return t==null?mc:mc.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),dbt=E(function(t){return mc.find(e=>e.alias===t)},"getC4Shape"),hbt=E(function(t){return Object.keys(J2e(t))},"getC4ShapeKeys"),eEe=E(function(t){return t==null?du:du.filter(e=>e.parentBoundary===t)},"getBoundaries"),fbt=eEe,pbt=E(function(){return N4},"getRels"),gbt=E(function(){return IY},"getTitle"),mbt=E(function(t){OY=t},"setWrap"),Wh=E(function(){return OY},"autoWrap"),vbt=E(function(){mc=[],du=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],lc="",qs="global",th=[""],N4=[],th=[""],IY="",OY=!1,ew=4,tw=2},"clear"),ybt={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},_bt={FILLED:0,OPEN:1},bbt={LEFTOF:0,RIGHTOF:1,OVER:2},Ebt=E(function(t){IY=dn(t,Ye())},"setTitle"),lF={addPersonOrSystem:Q_t,addPersonOrSystemBoundary:ebt,addContainer:Z_t,addContainerBoundary:tbt,addComponent:J_t,addDeploymentNode:rbt,popBoundaryParseStack:nbt,addRel:j_t,updateElStyle:abt,updateRelStyle:ibt,updateLayoutConfig:sbt,autoWrap:Wh,setWrap:mbt,getC4ShapeArray:J2e,getC4Shape:dbt,getC4ShapeKeys:hbt,getBoundaries:eEe,getBoundarys:fbt,getCurrentBoundaryParse:cbt,getParentBoundaryParse:ubt,getRels:pbt,getTitle:gbt,getC4Type:K_t,getC4ShapeInRow:obt,getC4BoundaryInRow:lbt,setAccTitle:sa,getAccTitle:va,getAccDescription:_a,setAccDescription:ya,getConfig:E(()=>Ye().c4,"getConfig"),clear:vbt,LINETYPE:ybt,ARROWTYPE:_bt,PLACEMENT:bbt,setTitle:Ebt,setC4Type:X_t},DY=E(function(t,e){return sA(t,e)},"drawRect"),tEe=E(function(t,e,r,n,a,i){const s=t.append("image");s.attr("width",e),s.attr("height",r),s.attr("x",n),s.attr("y",a);let o=i.startsWith("data:image/png;base64")?i:ng.sanitizeUrl(i);s.attr("xlink:href",o)},"drawImage"),Sbt=E((t,e,r,n)=>{const a=t.append("g");let i=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(i===0){let p=a.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)"),i=-1}else{let p=a.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();p0(r)(s.label.text,a,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(),p0(r)("["+s.techn.text+"]",a,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"),Tbt=E(function(t,e,r){const n=t.append("g");let a=e.bgColor?e.bgColor:"none",i=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:a,stroke:i,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:o};DY(n,l);let u=r.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=s,p0(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,p0(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,p0(r)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},u))},"drawBoundary"),xbt=E(function(t,e,r){let n=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],a=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],i=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=Zo();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=a,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},DY(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",a).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",a).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",a).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",a).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=Obt(r,e.typeC4Shape.text);switch(o.append("text").attr("fill",i).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":tEe(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=i,p0(r)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:i},d),d=r[e.typeC4Shape.text+"Font"](),d.fontColor=i,e.techn&&e.techn?.text!==""?p0(r)(e.techn.text,o,e.x,e.y+e.techn.Y,e.width,e.height,{fill:i,"font-style":"italic"},d):e.type&&e.type.text!==""&&p0(r)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:i,"font-style":"italic"},d),e.descr&&e.descr.text!==""&&(d=r.personFont(),d.fontColor=i,p0(r)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:i},d)),e.height},"drawC4Shape"),Cbt=E(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"),wbt=E(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"),kbt=E(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"),Abt=E(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"),Rbt=E(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"),Nbt=E(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"),Ibt=E(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"),Obt=E((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),p0=(function(){function t(a,i,s,o,l,u,d){const h=i.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("text-anchor","middle").text(a);n(h,d)}E(t,"byText");function e(a,i,s,o,l,u,d,h){const{fontSize:f,fontFamily:p,fontWeight:g}=h,m=a.split(qt.lineBreakRegex);for(let v=0;v=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>rEe)&&(r=this.nextData.startx+e.margin+_r.nextLinePaddingX,a=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=a+e.height,this.nextData.cnt=1),e.x=r,e.y=a,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",a,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",a,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",i,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},uF(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},E(M1,"Bounds"),M1),uF=E(function(t){Va(_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"),aE=E((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),M5=E(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),Dbt=E(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function xl(t,e,r,n,a){if(!e[t].width)if(r)e[t].text=cS(e[t].text,a,n),e[t].textLines=e[t].text.split(qt.lineBreakRegex).length,e[t].width=a,e[t].height=d6(e[t].text,n);else{let i=e[t].text.split(qt.lineBreakRegex);e[t].textLines=i.length;let s=0;e[t].height=0,e[t].width=0;for(const o of i)e[t].width=Math.max(Gs(o,n),e[t].width),s=d6(o,n),e[t].height=e[t].height+s}}E(xl,"calcC4ShapeTextWH");var aEe=E(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,a=M5(_r);a.fontSize=a.fontSize+2,a.fontWeight="bold";let i=Gs(e.label.text,a);xl("label",e,n,a,i),Bc.drawBoundary(t,e,_r)},"drawBoundary"),iEe=E(function(t,e,r,n){let a=0;for(const i of n){a=0;const s=r[i];let o=aE(_r,s.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,s.typeC4Shape.width=Gs("«"+s.typeC4Shape.text+"»",o),s.typeC4Shape.height=o.fontSize+2,s.typeC4Shape.Y=_r.c4ShapePadding,a=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=a,a=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=a,a=s.image.Y+s.image.height);let l=s.wrap&&_r.wrap,u=_r.width-_r.c4ShapePadding*2,d=aE(_r,s.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",xl("label",s,l,d,u),s.label.Y=a+8,a=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let p=aE(_r,s.typeC4Shape.text);xl("type",s,l,p,u),s.type.Y=a+5,a=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let p=aE(_r,s.techn.text);xl("techn",s,l,p,u),s.techn.Y=a+5,a=s.techn.Y+s.techn.height}let h=a,f=s.label.width;if(s.descr&&s.descr.text!==""){let p=aE(_r,s.typeC4Shape.text);xl("descr",s,l,p,u),s.descr.Y=a+20,a=s.descr.Y+s.descr.height,f=Math.max(s.label.width,s.descr.width),h=a-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),Bc.drawC4Shape(e,s,_r)}t.bumpLastMargin(_r.c4ShapeMargin)},"drawC4ShapeArray"),P1,cl=(P1=class{constructor(e,r){this.x=e,this.y=r}},E(P1,"Point"),P1),hse=E(function(t,e){let r=t.x,n=t.y,a=e.x,i=e.y,s=r+t.width/2,o=n+t.height/2,l=Math.abs(r-a),u=Math.abs(n-i),d=u/l,h=t.height/t.width,f=null;return n==i&&ra?f=new cl(r,o):r==a&&ni&&(f=new cl(s,n)),r>a&&n=d?f=new cl(r,o+d*t.width/2):f=new cl(s-l/u*t.height/2,n+t.height):r=d?f=new cl(r+t.width,o+d*t.width/2):f=new cl(s+l/u*t.height/2,n+t.height):ri?h>=d?f=new cl(r+t.width,o-d*t.width/2):f=new cl(s+t.height/2*l/u,n):r>a&&n>i&&(h>=d?f=new cl(r,o-t.width/2*d):f=new cl(s-t.height/2*l/u,n)),f},"getIntersectPoint"),Lbt=E(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=hse(t,r);r.x=t.x+t.width/2,r.y=t.y+t.height/2;let a=hse(e,r);return{startPoint:n,endPoint:a}},"getIntersectPoints"),Mbt=E(function(t,e,r,n,a){let i=0;for(let s of e){i=i+1;let o=s.wrap&&_r.wrap,l=Dbt(_r);n.db.getC4Type()==="C4Dynamic"&&(s.label.text=i+": "+s.label.text);let d=Gs(s.label.text,l);xl("label",s,o,l,d),s.techn&&s.techn.text!==""&&(d=Gs(s.techn.text,l),xl("techn",s,o,l,d)),s.descr&&s.descr.text!==""&&(d=Gs(s.descr.text,l),xl("descr",s,o,l,d));let h=r(s.from),f=r(s.to),p=Lbt(h,f);s.startPoint=p.startPoint,s.endPoint=p.endPoint}Bc.drawRels(t,e,_r,a)},"drawRels");function LY(t,e,r,n,a){let i=new nEe(a);i.data.widthLimit=r.data.widthLimit/Math.min(cF,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=M5(_r);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",xl("label",o,u,d,i.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=M5(_r);xl("type",o,u,g,i.data.widthLimit),o.type.Y=l+5,l=o.type.Y+o.type.height}if(o.descr&&o.descr.text!==""){let g=M5(_r);g.fontSize=g.fontSize-2,xl("descr",o,u,g,i.data.widthLimit),o.descr.Y=l+20,l=o.descr.Y+o.descr.height}if(s==0||s%cF===0){let g=r.data.startx+_r.diagramMarginX,m=r.data.stopy+_r.diagramMarginY+l;i.setData(g,g,m,m)}else{let g=i.data.stopx!==i.data.startx?i.data.stopx+_r.diagramMarginX:i.data.startx,m=i.data.starty;i.setData(g,g,m,m)}i.name=o.alias;let h=a.db.getC4ShapeArray(o.alias),f=a.db.getC4ShapeKeys(o.alias);f.length>0&&iEe(i,t,h,f),e=o.alias;let p=a.db.getBoundaries(e);p.length>0&&LY(t,e,i,p,a),o.alias!=="global"&&aEe(t,o,i),r.data.stopy=Math.max(i.data.stopy+_r.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(i.data.stopx+_r.c4ShapeMargin,r.data.stopx),rw=Math.max(rw,r.data.stopx),nw=Math.max(nw,r.data.stopy)}}E(LY,"drawInsideBoundary");var Pbt=E(function(t,e,r,n){_r=Ye().c4;const a=Ye().securityLevel;let i;a==="sandbox"&&(i=At("#i"+e));const s=At(a==="sandbox"?i.nodes()[0].contentDocument.body:"body");let o=n.db;n.db.setWrap(_r.wrap),rEe=o.getC4ShapeInRow(),cF=o.getC4BoundaryInRow(),oe.debug(`C:${JSON.stringify(_r,null,2)}`);const l=a==="sandbox"?s.select(`[id="${e}"]`):At(`[id="${e}"]`);Bc.insertComputerIcon(l,e),Bc.insertDatabaseIcon(l,e),Bc.insertClockIcon(l,e);let u=new nEe(n);u.setData(_r.diagramMarginX,_r.diagramMarginX,_r.diagramMarginY,_r.diagramMarginY),u.data.widthLimit=screen.availWidth,rw=_r.diagramMarginX,nw=_r.diagramMarginY;const d=n.db.getTitle();let h=n.db.getBoundaries("");LY(l,"",u,h,n),Bc.insertArrowHead(l,e),Bc.insertArrowEnd(l,e),Bc.insertArrowCrossHead(l,e),Bc.insertArrowFilledHead(l,e),Mbt(l,n.db.getRels(),n.db.getC4Shape,n,e),u.data.stopx=rw,u.data.stopy=nw;const f=u.data;let g=f.stopy-f.starty+2*_r.diagramMarginY;const v=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),di(l,g,v,_r.useMaxWidth);const y=d?60:0;l.attr("viewBox",f.startx-_r.diagramMarginX+" -"+(_r.diagramMarginY+y)+" "+v+" "+(g+y)),oe.debug("models:",f)},"draw"),fse={drawPersonOrSystemArray:iEe,drawBoundary:aEe,setConf:uF,draw:Pbt},Bbt=E(t=>`.person { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var ot=this.next();return ot||this.lex()},"lex"),begin:E(function(ot){this.conditionStack.push(ot)},"begin"),popState:E(function(){var ot=this.conditionStack.length-1;return ot>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(ot){return ot=this.conditionStack.length-1-Math.abs(ot||0),ot>=0?this.conditionStack[ot]:"INITIAL"},"topState"),pushState:E(function(ot){this.begin(ot)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:E(function(ot,lt,ct,it){switch(ct){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 Ae})();$e.lexer=Ce;function ut(){this.yy={}}return E(ut,"Parser"),ut.prototype=$e,$e.Parser=ut,new ut})();J6.parser=J6;var K_t=J6,mc=[],th=[""],qs="global",lc="",du=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],N4=[],IY="",OY=!1,ew=4,tw=2,Z2e,X_t=E(function(){return Z2e},"getC4Type"),j_t=E(function(t){Z2e=dn(t,Ye())},"setC4Type"),Q_t=E(function(t,e,r,n,a,i,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=N4.find(h=>h.from===e&&h.to===r);if(d?u=d:N4.push(u),u.type=t,u.from=e,u.to=r,u.label={text:n},a==null)u.techn={text:""};else if(typeof a=="object"){let[h,f]=Object.entries(a)[0];u[h]={text:f}}else u.techn={text:a};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[h,f]=Object.entries(i)[0];u[h]={text:f}}else u.descr={text:i};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=Wh()},"addRel"),Z_t=E(function(t,e,r,n,a,i,s){if(e===null||r===null)return;let o={};const l=mc.find(u=>u.alias===e);if(l&&e===l.alias?o=l:(o.alias=e,mc.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 a=="object"){let[u,d]=Object.entries(a)[0];o[u]=d}else o.sprite=a;if(typeof i=="object"){let[u,d]=Object.entries(i)[0];o[u]=d}else o.tags=i;if(typeof s=="object"){let[u,d]=Object.entries(s)[0];o[u]=d}else o.link=s;o.typeC4Shape={text:t},o.parentBoundary=qs,o.wrap=Wh()},"addPersonOrSystem"),J_t=E(function(t,e,r,n,a,i,s,o){if(e===null||r===null)return;let l={};const u=mc.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,mc.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(a==null)l.descr={text:""};else if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]={text:h}}else l.descr={text:a};if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]=h}else l.sprite=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.wrap=Wh(),l.typeC4Shape={text:t},l.parentBoundary=qs},"addContainer"),ebt=E(function(t,e,r,n,a,i,s,o){if(e===null||r===null)return;let l={};const u=mc.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,mc.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(a==null)l.descr={text:""};else if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]={text:h}}else l.descr={text:a};if(typeof i=="object"){let[d,h]=Object.entries(i)[0];l[d]=h}else l.sprite=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.wrap=Wh(),l.typeC4Shape={text:t},l.parentBoundary=qs},"addComponent"),tbt=E(function(t,e,r,n,a){if(t===null||e===null)return;let i={};const s=du.find(o=>o.alias===t);if(s&&t===s.alias?i=s:(i.alias=t,du.push(i)),e==null?i.label={text:""}:i.label={text:e},r==null)i.type={text:"system"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];i[o]={text:l}}else i.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];i[o]=l}else i.tags=n;if(typeof a=="object"){let[o,l]=Object.entries(a)[0];i[o]=l}else i.link=a;i.parentBoundary=qs,i.wrap=Wh(),lc=qs,qs=t,th.push(lc)},"addPersonOrSystemBoundary"),rbt=E(function(t,e,r,n,a){if(t===null||e===null)return;let i={};const s=du.find(o=>o.alias===t);if(s&&t===s.alias?i=s:(i.alias=t,du.push(i)),e==null?i.label={text:""}:i.label={text:e},r==null)i.type={text:"container"};else if(typeof r=="object"){let[o,l]=Object.entries(r)[0];i[o]={text:l}}else i.type={text:r};if(typeof n=="object"){let[o,l]=Object.entries(n)[0];i[o]=l}else i.tags=n;if(typeof a=="object"){let[o,l]=Object.entries(a)[0];i[o]=l}else i.link=a;i.parentBoundary=qs,i.wrap=Wh(),lc=qs,qs=t,th.push(lc)},"addContainerBoundary"),nbt=E(function(t,e,r,n,a,i,s,o){if(e===null||r===null)return;let l={};const u=du.find(d=>d.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,du.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(a==null)l.descr={text:""};else if(typeof a=="object"){let[d,h]=Object.entries(a)[0];l[d]={text:h}}else l.descr={text: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.nodeType=t,l.parentBoundary=qs,l.wrap=Wh(),lc=qs,qs=e,th.push(lc)},"addDeploymentNode"),abt=E(function(){qs=lc,th.pop(),lc=th.pop(),th.push(lc)},"popBoundaryParseStack"),ibt=E(function(t,e,r,n,a,i,s,o,l,u,d){let h=mc.find(f=>f.alias===e);if(!(h===void 0&&(h=du.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(a!=null)if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]=p}else h.borderColor=a;if(i!=null)if(typeof i=="object"){let[f,p]=Object.entries(i)[0];h[f]=p}else h.shadowing=i;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"),sbt=E(function(t,e,r,n,a,i,s){const o=N4.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(a!=null)if(typeof a=="object"){let[l,u]=Object.entries(a)[0];o[l]=u}else o.lineColor=a;if(i!=null)if(typeof i=="object"){let[l,u]=Object.entries(i)[0];o[l]=parseInt(u)}else o.offsetX=parseInt(i);if(s!=null)if(typeof s=="object"){let[l,u]=Object.entries(s)[0];o[l]=parseInt(u)}else o.offsetY=parseInt(s)}},"updateRelStyle"),obt=E(function(t,e,r){let n=ew,a=tw;if(typeof e=="object"){const i=Object.values(e)[0];n=parseInt(i)}else n=parseInt(e);if(typeof r=="object"){const i=Object.values(r)[0];a=parseInt(i)}else a=parseInt(r);n>=1&&(ew=n),a>=1&&(tw=a)},"updateLayoutConfig"),lbt=E(function(){return ew},"getC4ShapeInRow"),cbt=E(function(){return tw},"getC4BoundaryInRow"),ubt=E(function(){return qs},"getCurrentBoundaryParse"),dbt=E(function(){return lc},"getParentBoundaryParse"),J2e=E(function(t){return t==null?mc:mc.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),hbt=E(function(t){return mc.find(e=>e.alias===t)},"getC4Shape"),fbt=E(function(t){return Object.keys(J2e(t))},"getC4ShapeKeys"),eEe=E(function(t){return t==null?du:du.filter(e=>e.parentBoundary===t)},"getBoundaries"),pbt=eEe,gbt=E(function(){return N4},"getRels"),mbt=E(function(){return IY},"getTitle"),vbt=E(function(t){OY=t},"setWrap"),Wh=E(function(){return OY},"autoWrap"),ybt=E(function(){mc=[],du=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],lc="",qs="global",th=[""],N4=[],th=[""],IY="",OY=!1,ew=4,tw=2},"clear"),_bt={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},bbt={FILLED:0,OPEN:1},Ebt={LEFTOF:0,RIGHTOF:1,OVER:2},Sbt=E(function(t){IY=dn(t,Ye())},"setTitle"),lF={addPersonOrSystem:Z_t,addPersonOrSystemBoundary:tbt,addContainer:J_t,addContainerBoundary:rbt,addComponent:ebt,addDeploymentNode:nbt,popBoundaryParseStack:abt,addRel:Q_t,updateElStyle:ibt,updateRelStyle:sbt,updateLayoutConfig:obt,autoWrap:Wh,setWrap:vbt,getC4ShapeArray:J2e,getC4Shape:hbt,getC4ShapeKeys:fbt,getBoundaries:eEe,getBoundarys:pbt,getCurrentBoundaryParse:ubt,getParentBoundaryParse:dbt,getRels:gbt,getTitle:mbt,getC4Type:X_t,getC4ShapeInRow:lbt,getC4BoundaryInRow:cbt,setAccTitle:sa,getAccTitle:va,getAccDescription:_a,setAccDescription:ya,getConfig:E(()=>Ye().c4,"getConfig"),clear:ybt,LINETYPE:_bt,ARROWTYPE:bbt,PLACEMENT:Ebt,setTitle:Sbt,setC4Type:j_t},DY=E(function(t,e){return sA(t,e)},"drawRect"),tEe=E(function(t,e,r,n,a,i){const s=t.append("image");s.attr("width",e),s.attr("height",r),s.attr("x",n),s.attr("y",a);let o=i.startsWith("data:image/png;base64")?i:ng.sanitizeUrl(i);s.attr("xlink:href",o)},"drawImage"),Tbt=E((t,e,r,n)=>{const a=t.append("g");let i=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(i===0){let p=a.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)"),i=-1}else{let p=a.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();p0(r)(s.label.text,a,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(),p0(r)("["+s.techn.text+"]",a,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"),xbt=E(function(t,e,r){const n=t.append("g");let a=e.bgColor?e.bgColor:"none",i=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:a,stroke:i,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:o};DY(n,l);let u=r.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=s,p0(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,p0(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,p0(r)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},u))},"drawBoundary"),Cbt=E(function(t,e,r){let n=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],a=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],i=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=Zo();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=a,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},DY(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",a).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",a).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",a).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",a).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=Dbt(r,e.typeC4Shape.text);switch(o.append("text").attr("fill",i).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":tEe(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=i,p0(r)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:i},d),d=r[e.typeC4Shape.text+"Font"](),d.fontColor=i,e.techn&&e.techn?.text!==""?p0(r)(e.techn.text,o,e.x,e.y+e.techn.Y,e.width,e.height,{fill:i,"font-style":"italic"},d):e.type&&e.type.text!==""&&p0(r)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:i,"font-style":"italic"},d),e.descr&&e.descr.text!==""&&(d=r.personFont(),d.fontColor=i,p0(r)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:i},d)),e.height},"drawC4Shape"),wbt=E(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"),kbt=E(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"),Abt=E(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"),Rbt=E(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"),Nbt=E(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"),Ibt=E(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"),Obt=E(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"),Dbt=E((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),p0=(function(){function t(a,i,s,o,l,u,d){const h=i.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("text-anchor","middle").text(a);n(h,d)}E(t,"byText");function e(a,i,s,o,l,u,d,h){const{fontSize:f,fontFamily:p,fontWeight:g}=h,m=a.split(qt.lineBreakRegex);for(let v=0;v=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>rEe)&&(r=this.nextData.startx+e.margin+_r.nextLinePaddingX,a=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=a+e.height,this.nextData.cnt=1),e.x=r,e.y=a,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",a,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",a,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",i,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},uF(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},E(M1,"Bounds"),M1),uF=E(function(t){Va(_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"),aE=E((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),M5=E(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),Lbt=E(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function xl(t,e,r,n,a){if(!e[t].width)if(r)e[t].text=cS(e[t].text,a,n),e[t].textLines=e[t].text.split(qt.lineBreakRegex).length,e[t].width=a,e[t].height=d6(e[t].text,n);else{let i=e[t].text.split(qt.lineBreakRegex);e[t].textLines=i.length;let s=0;e[t].height=0,e[t].width=0;for(const o of i)e[t].width=Math.max(Gs(o,n),e[t].width),s=d6(o,n),e[t].height=e[t].height+s}}E(xl,"calcC4ShapeTextWH");var aEe=E(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,a=M5(_r);a.fontSize=a.fontSize+2,a.fontWeight="bold";let i=Gs(e.label.text,a);xl("label",e,n,a,i),Bc.drawBoundary(t,e,_r)},"drawBoundary"),iEe=E(function(t,e,r,n){let a=0;for(const i of n){a=0;const s=r[i];let o=aE(_r,s.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,s.typeC4Shape.width=Gs("«"+s.typeC4Shape.text+"»",o),s.typeC4Shape.height=o.fontSize+2,s.typeC4Shape.Y=_r.c4ShapePadding,a=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=a,a=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=a,a=s.image.Y+s.image.height);let l=s.wrap&&_r.wrap,u=_r.width-_r.c4ShapePadding*2,d=aE(_r,s.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",xl("label",s,l,d,u),s.label.Y=a+8,a=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let p=aE(_r,s.typeC4Shape.text);xl("type",s,l,p,u),s.type.Y=a+5,a=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let p=aE(_r,s.techn.text);xl("techn",s,l,p,u),s.techn.Y=a+5,a=s.techn.Y+s.techn.height}let h=a,f=s.label.width;if(s.descr&&s.descr.text!==""){let p=aE(_r,s.typeC4Shape.text);xl("descr",s,l,p,u),s.descr.Y=a+20,a=s.descr.Y+s.descr.height,f=Math.max(s.label.width,s.descr.width),h=a-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),Bc.drawC4Shape(e,s,_r)}t.bumpLastMargin(_r.c4ShapeMargin)},"drawC4ShapeArray"),P1,cl=(P1=class{constructor(e,r){this.x=e,this.y=r}},E(P1,"Point"),P1),hse=E(function(t,e){let r=t.x,n=t.y,a=e.x,i=e.y,s=r+t.width/2,o=n+t.height/2,l=Math.abs(r-a),u=Math.abs(n-i),d=u/l,h=t.height/t.width,f=null;return n==i&&ra?f=new cl(r,o):r==a&&ni&&(f=new cl(s,n)),r>a&&n=d?f=new cl(r,o+d*t.width/2):f=new cl(s-l/u*t.height/2,n+t.height):r=d?f=new cl(r+t.width,o+d*t.width/2):f=new cl(s+l/u*t.height/2,n+t.height):ri?h>=d?f=new cl(r+t.width,o-d*t.width/2):f=new cl(s+t.height/2*l/u,n):r>a&&n>i&&(h>=d?f=new cl(r,o-t.width/2*d):f=new cl(s-t.height/2*l/u,n)),f},"getIntersectPoint"),Mbt=E(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=hse(t,r);r.x=t.x+t.width/2,r.y=t.y+t.height/2;let a=hse(e,r);return{startPoint:n,endPoint:a}},"getIntersectPoints"),Pbt=E(function(t,e,r,n,a){let i=0;for(let s of e){i=i+1;let o=s.wrap&&_r.wrap,l=Lbt(_r);n.db.getC4Type()==="C4Dynamic"&&(s.label.text=i+": "+s.label.text);let d=Gs(s.label.text,l);xl("label",s,o,l,d),s.techn&&s.techn.text!==""&&(d=Gs(s.techn.text,l),xl("techn",s,o,l,d)),s.descr&&s.descr.text!==""&&(d=Gs(s.descr.text,l),xl("descr",s,o,l,d));let h=r(s.from),f=r(s.to),p=Mbt(h,f);s.startPoint=p.startPoint,s.endPoint=p.endPoint}Bc.drawRels(t,e,_r,a)},"drawRels");function LY(t,e,r,n,a){let i=new nEe(a);i.data.widthLimit=r.data.widthLimit/Math.min(cF,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=M5(_r);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",xl("label",o,u,d,i.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=M5(_r);xl("type",o,u,g,i.data.widthLimit),o.type.Y=l+5,l=o.type.Y+o.type.height}if(o.descr&&o.descr.text!==""){let g=M5(_r);g.fontSize=g.fontSize-2,xl("descr",o,u,g,i.data.widthLimit),o.descr.Y=l+20,l=o.descr.Y+o.descr.height}if(s==0||s%cF===0){let g=r.data.startx+_r.diagramMarginX,m=r.data.stopy+_r.diagramMarginY+l;i.setData(g,g,m,m)}else{let g=i.data.stopx!==i.data.startx?i.data.stopx+_r.diagramMarginX:i.data.startx,m=i.data.starty;i.setData(g,g,m,m)}i.name=o.alias;let h=a.db.getC4ShapeArray(o.alias),f=a.db.getC4ShapeKeys(o.alias);f.length>0&&iEe(i,t,h,f),e=o.alias;let p=a.db.getBoundaries(e);p.length>0&&LY(t,e,i,p,a),o.alias!=="global"&&aEe(t,o,i),r.data.stopy=Math.max(i.data.stopy+_r.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(i.data.stopx+_r.c4ShapeMargin,r.data.stopx),rw=Math.max(rw,r.data.stopx),nw=Math.max(nw,r.data.stopy)}}E(LY,"drawInsideBoundary");var Bbt=E(function(t,e,r,n){_r=Ye().c4;const a=Ye().securityLevel;let i;a==="sandbox"&&(i=At("#i"+e));const s=At(a==="sandbox"?i.nodes()[0].contentDocument.body:"body");let o=n.db;n.db.setWrap(_r.wrap),rEe=o.getC4ShapeInRow(),cF=o.getC4BoundaryInRow(),oe.debug(`C:${JSON.stringify(_r,null,2)}`);const l=a==="sandbox"?s.select(`[id="${e}"]`):At(`[id="${e}"]`);Bc.insertComputerIcon(l,e),Bc.insertDatabaseIcon(l,e),Bc.insertClockIcon(l,e);let u=new nEe(n);u.setData(_r.diagramMarginX,_r.diagramMarginX,_r.diagramMarginY,_r.diagramMarginY),u.data.widthLimit=screen.availWidth,rw=_r.diagramMarginX,nw=_r.diagramMarginY;const d=n.db.getTitle();let h=n.db.getBoundaries("");LY(l,"",u,h,n),Bc.insertArrowHead(l,e),Bc.insertArrowEnd(l,e),Bc.insertArrowCrossHead(l,e),Bc.insertArrowFilledHead(l,e),Pbt(l,n.db.getRels(),n.db.getC4Shape,n,e),u.data.stopx=rw,u.data.stopy=nw;const f=u.data;let g=f.stopy-f.starty+2*_r.diagramMarginY;const v=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),di(l,g,v,_r.useMaxWidth);const y=d?60:0;l.attr("viewBox",f.startx-_r.diagramMarginX+" -"+(_r.diagramMarginY+y)+" "+v+" "+(g+y)),oe.debug("models:",f)},"draw"),fse={drawPersonOrSystemArray:iEe,drawBoundary:aEe,setConf:uF,draw:Bbt},Fbt=E(t=>`.person { stroke: ${t.personBorder}; fill: ${t.personBkg}; } -`,"getStyles"),Fbt=Bbt,$bt={parser:W_t,db:lF,renderer:fse,styles:Fbt,init:E(({c4:t,wrap:e})=>{fse.setConf(t),lF.setWrap(e)},"init")};const zbt=Object.freeze(Object.defineProperty({__proto__:null,diagram:$bt},Symbol.toStringTag,{value:"Module"}));var YT=E(()=>` +`,"getStyles"),$bt=Fbt,zbt={parser:K_t,db:lF,renderer:fse,styles:$bt,init:E(({c4:t,wrap:e})=>{fse.setConf(t),lF.setWrap(e)},"init")};const Ubt=Object.freeze(Object.defineProperty({__proto__:null,diagram:zbt},Symbol.toStringTag,{value:"Module"}));var YT=E(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; @@ -4983,21 +4988,21 @@ Expecting `+ft.join(", ")+", got '"+(this.terminals_[me]||me)+"'":gt="Parse erro stroke: revert; stroke-width: revert; } -`,"getIconStyles"),b2=E((t,e)=>{let r;return e==="sandbox"&&(r=At("#i"+t)),At(e==="sandbox"?r.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`)},"getDiagramElement"),gg=E((t,e,r,n)=>{t.attr("class",r);const{width:a,height:i,x:s,y:o}=Ubt(t,e);di(t,i,a,n);const l=Gbt(s,o,a,i,e);t.attr("viewBox",l),oe.debug(`viewBox configured: ${l} with padding: ${e}`)},"setupViewPortForSVG"),Ubt=E((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"),Gbt=E((t,e,r,n,a)=>`${t-a} ${e-a} ${r} ${n}`,"createViewBox"),qbt="flowchart-",B1,Ybt=(B1=class{constructor(){this.vertexCounter=0,this.config=Ye(),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=sa,this.setAccDescription=ya,this.setDiagramTitle=pa,this.getAccTitle=va,this.getAccDescription=_a,this.getDiagramTitle=la,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,a,i,s,o={},l){if(!e||e.trim().length===0)return;let u;if(l!==void 0){let p;l.includes(` +`,"getIconStyles"),b2=E((t,e)=>{let r;return e==="sandbox"&&(r=At("#i"+t)),At(e==="sandbox"?r.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`)},"getDiagramElement"),gg=E((t,e,r,n)=>{t.attr("class",r);const{width:a,height:i,x:s,y:o}=Gbt(t,e);di(t,i,a,n);const l=qbt(s,o,a,i,e);t.attr("viewBox",l),oe.debug(`viewBox configured: ${l} with padding: ${e}`)},"setupViewPortForSVG"),Gbt=E((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"),qbt=E((t,e,r,n,a)=>`${t-a} ${e-a} ${r} ${n}`,"createViewBox"),Ybt="flowchart-",B1,Hbt=(B1=class{constructor(){this.vertexCounter=0,this.config=Ye(),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=sa,this.setAccDescription=ya,this.setDiagramTitle=pa,this.getAccTitle=va,this.getAccDescription=_a,this.getDiagramTitle=la,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,a,i,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=Hk(p,{schema:Yk})}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&&a!==void 0&&a!==null&&oe.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:qbt+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,r!==void 0?(this.config=Ye(),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),a?.forEach(p=>{f.styles.push(p)}),i?.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(!Ome(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,a){const o={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};oe.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),a&&!this.edges.some(u=>u.id===a))o.id=a,o.isUserDefinedId=!0;else{const u=this.edges.filter(d=>d.start===o.start&&d.end===o.end);u.length===0?o.id=n1(o.start,o.end,{counter:0,prefix:"L"}):o.id=n1(o.start,o.end,{counter:u.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))oe.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=Hk(p,{schema:Yk})}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&&a!==void 0&&a!==null&&oe.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),f={id:e,labelType:"text",domId:Ybt+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,f)),this.vertexCounter++,r!==void 0?(this.config=Ye(),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),a?.forEach(p=>{f.styles.push(p)}),i?.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(!Ome(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,a){const o={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};oe.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),a&&!this.edges.some(u=>u.id===a))o.id=a,o.isUserDefinedId=!0;else{const u=this.edges.filter(d=>d.start===o.start&&d.end===o.end);u.length===0?o.id=n1(o.start,o.end,{counter:0,prefix:"L"}):o.id=n1(o.start,o.end,{counter:u.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))oe.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 a=this.isLinkData(n)?n.id.replace("@",""):void 0;oe.info("addLink",e,r,a);for(const i of e)for(const s of r){const o=i===e[e.length-1],l=s===r[0];o&&l?this.addSingleLink(i,s,n,a):this.addSingleLink(i,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(a=>a?.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(a=>{let i=this.classes.get(a);i===void 0&&(i={id:a,styles:[],textStyles:[]},this.classes.set(a,i)),n?.forEach(s=>{if(/color/.exec(s)){const o=s.replace("fill","bgFill");i.textStyles.push(o)}i.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 a=this.vertices.get(n);a&&a.classes.push(r);const i=this.edges.find(o=>o.id===n);i&&i.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(Ye().securityLevel!=="loose"||r===void 0)return;let a=[];if(typeof n=="string"){a=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s{const s=this.lookUpDomId(e),o=document.querySelector(`[id="${s}"]`);o!==null&&o.addEventListener("click",()=>{Kr.runFunc(r,...a)},!1)}))}setLink(e,r,n){e.split(",").forEach(a=>{const i=this.vertices.get(a);i!==void 0&&(i.link=Kr.formatUrl(r,this.config),i.linkTarget=n)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach(a=>{this.setClickFun(a,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=Q2e();At(e).select("svg").selectAll("g.node").on("mouseover",i=>{const s=At(i.currentTarget),o=s.attr("title");if(o===null)return;const l=i.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(uh.sanitize(o)),s.classed("hover",!0)}).on("mouseout",i=>{r.transition().duration(500).style("opacity",0),At(i.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=Ye(),oa()}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 a=e.text.trim(),i=n.text;e===n&&/\s/.exec(n.text)&&(a=void 0);const o=E(f=>{const p={boolean:{},number:{},string:{}},g=[];let m;return{nodeList:f.filter(function(y){const b=typeof y;return y.stmt&&y.stmt==="dir"?(m=y.value,!1):y.trim()===""?!1:b in p?p[b].hasOwnProperty(y)?!1:p[b][y]=!0:g.includes(y)?!1:g.push(y)}),dir:m}},"uniq")(r.flat()),l=o.nodeList;let u=o.dir;const d=Ye().flowchart??{};if(u=u??(d.inheritDir?this.getDirection()??Ye().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 a=0,i=1;for(;a=0){const o=this.indexNodes2(e,s);if(o.result)return{result:!0,count:i+o.count};i=i+o.count}a=a+1}return{result:!1,count:i}}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 a="normal";return r.includes("=")&&(a="thick"),r.includes(".")&&(a="dotted"),{type:n,stroke:a}}countChar(e,r){const n=r.length;let a=0;for(let i=0;i":a="arrow_point",r.startsWith("<")&&(a="double_"+a,n=n.slice(1));break;case"o":a="arrow_circle",r.startsWith("o")&&(a="double_"+a,n=n.slice(1));break}let i="normal",s=n.length-1;n.startsWith("=")&&(i="thick"),n.startsWith("~")&&(i="invisible");const o=this.countChar(".",n);return o&&(i="dotted",s=o),{type:a,stroke:i,length:s}}destructLink(e,r){const n=this.destructEndLink(e);let a;if(r){if(a=this.destructStartLink(r),a.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=n.type;else{if(a.type!==n.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=n.length,a}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((a,i)=>{this.exists(r,a)||n.push(e.nodes[i])}),{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,a,i,s){const o=n.get(e.id),l=a.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:i.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 a=this.classes.get(n);a?.styles&&(r=[...r,...a.styles??[]].map(i=>i.trim())),a?.textStyles&&(r=[...r,...a.textStyles??[]].map(i=>i.trim()))}return r}getData(){const e=Ye(),r=[],n=[],a=this.getSubGraphs(),i=new Map,s=new Map;for(let u=a.length-1;u>=0;u--){const d=a[u];d.nodes.length>0&&s.set(d.id,!0);for(const h of d.nodes)i.set(h,d.id)}for(let u=a.length-1;u>=0;u--){const d=a[u];r.push({id:d.id,label:d.title,labelStyle:"",labelType:d.labelType,parentId:i.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,i,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:n1(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 sde.flowchart}},E(B1,"FlowDB"),B1),Hbt=E(function(t,e){return e.db.getClasses()},"getClasses"),Vbt=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing state diagram (v2)",e);const{securityLevel:a,flowchart:i,layout:s}=Ye();n.db.setDiagramId(e),oe.debug("Before getData: ");const o=n.db.getData();oe.debug("Data: ",o);const l=b2(e,a),u=n.db.getDirection();o.type=n.type,o.layoutAlgorithm=ST(s),o.layoutAlgorithm==="dagre"&&s==="elk"&&oe.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=i?.nodeSpacing||50,o.rankSpacing=i?.rankSpacing||50,o.markers=["point","circle","cross"],o.diagramId=e,oe.debug("REF1:",o),await n2(o,l);const d=o.config.flowchart?.diagramPadding??8;Kr.insertTitle(l,"flowchartTitleText",i?.titleTopMargin||0,n.db.getDiagramTitle()),gg(l,d,"flowchart",i?.useMaxWidth||!1)},"draw"),Wbt={getClasses:Hbt,draw:Vbt},dF=(function(){var t=E(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],a=[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],i=[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],v=[1,29],y=[1,30],b=[1,31],_=[1,32],S=[1,33],x=[1,45],C=[1,47],T=[1,43],w=[1,48],R=[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],N=[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],U=[1,61],G=[1,63],K=[8,9,11,75,77,78],Y=[1,79],ee=[1,92],X=[1,97],le=[1,96],te=[1,93],ne=[1,89],ae=[1,95],re=[1,91],ge=[1,98],pe=[1,94],Be=[1,99],Le=[1,90],He=[8,9,10,11,40,75,77,78],Re=[8,9,10,11,40,46,75,77,78],xe=[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],$e=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Ce=[44,60,89,102,105,106,109,111,114,115,116],ut=[1,122],Ae=[1,123],je=[1,125],ot=[1,124],lt=[44,60,62,74,89,102,105,106,109,111,114,115,116],ct=[1,134],it=[1,148],ke=[1,149],Qe=[1,150],_e=[1,151],ye=[1,136],q=[1,138],fe=[1,142],j=[1,143],we=[1,144],Te=[1,145],rt=[1,146],Oe=[1,147],Pe=[1,152],Ie=[1,153],Ze=[1,132],ze=[1,133],me=[1,140],ie=[1,135],Ve=[1,139],ve=[1,137],Tt=[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],St=[1,155],nt=[1,157],dt=[8,9,11],ft=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],gt=[1,177],se=[1,173],It=[1,174],bt=[1,178],Et=[1,175],Nt=[1,176],Vr=[77,116,119],Ne=[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],mt=[10,106],_t=[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],Fe=[1,245],pt=[1,247],Dt=[1,249],Zt=[1,251],kr=[1,269],Wr=[8,9,11,106],Xr=[8,9,10,11,60,84,105,106,109,110,111,112],qn={trace:E(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:E(function(kt,xt,$t,wt,Ar,De,Yn){var Me=De.length-1;switch(Ar){case 2:this.$=[];break;case 3:(!Array.isArray(De[Me])||De[Me].length>0)&&De[Me-1].push(De[Me]),this.$=De[Me-1];break;case 4:case 183:this.$=De[Me];break;case 11:wt.setDirection("TB"),this.$="TB";break;case 12:wt.setDirection(De[Me-1]),this.$=De[Me-1];break;case 27:this.$=De[Me-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=wt.addSubGraph(De[Me-6],De[Me-1],De[Me-4]);break;case 34:this.$=wt.addSubGraph(De[Me-3],De[Me-1],De[Me-3]);break;case 35:this.$=wt.addSubGraph(void 0,De[Me-1],void 0);break;case 37:this.$=De[Me].trim(),wt.setAccTitle(this.$);break;case 38:case 39:this.$=De[Me].trim(),wt.setAccDescription(this.$);break;case 43:this.$=De[Me-1]+De[Me];break;case 44:this.$=De[Me];break;case 45:wt.addVertex(De[Me-1][De[Me-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,De[Me]),wt.addLink(De[Me-3].stmt,De[Me-1],De[Me-2]),this.$={stmt:De[Me-1],nodes:De[Me-1].concat(De[Me-3].nodes)};break;case 46:wt.addLink(De[Me-2].stmt,De[Me],De[Me-1]),this.$={stmt:De[Me],nodes:De[Me].concat(De[Me-2].nodes)};break;case 47:wt.addLink(De[Me-3].stmt,De[Me-1],De[Me-2]),this.$={stmt:De[Me-1],nodes:De[Me-1].concat(De[Me-3].nodes)};break;case 48:this.$={stmt:De[Me-1],nodes:De[Me-1]};break;case 49:wt.addVertex(De[Me-1][De[Me-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,De[Me]),this.$={stmt:De[Me-1],nodes:De[Me-1],shapeData:De[Me]};break;case 50:this.$={stmt:De[Me],nodes:De[Me]};break;case 51:this.$=[De[Me]];break;case 52:wt.addVertex(De[Me-5][De[Me-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,De[Me-4]),this.$=De[Me-5].concat(De[Me]);break;case 53:this.$=De[Me-4].concat(De[Me]);break;case 54:this.$=De[Me];break;case 55:this.$=De[Me-2],wt.setClass(De[Me-2],De[Me]);break;case 56:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"square");break;case 57:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"doublecircle");break;case 58:this.$=De[Me-5],wt.addVertex(De[Me-5],De[Me-2],"circle");break;case 59:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"ellipse");break;case 60:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"stadium");break;case 61:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"subroutine");break;case 62:this.$=De[Me-7],wt.addVertex(De[Me-7],De[Me-1],"rect",void 0,void 0,void 0,Object.fromEntries([[De[Me-5],De[Me-3]]]));break;case 63:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"cylinder");break;case 64:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"round");break;case 65:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"diamond");break;case 66:this.$=De[Me-5],wt.addVertex(De[Me-5],De[Me-2],"hexagon");break;case 67:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"odd");break;case 68:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"trapezoid");break;case 69:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"inv_trapezoid");break;case 70:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"lean_right");break;case 71:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"lean_left");break;case 72:this.$=De[Me],wt.addVertex(De[Me]);break;case 73:De[Me-1].text=De[Me],this.$=De[Me-1];break;case 74:case 75:De[Me-2].text=De[Me-1],this.$=De[Me-2];break;case 76:this.$=De[Me];break;case 77:var Hn=wt.destructLink(De[Me],De[Me-2]);this.$={type:Hn.type,stroke:Hn.stroke,length:Hn.length,text:De[Me-1]};break;case 78:var Hn=wt.destructLink(De[Me],De[Me-2]);this.$={type:Hn.type,stroke:Hn.stroke,length:Hn.length,text:De[Me-1],id:De[Me-3]};break;case 79:this.$={text:De[Me],type:"text"};break;case 80:this.$={text:De[Me-1].text+""+De[Me],type:De[Me-1].type};break;case 81:this.$={text:De[Me],type:"string"};break;case 82:this.$={text:De[Me],type:"markdown"};break;case 83:var Hn=wt.destructLink(De[Me]);this.$={type:Hn.type,stroke:Hn.stroke,length:Hn.length};break;case 84:var Hn=wt.destructLink(De[Me]);this.$={type:Hn.type,stroke:Hn.stroke,length:Hn.length,id:De[Me-1]};break;case 85:this.$=De[Me-1];break;case 86:this.$={text:De[Me],type:"text"};break;case 87:this.$={text:De[Me-1].text+""+De[Me],type:De[Me-1].type};break;case 88:this.$={text:De[Me],type:"string"};break;case 89:case 104:this.$={text:De[Me],type:"markdown"};break;case 101:this.$={text:De[Me],type:"text"};break;case 102:this.$={text:De[Me-1].text+""+De[Me],type:De[Me-1].type};break;case 103:this.$={text:De[Me],type:"text"};break;case 105:this.$=De[Me-4],wt.addClass(De[Me-2],De[Me]);break;case 106:this.$=De[Me-4],wt.setClass(De[Me-2],De[Me]);break;case 107:case 115:this.$=De[Me-1],wt.setClickEvent(De[Me-1],De[Me]);break;case 108:case 116:this.$=De[Me-3],wt.setClickEvent(De[Me-3],De[Me-2]),wt.setTooltip(De[Me-3],De[Me]);break;case 109:this.$=De[Me-2],wt.setClickEvent(De[Me-2],De[Me-1],De[Me]);break;case 110:this.$=De[Me-4],wt.setClickEvent(De[Me-4],De[Me-3],De[Me-2]),wt.setTooltip(De[Me-4],De[Me]);break;case 111:this.$=De[Me-2],wt.setLink(De[Me-2],De[Me]);break;case 112:this.$=De[Me-4],wt.setLink(De[Me-4],De[Me-2]),wt.setTooltip(De[Me-4],De[Me]);break;case 113:this.$=De[Me-4],wt.setLink(De[Me-4],De[Me-2],De[Me]);break;case 114:this.$=De[Me-6],wt.setLink(De[Me-6],De[Me-4],De[Me]),wt.setTooltip(De[Me-6],De[Me-2]);break;case 117:this.$=De[Me-1],wt.setLink(De[Me-1],De[Me]);break;case 118:this.$=De[Me-3],wt.setLink(De[Me-3],De[Me-2]),wt.setTooltip(De[Me-3],De[Me]);break;case 119:this.$=De[Me-3],wt.setLink(De[Me-3],De[Me-2],De[Me]);break;case 120:this.$=De[Me-5],wt.setLink(De[Me-5],De[Me-4],De[Me]),wt.setTooltip(De[Me-5],De[Me-2]);break;case 121:this.$=De[Me-4],wt.addVertex(De[Me-2],void 0,void 0,De[Me]);break;case 122:this.$=De[Me-4],wt.updateLink([De[Me-2]],De[Me]);break;case 123:this.$=De[Me-4],wt.updateLink(De[Me-2],De[Me]);break;case 124:this.$=De[Me-8],wt.updateLinkInterpolate([De[Me-6]],De[Me-2]),wt.updateLink([De[Me-6]],De[Me]);break;case 125:this.$=De[Me-8],wt.updateLinkInterpolate(De[Me-6],De[Me-2]),wt.updateLink(De[Me-6],De[Me]);break;case 126:this.$=De[Me-6],wt.updateLinkInterpolate([De[Me-4]],De[Me]);break;case 127:this.$=De[Me-6],wt.updateLinkInterpolate(De[Me-4],De[Me]);break;case 128:case 130:this.$=[De[Me]];break;case 129:case 131:De[Me-2].push(De[Me]),this.$=De[Me-2];break;case 133:this.$=De[Me-1]+De[Me];break;case 181:this.$=De[Me];break;case 182:this.$=De[Me-1]+""+De[Me];break;case 184:this.$=De[Me-1]+""+De[Me];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(a,i,{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:v,85:y,86:b,87:_,88:S,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:N},t(a,[2,9]),t(a,[2,10]),t(a,[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:U,11:G,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:B,9:U,11:G,21:68},{8:B,9:U,11:G,21:69},{8:B,9:U,11:G,21:70},{8:B,9:U,11:G,21:71},{8:B,9:U,11:G,21:72},{8:B,9:U,10:[1,73],11:G,21:74},t(z,[2,36]),{35:[1,75]},{37:[1,76]},t(z,[2,39]),t(K,[2,50],{18:77,39:78,10:P,40:Y}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:ee,44:X,60:le,80:[1,87],89:te,95:[1,84],97:[1,85],101:86,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le,120:88},t(z,[2,185]),t(z,[2,186]),t(z,[2,187]),t(z,[2,188]),t(z,[2,189]),t(He,[2,51]),t(He,[2,54],{46:[1,100]}),t(Re,[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:R,111:O,114:M,115:$,116:F}),t(xe,[2,181]),t(xe,[2,142]),t(xe,[2,143]),t(xe,[2,144]),t(xe,[2,145]),t(xe,[2,146]),t(xe,[2,147]),t(xe,[2,148]),t(xe,[2,149]),t(xe,[2,150]),t(xe,[2,151]),t(xe,[2,152]),t(a,[2,12]),t(a,[2,18]),t(a,[2,19]),{9:[1,114]},t($e,[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:R,111:O,113:42,114:M,115:$,116:F},t(z,[2,40]),t(z,[2,41]),t(z,[2,42]),t(Ce,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ut,81:Ae,116:je,119:ot},{75:[1,126],77:[1,127]},t(lt,[2,83]),t(z,[2,28]),t(z,[2,29]),t(z,[2,30]),t(z,[2,31]),t(z,[2,32]),{10:ct,12:it,14:ke,27:Qe,28:128,32:_e,44:ye,60:q,75:fe,80:[1,130],81:[1,131],83:141,84:j,85:we,86:Te,87:rt,88:Oe,89:Pe,90:Ie,91:129,105:Ze,109:ze,111:me,114:ie,115:Ve,116:ve},t(Tt,i,{5:154}),t(z,[2,37]),t(z,[2,38]),t(K,[2,48],{44:St}),t(K,[2,49],{18:156,10:P,40:nt}),t(He,[2,44]),{44:g,47:158,60:m,89:x,102:C,105:T,106:w,109:R,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:R,111:O,113:42,114:M,115:$,116:F},{44:g,47:163,60:m,89:x,102:C,105:T,106:w,109:R,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:ee,44:X,60:le,89:te,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le}),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:R,111:O,113:42,114:M,115:$,116:F},{30:171,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:179,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:181,50:[1,180],67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:182,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:183,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:184,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{109:[1,185]},{30:186,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:187,65:[1,188],67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:189,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:190,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:191,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},t(xe,[2,182]),t(a,[2,20]),t($e,[2,25]),t(K,[2,46],{39:192,18:193,10:P,40:Y}),t(Ce,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{77:[1,197],79:198,116:je,119:ot},t(Vr,[2,79]),t(Vr,[2,81]),t(Vr,[2,82]),t(Vr,[2,168]),t(Vr,[2,169]),{76:199,79:121,80:ut,81:Ae,116:je,119:ot},t(lt,[2,84]),{8:B,9:U,10:ct,11:G,12:it,14:ke,21:201,27:Qe,29:[1,200],32:_e,44:ye,60:q,75:fe,83:141,84:j,85:we,86:Te,87:rt,88:Oe,89:Pe,90:Ie,91:202,105:Ze,109:ze,111:me,114:ie,115:Ve,116:ve},t(Ne,[2,101]),t(Ne,[2,103]),t(Ne,[2,104]),t(Ne,[2,157]),t(Ne,[2,158]),t(Ne,[2,159]),t(Ne,[2,160]),t(Ne,[2,161]),t(Ne,[2,162]),t(Ne,[2,163]),t(Ne,[2,164]),t(Ne,[2,165]),t(Ne,[2,166]),t(Ne,[2,167]),t(Ne,[2,90]),t(Ne,[2,91]),t(Ne,[2,92]),t(Ne,[2,93]),t(Ne,[2,94]),t(Ne,[2,95]),t(Ne,[2,96]),t(Ne,[2,97]),t(Ne,[2,98]),t(Ne,[2,99]),t(Ne,[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:v,85:y,86:b,87:_,88:S,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:N},{10:P,18:204},{44:[1,205]},t(He,[2,43]),{10:[1,206],44:g,60:m,89:x,102:C,105:T,106:w,109:R,111:O,113:113,114:M,115:$,116:F},{10:[1,207]},{10:[1,208],106:[1,209]},t(mt,[2,128]),{10:[1,210],44:g,60:m,89:x,102:C,105:T,106:w,109:R,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:R,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(He,[2,55],{113:113,44:g,60:m,89:x,102:C,105:T,106:w,109:R,111:O,114:M,115:$,116:F}),{31:[1,218],67:gt,82:219,116:bt,117:Et,118:Nt},t(_t,[2,86]),t(_t,[2,88]),t(_t,[2,89]),t(_t,[2,153]),t(_t,[2,154]),t(_t,[2,155]),t(_t,[2,156]),{49:[1,220],67:gt,82:219,116:bt,117:Et,118:Nt},{30:221,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{51:[1,222],67:gt,82:219,116:bt,117:Et,118:Nt},{53:[1,223],67:gt,82:219,116:bt,117:Et,118:Nt},{55:[1,224],67:gt,82:219,116:bt,117:Et,118:Nt},{57:[1,225],67:gt,82:219,116:bt,117:Et,118:Nt},{60:[1,226]},{64:[1,227],67:gt,82:219,116:bt,117:Et,118:Nt},{66:[1,228],67:gt,82:219,116:bt,117:Et,118:Nt},{30:229,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{31:[1,230],67:gt,82:219,116:bt,117:Et,118:Nt},{67:gt,69:[1,231],71:[1,232],82:219,116:bt,117:Et,118:Nt},{67:gt,69:[1,234],71:[1,233],82:219,116:bt,117:Et,118:Nt},t(K,[2,45],{18:156,10:P,40:nt}),t(K,[2,47],{44:St}),t(Ce,[2,75]),t(Ce,[2,74]),{62:[1,235],67:gt,82:219,116:bt,117:Et,118:Nt},t(Ce,[2,77]),t(Vr,[2,80]),{77:[1,236],79:198,116:je,119:ot},{30:237,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},t(Tt,i,{5:238}),t(Ne,[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:R,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:Fe,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:252,104:[1,253],105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:254,104:[1,255],105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},{105:[1,256]},{10:Ot,60:Qt,84:br,92:257,105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},{44:g,47:258,60:m,89:x,102:C,105:T,106:w,109:R,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(Re,[2,56]),t(_t,[2,87]),t(Re,[2,57]),{51:[1,263],67:gt,82:219,116:bt,117:Et,118:Nt},t(Re,[2,64]),t(Re,[2,59]),t(Re,[2,60]),t(Re,[2,61]),{109:[1,264]},t(Re,[2,63]),t(Re,[2,65]),{66:[1,265],67:gt,82:219,116:bt,117:Et,118:Nt},t(Re,[2,67]),t(Re,[2,68]),t(Re,[2,70]),t(Re,[2,69]),t(Re,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(Ce,[2,78]),{31:[1,266],67:gt,82:219,116:bt,117:Et,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:v,85:y,86:b,87:_,88:S,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:N},t(He,[2,53]),{43:268,44:g,45:40,47:41,60:m,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F},t(dt,[2,121],{106:kr}),t(Wr,[2,130],{108:270,10:Ot,60:Qt,84:br,105:Ct,109:Fe,110:pt,111:Dt,112:Zt}),t(Xr,[2,132]),t(Xr,[2,134]),t(Xr,[2,135]),t(Xr,[2,136]),t(Xr,[2,137]),t(Xr,[2,138]),t(Xr,[2,139]),t(Xr,[2,140]),t(Xr,[2,141]),t(dt,[2,122],{106:kr}),{10:[1,271]},t(dt,[2,123],{106:kr}),{10:[1,272]},t(mt,[2,129]),t(dt,[2,105],{106:kr}),t(dt,[2,106],{113:113,44:g,60:m,89:x,102:C,105:T,106:w,109:R,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:U,11:G,21:278},t(z,[2,34]),t(He,[2,52]),{10:Ot,60:Qt,84:br,105:Ct,107:279,108:243,109:Fe,110:pt,111:Dt,112:Zt},t(Xr,[2,133]),{14:ee,44:X,60:le,89:te,101:280,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le,120:88},{14:ee,44:X,60:le,89:te,101:281,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le,120:88},{98:[1,282]},t(dt,[2,120]),t(Re,[2,58]),{30:283,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},t(Re,[2,66]),t(Tt,i,{5:284}),t(Wr,[2,131],{108:270,10:Ot,60:Qt,84:br,105:Ct,109:Fe,110:pt,111:Dt,112:Zt}),t(dt,[2,126],{120:168,10:[1,285],14:ee,44:X,60:le,89:te,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le}),t(dt,[2,127],{120:168,10:[1,286],14:ee,44:X,60:le,89:te,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le}),t(dt,[2,114]),{31:[1,287],67:gt,82:219,116:bt,117:Et,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:v,85:y,86:b,87:_,88:S,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:N},{10:Ot,60:Qt,84:br,92:289,105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:290,105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},t(Re,[2,62]),t(z,[2,33]),t(dt,[2,124],{106:kr}),t(dt,[2,125],{106:kr})],defaultActions:{},parseError:E(function(kt,xt){if(xt.recoverable)this.trace(kt);else{var $t=new Error(kt);throw $t.hash=xt,$t}},"parseError"),parse:E(function(kt){var xt=this,$t=[0],wt=[],Ar=[null],De=[],Yn=this.table,Me="",Hn=0,tf=0,rf=2,O2=1,vx=De.slice.call(arguments,1),Ga=Object.create(this.lexer),xc={yy:{}};for(var Fu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Fu)&&(xc.yy[Fu]=this.yy[Fu]);Ga.setInput(kt,xc.yy),xc.yy.lexer=Ga,xc.yy.parser=this,typeof Ga.yylloc>"u"&&(Ga.yylloc={});var fd=Ga.yylloc;De.push(fd);var io=Ga.options&&Ga.options.ranges;typeof xc.yy.parseError=="function"?this.parseError=xc.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function D2(Er){$t.length=$t.length-2*Er,Ar.length=Ar.length-Er,De.length=De.length-Er}E(D2,"popStack");function pd(){var Er;return Er=wt.pop()||Ga.lex()||O2,typeof Er!="number"&&(Er instanceof Array&&(wt=Er,Er=wt.pop()),Er=xt.symbols_[Er]||Er),Er}E(pd,"lex");for(var yr,sl,yn,pn,so={},_s,bs,gd,rr;;){if(sl=$t[$t.length-1],this.defaultActions[sl]?yn=this.defaultActions[sl]:((yr===null||typeof yr>"u")&&(yr=pd()),yn=Yn[sl]&&Yn[sl][yr]),typeof yn>"u"||!yn.length||!yn[0]){var fr="";rr=[];for(_s in Yn[sl])this.terminals_[_s]&&_s>rf&&rr.push("'"+this.terminals_[_s]+"'");Ga.showPosition?fr="Parse error on line "+(Hn+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 a=this.isLinkData(n)?n.id.replace("@",""):void 0;oe.info("addLink",e,r,a);for(const i of e)for(const s of r){const o=i===e[e.length-1],l=s===r[0];o&&l?this.addSingleLink(i,s,n,a):this.addSingleLink(i,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(a=>a?.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(a=>{let i=this.classes.get(a);i===void 0&&(i={id:a,styles:[],textStyles:[]},this.classes.set(a,i)),n?.forEach(s=>{if(/color/.exec(s)){const o=s.replace("fill","bgFill");i.textStyles.push(o)}i.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 a=this.vertices.get(n);a&&a.classes.push(r);const i=this.edges.find(o=>o.id===n);i&&i.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(Ye().securityLevel!=="loose"||r===void 0)return;let a=[];if(typeof n=="string"){a=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s{const s=this.lookUpDomId(e),o=document.querySelector(`[id="${s}"]`);o!==null&&o.addEventListener("click",()=>{Kr.runFunc(r,...a)},!1)}))}setLink(e,r,n){e.split(",").forEach(a=>{const i=this.vertices.get(a);i!==void 0&&(i.link=Kr.formatUrl(r,this.config),i.linkTarget=n)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,n){e.split(",").forEach(a=>{this.setClickFun(a,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=Q2e();At(e).select("svg").selectAll("g.node").on("mouseover",i=>{const s=At(i.currentTarget),o=s.attr("title");if(o===null)return;const l=i.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(uh.sanitize(o)),s.classed("hover",!0)}).on("mouseout",i=>{r.transition().duration(500).style("opacity",0),At(i.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=Ye(),oa()}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 a=e.text.trim(),i=n.text;e===n&&/\s/.exec(n.text)&&(a=void 0);const o=E(f=>{const p={boolean:{},number:{},string:{}},g=[];let m;return{nodeList:f.filter(function(y){const b=typeof y;return y.stmt&&y.stmt==="dir"?(m=y.value,!1):y.trim()===""?!1:b in p?p[b].hasOwnProperty(y)?!1:p[b][y]=!0:g.includes(y)?!1:g.push(y)}),dir:m}},"uniq")(r.flat()),l=o.nodeList;let u=o.dir;const d=Ye().flowchart??{};if(u=u??(d.inheritDir?this.getDirection()??Ye().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 a=0,i=1;for(;a=0){const o=this.indexNodes2(e,s);if(o.result)return{result:!0,count:i+o.count};i=i+o.count}a=a+1}return{result:!1,count:i}}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 a="normal";return r.includes("=")&&(a="thick"),r.includes(".")&&(a="dotted"),{type:n,stroke:a}}countChar(e,r){const n=r.length;let a=0;for(let i=0;i":a="arrow_point",r.startsWith("<")&&(a="double_"+a,n=n.slice(1));break;case"o":a="arrow_circle",r.startsWith("o")&&(a="double_"+a,n=n.slice(1));break}let i="normal",s=n.length-1;n.startsWith("=")&&(i="thick"),n.startsWith("~")&&(i="invisible");const o=this.countChar(".",n);return o&&(i="dotted",s=o),{type:a,stroke:i,length:s}}destructLink(e,r){const n=this.destructEndLink(e);let a;if(r){if(a=this.destructStartLink(r),a.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=n.type;else{if(a.type!==n.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=n.length,a}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((a,i)=>{this.exists(r,a)||n.push(e.nodes[i])}),{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,a,i,s){const o=n.get(e.id),l=a.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:i.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 a=this.classes.get(n);a?.styles&&(r=[...r,...a.styles??[]].map(i=>i.trim())),a?.textStyles&&(r=[...r,...a.textStyles??[]].map(i=>i.trim()))}return r}getData(){const e=Ye(),r=[],n=[],a=this.getSubGraphs(),i=new Map,s=new Map;for(let u=a.length-1;u>=0;u--){const d=a[u];d.nodes.length>0&&s.set(d.id,!0);for(const h of d.nodes)i.set(h,d.id)}for(let u=a.length-1;u>=0;u--){const d=a[u];r.push({id:d.id,label:d.title,labelStyle:"",labelType:d.labelType,parentId:i.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,i,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:n1(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 sde.flowchart}},E(B1,"FlowDB"),B1),Vbt=E(function(t,e){return e.db.getClasses()},"getClasses"),Wbt=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing state diagram (v2)",e);const{securityLevel:a,flowchart:i,layout:s}=Ye();n.db.setDiagramId(e),oe.debug("Before getData: ");const o=n.db.getData();oe.debug("Data: ",o);const l=b2(e,a),u=n.db.getDirection();o.type=n.type,o.layoutAlgorithm=ST(s),o.layoutAlgorithm==="dagre"&&s==="elk"&&oe.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=i?.nodeSpacing||50,o.rankSpacing=i?.rankSpacing||50,o.markers=["point","circle","cross"],o.diagramId=e,oe.debug("REF1:",o),await n2(o,l);const d=o.config.flowchart?.diagramPadding??8;Kr.insertTitle(l,"flowchartTitleText",i?.titleTopMargin||0,n.db.getDiagramTitle()),gg(l,d,"flowchart",i?.useMaxWidth||!1)},"draw"),Kbt={getClasses:Vbt,draw:Wbt},dF=(function(){var t=E(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],a=[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],i=[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],v=[1,29],y=[1,30],b=[1,31],_=[1,32],S=[1,33],x=[1,45],C=[1,47],T=[1,43],w=[1,48],R=[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],N=[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],U=[1,61],G=[1,63],K=[8,9,11,75,77,78],Y=[1,79],ee=[1,92],X=[1,97],le=[1,96],te=[1,93],ne=[1,89],ae=[1,95],re=[1,91],ge=[1,98],pe=[1,94],Be=[1,99],Le=[1,90],He=[8,9,10,11,40,75,77,78],Re=[8,9,10,11,40,46,75,77,78],xe=[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],$e=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Ce=[44,60,89,102,105,106,109,111,114,115,116],ut=[1,122],Ae=[1,123],je=[1,125],ot=[1,124],lt=[44,60,62,74,89,102,105,106,109,111,114,115,116],ct=[1,134],it=[1,148],ke=[1,149],Qe=[1,150],_e=[1,151],ye=[1,136],q=[1,138],fe=[1,142],j=[1,143],we=[1,144],Te=[1,145],rt=[1,146],Oe=[1,147],Pe=[1,152],Ie=[1,153],Ze=[1,132],ze=[1,133],me=[1,140],ie=[1,135],Ve=[1,139],ve=[1,137],Tt=[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],St=[1,155],nt=[1,157],dt=[8,9,11],ft=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],gt=[1,177],se=[1,173],It=[1,174],bt=[1,178],Et=[1,175],Nt=[1,176],Vr=[77,116,119],Ne=[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],mt=[10,106],_t=[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],Fe=[1,245],pt=[1,247],Dt=[1,249],Zt=[1,251],kr=[1,269],Wr=[8,9,11,106],Xr=[8,9,10,11,60,84,105,106,109,110,111,112],qn={trace:E(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:E(function(kt,xt,$t,wt,Ar,De,Yn){var Me=De.length-1;switch(Ar){case 2:this.$=[];break;case 3:(!Array.isArray(De[Me])||De[Me].length>0)&&De[Me-1].push(De[Me]),this.$=De[Me-1];break;case 4:case 183:this.$=De[Me];break;case 11:wt.setDirection("TB"),this.$="TB";break;case 12:wt.setDirection(De[Me-1]),this.$=De[Me-1];break;case 27:this.$=De[Me-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=wt.addSubGraph(De[Me-6],De[Me-1],De[Me-4]);break;case 34:this.$=wt.addSubGraph(De[Me-3],De[Me-1],De[Me-3]);break;case 35:this.$=wt.addSubGraph(void 0,De[Me-1],void 0);break;case 37:this.$=De[Me].trim(),wt.setAccTitle(this.$);break;case 38:case 39:this.$=De[Me].trim(),wt.setAccDescription(this.$);break;case 43:this.$=De[Me-1]+De[Me];break;case 44:this.$=De[Me];break;case 45:wt.addVertex(De[Me-1][De[Me-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,De[Me]),wt.addLink(De[Me-3].stmt,De[Me-1],De[Me-2]),this.$={stmt:De[Me-1],nodes:De[Me-1].concat(De[Me-3].nodes)};break;case 46:wt.addLink(De[Me-2].stmt,De[Me],De[Me-1]),this.$={stmt:De[Me],nodes:De[Me].concat(De[Me-2].nodes)};break;case 47:wt.addLink(De[Me-3].stmt,De[Me-1],De[Me-2]),this.$={stmt:De[Me-1],nodes:De[Me-1].concat(De[Me-3].nodes)};break;case 48:this.$={stmt:De[Me-1],nodes:De[Me-1]};break;case 49:wt.addVertex(De[Me-1][De[Me-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,De[Me]),this.$={stmt:De[Me-1],nodes:De[Me-1],shapeData:De[Me]};break;case 50:this.$={stmt:De[Me],nodes:De[Me]};break;case 51:this.$=[De[Me]];break;case 52:wt.addVertex(De[Me-5][De[Me-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,De[Me-4]),this.$=De[Me-5].concat(De[Me]);break;case 53:this.$=De[Me-4].concat(De[Me]);break;case 54:this.$=De[Me];break;case 55:this.$=De[Me-2],wt.setClass(De[Me-2],De[Me]);break;case 56:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"square");break;case 57:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"doublecircle");break;case 58:this.$=De[Me-5],wt.addVertex(De[Me-5],De[Me-2],"circle");break;case 59:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"ellipse");break;case 60:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"stadium");break;case 61:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"subroutine");break;case 62:this.$=De[Me-7],wt.addVertex(De[Me-7],De[Me-1],"rect",void 0,void 0,void 0,Object.fromEntries([[De[Me-5],De[Me-3]]]));break;case 63:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"cylinder");break;case 64:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"round");break;case 65:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"diamond");break;case 66:this.$=De[Me-5],wt.addVertex(De[Me-5],De[Me-2],"hexagon");break;case 67:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"odd");break;case 68:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"trapezoid");break;case 69:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"inv_trapezoid");break;case 70:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"lean_right");break;case 71:this.$=De[Me-3],wt.addVertex(De[Me-3],De[Me-1],"lean_left");break;case 72:this.$=De[Me],wt.addVertex(De[Me]);break;case 73:De[Me-1].text=De[Me],this.$=De[Me-1];break;case 74:case 75:De[Me-2].text=De[Me-1],this.$=De[Me-2];break;case 76:this.$=De[Me];break;case 77:var Hn=wt.destructLink(De[Me],De[Me-2]);this.$={type:Hn.type,stroke:Hn.stroke,length:Hn.length,text:De[Me-1]};break;case 78:var Hn=wt.destructLink(De[Me],De[Me-2]);this.$={type:Hn.type,stroke:Hn.stroke,length:Hn.length,text:De[Me-1],id:De[Me-3]};break;case 79:this.$={text:De[Me],type:"text"};break;case 80:this.$={text:De[Me-1].text+""+De[Me],type:De[Me-1].type};break;case 81:this.$={text:De[Me],type:"string"};break;case 82:this.$={text:De[Me],type:"markdown"};break;case 83:var Hn=wt.destructLink(De[Me]);this.$={type:Hn.type,stroke:Hn.stroke,length:Hn.length};break;case 84:var Hn=wt.destructLink(De[Me]);this.$={type:Hn.type,stroke:Hn.stroke,length:Hn.length,id:De[Me-1]};break;case 85:this.$=De[Me-1];break;case 86:this.$={text:De[Me],type:"text"};break;case 87:this.$={text:De[Me-1].text+""+De[Me],type:De[Me-1].type};break;case 88:this.$={text:De[Me],type:"string"};break;case 89:case 104:this.$={text:De[Me],type:"markdown"};break;case 101:this.$={text:De[Me],type:"text"};break;case 102:this.$={text:De[Me-1].text+""+De[Me],type:De[Me-1].type};break;case 103:this.$={text:De[Me],type:"text"};break;case 105:this.$=De[Me-4],wt.addClass(De[Me-2],De[Me]);break;case 106:this.$=De[Me-4],wt.setClass(De[Me-2],De[Me]);break;case 107:case 115:this.$=De[Me-1],wt.setClickEvent(De[Me-1],De[Me]);break;case 108:case 116:this.$=De[Me-3],wt.setClickEvent(De[Me-3],De[Me-2]),wt.setTooltip(De[Me-3],De[Me]);break;case 109:this.$=De[Me-2],wt.setClickEvent(De[Me-2],De[Me-1],De[Me]);break;case 110:this.$=De[Me-4],wt.setClickEvent(De[Me-4],De[Me-3],De[Me-2]),wt.setTooltip(De[Me-4],De[Me]);break;case 111:this.$=De[Me-2],wt.setLink(De[Me-2],De[Me]);break;case 112:this.$=De[Me-4],wt.setLink(De[Me-4],De[Me-2]),wt.setTooltip(De[Me-4],De[Me]);break;case 113:this.$=De[Me-4],wt.setLink(De[Me-4],De[Me-2],De[Me]);break;case 114:this.$=De[Me-6],wt.setLink(De[Me-6],De[Me-4],De[Me]),wt.setTooltip(De[Me-6],De[Me-2]);break;case 117:this.$=De[Me-1],wt.setLink(De[Me-1],De[Me]);break;case 118:this.$=De[Me-3],wt.setLink(De[Me-3],De[Me-2]),wt.setTooltip(De[Me-3],De[Me]);break;case 119:this.$=De[Me-3],wt.setLink(De[Me-3],De[Me-2],De[Me]);break;case 120:this.$=De[Me-5],wt.setLink(De[Me-5],De[Me-4],De[Me]),wt.setTooltip(De[Me-5],De[Me-2]);break;case 121:this.$=De[Me-4],wt.addVertex(De[Me-2],void 0,void 0,De[Me]);break;case 122:this.$=De[Me-4],wt.updateLink([De[Me-2]],De[Me]);break;case 123:this.$=De[Me-4],wt.updateLink(De[Me-2],De[Me]);break;case 124:this.$=De[Me-8],wt.updateLinkInterpolate([De[Me-6]],De[Me-2]),wt.updateLink([De[Me-6]],De[Me]);break;case 125:this.$=De[Me-8],wt.updateLinkInterpolate(De[Me-6],De[Me-2]),wt.updateLink(De[Me-6],De[Me]);break;case 126:this.$=De[Me-6],wt.updateLinkInterpolate([De[Me-4]],De[Me]);break;case 127:this.$=De[Me-6],wt.updateLinkInterpolate(De[Me-4],De[Me]);break;case 128:case 130:this.$=[De[Me]];break;case 129:case 131:De[Me-2].push(De[Me]),this.$=De[Me-2];break;case 133:this.$=De[Me-1]+De[Me];break;case 181:this.$=De[Me];break;case 182:this.$=De[Me-1]+""+De[Me];break;case 184:this.$=De[Me-1]+""+De[Me];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(a,i,{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:v,85:y,86:b,87:_,88:S,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:N},t(a,[2,9]),t(a,[2,10]),t(a,[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:U,11:G,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:B,9:U,11:G,21:68},{8:B,9:U,11:G,21:69},{8:B,9:U,11:G,21:70},{8:B,9:U,11:G,21:71},{8:B,9:U,11:G,21:72},{8:B,9:U,10:[1,73],11:G,21:74},t(z,[2,36]),{35:[1,75]},{37:[1,76]},t(z,[2,39]),t(K,[2,50],{18:77,39:78,10:P,40:Y}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:ee,44:X,60:le,80:[1,87],89:te,95:[1,84],97:[1,85],101:86,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le,120:88},t(z,[2,185]),t(z,[2,186]),t(z,[2,187]),t(z,[2,188]),t(z,[2,189]),t(He,[2,51]),t(He,[2,54],{46:[1,100]}),t(Re,[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:R,111:O,114:M,115:$,116:F}),t(xe,[2,181]),t(xe,[2,142]),t(xe,[2,143]),t(xe,[2,144]),t(xe,[2,145]),t(xe,[2,146]),t(xe,[2,147]),t(xe,[2,148]),t(xe,[2,149]),t(xe,[2,150]),t(xe,[2,151]),t(xe,[2,152]),t(a,[2,12]),t(a,[2,18]),t(a,[2,19]),{9:[1,114]},t($e,[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:R,111:O,113:42,114:M,115:$,116:F},t(z,[2,40]),t(z,[2,41]),t(z,[2,42]),t(Ce,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ut,81:Ae,116:je,119:ot},{75:[1,126],77:[1,127]},t(lt,[2,83]),t(z,[2,28]),t(z,[2,29]),t(z,[2,30]),t(z,[2,31]),t(z,[2,32]),{10:ct,12:it,14:ke,27:Qe,28:128,32:_e,44:ye,60:q,75:fe,80:[1,130],81:[1,131],83:141,84:j,85:we,86:Te,87:rt,88:Oe,89:Pe,90:Ie,91:129,105:Ze,109:ze,111:me,114:ie,115:Ve,116:ve},t(Tt,i,{5:154}),t(z,[2,37]),t(z,[2,38]),t(K,[2,48],{44:St}),t(K,[2,49],{18:156,10:P,40:nt}),t(He,[2,44]),{44:g,47:158,60:m,89:x,102:C,105:T,106:w,109:R,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:R,111:O,113:42,114:M,115:$,116:F},{44:g,47:163,60:m,89:x,102:C,105:T,106:w,109:R,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:ee,44:X,60:le,89:te,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le}),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:R,111:O,113:42,114:M,115:$,116:F},{30:171,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:179,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:181,50:[1,180],67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:182,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:183,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:184,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{109:[1,185]},{30:186,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:187,65:[1,188],67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:189,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:190,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{30:191,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},t(xe,[2,182]),t(a,[2,20]),t($e,[2,25]),t(K,[2,46],{39:192,18:193,10:P,40:Y}),t(Ce,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{77:[1,197],79:198,116:je,119:ot},t(Vr,[2,79]),t(Vr,[2,81]),t(Vr,[2,82]),t(Vr,[2,168]),t(Vr,[2,169]),{76:199,79:121,80:ut,81:Ae,116:je,119:ot},t(lt,[2,84]),{8:B,9:U,10:ct,11:G,12:it,14:ke,21:201,27:Qe,29:[1,200],32:_e,44:ye,60:q,75:fe,83:141,84:j,85:we,86:Te,87:rt,88:Oe,89:Pe,90:Ie,91:202,105:Ze,109:ze,111:me,114:ie,115:Ve,116:ve},t(Ne,[2,101]),t(Ne,[2,103]),t(Ne,[2,104]),t(Ne,[2,157]),t(Ne,[2,158]),t(Ne,[2,159]),t(Ne,[2,160]),t(Ne,[2,161]),t(Ne,[2,162]),t(Ne,[2,163]),t(Ne,[2,164]),t(Ne,[2,165]),t(Ne,[2,166]),t(Ne,[2,167]),t(Ne,[2,90]),t(Ne,[2,91]),t(Ne,[2,92]),t(Ne,[2,93]),t(Ne,[2,94]),t(Ne,[2,95]),t(Ne,[2,96]),t(Ne,[2,97]),t(Ne,[2,98]),t(Ne,[2,99]),t(Ne,[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:v,85:y,86:b,87:_,88:S,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:N},{10:P,18:204},{44:[1,205]},t(He,[2,43]),{10:[1,206],44:g,60:m,89:x,102:C,105:T,106:w,109:R,111:O,113:113,114:M,115:$,116:F},{10:[1,207]},{10:[1,208],106:[1,209]},t(mt,[2,128]),{10:[1,210],44:g,60:m,89:x,102:C,105:T,106:w,109:R,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:R,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(He,[2,55],{113:113,44:g,60:m,89:x,102:C,105:T,106:w,109:R,111:O,114:M,115:$,116:F}),{31:[1,218],67:gt,82:219,116:bt,117:Et,118:Nt},t(_t,[2,86]),t(_t,[2,88]),t(_t,[2,89]),t(_t,[2,153]),t(_t,[2,154]),t(_t,[2,155]),t(_t,[2,156]),{49:[1,220],67:gt,82:219,116:bt,117:Et,118:Nt},{30:221,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{51:[1,222],67:gt,82:219,116:bt,117:Et,118:Nt},{53:[1,223],67:gt,82:219,116:bt,117:Et,118:Nt},{55:[1,224],67:gt,82:219,116:bt,117:Et,118:Nt},{57:[1,225],67:gt,82:219,116:bt,117:Et,118:Nt},{60:[1,226]},{64:[1,227],67:gt,82:219,116:bt,117:Et,118:Nt},{66:[1,228],67:gt,82:219,116:bt,117:Et,118:Nt},{30:229,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},{31:[1,230],67:gt,82:219,116:bt,117:Et,118:Nt},{67:gt,69:[1,231],71:[1,232],82:219,116:bt,117:Et,118:Nt},{67:gt,69:[1,234],71:[1,233],82:219,116:bt,117:Et,118:Nt},t(K,[2,45],{18:156,10:P,40:nt}),t(K,[2,47],{44:St}),t(Ce,[2,75]),t(Ce,[2,74]),{62:[1,235],67:gt,82:219,116:bt,117:Et,118:Nt},t(Ce,[2,77]),t(Vr,[2,80]),{77:[1,236],79:198,116:je,119:ot},{30:237,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},t(Tt,i,{5:238}),t(Ne,[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:R,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:Fe,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:252,104:[1,253],105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:254,104:[1,255],105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},{105:[1,256]},{10:Ot,60:Qt,84:br,92:257,105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},{44:g,47:258,60:m,89:x,102:C,105:T,106:w,109:R,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(Re,[2,56]),t(_t,[2,87]),t(Re,[2,57]),{51:[1,263],67:gt,82:219,116:bt,117:Et,118:Nt},t(Re,[2,64]),t(Re,[2,59]),t(Re,[2,60]),t(Re,[2,61]),{109:[1,264]},t(Re,[2,63]),t(Re,[2,65]),{66:[1,265],67:gt,82:219,116:bt,117:Et,118:Nt},t(Re,[2,67]),t(Re,[2,68]),t(Re,[2,70]),t(Re,[2,69]),t(Re,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(Ce,[2,78]),{31:[1,266],67:gt,82:219,116:bt,117:Et,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:v,85:y,86:b,87:_,88:S,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:N},t(He,[2,53]),{43:268,44:g,45:40,47:41,60:m,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F},t(dt,[2,121],{106:kr}),t(Wr,[2,130],{108:270,10:Ot,60:Qt,84:br,105:Ct,109:Fe,110:pt,111:Dt,112:Zt}),t(Xr,[2,132]),t(Xr,[2,134]),t(Xr,[2,135]),t(Xr,[2,136]),t(Xr,[2,137]),t(Xr,[2,138]),t(Xr,[2,139]),t(Xr,[2,140]),t(Xr,[2,141]),t(dt,[2,122],{106:kr}),{10:[1,271]},t(dt,[2,123],{106:kr}),{10:[1,272]},t(mt,[2,129]),t(dt,[2,105],{106:kr}),t(dt,[2,106],{113:113,44:g,60:m,89:x,102:C,105:T,106:w,109:R,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:U,11:G,21:278},t(z,[2,34]),t(He,[2,52]),{10:Ot,60:Qt,84:br,105:Ct,107:279,108:243,109:Fe,110:pt,111:Dt,112:Zt},t(Xr,[2,133]),{14:ee,44:X,60:le,89:te,101:280,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le,120:88},{14:ee,44:X,60:le,89:te,101:281,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le,120:88},{98:[1,282]},t(dt,[2,120]),t(Re,[2,58]),{30:283,67:gt,80:se,81:It,82:172,116:bt,117:Et,118:Nt},t(Re,[2,66]),t(Tt,i,{5:284}),t(Wr,[2,131],{108:270,10:Ot,60:Qt,84:br,105:Ct,109:Fe,110:pt,111:Dt,112:Zt}),t(dt,[2,126],{120:168,10:[1,285],14:ee,44:X,60:le,89:te,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le}),t(dt,[2,127],{120:168,10:[1,286],14:ee,44:X,60:le,89:te,105:ne,106:ae,109:re,111:ge,114:pe,115:Be,116:Le}),t(dt,[2,114]),{31:[1,287],67:gt,82:219,116:bt,117:Et,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:v,85:y,86:b,87:_,88:S,89:x,102:C,105:T,106:w,109:R,111:O,113:42,114:M,115:$,116:F,121:A,122:I,123:D,124:L,125:N},{10:Ot,60:Qt,84:br,92:289,105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},{10:Ot,60:Qt,84:br,92:290,105:Ct,107:242,108:243,109:Fe,110:pt,111:Dt,112:Zt},t(Re,[2,62]),t(z,[2,33]),t(dt,[2,124],{106:kr}),t(dt,[2,125],{106:kr})],defaultActions:{},parseError:E(function(kt,xt){if(xt.recoverable)this.trace(kt);else{var $t=new Error(kt);throw $t.hash=xt,$t}},"parseError"),parse:E(function(kt){var xt=this,$t=[0],wt=[],Ar=[null],De=[],Yn=this.table,Me="",Hn=0,tf=0,rf=2,O2=1,vx=De.slice.call(arguments,1),Ga=Object.create(this.lexer),xc={yy:{}};for(var Fu in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Fu)&&(xc.yy[Fu]=this.yy[Fu]);Ga.setInput(kt,xc.yy),xc.yy.lexer=Ga,xc.yy.parser=this,typeof Ga.yylloc>"u"&&(Ga.yylloc={});var fd=Ga.yylloc;De.push(fd);var io=Ga.options&&Ga.options.ranges;typeof xc.yy.parseError=="function"?this.parseError=xc.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function D2(Er){$t.length=$t.length-2*Er,Ar.length=Ar.length-Er,De.length=De.length-Er}E(D2,"popStack");function pd(){var Er;return Er=wt.pop()||Ga.lex()||O2,typeof Er!="number"&&(Er instanceof Array&&(wt=Er,Er=wt.pop()),Er=xt.symbols_[Er]||Er),Er}E(pd,"lex");for(var yr,sl,yn,pn,so={},_s,bs,gd,rr;;){if(sl=$t[$t.length-1],this.defaultActions[sl]?yn=this.defaultActions[sl]:((yr===null||typeof yr>"u")&&(yr=pd()),yn=Yn[sl]&&Yn[sl][yr]),typeof yn>"u"||!yn.length||!yn[0]){var fr="";rr=[];for(_s in Yn[sl])this.terminals_[_s]&&_s>rf&&rr.push("'"+this.terminals_[_s]+"'");Ga.showPosition?fr="Parse error on line "+(Hn+1)+`: `+Ga.showPosition()+` Expecting `+rr.join(", ")+", got '"+(this.terminals_[yr]||yr)+"'":fr="Parse error on line "+(Hn+1)+": Unexpected "+(yr==O2?"end of input":"'"+(this.terminals_[yr]||yr)+"'"),this.parseError(fr,{text:Ga.match,token:this.terminals_[yr]||yr,line:Ga.yylineno,loc:fd,expected:rr})}if(yn[0]instanceof Array&&yn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sl+", token: "+yr);switch(yn[0]){case 1:$t.push(yr),Ar.push(Ga.yytext),De.push(Ga.yylloc),$t.push(yn[1]),yr=null,tf=Ga.yyleng,Me=Ga.yytext,Hn=Ga.yylineno,fd=Ga.yylloc;break;case 2:if(bs=this.productions_[yn[1]][1],so.$=Ar[Ar.length-bs],so._$={first_line:De[De.length-(bs||1)].first_line,last_line:De[De.length-1].last_line,first_column:De[De.length-(bs||1)].first_column,last_column:De[De.length-1].last_column},io&&(so._$.range=[De[De.length-(bs||1)].range[0],De[De.length-1].range[1]]),pn=this.performAction.apply(so,[Me,tf,Hn,xc.yy,yn[1],Ar,De].concat(vx)),typeof pn<"u")return pn;bs&&($t=$t.slice(0,-1*bs*2),Ar=Ar.slice(0,-1*bs),De=De.slice(0,-1*bs)),$t.push(this.productions_[yn[1]][0]),Ar.push(so.$),De.push(so._$),gd=Yn[$t[$t.length-2]][$t[$t.length-1]],$t.push(gd);break;case 3:return!0}}return!0},"parse")},ja=(function(){var Xt={EOF:1,parseError:E(function(xt,$t){if(this.yy.parser)this.yy.parser.parseError(xt,$t);else throw new Error(xt)},"parseError"),setInput:E(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:E(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:E(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 Ar=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=[Ar[0],Ar[0]+this.yyleng-xt]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(kt){this.unput(this.match.slice(kt))},"less"),pastInput:E(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:E(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:E(function(){var kt=this.pastInput(),xt=new Array(kt.length+1).join("-");return kt+this.upcomingInput()+` `+xt+"^"},"showPosition"),test_match:E(function(kt,xt){var $t,wt,Ar;if(this.options.backtrack_lexer&&(Ar={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&&(Ar.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 De in Ar)this[De]=Ar[De];return!1}return!1},"test_match"),next:E(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 Ar=this._currentRules(),De=0;Dext[0].length)){if(xt=$t,wt=De,this.options.backtrack_lexer){if(kt=this.test_match($t,Ar[De]),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,Ar[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:E(function(){var xt=this.next();return xt||this.lex()},"lex"),begin:E(function(xt){this.conditionStack.push(xt)},"begin"),popState:E(function(){var xt=this.conditionStack.length-1;return xt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(xt){return xt=this.conditionStack.length-1-Math.abs(xt||0),xt>=0?this.conditionStack[xt]:"INITIAL"},"topState"),pushState:E(function(xt){this.begin(xt)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:E(function(xt,$t,wt,Ar){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 De=/\n\s*/g;return $t.yytext=$t.yytext.replace(De,"
"),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})();qn.lexer=ja;function Mt(){this.yy={}}return E(Mt,"Parser"),Mt.prototype=qn,qn.Parser=Mt,new Mt})();dF.parser=dF;var sEe=dF,oEe=Object.assign({},sEe);oEe.parse=t=>{const e=t.replace(/}\s*\n/g,`} -`);return sEe.parse(e)};var Kbt=oEe,Xbt=E((t,e)=>{const r=FU,n=r(t,"r"),a=r(t,"g"),i=r(t,"b");return rc(n,a,i,e)},"fade"),jbt=E(t=>`.label { +`);return sEe.parse(e)};var Xbt=oEe,jbt=E((t,e)=>{const r=FU,n=r(t,"r"),a=r(t,"g"),i=r(t,"b");return rc(n,a,i,e)},"fade"),Qbt=E(t=>`.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor||t.textColor}; } @@ -5084,7 +5089,7 @@ Expecting `+rr.join(", ")+", got '"+(this.terminals_[yr]||yr)+"'":fr="Parse erro /* For html labels only */ .labelBkg { - background-color: ${Xbt(t.edgeLabelBackground,.5)}; + background-color: ${jbt(t.edgeLabelBackground,.5)}; // background-color: } @@ -5144,12 +5149,12 @@ Expecting `+rr.join(", ")+", got '"+(this.terminals_[yr]||yr)+"'":fr="Parse erro text-align: center; } ${YT()} -`,"getStyles"),Qbt=jbt,Zbt={parser:Kbt,get db(){return new Ybt},renderer:Wbt,styles:Qbt,init:E(t=>{t.flowchart||(t.flowchart={}),t.layout&&lP({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,lP({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")};const MY=Object.freeze(Object.defineProperty({__proto__:null,diagram:Zbt},Symbol.toStringTag,{value:"Module"}));var hF=(function(){var t=E(function(Be,Le,He,Re){for(He=He||{},Re=Be.length;Re--;He[Be[Re]]=Le);return He},"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],a=[1,12],i=[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],v=[1,21],y=[1,22],b=[1,36],_=[1,37],S=[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],R=[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],N=[65,66,67,68,69],P=[1,84],z=[1,83],B=[1,81],U=[1,82],G=[6,10,42,47],K=[6,10,13,41,42,47,48,49],Y=[1,92],ee=[1,91],X=[1,90],le=[19,58],te=[1,101],ne=[1,100],ae=[19,58,60,62],re={trace:E(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:E(function(Le,He,Re,xe,$e,Ce,ut){var Ae=Ce.length-1;switch($e){case 1:break;case 2:this.$=[];break;case 3:Ce[Ae-1].push(Ce[Ae]),this.$=Ce[Ae-1];break;case 4:case 5:this.$=Ce[Ae];break;case 6:case 7:this.$=[];break;case 8:xe.addEntity(Ce[Ae-4]),xe.addEntity(Ce[Ae-2]),xe.addRelationship(Ce[Ae-4],Ce[Ae],Ce[Ae-2],Ce[Ae-3]);break;case 9:xe.addEntity(Ce[Ae-8]),xe.addEntity(Ce[Ae-4]),xe.addRelationship(Ce[Ae-8],Ce[Ae],Ce[Ae-4],Ce[Ae-5]),xe.setClass([Ce[Ae-8]],Ce[Ae-6]),xe.setClass([Ce[Ae-4]],Ce[Ae-2]);break;case 10:xe.addEntity(Ce[Ae-6]),xe.addEntity(Ce[Ae-2]),xe.addRelationship(Ce[Ae-6],Ce[Ae],Ce[Ae-2],Ce[Ae-3]),xe.setClass([Ce[Ae-6]],Ce[Ae-4]);break;case 11:xe.addEntity(Ce[Ae-6]),xe.addEntity(Ce[Ae-4]),xe.addRelationship(Ce[Ae-6],Ce[Ae],Ce[Ae-4],Ce[Ae-5]),xe.setClass([Ce[Ae-4]],Ce[Ae-2]);break;case 12:xe.addEntity(Ce[Ae-3]),xe.addAttributes(Ce[Ae-3],Ce[Ae-1]);break;case 13:xe.addEntity(Ce[Ae-5]),xe.addAttributes(Ce[Ae-5],Ce[Ae-1]),xe.setClass([Ce[Ae-5]],Ce[Ae-3]);break;case 14:xe.addEntity(Ce[Ae-2]);break;case 15:xe.addEntity(Ce[Ae-4]),xe.setClass([Ce[Ae-4]],Ce[Ae-2]);break;case 16:xe.addEntity(Ce[Ae]);break;case 17:xe.addEntity(Ce[Ae-2]),xe.setClass([Ce[Ae-2]],Ce[Ae]);break;case 18:xe.addEntity(Ce[Ae-6],Ce[Ae-4]),xe.addAttributes(Ce[Ae-6],Ce[Ae-1]);break;case 19:xe.addEntity(Ce[Ae-8],Ce[Ae-6]),xe.addAttributes(Ce[Ae-8],Ce[Ae-1]),xe.setClass([Ce[Ae-8]],Ce[Ae-3]);break;case 20:xe.addEntity(Ce[Ae-5],Ce[Ae-3]);break;case 21:xe.addEntity(Ce[Ae-7],Ce[Ae-5]),xe.setClass([Ce[Ae-7]],Ce[Ae-2]);break;case 22:xe.addEntity(Ce[Ae-3],Ce[Ae-1]);break;case 23:xe.addEntity(Ce[Ae-5],Ce[Ae-3]),xe.setClass([Ce[Ae-5]],Ce[Ae]);break;case 24:case 25:this.$=Ce[Ae].trim(),xe.setAccTitle(this.$);break;case 26:case 27:this.$=Ce[Ae].trim(),xe.setAccDescription(this.$);break;case 32:xe.setDirection("TB");break;case 33:xe.setDirection("BT");break;case 34:xe.setDirection("RL");break;case 35:xe.setDirection("LR");break;case 36:this.$=Ce[Ae-3],xe.addClass(Ce[Ae-2],Ce[Ae-1]);break;case 37:case 38:case 59:case 67:this.$=[Ce[Ae]];break;case 39:case 40:this.$=Ce[Ae-2].concat([Ce[Ae]]);break;case 41:this.$=Ce[Ae-2],xe.setClass(Ce[Ae-1],Ce[Ae]);break;case 42:this.$=Ce[Ae-3],xe.addCssStyles(Ce[Ae-2],Ce[Ae-1]);break;case 43:this.$=[Ce[Ae]];break;case 44:Ce[Ae-2].push(Ce[Ae]),this.$=Ce[Ae-2];break;case 46:this.$=Ce[Ae-1]+Ce[Ae];break;case 54:case 79:case 80:this.$=Ce[Ae].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=Ce[Ae];break;case 60:Ce[Ae].push(Ce[Ae-1]),this.$=Ce[Ae];break;case 61:this.$={type:Ce[Ae-1],name:Ce[Ae]};break;case 62:this.$={type:Ce[Ae-2],name:Ce[Ae-1],keys:Ce[Ae]};break;case 63:this.$={type:Ce[Ae-2],name:Ce[Ae-1],comment:Ce[Ae]};break;case 64:this.$={type:Ce[Ae-3],name:Ce[Ae-2],keys:Ce[Ae-1],comment:Ce[Ae]};break;case 65:case 66:case 69:this.$=Ce[Ae];break;case 68:Ce[Ae-2].push(Ce[Ae]),this.$=Ce[Ae-2];break;case 70:this.$=Ce[Ae].replace(/"/g,"");break;case 71:this.$={cardA:Ce[Ae],relType:Ce[Ae-1],cardB:Ce[Ae-2]};break;case 72:this.$=xe.Cardinality.ZERO_OR_ONE;break;case 73:this.$=xe.Cardinality.ZERO_OR_MORE;break;case 74:this.$=xe.Cardinality.ONE_OR_MORE;break;case 75:this.$=xe.Cardinality.ONLY_ONE;break;case 76:this.$=xe.Cardinality.MD_PARENT;break;case 77:this.$=xe.Identification.NON_IDENTIFYING;break;case 78:this.$=xe.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:a,28:i,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:v,52:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:r,24:n,26:a,28:i,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:v,52:y},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:S,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:R},{16:47,40:w,41:R},{16:48,40:w,41:R},t(e,[2,4]),{11:49,40:h,48:g,50:m,51:v,52:y},{16:50,40:w,41:R},{18:51,19:[1,52],53:53,54:54,58:O},{11:56,40:h,48:g,50:m,51:v,52:y},{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:R,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:S,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:S,68:x,69:C},t(N,[2,77]),t(N,[2,78]),{6:P,10:z,39:80,42:B,47:U},{40:[1,85],41:[1,86]},t(G,[2,43],{46:87,13:$,41:F,48:I,49:D}),t(K,[2,45]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(e,[2,41],{42:A}),{6:P,10:z,39:88,42:B,47:U},{14:89,40:Y,50:ee,72:X},{16:93,40:w,41:R},{11:94,40:h,48:g,50:m,51:v,52:y},{18:95,19:[1,96],53:53,54:54,58:O},t(e,[2,12]),{19:[2,60]},t(le,[2,61],{56:97,57:98,59:99,61:te,62:ne}),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(K,[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(le,[2,62],{57:109,60:[1,110],62:ne}),t(le,[2,63]),t(ae,[2,67]),t(le,[2,70]),t(ae,[2,69]),{18:111,19:[1,112],53:53,54:54,58:O},{16:113,40:w,41:R},t(G,[2,44],{46:87,13:$,41:F,48:I,49:D}),{14:114,40:Y,50:ee,72:X},{16:115,40:w,41:R},{14:116,40:Y,50:ee,72:X},t(e,[2,13]),t(le,[2,64]),{59:117,61:te},{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:Y,50:ee,72:X},{19:[1,124]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:E(function(Le,He){if(He.recoverable)this.trace(Le);else{var Re=new Error(Le);throw Re.hash=He,Re}},"parseError"),parse:E(function(Le){var He=this,Re=[0],xe=[],$e=[null],Ce=[],ut=this.table,Ae="",je=0,ot=0,lt=2,ct=1,it=Ce.slice.call(arguments,1),ke=Object.create(this.lexer),Qe={yy:{}};for(var _e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_e)&&(Qe.yy[_e]=this.yy[_e]);ke.setInput(Le,Qe.yy),Qe.yy.lexer=ke,Qe.yy.parser=this,typeof ke.yylloc>"u"&&(ke.yylloc={});var ye=ke.yylloc;Ce.push(ye);var q=ke.options&&ke.options.ranges;typeof Qe.yy.parseError=="function"?this.parseError=Qe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(Ve){Re.length=Re.length-2*Ve,$e.length=$e.length-Ve,Ce.length=Ce.length-Ve}E(fe,"popStack");function j(){var Ve;return Ve=xe.pop()||ke.lex()||ct,typeof Ve!="number"&&(Ve instanceof Array&&(xe=Ve,Ve=xe.pop()),Ve=He.symbols_[Ve]||Ve),Ve}E(j,"lex");for(var we,Te,rt,Oe,Pe={},Ie,Ze,ze,me;;){if(Te=Re[Re.length-1],this.defaultActions[Te]?rt=this.defaultActions[Te]:((we===null||typeof we>"u")&&(we=j()),rt=ut[Te]&&ut[Te][we]),typeof rt>"u"||!rt.length||!rt[0]){var ie="";me=[];for(Ie in ut[Te])this.terminals_[Ie]&&Ie>lt&&me.push("'"+this.terminals_[Ie]+"'");ke.showPosition?ie="Parse error on line "+(je+1)+`: +`,"getStyles"),Zbt=Qbt,Jbt={parser:Xbt,get db(){return new Hbt},renderer:Kbt,styles:Zbt,init:E(t=>{t.flowchart||(t.flowchart={}),t.layout&&lP({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,lP({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")};const MY=Object.freeze(Object.defineProperty({__proto__:null,diagram:Jbt},Symbol.toStringTag,{value:"Module"}));var hF=(function(){var t=E(function(Be,Le,He,Re){for(He=He||{},Re=Be.length;Re--;He[Be[Re]]=Le);return He},"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],a=[1,12],i=[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],v=[1,21],y=[1,22],b=[1,36],_=[1,37],S=[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],R=[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],N=[65,66,67,68,69],P=[1,84],z=[1,83],B=[1,81],U=[1,82],G=[6,10,42,47],K=[6,10,13,41,42,47,48,49],Y=[1,92],ee=[1,91],X=[1,90],le=[19,58],te=[1,101],ne=[1,100],ae=[19,58,60,62],re={trace:E(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:E(function(Le,He,Re,xe,$e,Ce,ut){var Ae=Ce.length-1;switch($e){case 1:break;case 2:this.$=[];break;case 3:Ce[Ae-1].push(Ce[Ae]),this.$=Ce[Ae-1];break;case 4:case 5:this.$=Ce[Ae];break;case 6:case 7:this.$=[];break;case 8:xe.addEntity(Ce[Ae-4]),xe.addEntity(Ce[Ae-2]),xe.addRelationship(Ce[Ae-4],Ce[Ae],Ce[Ae-2],Ce[Ae-3]);break;case 9:xe.addEntity(Ce[Ae-8]),xe.addEntity(Ce[Ae-4]),xe.addRelationship(Ce[Ae-8],Ce[Ae],Ce[Ae-4],Ce[Ae-5]),xe.setClass([Ce[Ae-8]],Ce[Ae-6]),xe.setClass([Ce[Ae-4]],Ce[Ae-2]);break;case 10:xe.addEntity(Ce[Ae-6]),xe.addEntity(Ce[Ae-2]),xe.addRelationship(Ce[Ae-6],Ce[Ae],Ce[Ae-2],Ce[Ae-3]),xe.setClass([Ce[Ae-6]],Ce[Ae-4]);break;case 11:xe.addEntity(Ce[Ae-6]),xe.addEntity(Ce[Ae-4]),xe.addRelationship(Ce[Ae-6],Ce[Ae],Ce[Ae-4],Ce[Ae-5]),xe.setClass([Ce[Ae-4]],Ce[Ae-2]);break;case 12:xe.addEntity(Ce[Ae-3]),xe.addAttributes(Ce[Ae-3],Ce[Ae-1]);break;case 13:xe.addEntity(Ce[Ae-5]),xe.addAttributes(Ce[Ae-5],Ce[Ae-1]),xe.setClass([Ce[Ae-5]],Ce[Ae-3]);break;case 14:xe.addEntity(Ce[Ae-2]);break;case 15:xe.addEntity(Ce[Ae-4]),xe.setClass([Ce[Ae-4]],Ce[Ae-2]);break;case 16:xe.addEntity(Ce[Ae]);break;case 17:xe.addEntity(Ce[Ae-2]),xe.setClass([Ce[Ae-2]],Ce[Ae]);break;case 18:xe.addEntity(Ce[Ae-6],Ce[Ae-4]),xe.addAttributes(Ce[Ae-6],Ce[Ae-1]);break;case 19:xe.addEntity(Ce[Ae-8],Ce[Ae-6]),xe.addAttributes(Ce[Ae-8],Ce[Ae-1]),xe.setClass([Ce[Ae-8]],Ce[Ae-3]);break;case 20:xe.addEntity(Ce[Ae-5],Ce[Ae-3]);break;case 21:xe.addEntity(Ce[Ae-7],Ce[Ae-5]),xe.setClass([Ce[Ae-7]],Ce[Ae-2]);break;case 22:xe.addEntity(Ce[Ae-3],Ce[Ae-1]);break;case 23:xe.addEntity(Ce[Ae-5],Ce[Ae-3]),xe.setClass([Ce[Ae-5]],Ce[Ae]);break;case 24:case 25:this.$=Ce[Ae].trim(),xe.setAccTitle(this.$);break;case 26:case 27:this.$=Ce[Ae].trim(),xe.setAccDescription(this.$);break;case 32:xe.setDirection("TB");break;case 33:xe.setDirection("BT");break;case 34:xe.setDirection("RL");break;case 35:xe.setDirection("LR");break;case 36:this.$=Ce[Ae-3],xe.addClass(Ce[Ae-2],Ce[Ae-1]);break;case 37:case 38:case 59:case 67:this.$=[Ce[Ae]];break;case 39:case 40:this.$=Ce[Ae-2].concat([Ce[Ae]]);break;case 41:this.$=Ce[Ae-2],xe.setClass(Ce[Ae-1],Ce[Ae]);break;case 42:this.$=Ce[Ae-3],xe.addCssStyles(Ce[Ae-2],Ce[Ae-1]);break;case 43:this.$=[Ce[Ae]];break;case 44:Ce[Ae-2].push(Ce[Ae]),this.$=Ce[Ae-2];break;case 46:this.$=Ce[Ae-1]+Ce[Ae];break;case 54:case 79:case 80:this.$=Ce[Ae].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=Ce[Ae];break;case 60:Ce[Ae].push(Ce[Ae-1]),this.$=Ce[Ae];break;case 61:this.$={type:Ce[Ae-1],name:Ce[Ae]};break;case 62:this.$={type:Ce[Ae-2],name:Ce[Ae-1],keys:Ce[Ae]};break;case 63:this.$={type:Ce[Ae-2],name:Ce[Ae-1],comment:Ce[Ae]};break;case 64:this.$={type:Ce[Ae-3],name:Ce[Ae-2],keys:Ce[Ae-1],comment:Ce[Ae]};break;case 65:case 66:case 69:this.$=Ce[Ae];break;case 68:Ce[Ae-2].push(Ce[Ae]),this.$=Ce[Ae-2];break;case 70:this.$=Ce[Ae].replace(/"/g,"");break;case 71:this.$={cardA:Ce[Ae],relType:Ce[Ae-1],cardB:Ce[Ae-2]};break;case 72:this.$=xe.Cardinality.ZERO_OR_ONE;break;case 73:this.$=xe.Cardinality.ZERO_OR_MORE;break;case 74:this.$=xe.Cardinality.ONE_OR_MORE;break;case 75:this.$=xe.Cardinality.ONLY_ONE;break;case 76:this.$=xe.Cardinality.MD_PARENT;break;case 77:this.$=xe.Identification.NON_IDENTIFYING;break;case 78:this.$=xe.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:a,28:i,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:v,52:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:r,24:n,26:a,28:i,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:v,52:y},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:S,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:R},{16:47,40:w,41:R},{16:48,40:w,41:R},t(e,[2,4]),{11:49,40:h,48:g,50:m,51:v,52:y},{16:50,40:w,41:R},{18:51,19:[1,52],53:53,54:54,58:O},{11:56,40:h,48:g,50:m,51:v,52:y},{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:R,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:S,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:S,68:x,69:C},t(N,[2,77]),t(N,[2,78]),{6:P,10:z,39:80,42:B,47:U},{40:[1,85],41:[1,86]},t(G,[2,43],{46:87,13:$,41:F,48:I,49:D}),t(K,[2,45]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(e,[2,41],{42:A}),{6:P,10:z,39:88,42:B,47:U},{14:89,40:Y,50:ee,72:X},{16:93,40:w,41:R},{11:94,40:h,48:g,50:m,51:v,52:y},{18:95,19:[1,96],53:53,54:54,58:O},t(e,[2,12]),{19:[2,60]},t(le,[2,61],{56:97,57:98,59:99,61:te,62:ne}),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(K,[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(le,[2,62],{57:109,60:[1,110],62:ne}),t(le,[2,63]),t(ae,[2,67]),t(le,[2,70]),t(ae,[2,69]),{18:111,19:[1,112],53:53,54:54,58:O},{16:113,40:w,41:R},t(G,[2,44],{46:87,13:$,41:F,48:I,49:D}),{14:114,40:Y,50:ee,72:X},{16:115,40:w,41:R},{14:116,40:Y,50:ee,72:X},t(e,[2,13]),t(le,[2,64]),{59:117,61:te},{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:Y,50:ee,72:X},{19:[1,124]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:E(function(Le,He){if(He.recoverable)this.trace(Le);else{var Re=new Error(Le);throw Re.hash=He,Re}},"parseError"),parse:E(function(Le){var He=this,Re=[0],xe=[],$e=[null],Ce=[],ut=this.table,Ae="",je=0,ot=0,lt=2,ct=1,it=Ce.slice.call(arguments,1),ke=Object.create(this.lexer),Qe={yy:{}};for(var _e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_e)&&(Qe.yy[_e]=this.yy[_e]);ke.setInput(Le,Qe.yy),Qe.yy.lexer=ke,Qe.yy.parser=this,typeof ke.yylloc>"u"&&(ke.yylloc={});var ye=ke.yylloc;Ce.push(ye);var q=ke.options&&ke.options.ranges;typeof Qe.yy.parseError=="function"?this.parseError=Qe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(Ve){Re.length=Re.length-2*Ve,$e.length=$e.length-Ve,Ce.length=Ce.length-Ve}E(fe,"popStack");function j(){var Ve;return Ve=xe.pop()||ke.lex()||ct,typeof Ve!="number"&&(Ve instanceof Array&&(xe=Ve,Ve=xe.pop()),Ve=He.symbols_[Ve]||Ve),Ve}E(j,"lex");for(var we,Te,rt,Oe,Pe={},Ie,Ze,ze,me;;){if(Te=Re[Re.length-1],this.defaultActions[Te]?rt=this.defaultActions[Te]:((we===null||typeof we>"u")&&(we=j()),rt=ut[Te]&&ut[Te][we]),typeof rt>"u"||!rt.length||!rt[0]){var ie="";me=[];for(Ie in ut[Te])this.terminals_[Ie]&&Ie>lt&&me.push("'"+this.terminals_[Ie]+"'");ke.showPosition?ie="Parse error on line "+(je+1)+`: `+ke.showPosition()+` Expecting `+me.join(", ")+", got '"+(this.terminals_[we]||we)+"'":ie="Parse error on line "+(je+1)+": Unexpected "+(we==ct?"end of input":"'"+(this.terminals_[we]||we)+"'"),this.parseError(ie,{text:ke.match,token:this.terminals_[we]||we,line:ke.yylineno,loc:ye,expected:me})}if(rt[0]instanceof Array&&rt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Te+", token: "+we);switch(rt[0]){case 1:Re.push(we),$e.push(ke.yytext),Ce.push(ke.yylloc),Re.push(rt[1]),we=null,ot=ke.yyleng,Ae=ke.yytext,je=ke.yylineno,ye=ke.yylloc;break;case 2:if(Ze=this.productions_[rt[1]][1],Pe.$=$e[$e.length-Ze],Pe._$={first_line:Ce[Ce.length-(Ze||1)].first_line,last_line:Ce[Ce.length-1].last_line,first_column:Ce[Ce.length-(Ze||1)].first_column,last_column:Ce[Ce.length-1].last_column},q&&(Pe._$.range=[Ce[Ce.length-(Ze||1)].range[0],Ce[Ce.length-1].range[1]]),Oe=this.performAction.apply(Pe,[Ae,ot,je,Qe.yy,rt[1],$e,Ce].concat(it)),typeof Oe<"u")return Oe;Ze&&(Re=Re.slice(0,-1*Ze*2),$e=$e.slice(0,-1*Ze),Ce=Ce.slice(0,-1*Ze)),Re.push(this.productions_[rt[1]][0]),$e.push(Pe.$),Ce.push(Pe._$),ze=ut[Re[Re.length-2]][Re[Re.length-1]],Re.push(ze);break;case 3:return!0}}return!0},"parse")},ge=(function(){var Be={EOF:1,parseError:E(function(He,Re){if(this.yy.parser)this.yy.parser.parseError(He,Re);else throw new Error(He)},"parseError"),setInput:E(function(Le,He){return this.yy=He||this.yy||{},this._input=Le,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:E(function(){var Le=this._input[0];this.yytext+=Le,this.yyleng++,this.offset++,this.match+=Le,this.matched+=Le;var He=Le.match(/(?:\r\n?|\n).*/g);return He?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Le},"input"),unput:E(function(Le){var He=Le.length,Re=Le.split(/(?:\r\n?|\n)/g);this._input=Le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-He),this.offset-=He;var xe=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),Re.length-1&&(this.yylineno-=Re.length-1);var $e=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:Re?(Re.length===xe.length?this.yylloc.first_column:0)+xe[xe.length-Re.length].length-Re[0].length:this.yylloc.first_column-He},this.options.ranges&&(this.yylloc.range=[$e[0],$e[0]+this.yyleng-He]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(Le){this.unput(this.match.slice(Le))},"less"),pastInput:E(function(){var Le=this.matched.substr(0,this.matched.length-this.match.length);return(Le.length>20?"...":"")+Le.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:E(function(){var Le=this.match;return Le.length<20&&(Le+=this._input.substr(0,20-Le.length)),(Le.substr(0,20)+(Le.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:E(function(){var Le=this.pastInput(),He=new Array(Le.length+1).join("-");return Le+this.upcomingInput()+` `+He+"^"},"showPosition"),test_match:E(function(Le,He){var Re,xe,$e;if(this.options.backtrack_lexer&&($e={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&&($e.yylloc.range=this.yylloc.range.slice(0))),xe=Le[0].match(/(?:\r\n?|\n).*/g),xe&&(this.yylineno+=xe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xe?xe[xe.length-1].length-xe[xe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Le[0].length},this.yytext+=Le[0],this.match+=Le[0],this.matches=Le,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(Le[0].length),this.matched+=Le[0],Re=this.performAction.call(this,this.yy,this,He,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Re)return Re;if(this._backtrack){for(var Ce in $e)this[Ce]=$e[Ce];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Le,He,Re,xe;this._more||(this.yytext="",this.match="");for(var $e=this._currentRules(),Ce=0;Ce<$e.length;Ce++)if(Re=this._input.match(this.rules[$e[Ce]]),Re&&(!He||Re[0].length>He[0].length)){if(He=Re,xe=Ce,this.options.backtrack_lexer){if(Le=this.test_match(Re,$e[Ce]),Le!==!1)return Le;if(this._backtrack){He=!1;continue}else return!1}else if(!this.options.flex)break}return He?(Le=this.test_match(He,$e[xe]),Le!==!1?Le:!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:E(function(){var He=this.next();return He||this.lex()},"lex"),begin:E(function(He){this.conditionStack.push(He)},"begin"),popState:E(function(){var He=this.conditionStack.length-1;return He>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(He){return He=this.conditionStack.length-1-Math.abs(He||0),He>=0?this.conditionStack[He]:"INITIAL"},"topState"),pushState:E(function(He){this.begin(He)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(He,Re,xe,$e){switch(xe){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 Re.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 Re.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 Be})();re.lexer=ge;function pe(){this.yy={}}return E(pe,"Parser"),pe.prototype=re,re.Parser=pe,new pe})();hF.parser=hF;var Jbt=hF,F1,e2t=(F1=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=sa,this.getAccTitle=va,this.setAccDescription=ya,this.getAccDescription=_a,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getConfig=E(()=>Ye().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,oe.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:Ye().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),oe.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 a;for(a=r.length-1;a>=0;a--)r[a].keys||(r[a].keys=[]),r[a].comment||(r[a].comment=""),n.attributes.push(r[a]),oe.debug("Added attribute ",r[a].name)}addRelationship(e,r,n,a){const i=this.entities.get(e),s=this.entities.get(n);if(!i||!s)return;const o={entityA:i.id,roleA:r,entityB:s.id,relSpec:a};this.relationships.push(o),oe.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 a=this.classes.get(n);a?.styles&&(r=[...r,...a.styles??[]].map(i=>i.trim())),a?.textStyles&&(r=[...r,...a.textStyles??[]].map(i=>i.trim()))}return r}addCssStyles(e,r){for(const n of e){const a=this.entities.get(n);if(!r||!a)return;for(const i of r)a.cssStyles.push(i)}}addClass(e,r){e.forEach(n=>{let a=this.classes.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.classes.set(n,a)),r&&r.forEach(function(i){if(/color/.exec(i)){const s=i.replace("fill","bgFill");a.textStyles.push(s)}a.styles.push(i)})})}setClass(e,r){for(const n of e){const a=this.entities.get(n);if(a)for(const i of r)a.cssClasses+=" "+i}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],oa()}getData(){const e=[],r=[],n=Ye();let a=0;for(const s of this.entities.keys()){const o=this.entities.get(s);o&&(o.cssCompiledStyles=this.getCompiledStyles(o.cssClasses.split(" ")),o.colorIndex=a++,e.push(o))}let i=0;for(const s of this.relationships){const o={id:n1(s.entityA,s.entityB,{prefix:"id",counter:i++}),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"}}},E(F1,"ErDB"),F1),lEe={};Rk(lEe,{draw:()=>t2t});var t2t=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing er diagram (unified)",e);const{securityLevel:a,er:i,layout:s}=Ye(),o=n.db.getData(),l=b2(e,a);o.type=n.type,o.layoutAlgorithm=ST(s),o.config.flowchart.nodeSpacing=i?.nodeSpacing||140,o.config.flowchart.rankSpacing=i?.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 n2(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",""),v=l.select(`#${CSS.escape(m)}`);if(!v.empty()){const y=v.attr("transform");p.attr("transform",y)}});const f=8;Kr.insertTitle(l,"erDiagramTitleText",i?.titleTopMargin??25,n.db.getDiagramTitle()),gg(l,f,"erDiagram",i?.useMaxWidth??!0)},"draw"),pse=E((t,e)=>{const r=FU,n=r(t,"r"),a=r(t,"g"),i=r(t,"b");return rc(n,a,i,e)},"fade"),P5=new Set(["redux-color","redux-dark-color"]),r2t=E(t=>{const{theme:e,look:r,bkgColorArray:n,borderColorArray:a}=t;if(!P5.has(e))return"";const i=n?.length>0;let s="";for(let o=0;o0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(He){return He=this.conditionStack.length-1-Math.abs(He||0),He>=0?this.conditionStack[He]:"INITIAL"},"topState"),pushState:E(function(He){this.begin(He)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(He,Re,xe,$e){switch(xe){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 Re.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 Re.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 Be})();re.lexer=ge;function pe(){this.yy={}}return E(pe,"Parser"),pe.prototype=re,re.Parser=pe,new pe})();hF.parser=hF;var e2t=hF,F1,t2t=(F1=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=sa,this.getAccTitle=va,this.setAccDescription=ya,this.getAccDescription=_a,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getConfig=E(()=>Ye().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,oe.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:Ye().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),oe.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 a;for(a=r.length-1;a>=0;a--)r[a].keys||(r[a].keys=[]),r[a].comment||(r[a].comment=""),n.attributes.push(r[a]),oe.debug("Added attribute ",r[a].name)}addRelationship(e,r,n,a){const i=this.entities.get(e),s=this.entities.get(n);if(!i||!s)return;const o={entityA:i.id,roleA:r,entityB:s.id,relSpec:a};this.relationships.push(o),oe.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 a=this.classes.get(n);a?.styles&&(r=[...r,...a.styles??[]].map(i=>i.trim())),a?.textStyles&&(r=[...r,...a.textStyles??[]].map(i=>i.trim()))}return r}addCssStyles(e,r){for(const n of e){const a=this.entities.get(n);if(!r||!a)return;for(const i of r)a.cssStyles.push(i)}}addClass(e,r){e.forEach(n=>{let a=this.classes.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.classes.set(n,a)),r&&r.forEach(function(i){if(/color/.exec(i)){const s=i.replace("fill","bgFill");a.textStyles.push(s)}a.styles.push(i)})})}setClass(e,r){for(const n of e){const a=this.entities.get(n);if(a)for(const i of r)a.cssClasses+=" "+i}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],oa()}getData(){const e=[],r=[],n=Ye();let a=0;for(const s of this.entities.keys()){const o=this.entities.get(s);o&&(o.cssCompiledStyles=this.getCompiledStyles(o.cssClasses.split(" ")),o.colorIndex=a++,e.push(o))}let i=0;for(const s of this.relationships){const o={id:n1(s.entityA,s.entityB,{prefix:"id",counter:i++}),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"}}},E(F1,"ErDB"),F1),lEe={};Rk(lEe,{draw:()=>r2t});var r2t=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing er diagram (unified)",e);const{securityLevel:a,er:i,layout:s}=Ye(),o=n.db.getData(),l=b2(e,a);o.type=n.type,o.layoutAlgorithm=ST(s),o.config.flowchart.nodeSpacing=i?.nodeSpacing||140,o.config.flowchart.rankSpacing=i?.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 n2(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",""),v=l.select(`#${CSS.escape(m)}`);if(!v.empty()){const y=v.attr("transform");p.attr("transform",y)}});const f=8;Kr.insertTitle(l,"erDiagramTitleText",i?.titleTopMargin??25,n.db.getDiagramTitle()),gg(l,f,"erDiagram",i?.useMaxWidth??!0)},"draw"),pse=E((t,e)=>{const r=FU,n=r(t,"r"),a=r(t,"g"),i=r(t,"b");return rc(n,a,i,e)},"fade"),P5=new Set(["redux-color","redux-dark-color"]),n2t=E(t=>{const{theme:e,look:r,bkgColorArray:n,borderColorArray:a}=t;if(!P5.has(e))return"";const i=n?.length>0;let s="";for(let o=0;o{const{look:e,theme:r,erEdgeLabelBackground:n,strokeWidth:a}=t;return` - ${r2t(t)} + `;return s},"genColor"),a2t=E(t=>{const{look:e,theme:r,erEdgeLabelBackground:n,strokeWidth:a}=t;return` + ${n2t(t)} .entityBox { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; @@ -5228,15 +5233,15 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[we]||we)+"'":ie="Parse erro [data-look=neo].labelBkg { background-color: ${pse(t.tertiaryColor,.5)}; } -`},"getStyles"),a2t=n2t,i2t={parser:Jbt,get db(){return new e2t},renderer:lEe,styles:a2t};const s2t=Object.freeze(Object.defineProperty({__proto__:null,diagram:i2t},Symbol.toStringTag,{value:"Module"}));function Nu(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}E(Nu,"populateCommonDb");var $1,PY=($1=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},E($1,"ImperativeState"),$1),o2t=Object.create,HT=Object.defineProperty,l2t=Object.getOwnPropertyDescriptor,BY=Object.getOwnPropertyNames,c2t=Object.getPrototypeOf,u2t=Object.prototype.hasOwnProperty,k=(t,e)=>HT(t,"name",{value:e,configurable:!0}),d2t=(t,e)=>function(){return t&&(e=(0,t[BY(t)[0]])(t=0)),e},Jr=(t,e)=>function(){return e||(0,t[BY(t)[0]])((e={exports:{}}).exports,e),e.exports},Kh=(t,e)=>{for(var r in e)HT(t,r,{get:e[r],enumerable:!0})},FY=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of BY(e))!u2t.call(t,a)&&a!==r&&HT(t,a,{get:()=>e[a],enumerable:!(n=l2t(e,a))||n.enumerable});return t},oA=(t,e,r)=>(FY(t,e,"default"),r),$Y=(t,e,r)=>(r=t!=null?o2t(c2t(t)):{},FY(HT(r,"default",{value:t,enumerable:!0}),t)),zY=t=>FY(HT({},"__esModule",{value:!0}),t),lA={};Kh(lA,{AnnotatedTextEdit:()=>ju,ChangeAnnotation:()=>Df,ChangeAnnotationIdentifier:()=>Hi,CodeAction:()=>VF,CodeActionContext:()=>HF,CodeActionKind:()=>YF,CodeActionTriggerKind:()=>$E,CodeDescription:()=>SF,CodeLens:()=>WF,Color:()=>F5,ColorInformation:()=>mF,ColorPresentation:()=>vF,Command:()=>Of,CompletionItem:()=>OF,CompletionItemKind:()=>wF,CompletionItemLabelDetails:()=>IF,CompletionItemTag:()=>AF,CompletionList:()=>DF,CreateFile:()=>gm,DeleteFile:()=>vm,Diagnostic:()=>ME,DiagnosticRelatedInformation:()=>$5,DiagnosticSeverity:()=>bF,DiagnosticTag:()=>EF,DocumentHighlight:()=>FF,DocumentHighlightKind:()=>BF,DocumentLink:()=>XF,DocumentSymbol:()=>qF,DocumentUri:()=>fF,EOL:()=>uEe,FoldingRange:()=>_F,FoldingRangeKind:()=>yF,FormattingOptions:()=>KF,Hover:()=>LF,InlayHint:()=>a$,InlayHintKind:()=>G5,InlayHintLabelPart:()=>q5,InlineCompletionContext:()=>u$,InlineCompletionItem:()=>s$,InlineCompletionList:()=>o$,InlineCompletionTriggerKind:()=>l$,InlineValueContext:()=>n$,InlineValueEvaluatableExpression:()=>r$,InlineValueText:()=>e$,InlineValueVariableLookup:()=>t$,InsertReplaceEdit:()=>RF,InsertTextFormat:()=>kF,InsertTextMode:()=>NF,Location:()=>LE,LocationLink:()=>gF,MarkedString:()=>FE,MarkupContent:()=>ym,MarkupKind:()=>U5,OptionalVersionedTextDocumentIdentifier:()=>BE,ParameterInformation:()=>MF,Position:()=>Cn,Range:()=>hn,RenameFile:()=>mm,SelectedCompletionInfo:()=>c$,SelectionRange:()=>jF,SemanticTokenModifiers:()=>ZF,SemanticTokenTypes:()=>QF,SemanticTokens:()=>JF,SignatureInformation:()=>PF,StringValue:()=>i$,SymbolInformation:()=>UF,SymbolKind:()=>$F,SymbolTag:()=>zF,TextDocument:()=>h$,TextDocumentEdit:()=>PE,TextDocumentIdentifier:()=>TF,TextDocumentItem:()=>CF,TextEdit:()=>Dc,URI:()=>B5,VersionedTextDocumentIdentifier:()=>xF,WorkspaceChange:()=>cEe,WorkspaceEdit:()=>z5,WorkspaceFolder:()=>d$,WorkspaceSymbol:()=>GF,integer:()=>pF,uinteger:()=>DE});var fF,B5,pF,DE,Cn,hn,LE,gF,F5,mF,vF,yF,_F,$5,bF,EF,SF,ME,Of,Dc,Df,Hi,ju,PE,gm,mm,vm,z5,iE,YL,cEe,TF,xF,BE,CF,U5,ym,wF,kF,AF,RF,NF,IF,OF,DF,FE,LF,MF,PF,BF,FF,$F,zF,UF,GF,qF,YF,$E,HF,VF,WF,KF,XF,jF,QF,ZF,JF,e$,t$,r$,n$,G5,q5,a$,i$,s$,o$,l$,c$,u$,d$,uEe,h$,gse,ht,VT=d2t({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(s){return typeof s=="string"}k(i,"is"),a.is=i})(fF||(fF={})),(function(a){function i(s){return typeof s=="string"}k(i,"is"),a.is=i})(B5||(B5={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(s){return typeof s=="number"&&a.MIN_VALUE<=s&&s<=a.MAX_VALUE}k(i,"is"),a.is=i})(pF||(pF={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(s){return typeof s=="number"&&a.MIN_VALUE<=s&&s<=a.MAX_VALUE}k(i,"is"),a.is=i})(DE||(DE={})),(function(a){function i(o,l){return o===Number.MAX_VALUE&&(o=DE.MAX_VALUE),l===Number.MAX_VALUE&&(l=DE.MAX_VALUE),{line:o,character:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&ht.uinteger(l.line)&&ht.uinteger(l.character)}k(s,"is"),a.is=s})(Cn||(Cn={})),(function(a){function i(o,l,u,d){if(ht.uinteger(o)&&ht.uinteger(l)&&ht.uinteger(u)&&ht.uinteger(d))return{start:Cn.create(o,l),end:Cn.create(u,d)};if(Cn.is(o)&&Cn.is(l))return{start:o,end:l};throw new Error(`Range#create called with invalid arguments[${o}, ${l}, ${u}, ${d}]`)}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&Cn.is(l.start)&&Cn.is(l.end)}k(s,"is"),a.is=s})(hn||(hn={})),(function(a){function i(o,l){return{uri:o,range:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&hn.is(l.range)&&(ht.string(l.uri)||ht.undefined(l.uri))}k(s,"is"),a.is=s})(LE||(LE={})),(function(a){function i(o,l,u,d){return{targetUri:o,targetRange:l,targetSelectionRange:u,originSelectionRange:d}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&hn.is(l.targetRange)&&ht.string(l.targetUri)&&hn.is(l.targetSelectionRange)&&(hn.is(l.originSelectionRange)||ht.undefined(l.originSelectionRange))}k(s,"is"),a.is=s})(gF||(gF={})),(function(a){function i(o,l,u,d){return{red:o,green:l,blue:u,alpha:d}}k(i,"create"),a.create=i;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"),a.is=s})(F5||(F5={})),(function(a){function i(o,l){return{range:o,color:l}}k(i,"create"),a.create=i;function s(o){const l=o;return ht.objectLiteral(l)&&hn.is(l.range)&&F5.is(l.color)}k(s,"is"),a.is=s})(mF||(mF={})),(function(a){function i(o,l,u){return{label:o,textEdit:l,additionalTextEdits:u}}k(i,"create"),a.create=i;function s(o){const l=o;return ht.objectLiteral(l)&&ht.string(l.label)&&(ht.undefined(l.textEdit)||Dc.is(l))&&(ht.undefined(l.additionalTextEdits)||ht.typedArray(l.additionalTextEdits,Dc.is))}k(s,"is"),a.is=s})(vF||(vF={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(yF||(yF={})),(function(a){function i(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(i,"create"),a.create=i;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"),a.is=s})(_F||(_F={})),(function(a){function i(o,l){return{location:o,message:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&LE.is(l.location)&&ht.string(l.message)}k(s,"is"),a.is=s})($5||($5={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(bF||(bF={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(EF||(EF={})),(function(a){function i(s){const o=s;return ht.objectLiteral(o)&&ht.string(o.href)}k(i,"is"),a.is=i})(SF||(SF={})),(function(a){function i(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(i,"create"),a.create=i;function s(o){var l;let u=o;return ht.defined(u)&&hn.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,$5.is))}k(s,"is"),a.is=s})(ME||(ME={})),(function(a){function i(o,l,...u){let d={title:o,command:l};return ht.defined(u)&&u.length>0&&(d.arguments=u),d}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.string(l.title)&&ht.string(l.command)}k(s,"is"),a.is=s})(Of||(Of={})),(function(a){function i(u,d){return{range:u,newText:d}}k(i,"replace"),a.replace=i;function s(u,d){return{range:{start:u,end:u},newText:d}}k(s,"insert"),a.insert=s;function o(u){return{range:u,newText:""}}k(o,"del"),a.del=o;function l(u){const d=u;return ht.objectLiteral(d)&&ht.string(d.newText)&&hn.is(d.range)}k(l,"is"),a.is=l})(Dc||(Dc={})),(function(a){function i(o,l,u){const d={label:o};return l!==void 0&&(d.needsConfirmation=l),u!==void 0&&(d.description=u),d}k(i,"create"),a.create=i;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"),a.is=s})(Df||(Df={})),(function(a){function i(s){const o=s;return ht.string(o)}k(i,"is"),a.is=i})(Hi||(Hi={})),(function(a){function i(u,d,h){return{range:u,newText:d,annotationId:h}}k(i,"replace"),a.replace=i;function s(u,d,h){return{range:{start:u,end:u},newText:d,annotationId:h}}k(s,"insert"),a.insert=s;function o(u,d){return{range:u,newText:"",annotationId:d}}k(o,"del"),a.del=o;function l(u){const d=u;return Dc.is(d)&&(Df.is(d.annotationId)||Hi.is(d.annotationId))}k(l,"is"),a.is=l})(ju||(ju={})),(function(a){function i(o,l){return{textDocument:o,edits:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&BE.is(l.textDocument)&&Array.isArray(l.edits)}k(s,"is"),a.is=s})(PE||(PE={})),(function(a){function i(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(i,"create"),a.create=i;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||Hi.is(l.annotationId))}k(s,"is"),a.is=s})(gm||(gm={})),(function(a){function i(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(i,"create"),a.create=i;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||Hi.is(l.annotationId))}k(s,"is"),a.is=s})(mm||(mm={})),(function(a){function i(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(i,"create"),a.create=i;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||Hi.is(l.annotationId))}k(s,"is"),a.is=s})(vm||(vm={})),(function(a){function i(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)?gm.is(l)||mm.is(l)||vm.is(l):PE.is(l)))}k(i,"is"),a.is=i})(z5||(z5={})),iE=(t=class{constructor(i,s){this.edits=i,this.changeAnnotations=s}insert(i,s,o){let l,u;if(o===void 0?l=Dc.insert(i,s):Hi.is(o)?(u=o,l=ju.insert(i,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=ju.insert(i,s,u)),this.edits.push(l),u!==void 0)return u}replace(i,s,o){let l,u;if(o===void 0?l=Dc.replace(i,s):Hi.is(o)?(u=o,l=ju.replace(i,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=ju.replace(i,s,u)),this.edits.push(l),u!==void 0)return u}delete(i,s){let o,l;if(s===void 0?o=Dc.del(i):Hi.is(s)?(l=s,o=ju.del(i,s)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(s),o=ju.del(i,l)),this.edits.push(o),l!==void 0)return l}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},k(t,"TextEditChangeImpl"),t),YL=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,s){let o;if(Hi.is(i)?o=i:(o=this.nextId(),s=i),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),cEe=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new YL(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(s=>{if(PE.is(s)){const o=new iE(s.edits,this._changeAnnotations);this._textEditChanges[s.textDocument.uri]=o}})):i.changes&&Object.keys(i.changes).forEach(s=>{const o=new iE(i.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(i){if(BE.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const s={uri:i.uri,version:i.version};let o=this._textEditChanges[s.uri];if(!o){const l=[],u={textDocument:s,edits:l};this._workspaceEdit.documentChanges.push(u),o=new iE(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[i];if(!s){let o=[];this._workspaceEdit.changes[i]=o,s=new iE(o),this._textEditChanges[i]=s}return s}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new YL,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(i,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;Df.is(s)||Hi.is(s)?l=s:o=s;let u,d;if(l===void 0?u=gm.create(i,o):(d=Hi.is(l)?l:this._changeAnnotations.manage(l),u=gm.create(i,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}renameFile(i,s,o,l){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Df.is(o)||Hi.is(o)?u=o:l=o;let d,h;if(u===void 0?d=mm.create(i,s,l):(h=Hi.is(u)?u:this._changeAnnotations.manage(u),d=mm.create(i,s,l,h)),this._workspaceEdit.documentChanges.push(d),h!==void 0)return h}deleteFile(i,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;Df.is(s)||Hi.is(s)?l=s:o=s;let u,d;if(l===void 0?u=vm.create(i,o):(d=Hi.is(l)?l:this._changeAnnotations.manage(l),u=vm.create(i,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}},k(r,"WorkspaceChange"),r),(function(a){function i(o){return{uri:o}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)}k(s,"is"),a.is=s})(TF||(TF={})),(function(a){function i(o,l){return{uri:o,version:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&ht.integer(l.version)}k(s,"is"),a.is=s})(xF||(xF={})),(function(a){function i(o,l){return{uri:o,version:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&(l.version===null||ht.integer(l.version))}k(s,"is"),a.is=s})(BE||(BE={})),(function(a){function i(o,l,u,d){return{uri:o,languageId:l,version:u,text:d}}k(i,"create"),a.create=i;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"),a.is=s})(CF||(CF={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(s){const o=s;return o===a.PlainText||o===a.Markdown}k(i,"is"),a.is=i})(U5||(U5={})),(function(a){function i(s){const o=s;return ht.objectLiteral(s)&&U5.is(o.kind)&&ht.string(o.value)}k(i,"is"),a.is=i})(ym||(ym={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(wF||(wF={})),(function(a){a.PlainText=1,a.Snippet=2})(kF||(kF={})),(function(a){a.Deprecated=1})(AF||(AF={})),(function(a){function i(o,l,u){return{newText:o,insert:l,replace:u}}k(i,"create"),a.create=i;function s(o){const l=o;return l&&ht.string(l.newText)&&hn.is(l.insert)&&hn.is(l.replace)}k(s,"is"),a.is=s})(RF||(RF={})),(function(a){a.asIs=1,a.adjustIndentation=2})(NF||(NF={})),(function(a){function i(s){const o=s;return o&&(ht.string(o.detail)||o.detail===void 0)&&(ht.string(o.description)||o.description===void 0)}k(i,"is"),a.is=i})(IF||(IF={})),(function(a){function i(s){return{label:s}}k(i,"create"),a.create=i})(OF||(OF={})),(function(a){function i(s,o){return{items:s||[],isIncomplete:!!o}}k(i,"create"),a.create=i})(DF||(DF={})),(function(a){function i(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}k(i,"fromPlainText"),a.fromPlainText=i;function s(o){const l=o;return ht.string(l)||ht.objectLiteral(l)&&ht.string(l.language)&&ht.string(l.value)}k(s,"is"),a.is=s})(FE||(FE={})),(function(a){function i(s){let o=s;return!!o&&ht.objectLiteral(o)&&(ym.is(o.contents)||FE.is(o.contents)||ht.typedArray(o.contents,FE.is))&&(s.range===void 0||hn.is(s.range))}k(i,"is"),a.is=i})(LF||(LF={})),(function(a){function i(s,o){return o?{label:s,documentation:o}:{label:s}}k(i,"create"),a.create=i})(MF||(MF={})),(function(a){function i(s,o,...l){let u={label:s};return ht.defined(o)&&(u.documentation=o),ht.defined(l)?u.parameters=l:u.parameters=[],u}k(i,"create"),a.create=i})(PF||(PF={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(BF||(BF={})),(function(a){function i(s,o){let l={range:s};return ht.number(o)&&(l.kind=o),l}k(i,"create"),a.create=i})(FF||(FF={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})($F||($F={})),(function(a){a.Deprecated=1})(zF||(zF={})),(function(a){function i(s,o,l,u,d){let h={name:s,kind:o,location:{uri:u,range:l}};return d&&(h.containerName=d),h}k(i,"create"),a.create=i})(UF||(UF={})),(function(a){function i(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(i,"create"),a.create=i})(GF||(GF={})),(function(a){function i(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(i,"create"),a.create=i;function s(o){let l=o;return l&&ht.string(l.name)&&ht.number(l.kind)&&hn.is(l.range)&&hn.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"),a.is=s})(qF||(qF={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(YF||(YF={})),(function(a){a.Invoked=1,a.Automatic=2})($E||($E={})),(function(a){function i(o,l,u){let d={diagnostics:o};return l!=null&&(d.only=l),u!=null&&(d.triggerKind=u),d}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.typedArray(l.diagnostics,ME.is)&&(l.only===void 0||ht.typedArray(l.only,ht.string))&&(l.triggerKind===void 0||l.triggerKind===$E.Invoked||l.triggerKind===$E.Automatic)}k(s,"is"),a.is=s})(HF||(HF={})),(function(a){function i(o,l,u){let d={title:o},h=!0;return typeof l=="string"?(h=!1,d.kind=l):Of.is(l)?d.command=l:d.edit=l,h&&u!==void 0&&(d.kind=u),d}k(i,"create"),a.create=i;function s(o){let l=o;return l&&ht.string(l.title)&&(l.diagnostics===void 0||ht.typedArray(l.diagnostics,ME.is))&&(l.kind===void 0||ht.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||Of.is(l.command))&&(l.isPreferred===void 0||ht.boolean(l.isPreferred))&&(l.edit===void 0||z5.is(l.edit))}k(s,"is"),a.is=s})(VF||(VF={})),(function(a){function i(o,l){let u={range:o};return ht.defined(l)&&(u.data=l),u}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&hn.is(l.range)&&(ht.undefined(l.command)||Of.is(l.command))}k(s,"is"),a.is=s})(WF||(WF={})),(function(a){function i(o,l){return{tabSize:o,insertSpaces:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.uinteger(l.tabSize)&&ht.boolean(l.insertSpaces)}k(s,"is"),a.is=s})(KF||(KF={})),(function(a){function i(o,l,u){return{range:o,target:l,data:u}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&hn.is(l.range)&&(ht.undefined(l.target)||ht.string(l.target))}k(s,"is"),a.is=s})(XF||(XF={})),(function(a){function i(o,l){return{range:o,parent:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&hn.is(l.range)&&(l.parent===void 0||a.is(l.parent))}k(s,"is"),a.is=s})(jF||(jF={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(QF||(QF={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(ZF||(ZF={})),(function(a){function i(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(i,"is"),a.is=i})(JF||(JF={})),(function(a){function i(o,l){return{range:o,text:l}}k(i,"create"),a.create=i;function s(o){const l=o;return l!=null&&hn.is(l.range)&&ht.string(l.text)}k(s,"is"),a.is=s})(e$||(e$={})),(function(a){function i(o,l,u){return{range:o,variableName:l,caseSensitiveLookup:u}}k(i,"create"),a.create=i;function s(o){const l=o;return l!=null&&hn.is(l.range)&&ht.boolean(l.caseSensitiveLookup)&&(ht.string(l.variableName)||l.variableName===void 0)}k(s,"is"),a.is=s})(t$||(t$={})),(function(a){function i(o,l){return{range:o,expression:l}}k(i,"create"),a.create=i;function s(o){const l=o;return l!=null&&hn.is(l.range)&&(ht.string(l.expression)||l.expression===void 0)}k(s,"is"),a.is=s})(r$||(r$={})),(function(a){function i(o,l){return{frameId:o,stoppedLocation:l}}k(i,"create"),a.create=i;function s(o){const l=o;return ht.defined(l)&&hn.is(o.stoppedLocation)}k(s,"is"),a.is=s})(n$||(n$={})),(function(a){a.Type=1,a.Parameter=2;function i(s){return s===1||s===2}k(i,"is"),a.is=i})(G5||(G5={})),(function(a){function i(o){return{value:o}}k(i,"create"),a.create=i;function s(o){const l=o;return ht.objectLiteral(l)&&(l.tooltip===void 0||ht.string(l.tooltip)||ym.is(l.tooltip))&&(l.location===void 0||LE.is(l.location))&&(l.command===void 0||Of.is(l.command))}k(s,"is"),a.is=s})(q5||(q5={})),(function(a){function i(o,l,u){const d={position:o,label:l};return u!==void 0&&(d.kind=u),d}k(i,"create"),a.create=i;function s(o){const l=o;return ht.objectLiteral(l)&&Cn.is(l.position)&&(ht.string(l.label)||ht.typedArray(l.label,q5.is))&&(l.kind===void 0||G5.is(l.kind))&&l.textEdits===void 0||ht.typedArray(l.textEdits,Dc.is)&&(l.tooltip===void 0||ht.string(l.tooltip)||ym.is(l.tooltip))&&(l.paddingLeft===void 0||ht.boolean(l.paddingLeft))&&(l.paddingRight===void 0||ht.boolean(l.paddingRight))}k(s,"is"),a.is=s})(a$||(a$={})),(function(a){function i(s){return{kind:"snippet",value:s}}k(i,"createSnippet"),a.createSnippet=i})(i$||(i$={})),(function(a){function i(s,o,l,u){return{insertText:s,filterText:o,range:l,command:u}}k(i,"create"),a.create=i})(s$||(s$={})),(function(a){function i(s){return{items:s}}k(i,"create"),a.create=i})(o$||(o$={})),(function(a){a.Invoked=0,a.Automatic=1})(l$||(l$={})),(function(a){function i(s,o){return{range:s,text:o}}k(i,"create"),a.create=i})(c$||(c$={})),(function(a){function i(s,o){return{triggerKind:s,selectedCompletionInfo:o}}k(i,"create"),a.create=i})(u$||(u$={})),(function(a){function i(s){const o=s;return ht.objectLiteral(o)&&B5.is(o.uri)&&ht.string(o.name)}k(i,"is"),a.is=i})(d$||(d$={})),uEe=[` +`},"getStyles"),i2t=a2t,s2t={parser:e2t,get db(){return new t2t},renderer:lEe,styles:i2t};const o2t=Object.freeze(Object.defineProperty({__proto__:null,diagram:s2t},Symbol.toStringTag,{value:"Module"}));function Nu(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}E(Nu,"populateCommonDb");var $1,PY=($1=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},E($1,"ImperativeState"),$1),l2t=Object.create,HT=Object.defineProperty,c2t=Object.getOwnPropertyDescriptor,BY=Object.getOwnPropertyNames,u2t=Object.getPrototypeOf,d2t=Object.prototype.hasOwnProperty,k=(t,e)=>HT(t,"name",{value:e,configurable:!0}),h2t=(t,e)=>function(){return t&&(e=(0,t[BY(t)[0]])(t=0)),e},Jr=(t,e)=>function(){return e||(0,t[BY(t)[0]])((e={exports:{}}).exports,e),e.exports},Kh=(t,e)=>{for(var r in e)HT(t,r,{get:e[r],enumerable:!0})},FY=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of BY(e))!d2t.call(t,a)&&a!==r&&HT(t,a,{get:()=>e[a],enumerable:!(n=c2t(e,a))||n.enumerable});return t},oA=(t,e,r)=>(FY(t,e,"default"),r),$Y=(t,e,r)=>(r=t!=null?l2t(u2t(t)):{},FY(HT(r,"default",{value:t,enumerable:!0}),t)),zY=t=>FY(HT({},"__esModule",{value:!0}),t),lA={};Kh(lA,{AnnotatedTextEdit:()=>ju,ChangeAnnotation:()=>Df,ChangeAnnotationIdentifier:()=>Hi,CodeAction:()=>VF,CodeActionContext:()=>HF,CodeActionKind:()=>YF,CodeActionTriggerKind:()=>$E,CodeDescription:()=>SF,CodeLens:()=>WF,Color:()=>F5,ColorInformation:()=>mF,ColorPresentation:()=>vF,Command:()=>Of,CompletionItem:()=>OF,CompletionItemKind:()=>wF,CompletionItemLabelDetails:()=>IF,CompletionItemTag:()=>AF,CompletionList:()=>DF,CreateFile:()=>gm,DeleteFile:()=>vm,Diagnostic:()=>ME,DiagnosticRelatedInformation:()=>$5,DiagnosticSeverity:()=>bF,DiagnosticTag:()=>EF,DocumentHighlight:()=>FF,DocumentHighlightKind:()=>BF,DocumentLink:()=>XF,DocumentSymbol:()=>qF,DocumentUri:()=>fF,EOL:()=>uEe,FoldingRange:()=>_F,FoldingRangeKind:()=>yF,FormattingOptions:()=>KF,Hover:()=>LF,InlayHint:()=>a$,InlayHintKind:()=>G5,InlayHintLabelPart:()=>q5,InlineCompletionContext:()=>u$,InlineCompletionItem:()=>s$,InlineCompletionList:()=>o$,InlineCompletionTriggerKind:()=>l$,InlineValueContext:()=>n$,InlineValueEvaluatableExpression:()=>r$,InlineValueText:()=>e$,InlineValueVariableLookup:()=>t$,InsertReplaceEdit:()=>RF,InsertTextFormat:()=>kF,InsertTextMode:()=>NF,Location:()=>LE,LocationLink:()=>gF,MarkedString:()=>FE,MarkupContent:()=>ym,MarkupKind:()=>U5,OptionalVersionedTextDocumentIdentifier:()=>BE,ParameterInformation:()=>MF,Position:()=>Cn,Range:()=>hn,RenameFile:()=>mm,SelectedCompletionInfo:()=>c$,SelectionRange:()=>jF,SemanticTokenModifiers:()=>ZF,SemanticTokenTypes:()=>QF,SemanticTokens:()=>JF,SignatureInformation:()=>PF,StringValue:()=>i$,SymbolInformation:()=>UF,SymbolKind:()=>$F,SymbolTag:()=>zF,TextDocument:()=>h$,TextDocumentEdit:()=>PE,TextDocumentIdentifier:()=>TF,TextDocumentItem:()=>CF,TextEdit:()=>Dc,URI:()=>B5,VersionedTextDocumentIdentifier:()=>xF,WorkspaceChange:()=>cEe,WorkspaceEdit:()=>z5,WorkspaceFolder:()=>d$,WorkspaceSymbol:()=>GF,integer:()=>pF,uinteger:()=>DE});var fF,B5,pF,DE,Cn,hn,LE,gF,F5,mF,vF,yF,_F,$5,bF,EF,SF,ME,Of,Dc,Df,Hi,ju,PE,gm,mm,vm,z5,iE,YL,cEe,TF,xF,BE,CF,U5,ym,wF,kF,AF,RF,NF,IF,OF,DF,FE,LF,MF,PF,BF,FF,$F,zF,UF,GF,qF,YF,$E,HF,VF,WF,KF,XF,jF,QF,ZF,JF,e$,t$,r$,n$,G5,q5,a$,i$,s$,o$,l$,c$,u$,d$,uEe,h$,gse,ht,VT=h2t({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(s){return typeof s=="string"}k(i,"is"),a.is=i})(fF||(fF={})),(function(a){function i(s){return typeof s=="string"}k(i,"is"),a.is=i})(B5||(B5={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(s){return typeof s=="number"&&a.MIN_VALUE<=s&&s<=a.MAX_VALUE}k(i,"is"),a.is=i})(pF||(pF={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(s){return typeof s=="number"&&a.MIN_VALUE<=s&&s<=a.MAX_VALUE}k(i,"is"),a.is=i})(DE||(DE={})),(function(a){function i(o,l){return o===Number.MAX_VALUE&&(o=DE.MAX_VALUE),l===Number.MAX_VALUE&&(l=DE.MAX_VALUE),{line:o,character:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&ht.uinteger(l.line)&&ht.uinteger(l.character)}k(s,"is"),a.is=s})(Cn||(Cn={})),(function(a){function i(o,l,u,d){if(ht.uinteger(o)&&ht.uinteger(l)&&ht.uinteger(u)&&ht.uinteger(d))return{start:Cn.create(o,l),end:Cn.create(u,d)};if(Cn.is(o)&&Cn.is(l))return{start:o,end:l};throw new Error(`Range#create called with invalid arguments[${o}, ${l}, ${u}, ${d}]`)}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&Cn.is(l.start)&&Cn.is(l.end)}k(s,"is"),a.is=s})(hn||(hn={})),(function(a){function i(o,l){return{uri:o,range:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&hn.is(l.range)&&(ht.string(l.uri)||ht.undefined(l.uri))}k(s,"is"),a.is=s})(LE||(LE={})),(function(a){function i(o,l,u,d){return{targetUri:o,targetRange:l,targetSelectionRange:u,originSelectionRange:d}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&hn.is(l.targetRange)&&ht.string(l.targetUri)&&hn.is(l.targetSelectionRange)&&(hn.is(l.originSelectionRange)||ht.undefined(l.originSelectionRange))}k(s,"is"),a.is=s})(gF||(gF={})),(function(a){function i(o,l,u,d){return{red:o,green:l,blue:u,alpha:d}}k(i,"create"),a.create=i;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"),a.is=s})(F5||(F5={})),(function(a){function i(o,l){return{range:o,color:l}}k(i,"create"),a.create=i;function s(o){const l=o;return ht.objectLiteral(l)&&hn.is(l.range)&&F5.is(l.color)}k(s,"is"),a.is=s})(mF||(mF={})),(function(a){function i(o,l,u){return{label:o,textEdit:l,additionalTextEdits:u}}k(i,"create"),a.create=i;function s(o){const l=o;return ht.objectLiteral(l)&&ht.string(l.label)&&(ht.undefined(l.textEdit)||Dc.is(l))&&(ht.undefined(l.additionalTextEdits)||ht.typedArray(l.additionalTextEdits,Dc.is))}k(s,"is"),a.is=s})(vF||(vF={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(yF||(yF={})),(function(a){function i(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(i,"create"),a.create=i;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"),a.is=s})(_F||(_F={})),(function(a){function i(o,l){return{location:o,message:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&LE.is(l.location)&&ht.string(l.message)}k(s,"is"),a.is=s})($5||($5={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(bF||(bF={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(EF||(EF={})),(function(a){function i(s){const o=s;return ht.objectLiteral(o)&&ht.string(o.href)}k(i,"is"),a.is=i})(SF||(SF={})),(function(a){function i(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(i,"create"),a.create=i;function s(o){var l;let u=o;return ht.defined(u)&&hn.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,$5.is))}k(s,"is"),a.is=s})(ME||(ME={})),(function(a){function i(o,l,...u){let d={title:o,command:l};return ht.defined(u)&&u.length>0&&(d.arguments=u),d}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.string(l.title)&&ht.string(l.command)}k(s,"is"),a.is=s})(Of||(Of={})),(function(a){function i(u,d){return{range:u,newText:d}}k(i,"replace"),a.replace=i;function s(u,d){return{range:{start:u,end:u},newText:d}}k(s,"insert"),a.insert=s;function o(u){return{range:u,newText:""}}k(o,"del"),a.del=o;function l(u){const d=u;return ht.objectLiteral(d)&&ht.string(d.newText)&&hn.is(d.range)}k(l,"is"),a.is=l})(Dc||(Dc={})),(function(a){function i(o,l,u){const d={label:o};return l!==void 0&&(d.needsConfirmation=l),u!==void 0&&(d.description=u),d}k(i,"create"),a.create=i;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"),a.is=s})(Df||(Df={})),(function(a){function i(s){const o=s;return ht.string(o)}k(i,"is"),a.is=i})(Hi||(Hi={})),(function(a){function i(u,d,h){return{range:u,newText:d,annotationId:h}}k(i,"replace"),a.replace=i;function s(u,d,h){return{range:{start:u,end:u},newText:d,annotationId:h}}k(s,"insert"),a.insert=s;function o(u,d){return{range:u,newText:"",annotationId:d}}k(o,"del"),a.del=o;function l(u){const d=u;return Dc.is(d)&&(Df.is(d.annotationId)||Hi.is(d.annotationId))}k(l,"is"),a.is=l})(ju||(ju={})),(function(a){function i(o,l){return{textDocument:o,edits:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&BE.is(l.textDocument)&&Array.isArray(l.edits)}k(s,"is"),a.is=s})(PE||(PE={})),(function(a){function i(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(i,"create"),a.create=i;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||Hi.is(l.annotationId))}k(s,"is"),a.is=s})(gm||(gm={})),(function(a){function i(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(i,"create"),a.create=i;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||Hi.is(l.annotationId))}k(s,"is"),a.is=s})(mm||(mm={})),(function(a){function i(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(i,"create"),a.create=i;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||Hi.is(l.annotationId))}k(s,"is"),a.is=s})(vm||(vm={})),(function(a){function i(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)?gm.is(l)||mm.is(l)||vm.is(l):PE.is(l)))}k(i,"is"),a.is=i})(z5||(z5={})),iE=(t=class{constructor(i,s){this.edits=i,this.changeAnnotations=s}insert(i,s,o){let l,u;if(o===void 0?l=Dc.insert(i,s):Hi.is(o)?(u=o,l=ju.insert(i,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=ju.insert(i,s,u)),this.edits.push(l),u!==void 0)return u}replace(i,s,o){let l,u;if(o===void 0?l=Dc.replace(i,s):Hi.is(o)?(u=o,l=ju.replace(i,s,o)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(o),l=ju.replace(i,s,u)),this.edits.push(l),u!==void 0)return u}delete(i,s){let o,l;if(s===void 0?o=Dc.del(i):Hi.is(s)?(l=s,o=ju.del(i,s)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(s),o=ju.del(i,l)),this.edits.push(o),l!==void 0)return l}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},k(t,"TextEditChangeImpl"),t),YL=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,s){let o;if(Hi.is(i)?o=i:(o=this.nextId(),s=i),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),cEe=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new YL(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(s=>{if(PE.is(s)){const o=new iE(s.edits,this._changeAnnotations);this._textEditChanges[s.textDocument.uri]=o}})):i.changes&&Object.keys(i.changes).forEach(s=>{const o=new iE(i.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(i){if(BE.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const s={uri:i.uri,version:i.version};let o=this._textEditChanges[s.uri];if(!o){const l=[],u={textDocument:s,edits:l};this._workspaceEdit.documentChanges.push(u),o=new iE(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[i];if(!s){let o=[];this._workspaceEdit.changes[i]=o,s=new iE(o),this._textEditChanges[i]=s}return s}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new YL,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(i,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;Df.is(s)||Hi.is(s)?l=s:o=s;let u,d;if(l===void 0?u=gm.create(i,o):(d=Hi.is(l)?l:this._changeAnnotations.manage(l),u=gm.create(i,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}renameFile(i,s,o,l){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Df.is(o)||Hi.is(o)?u=o:l=o;let d,h;if(u===void 0?d=mm.create(i,s,l):(h=Hi.is(u)?u:this._changeAnnotations.manage(u),d=mm.create(i,s,l,h)),this._workspaceEdit.documentChanges.push(d),h!==void 0)return h}deleteFile(i,s,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;Df.is(s)||Hi.is(s)?l=s:o=s;let u,d;if(l===void 0?u=vm.create(i,o):(d=Hi.is(l)?l:this._changeAnnotations.manage(l),u=vm.create(i,o,d)),this._workspaceEdit.documentChanges.push(u),d!==void 0)return d}},k(r,"WorkspaceChange"),r),(function(a){function i(o){return{uri:o}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)}k(s,"is"),a.is=s})(TF||(TF={})),(function(a){function i(o,l){return{uri:o,version:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&ht.integer(l.version)}k(s,"is"),a.is=s})(xF||(xF={})),(function(a){function i(o,l){return{uri:o,version:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.string(l.uri)&&(l.version===null||ht.integer(l.version))}k(s,"is"),a.is=s})(BE||(BE={})),(function(a){function i(o,l,u,d){return{uri:o,languageId:l,version:u,text:d}}k(i,"create"),a.create=i;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"),a.is=s})(CF||(CF={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(s){const o=s;return o===a.PlainText||o===a.Markdown}k(i,"is"),a.is=i})(U5||(U5={})),(function(a){function i(s){const o=s;return ht.objectLiteral(s)&&U5.is(o.kind)&&ht.string(o.value)}k(i,"is"),a.is=i})(ym||(ym={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(wF||(wF={})),(function(a){a.PlainText=1,a.Snippet=2})(kF||(kF={})),(function(a){a.Deprecated=1})(AF||(AF={})),(function(a){function i(o,l,u){return{newText:o,insert:l,replace:u}}k(i,"create"),a.create=i;function s(o){const l=o;return l&&ht.string(l.newText)&&hn.is(l.insert)&&hn.is(l.replace)}k(s,"is"),a.is=s})(RF||(RF={})),(function(a){a.asIs=1,a.adjustIndentation=2})(NF||(NF={})),(function(a){function i(s){const o=s;return o&&(ht.string(o.detail)||o.detail===void 0)&&(ht.string(o.description)||o.description===void 0)}k(i,"is"),a.is=i})(IF||(IF={})),(function(a){function i(s){return{label:s}}k(i,"create"),a.create=i})(OF||(OF={})),(function(a){function i(s,o){return{items:s||[],isIncomplete:!!o}}k(i,"create"),a.create=i})(DF||(DF={})),(function(a){function i(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}k(i,"fromPlainText"),a.fromPlainText=i;function s(o){const l=o;return ht.string(l)||ht.objectLiteral(l)&&ht.string(l.language)&&ht.string(l.value)}k(s,"is"),a.is=s})(FE||(FE={})),(function(a){function i(s){let o=s;return!!o&&ht.objectLiteral(o)&&(ym.is(o.contents)||FE.is(o.contents)||ht.typedArray(o.contents,FE.is))&&(s.range===void 0||hn.is(s.range))}k(i,"is"),a.is=i})(LF||(LF={})),(function(a){function i(s,o){return o?{label:s,documentation:o}:{label:s}}k(i,"create"),a.create=i})(MF||(MF={})),(function(a){function i(s,o,...l){let u={label:s};return ht.defined(o)&&(u.documentation=o),ht.defined(l)?u.parameters=l:u.parameters=[],u}k(i,"create"),a.create=i})(PF||(PF={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(BF||(BF={})),(function(a){function i(s,o){let l={range:s};return ht.number(o)&&(l.kind=o),l}k(i,"create"),a.create=i})(FF||(FF={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})($F||($F={})),(function(a){a.Deprecated=1})(zF||(zF={})),(function(a){function i(s,o,l,u,d){let h={name:s,kind:o,location:{uri:u,range:l}};return d&&(h.containerName=d),h}k(i,"create"),a.create=i})(UF||(UF={})),(function(a){function i(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(i,"create"),a.create=i})(GF||(GF={})),(function(a){function i(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(i,"create"),a.create=i;function s(o){let l=o;return l&&ht.string(l.name)&&ht.number(l.kind)&&hn.is(l.range)&&hn.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"),a.is=s})(qF||(qF={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(YF||(YF={})),(function(a){a.Invoked=1,a.Automatic=2})($E||($E={})),(function(a){function i(o,l,u){let d={diagnostics:o};return l!=null&&(d.only=l),u!=null&&(d.triggerKind=u),d}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.typedArray(l.diagnostics,ME.is)&&(l.only===void 0||ht.typedArray(l.only,ht.string))&&(l.triggerKind===void 0||l.triggerKind===$E.Invoked||l.triggerKind===$E.Automatic)}k(s,"is"),a.is=s})(HF||(HF={})),(function(a){function i(o,l,u){let d={title:o},h=!0;return typeof l=="string"?(h=!1,d.kind=l):Of.is(l)?d.command=l:d.edit=l,h&&u!==void 0&&(d.kind=u),d}k(i,"create"),a.create=i;function s(o){let l=o;return l&&ht.string(l.title)&&(l.diagnostics===void 0||ht.typedArray(l.diagnostics,ME.is))&&(l.kind===void 0||ht.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||Of.is(l.command))&&(l.isPreferred===void 0||ht.boolean(l.isPreferred))&&(l.edit===void 0||z5.is(l.edit))}k(s,"is"),a.is=s})(VF||(VF={})),(function(a){function i(o,l){let u={range:o};return ht.defined(l)&&(u.data=l),u}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&hn.is(l.range)&&(ht.undefined(l.command)||Of.is(l.command))}k(s,"is"),a.is=s})(WF||(WF={})),(function(a){function i(o,l){return{tabSize:o,insertSpaces:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&ht.uinteger(l.tabSize)&&ht.boolean(l.insertSpaces)}k(s,"is"),a.is=s})(KF||(KF={})),(function(a){function i(o,l,u){return{range:o,target:l,data:u}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.defined(l)&&hn.is(l.range)&&(ht.undefined(l.target)||ht.string(l.target))}k(s,"is"),a.is=s})(XF||(XF={})),(function(a){function i(o,l){return{range:o,parent:l}}k(i,"create"),a.create=i;function s(o){let l=o;return ht.objectLiteral(l)&&hn.is(l.range)&&(l.parent===void 0||a.is(l.parent))}k(s,"is"),a.is=s})(jF||(jF={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(QF||(QF={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(ZF||(ZF={})),(function(a){function i(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(i,"is"),a.is=i})(JF||(JF={})),(function(a){function i(o,l){return{range:o,text:l}}k(i,"create"),a.create=i;function s(o){const l=o;return l!=null&&hn.is(l.range)&&ht.string(l.text)}k(s,"is"),a.is=s})(e$||(e$={})),(function(a){function i(o,l,u){return{range:o,variableName:l,caseSensitiveLookup:u}}k(i,"create"),a.create=i;function s(o){const l=o;return l!=null&&hn.is(l.range)&&ht.boolean(l.caseSensitiveLookup)&&(ht.string(l.variableName)||l.variableName===void 0)}k(s,"is"),a.is=s})(t$||(t$={})),(function(a){function i(o,l){return{range:o,expression:l}}k(i,"create"),a.create=i;function s(o){const l=o;return l!=null&&hn.is(l.range)&&(ht.string(l.expression)||l.expression===void 0)}k(s,"is"),a.is=s})(r$||(r$={})),(function(a){function i(o,l){return{frameId:o,stoppedLocation:l}}k(i,"create"),a.create=i;function s(o){const l=o;return ht.defined(l)&&hn.is(o.stoppedLocation)}k(s,"is"),a.is=s})(n$||(n$={})),(function(a){a.Type=1,a.Parameter=2;function i(s){return s===1||s===2}k(i,"is"),a.is=i})(G5||(G5={})),(function(a){function i(o){return{value:o}}k(i,"create"),a.create=i;function s(o){const l=o;return ht.objectLiteral(l)&&(l.tooltip===void 0||ht.string(l.tooltip)||ym.is(l.tooltip))&&(l.location===void 0||LE.is(l.location))&&(l.command===void 0||Of.is(l.command))}k(s,"is"),a.is=s})(q5||(q5={})),(function(a){function i(o,l,u){const d={position:o,label:l};return u!==void 0&&(d.kind=u),d}k(i,"create"),a.create=i;function s(o){const l=o;return ht.objectLiteral(l)&&Cn.is(l.position)&&(ht.string(l.label)||ht.typedArray(l.label,q5.is))&&(l.kind===void 0||G5.is(l.kind))&&l.textEdits===void 0||ht.typedArray(l.textEdits,Dc.is)&&(l.tooltip===void 0||ht.string(l.tooltip)||ym.is(l.tooltip))&&(l.paddingLeft===void 0||ht.boolean(l.paddingLeft))&&(l.paddingRight===void 0||ht.boolean(l.paddingRight))}k(s,"is"),a.is=s})(a$||(a$={})),(function(a){function i(s){return{kind:"snippet",value:s}}k(i,"createSnippet"),a.createSnippet=i})(i$||(i$={})),(function(a){function i(s,o,l,u){return{insertText:s,filterText:o,range:l,command:u}}k(i,"create"),a.create=i})(s$||(s$={})),(function(a){function i(s){return{items:s}}k(i,"create"),a.create=i})(o$||(o$={})),(function(a){a.Invoked=0,a.Automatic=1})(l$||(l$={})),(function(a){function i(s,o){return{range:s,text:o}}k(i,"create"),a.create=i})(c$||(c$={})),(function(a){function i(s,o){return{triggerKind:s,selectedCompletionInfo:o}}k(i,"create"),a.create=i})(u$||(u$={})),(function(a){function i(s){const o=s;return ht.objectLiteral(o)&&B5.is(o.uri)&&ht.string(o.name)}k(i,"is"),a.is=i})(d$||(d$={})),uEe=[` `,`\r `,"\r"],(function(a){function i(u,d,h,f){return new gse(u,d,h,f)}k(i,"create"),a.create=i;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"),a.is=s;function o(u,d){let h=u.getText(),f=l(d,(g,m)=>{let v=g.range.start.line-m.range.start.line;return v===0?g.range.start.character-m.range.start.character:v}),p=h.length;for(let g=f.length-1;g>=0;g--){let m=f[g],v=u.offsetAt(m.range.start),y=u.offsetAt(m.range.end);if(y<=p)h=h.substring(0,v)+m.newText+h.substring(y,h.length);else throw new Error("Overlapping edit");p=v}return h}k(o,"applyEdits"),a.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,v=0;for(;g0&&i.push(s.length),this._lineOffsets=i}return this._lineOffsets}positionAt(i){i=Math.max(Math.min(i,this._content.length),0);let s=this.getLineOffsets(),o=0,l=s.length;if(l===0)return Cn.create(0,i);for(;oi?l=d:o=d+1}let u=o-1;return Cn.create(u,i-s[u])}offsetAt(i){let s=this.getLineOffsets();if(i.line>=s.length)return this._content.length;if(i.line<0)return 0;let o=s[i.line],l=i.line+1"u"}k(o,"undefined"),a.undefined=o;function l(y){return y===!0||y===!1}k(l,"boolean"),a.boolean=l;function u(y){return i.call(y)==="[object String]"}k(u,"string"),a.string=u;function d(y){return i.call(y)==="[object Number]"}k(d,"number"),a.number=d;function h(y,b,_){return i.call(y)==="[object Number]"&&b<=y&&y<=_}k(h,"numberRange"),a.numberRange=h;function f(y){return i.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}k(f,"integer"),a.integer=f;function p(y){return i.call(y)==="[object Number]"&&0<=y&&y<=2147483647}k(p,"uinteger"),a.uinteger=p;function g(y){return i.call(y)==="[object Function]"}k(g,"func"),a.func=g;function m(y){return y!==null&&typeof y=="object"}k(m,"objectLiteral"),a.objectLiteral=m;function v(y,b){return Array.isArray(y)&&y.every(b)}k(v,"typedArray"),a.typedArray=v})(ht||(ht={}))}}),mg=Jr({"../../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 a(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");e=i}k(a,"install"),n.install=a})(r||(r={})),t.default=r}}),WT=Jr({"../../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 a(l){return l instanceof Error}k(a,"error"),t.error=a;function i(l){return typeof l=="function"}k(i,"func"),t.func=i;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}}),E2=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var e=mg(),r;(function(o){const l={dispose(){}};o.None=function(){return l}})(r||(t.Event=r={}));var n=(i=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=a,a._noop=function(){}}}),cA=Jr({"../../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=mg(),r=WT(),n=E2(),a;(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})(a||(t.CancellationToken=a={}));var i=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?i:(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=a.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=a.None}},k(u,"CancellationTokenSource"),u);t.CancellationTokenSource=o}}),dEe=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var F,A,I,D,L,N,P,z,B,U,G,K,Y,ee,X,le,te,ne,ae,re,ge,pe,Be,Le,He;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=WT(),r;(function(Re){Re.ParseError=-32700,Re.InvalidRequest=-32600,Re.MethodNotFound=-32601,Re.InvalidParams=-32602,Re.InternalError=-32603,Re.jsonrpcReservedErrorRangeStart=-32099,Re.serverErrorStart=-32099,Re.MessageWriteError=-32099,Re.MessageReadError=-32098,Re.PendingResponseRejected=-32097,Re.ConnectionInactive=-32096,Re.ServerNotInitialized=-32002,Re.UnknownErrorCode=-32001,Re.jsonrpcReservedErrorRangeEnd=-32e3,Re.serverErrorEnd=-32e3})(r||(t.ErrorCodes=r={}));var n=(F=class extends Error{constructor(xe,$e,Ce){super($e),this.code=e.number(xe)?xe:r.UnknownErrorCode,this.data=Ce,Object.setPrototypeOf(this,F.prototype)}toJson(){const xe={code:this.code,message:this.message};return this.data!==void 0&&(xe.data=this.data),xe}},k(F,"ResponseError"),F);t.ResponseError=n;var a=(A=class{constructor(xe){this.kind=xe}static is(xe){return xe===A.auto||xe===A.byName||xe===A.byPosition}toString(){return this.kind}},k(A,"ParameterStructures"),A);t.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");var i=(I=class{constructor(xe,$e){this.method=xe,this.numberOfParams=$e}get parameterStructures(){return a.auto}},k(I,"AbstractMessageSignature"),I);t.AbstractMessageSignature=i;var s=(D=class extends i{constructor(xe){super(xe,0)}},k(D,"RequestType0"),D);t.RequestType0=s;var o=(L=class extends i{constructor(xe,$e=a.auto){super(xe,1),this._parameterStructures=$e}get parameterStructures(){return this._parameterStructures}},k(L,"RequestType"),L);t.RequestType=o;var l=(N=class extends i{constructor(xe,$e=a.auto){super(xe,1),this._parameterStructures=$e}get parameterStructures(){return this._parameterStructures}},k(N,"RequestType1"),N);t.RequestType1=l;var u=(P=class extends i{constructor(xe){super(xe,2)}},k(P,"RequestType2"),P);t.RequestType2=u;var d=(z=class extends i{constructor(xe){super(xe,3)}},k(z,"RequestType3"),z);t.RequestType3=d;var h=(B=class extends i{constructor(xe){super(xe,4)}},k(B,"RequestType4"),B);t.RequestType4=h;var f=(U=class extends i{constructor(xe){super(xe,5)}},k(U,"RequestType5"),U);t.RequestType5=f;var p=(G=class extends i{constructor(xe){super(xe,6)}},k(G,"RequestType6"),G);t.RequestType6=p;var g=(K=class extends i{constructor(xe){super(xe,7)}},k(K,"RequestType7"),K);t.RequestType7=g;var m=(Y=class extends i{constructor(xe){super(xe,8)}},k(Y,"RequestType8"),Y);t.RequestType8=m;var v=(ee=class extends i{constructor(xe){super(xe,9)}},k(ee,"RequestType9"),ee);t.RequestType9=v;var y=(X=class extends i{constructor(xe,$e=a.auto){super(xe,1),this._parameterStructures=$e}get parameterStructures(){return this._parameterStructures}},k(X,"NotificationType"),X);t.NotificationType=y;var b=(le=class extends i{constructor(xe){super(xe,0)}},k(le,"NotificationType0"),le);t.NotificationType0=b;var _=(te=class extends i{constructor(xe,$e=a.auto){super(xe,1),this._parameterStructures=$e}get parameterStructures(){return this._parameterStructures}},k(te,"NotificationType1"),te);t.NotificationType1=_;var S=(ne=class extends i{constructor(xe){super(xe,2)}},k(ne,"NotificationType2"),ne);t.NotificationType2=S;var x=(ae=class extends i{constructor(xe){super(xe,3)}},k(ae,"NotificationType3"),ae);t.NotificationType3=x;var C=(re=class extends i{constructor(xe){super(xe,4)}},k(re,"NotificationType4"),re);t.NotificationType4=C;var T=(ge=class extends i{constructor(xe){super(xe,5)}},k(ge,"NotificationType5"),ge);t.NotificationType5=T;var w=(pe=class extends i{constructor(xe){super(xe,6)}},k(pe,"NotificationType6"),pe);t.NotificationType6=w;var R=(Be=class extends i{constructor(xe){super(xe,7)}},k(Be,"NotificationType7"),Be);t.NotificationType7=R;var O=(Le=class extends i{constructor(xe){super(xe,8)}},k(Le,"NotificationType8"),Le);t.NotificationType8=O;var M=(He=class extends i{constructor(xe){super(xe,9)}},k(He,"NotificationType9"),He);t.NotificationType9=M;var $;(function(Re){function xe(ut){const Ae=ut;return Ae&&e.string(Ae.method)&&(e.string(Ae.id)||e.number(Ae.id))}k(xe,"isRequest"),Re.isRequest=xe;function $e(ut){const Ae=ut;return Ae&&e.string(Ae.method)&&ut.id===void 0}k($e,"isNotification"),Re.isNotification=$e;function Ce(ut){const Ae=ut;return Ae&&(Ae.result!==void 0||!!Ae.error)&&(e.string(Ae.id)||e.number(Ae.id)||Ae.id===null)}k(Ce,"isResponse"),Re.isResponse=Ce})($||(t.Message=$={}))}}),hEe=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var i,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=(i=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(i,"LinkedMap"),i);t.LinkedMap=n;var a=(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=a}}),h2t=Jr({"../../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(a){return{dispose:a}}k(n,"create"),r.create=n})(e||(t.Disposable=e={}))}}),f2t=Jr({"../../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=cA(),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 a=(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),i=(u=class{constructor(f){this.token=new a(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 i(p)}},k(d,"SharedArrayReceiverStrategy"),d);t.SharedArrayReceiverStrategy=s}}),fEe=Jr({"../../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=mg(),r=(n=class{constructor(i=1){if(i<=0)throw new Error("Capacity must be greater than 0");this._capacity=i,this._active=0,this._waiting=[]}lock(i){return new Promise((s,o)=>{this._waiting.push({thunk:i,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 i=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const s=i.thunk();s instanceof Promise?s.then(o=>{this._active--,i.resolve(o),this.runNext()},o=>{this._active--,i.reject(o),this.runNext()}):(this._active--,i.resolve(s),this.runNext())}catch(s){this._active--,i.reject(s),this.runNext()}}},k(n,"Semaphore"),n);t.Semaphore=r}}),p2t=Jr({"../../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=mg(),r=WT(),n=E2(),a=fEe(),i;(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})(i||(t.MessageReader=i={}));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 v=new Map;let y;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,v.set(m.name,m)),p.contentDecoders!==void 0)for(const _ of p.contentDecoders)v.set(_.name,_);if(p.contentTypeDecoder!==void 0&&(y=p.contentTypeDecoder,b.set(y.name,y)),p.contentTypeDecoders!==void 0)for(const _ of p.contentTypeDecoders)b.set(_.name,_)}return y===void 0&&(y=(0,e.default)().applicationJson.decoder,b.set(y.name,y)),{charset:g,contentDecoder:m,contentDecoders:v,contentTypeDecoder:y,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 a.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 v=parseInt(m);if(isNaN(v)){this.fireError(new Error(`Content-Length value must be a number. Got ${m}`));return}this.nextMessageLength=v}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}}),g2t=Jr({"../../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=mg(),r=WT(),n=fEe(),a=E2(),i="Content-Length: ",s=`\r -`,o;(function(p){function g(m){let v=m;return v&&r.func(v.dispose)&&r.func(v.onClose)&&r.func(v.onError)&&r.func(v.write)}k(g,"is"),p.is=g})(o||(t.MessageWriter=o={}));var l=(h=class{constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(g,m,v){this.errorEmitter.fire([this.asError(g),m,v])}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(v=>this.fireError(v)),this.writable.onClose(()=>this.fireClose())}async write(g){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(g,this.options).then(v=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(v):v).then(v=>{const y=[];return y.push(i,v.byteLength.toString(),s),y.push(s),this.doWrite(g,y,v)},v=>{throw this.fireError(v),v}))}async doWrite(g,m,v){try{return await this.writable.write(m.join(""),"ascii"),this.writable.write(v)}catch(y){return this.handleError(y,g),Promise.reject(y)}}handleError(g,m){this.errorCount++,this.fireError(g,m,this.errorCount)}end(){this.writable.end()}},k(f,"WriteableStreamMessageWriter"),f);t.WriteableStreamMessageWriter=d}}),m2t=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(t){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;var e=13,r=10,n=`\r +`&&l++}o&&s.length>0&&i.push(s.length),this._lineOffsets=i}return this._lineOffsets}positionAt(i){i=Math.max(Math.min(i,this._content.length),0);let s=this.getLineOffsets(),o=0,l=s.length;if(l===0)return Cn.create(0,i);for(;oi?l=d:o=d+1}let u=o-1;return Cn.create(u,i-s[u])}offsetAt(i){let s=this.getLineOffsets();if(i.line>=s.length)return this._content.length;if(i.line<0)return 0;let o=s[i.line],l=i.line+1"u"}k(o,"undefined"),a.undefined=o;function l(y){return y===!0||y===!1}k(l,"boolean"),a.boolean=l;function u(y){return i.call(y)==="[object String]"}k(u,"string"),a.string=u;function d(y){return i.call(y)==="[object Number]"}k(d,"number"),a.number=d;function h(y,b,_){return i.call(y)==="[object Number]"&&b<=y&&y<=_}k(h,"numberRange"),a.numberRange=h;function f(y){return i.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}k(f,"integer"),a.integer=f;function p(y){return i.call(y)==="[object Number]"&&0<=y&&y<=2147483647}k(p,"uinteger"),a.uinteger=p;function g(y){return i.call(y)==="[object Function]"}k(g,"func"),a.func=g;function m(y){return y!==null&&typeof y=="object"}k(m,"objectLiteral"),a.objectLiteral=m;function v(y,b){return Array.isArray(y)&&y.every(b)}k(v,"typedArray"),a.typedArray=v})(ht||(ht={}))}}),mg=Jr({"../../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 a(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");e=i}k(a,"install"),n.install=a})(r||(r={})),t.default=r}}),WT=Jr({"../../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 a(l){return l instanceof Error}k(a,"error"),t.error=a;function i(l){return typeof l=="function"}k(i,"func"),t.func=i;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}}),E2=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var e=mg(),r;(function(o){const l={dispose(){}};o.None=function(){return l}})(r||(t.Event=r={}));var n=(i=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=a,a._noop=function(){}}}),cA=Jr({"../../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=mg(),r=WT(),n=E2(),a;(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})(a||(t.CancellationToken=a={}));var i=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?i:(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=a.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=a.None}},k(u,"CancellationTokenSource"),u);t.CancellationTokenSource=o}}),dEe=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var F,A,I,D,L,N,P,z,B,U,G,K,Y,ee,X,le,te,ne,ae,re,ge,pe,Be,Le,He;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=WT(),r;(function(Re){Re.ParseError=-32700,Re.InvalidRequest=-32600,Re.MethodNotFound=-32601,Re.InvalidParams=-32602,Re.InternalError=-32603,Re.jsonrpcReservedErrorRangeStart=-32099,Re.serverErrorStart=-32099,Re.MessageWriteError=-32099,Re.MessageReadError=-32098,Re.PendingResponseRejected=-32097,Re.ConnectionInactive=-32096,Re.ServerNotInitialized=-32002,Re.UnknownErrorCode=-32001,Re.jsonrpcReservedErrorRangeEnd=-32e3,Re.serverErrorEnd=-32e3})(r||(t.ErrorCodes=r={}));var n=(F=class extends Error{constructor(xe,$e,Ce){super($e),this.code=e.number(xe)?xe:r.UnknownErrorCode,this.data=Ce,Object.setPrototypeOf(this,F.prototype)}toJson(){const xe={code:this.code,message:this.message};return this.data!==void 0&&(xe.data=this.data),xe}},k(F,"ResponseError"),F);t.ResponseError=n;var a=(A=class{constructor(xe){this.kind=xe}static is(xe){return xe===A.auto||xe===A.byName||xe===A.byPosition}toString(){return this.kind}},k(A,"ParameterStructures"),A);t.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");var i=(I=class{constructor(xe,$e){this.method=xe,this.numberOfParams=$e}get parameterStructures(){return a.auto}},k(I,"AbstractMessageSignature"),I);t.AbstractMessageSignature=i;var s=(D=class extends i{constructor(xe){super(xe,0)}},k(D,"RequestType0"),D);t.RequestType0=s;var o=(L=class extends i{constructor(xe,$e=a.auto){super(xe,1),this._parameterStructures=$e}get parameterStructures(){return this._parameterStructures}},k(L,"RequestType"),L);t.RequestType=o;var l=(N=class extends i{constructor(xe,$e=a.auto){super(xe,1),this._parameterStructures=$e}get parameterStructures(){return this._parameterStructures}},k(N,"RequestType1"),N);t.RequestType1=l;var u=(P=class extends i{constructor(xe){super(xe,2)}},k(P,"RequestType2"),P);t.RequestType2=u;var d=(z=class extends i{constructor(xe){super(xe,3)}},k(z,"RequestType3"),z);t.RequestType3=d;var h=(B=class extends i{constructor(xe){super(xe,4)}},k(B,"RequestType4"),B);t.RequestType4=h;var f=(U=class extends i{constructor(xe){super(xe,5)}},k(U,"RequestType5"),U);t.RequestType5=f;var p=(G=class extends i{constructor(xe){super(xe,6)}},k(G,"RequestType6"),G);t.RequestType6=p;var g=(K=class extends i{constructor(xe){super(xe,7)}},k(K,"RequestType7"),K);t.RequestType7=g;var m=(Y=class extends i{constructor(xe){super(xe,8)}},k(Y,"RequestType8"),Y);t.RequestType8=m;var v=(ee=class extends i{constructor(xe){super(xe,9)}},k(ee,"RequestType9"),ee);t.RequestType9=v;var y=(X=class extends i{constructor(xe,$e=a.auto){super(xe,1),this._parameterStructures=$e}get parameterStructures(){return this._parameterStructures}},k(X,"NotificationType"),X);t.NotificationType=y;var b=(le=class extends i{constructor(xe){super(xe,0)}},k(le,"NotificationType0"),le);t.NotificationType0=b;var _=(te=class extends i{constructor(xe,$e=a.auto){super(xe,1),this._parameterStructures=$e}get parameterStructures(){return this._parameterStructures}},k(te,"NotificationType1"),te);t.NotificationType1=_;var S=(ne=class extends i{constructor(xe){super(xe,2)}},k(ne,"NotificationType2"),ne);t.NotificationType2=S;var x=(ae=class extends i{constructor(xe){super(xe,3)}},k(ae,"NotificationType3"),ae);t.NotificationType3=x;var C=(re=class extends i{constructor(xe){super(xe,4)}},k(re,"NotificationType4"),re);t.NotificationType4=C;var T=(ge=class extends i{constructor(xe){super(xe,5)}},k(ge,"NotificationType5"),ge);t.NotificationType5=T;var w=(pe=class extends i{constructor(xe){super(xe,6)}},k(pe,"NotificationType6"),pe);t.NotificationType6=w;var R=(Be=class extends i{constructor(xe){super(xe,7)}},k(Be,"NotificationType7"),Be);t.NotificationType7=R;var O=(Le=class extends i{constructor(xe){super(xe,8)}},k(Le,"NotificationType8"),Le);t.NotificationType8=O;var M=(He=class extends i{constructor(xe){super(xe,9)}},k(He,"NotificationType9"),He);t.NotificationType9=M;var $;(function(Re){function xe(ut){const Ae=ut;return Ae&&e.string(Ae.method)&&(e.string(Ae.id)||e.number(Ae.id))}k(xe,"isRequest"),Re.isRequest=xe;function $e(ut){const Ae=ut;return Ae&&e.string(Ae.method)&&ut.id===void 0}k($e,"isNotification"),Re.isNotification=$e;function Ce(ut){const Ae=ut;return Ae&&(Ae.result!==void 0||!!Ae.error)&&(e.string(Ae.id)||e.number(Ae.id)||Ae.id===null)}k(Ce,"isResponse"),Re.isResponse=Ce})($||(t.Message=$={}))}}),hEe=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var i,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=(i=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(i,"LinkedMap"),i);t.LinkedMap=n;var a=(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=a}}),f2t=Jr({"../../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(a){return{dispose:a}}k(n,"create"),r.create=n})(e||(t.Disposable=e={}))}}),p2t=Jr({"../../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=cA(),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 a=(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),i=(u=class{constructor(f){this.token=new a(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 i(p)}},k(d,"SharedArrayReceiverStrategy"),d);t.SharedArrayReceiverStrategy=s}}),fEe=Jr({"../../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=mg(),r=(n=class{constructor(i=1){if(i<=0)throw new Error("Capacity must be greater than 0");this._capacity=i,this._active=0,this._waiting=[]}lock(i){return new Promise((s,o)=>{this._waiting.push({thunk:i,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 i=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const s=i.thunk();s instanceof Promise?s.then(o=>{this._active--,i.resolve(o),this.runNext()},o=>{this._active--,i.reject(o),this.runNext()}):(this._active--,i.resolve(s),this.runNext())}catch(s){this._active--,i.reject(s),this.runNext()}}},k(n,"Semaphore"),n);t.Semaphore=r}}),g2t=Jr({"../../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=mg(),r=WT(),n=E2(),a=fEe(),i;(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})(i||(t.MessageReader=i={}));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 v=new Map;let y;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,v.set(m.name,m)),p.contentDecoders!==void 0)for(const _ of p.contentDecoders)v.set(_.name,_);if(p.contentTypeDecoder!==void 0&&(y=p.contentTypeDecoder,b.set(y.name,y)),p.contentTypeDecoders!==void 0)for(const _ of p.contentTypeDecoders)b.set(_.name,_)}return y===void 0&&(y=(0,e.default)().applicationJson.decoder,b.set(y.name,y)),{charset:g,contentDecoder:m,contentDecoders:v,contentTypeDecoder:y,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 a.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 v=parseInt(m);if(isNaN(v)){this.fireError(new Error(`Content-Length value must be a number. Got ${m}`));return}this.nextMessageLength=v}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}}),m2t=Jr({"../../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=mg(),r=WT(),n=fEe(),a=E2(),i="Content-Length: ",s=`\r +`,o;(function(p){function g(m){let v=m;return v&&r.func(v.dispose)&&r.func(v.onClose)&&r.func(v.onError)&&r.func(v.write)}k(g,"is"),p.is=g})(o||(t.MessageWriter=o={}));var l=(h=class{constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(g,m,v){this.errorEmitter.fire([this.asError(g),m,v])}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(v=>this.fireError(v)),this.writable.onClose(()=>this.fireClose())}async write(g){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(g,this.options).then(v=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(v):v).then(v=>{const y=[];return y.push(i,v.byteLength.toString(),s),y.push(s),this.doWrite(g,y,v)},v=>{throw this.fireError(v),v}))}async doWrite(g,m,v){try{return await this.writable.write(m.join(""),"ascii"),this.writable.write(v)}catch(y){return this.handleError(y,g),Promise.reject(y)}}handleError(g,m){this.errorCount++,this.fireError(g,m,this.errorCount)}end(){this.writable.end()}},k(f,"WriteableStreamMessageWriter"),f);t.WriteableStreamMessageWriter=d}}),v2t=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(t){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;var e=13,r=10,n=`\r `,a=(i=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(i,"AbstractMessageBuffer"),i);t.AbstractMessageBuffer=a}}),v2t=Jr({"../../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=mg(),r=WT(),n=dEe(),a=hEe(),i=E2(),s=cA(),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(N){if(!r.string(N))return I.Off;switch(N=N.toLowerCase(),N){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(N){switch(N){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 v;(function(I){I.type=new n.NotificationType("$/logTrace")})(v||(t.LogTraceNotification=v={}));var y;(function(I){I[I.Closed=1]="Closed",I[I.Disposed=2]="Disposed",I[I.AlreadyListening=3]="AlreadyListening"})(y||(t.ConnectionErrors=y={}));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 N=L;return N&&r.func(N.cancelUndispatched)}k(D,"is"),I.is=D})(_||(t.ConnectionStrategy=_={}));var S;(function(I){function D(L){const N=L;return N&&(N.kind===void 0||N.kind==="id")&&r.func(N.createCancellationTokenSource)&&(N.dispose===void 0||r.func(N.dispose))}k(D,"is"),I.is=D})(S||(t.IdCancellationReceiverStrategy=S={}));var x;(function(I){function D(L){const N=L;return N&&N.kind==="request"&&r.func(N.createCancellationTokenSource)&&(N.dispose===void 0||r.func(N.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 S.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,N){return L.sendNotification(o.type,{id:N})},cleanup(L){}});function D(L){const N=L;return N&&r.func(N.sendCancellation)&&r.func(N.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 N=L;return N&&C.is(N.receiver)&&T.is(N.sender)}k(D,"is"),I.is=D})(w||(t.CancellationStrategy=w={}));var R;(function(I){function D(L){const N=L;return N&&r.func(N.handleMessage)}k(D,"is"),I.is=D})(R||(t.MessageStrategy=R={}));var O;(function(I){function D(L){const N=L;return N&&(w.is(N.cancellationStrategy)||_.is(N.connectionStrategy)||R.is(N.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,N){const P=L!==void 0?L:t.NullLogger;let z=0,B=0,U=0;const G="2.0";let K;const Y=new Map;let ee;const X=new Map,le=new Map;let te,ne=new a.LinkedMap,ae=new Map,re=new Set,ge=new Map,pe=f.Off,Be=g.Text,Le,He=M.New;const Re=new i.Emitter,xe=new i.Emitter,$e=new i.Emitter,Ce=new i.Emitter,ut=new i.Emitter,Ae=N&&N.cancellationStrategy?N.cancellationStrategy:w.Message;function je(Ne){if(Ne===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+Ne.toString()}k(je,"createRequestQueueKey");function ot(Ne){return Ne===null?"res-unknown-"+(++U).toString():"res-"+Ne.toString()}k(ot,"createResponseQueueKey");function lt(){return"not-"+(++B).toString()}k(lt,"createNotificationQueueKey");function ct(Ne,mt){n.Message.isRequest(mt)?Ne.set(je(mt.id),mt):n.Message.isResponse(mt)?Ne.set(ot(mt.id),mt):Ne.set(lt(),mt)}k(ct,"addMessageToQueue");function it(Ne){}k(it,"cancelUndispatched");function ke(){return He===M.Listening}k(ke,"isListening");function Qe(){return He===M.Closed}k(Qe,"isClosed");function _e(){return He===M.Disposed}k(_e,"isDisposed");function ye(){(He===M.New||He===M.Listening)&&(He=M.Closed,xe.fire(void 0))}k(ye,"closeHandler");function q(Ne){Re.fire([Ne,void 0,void 0])}k(q,"readErrorHandler");function fe(Ne){Re.fire(Ne)}k(fe,"writeErrorHandler"),I.onClose(ye),I.onError(q),D.onClose(ye),D.onError(fe);function j(){te||ne.size===0||(te=(0,e.default)().timer.setImmediate(()=>{te=void 0,Te()}))}k(j,"triggerMessageQueue");function we(Ne){n.Message.isRequest(Ne)?Oe(Ne):n.Message.isNotification(Ne)?Ie(Ne):n.Message.isResponse(Ne)?Pe(Ne):Ze(Ne)}k(we,"handleMessage");function Te(){if(ne.size===0)return;const Ne=ne.shift();try{const mt=N?.messageStrategy;R.is(mt)?mt.handleMessage(Ne,we):we(Ne)}finally{j()}}k(Te,"processMessageQueue");const rt=k(Ne=>{try{if(n.Message.isNotification(Ne)&&Ne.method===o.type.method){const mt=Ne.params.id,_t=je(mt),Ot=ne.get(_t);if(n.Message.isRequest(Ot)){const br=N?.connectionStrategy,Ct=br&&br.cancelUndispatched?br.cancelUndispatched(Ot,it):void 0;if(Ct&&(Ct.error!==void 0||Ct.result!==void 0)){ne.delete(_t),ge.delete(mt),Ct.id=Ot.id,Ve(Ct,Ne.method,Date.now()),D.write(Ct).catch(()=>P.error("Sending response for canceled message failed."));return}}const Qt=ge.get(mt);if(Qt!==void 0){Qt.cancel(),Tt(Ne);return}else re.add(mt)}ct(ne,Ne)}finally{j()}},"callback");function Oe(Ne){if(_e())return;function mt(pt,Dt,Zt){const kr={jsonrpc:G,id:Ne.id};pt instanceof n.ResponseError?kr.error=pt.toJson():kr.result=pt===void 0?null:pt,Ve(kr,Dt,Zt),D.write(kr).catch(()=>P.error("Sending response failed."))}k(mt,"reply");function _t(pt,Dt,Zt){const kr={jsonrpc:G,id:Ne.id,error:pt.toJson()};Ve(kr,Dt,Zt),D.write(kr).catch(()=>P.error("Sending response failed."))}k(_t,"replyError");function Ot(pt,Dt,Zt){pt===void 0&&(pt=null);const kr={jsonrpc:G,id:Ne.id,result:pt};Ve(kr,Dt,Zt),D.write(kr).catch(()=>P.error("Sending response failed."))}k(Ot,"replySuccess"),ve(Ne);const Qt=Y.get(Ne.method);let br,Ct;Qt&&(br=Qt.type,Ct=Qt.handler);const Fe=Date.now();if(Ct||K){const pt=Ne.id??String(Date.now()),Dt=S.is(Ae.receiver)?Ae.receiver.createCancellationTokenSource(pt):Ae.receiver.createCancellationTokenSource(Ne);Ne.id!==null&&re.has(Ne.id)&&Dt.cancel(),Ne.id!==null&&ge.set(pt,Dt);try{let Zt;if(Ct)if(Ne.params===void 0){if(br!==void 0&&br.numberOfParams!==0){_t(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Ne.method} defines ${br.numberOfParams} params but received none.`),Ne.method,Fe);return}Zt=Ct(Dt.token)}else if(Array.isArray(Ne.params)){if(br!==void 0&&br.parameterStructures===n.ParameterStructures.byName){_t(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Ne.method} defines parameters by name but received parameters by position`),Ne.method,Fe);return}Zt=Ct(...Ne.params,Dt.token)}else{if(br!==void 0&&br.parameterStructures===n.ParameterStructures.byPosition){_t(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Ne.method} defines parameters by position but received parameters by name`),Ne.method,Fe);return}Zt=Ct(Ne.params,Dt.token)}else K&&(Zt=K(Ne.method,Ne.params,Dt.token));const kr=Zt;Zt?kr.then?kr.then(Wr=>{ge.delete(pt),mt(Wr,Ne.method,Fe)},Wr=>{ge.delete(pt),Wr instanceof n.ResponseError?_t(Wr,Ne.method,Fe):Wr&&r.string(Wr.message)?_t(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Ne.method} failed with message: ${Wr.message}`),Ne.method,Fe):_t(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Ne.method} failed unexpectedly without providing any details.`),Ne.method,Fe)}):(ge.delete(pt),mt(Zt,Ne.method,Fe)):(ge.delete(pt),Ot(Zt,Ne.method,Fe))}catch(Zt){ge.delete(pt),Zt instanceof n.ResponseError?mt(Zt,Ne.method,Fe):Zt&&r.string(Zt.message)?_t(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Ne.method} failed with message: ${Zt.message}`),Ne.method,Fe):_t(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Ne.method} failed unexpectedly without providing any details.`),Ne.method,Fe)}}else _t(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${Ne.method}`),Ne.method,Fe)}k(Oe,"handleRequest");function Pe(Ne){if(!_e())if(Ne.id===null)Ne.error?P.error(`Received response message without id: Error is: +${v}`);const b=v.substr(0,y),_=v.substr(y+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(i,"AbstractMessageBuffer"),i);t.AbstractMessageBuffer=a}}),y2t=Jr({"../../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=mg(),r=WT(),n=dEe(),a=hEe(),i=E2(),s=cA(),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(N){if(!r.string(N))return I.Off;switch(N=N.toLowerCase(),N){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(N){switch(N){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 v;(function(I){I.type=new n.NotificationType("$/logTrace")})(v||(t.LogTraceNotification=v={}));var y;(function(I){I[I.Closed=1]="Closed",I[I.Disposed=2]="Disposed",I[I.AlreadyListening=3]="AlreadyListening"})(y||(t.ConnectionErrors=y={}));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 N=L;return N&&r.func(N.cancelUndispatched)}k(D,"is"),I.is=D})(_||(t.ConnectionStrategy=_={}));var S;(function(I){function D(L){const N=L;return N&&(N.kind===void 0||N.kind==="id")&&r.func(N.createCancellationTokenSource)&&(N.dispose===void 0||r.func(N.dispose))}k(D,"is"),I.is=D})(S||(t.IdCancellationReceiverStrategy=S={}));var x;(function(I){function D(L){const N=L;return N&&N.kind==="request"&&r.func(N.createCancellationTokenSource)&&(N.dispose===void 0||r.func(N.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 S.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,N){return L.sendNotification(o.type,{id:N})},cleanup(L){}});function D(L){const N=L;return N&&r.func(N.sendCancellation)&&r.func(N.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 N=L;return N&&C.is(N.receiver)&&T.is(N.sender)}k(D,"is"),I.is=D})(w||(t.CancellationStrategy=w={}));var R;(function(I){function D(L){const N=L;return N&&r.func(N.handleMessage)}k(D,"is"),I.is=D})(R||(t.MessageStrategy=R={}));var O;(function(I){function D(L){const N=L;return N&&(w.is(N.cancellationStrategy)||_.is(N.connectionStrategy)||R.is(N.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,N){const P=L!==void 0?L:t.NullLogger;let z=0,B=0,U=0;const G="2.0";let K;const Y=new Map;let ee;const X=new Map,le=new Map;let te,ne=new a.LinkedMap,ae=new Map,re=new Set,ge=new Map,pe=f.Off,Be=g.Text,Le,He=M.New;const Re=new i.Emitter,xe=new i.Emitter,$e=new i.Emitter,Ce=new i.Emitter,ut=new i.Emitter,Ae=N&&N.cancellationStrategy?N.cancellationStrategy:w.Message;function je(Ne){if(Ne===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+Ne.toString()}k(je,"createRequestQueueKey");function ot(Ne){return Ne===null?"res-unknown-"+(++U).toString():"res-"+Ne.toString()}k(ot,"createResponseQueueKey");function lt(){return"not-"+(++B).toString()}k(lt,"createNotificationQueueKey");function ct(Ne,mt){n.Message.isRequest(mt)?Ne.set(je(mt.id),mt):n.Message.isResponse(mt)?Ne.set(ot(mt.id),mt):Ne.set(lt(),mt)}k(ct,"addMessageToQueue");function it(Ne){}k(it,"cancelUndispatched");function ke(){return He===M.Listening}k(ke,"isListening");function Qe(){return He===M.Closed}k(Qe,"isClosed");function _e(){return He===M.Disposed}k(_e,"isDisposed");function ye(){(He===M.New||He===M.Listening)&&(He=M.Closed,xe.fire(void 0))}k(ye,"closeHandler");function q(Ne){Re.fire([Ne,void 0,void 0])}k(q,"readErrorHandler");function fe(Ne){Re.fire(Ne)}k(fe,"writeErrorHandler"),I.onClose(ye),I.onError(q),D.onClose(ye),D.onError(fe);function j(){te||ne.size===0||(te=(0,e.default)().timer.setImmediate(()=>{te=void 0,Te()}))}k(j,"triggerMessageQueue");function we(Ne){n.Message.isRequest(Ne)?Oe(Ne):n.Message.isNotification(Ne)?Ie(Ne):n.Message.isResponse(Ne)?Pe(Ne):Ze(Ne)}k(we,"handleMessage");function Te(){if(ne.size===0)return;const Ne=ne.shift();try{const mt=N?.messageStrategy;R.is(mt)?mt.handleMessage(Ne,we):we(Ne)}finally{j()}}k(Te,"processMessageQueue");const rt=k(Ne=>{try{if(n.Message.isNotification(Ne)&&Ne.method===o.type.method){const mt=Ne.params.id,_t=je(mt),Ot=ne.get(_t);if(n.Message.isRequest(Ot)){const br=N?.connectionStrategy,Ct=br&&br.cancelUndispatched?br.cancelUndispatched(Ot,it):void 0;if(Ct&&(Ct.error!==void 0||Ct.result!==void 0)){ne.delete(_t),ge.delete(mt),Ct.id=Ot.id,Ve(Ct,Ne.method,Date.now()),D.write(Ct).catch(()=>P.error("Sending response for canceled message failed."));return}}const Qt=ge.get(mt);if(Qt!==void 0){Qt.cancel(),Tt(Ne);return}else re.add(mt)}ct(ne,Ne)}finally{j()}},"callback");function Oe(Ne){if(_e())return;function mt(pt,Dt,Zt){const kr={jsonrpc:G,id:Ne.id};pt instanceof n.ResponseError?kr.error=pt.toJson():kr.result=pt===void 0?null:pt,Ve(kr,Dt,Zt),D.write(kr).catch(()=>P.error("Sending response failed."))}k(mt,"reply");function _t(pt,Dt,Zt){const kr={jsonrpc:G,id:Ne.id,error:pt.toJson()};Ve(kr,Dt,Zt),D.write(kr).catch(()=>P.error("Sending response failed."))}k(_t,"replyError");function Ot(pt,Dt,Zt){pt===void 0&&(pt=null);const kr={jsonrpc:G,id:Ne.id,result:pt};Ve(kr,Dt,Zt),D.write(kr).catch(()=>P.error("Sending response failed."))}k(Ot,"replySuccess"),ve(Ne);const Qt=Y.get(Ne.method);let br,Ct;Qt&&(br=Qt.type,Ct=Qt.handler);const Fe=Date.now();if(Ct||K){const pt=Ne.id??String(Date.now()),Dt=S.is(Ae.receiver)?Ae.receiver.createCancellationTokenSource(pt):Ae.receiver.createCancellationTokenSource(Ne);Ne.id!==null&&re.has(Ne.id)&&Dt.cancel(),Ne.id!==null&&ge.set(pt,Dt);try{let Zt;if(Ct)if(Ne.params===void 0){if(br!==void 0&&br.numberOfParams!==0){_t(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Ne.method} defines ${br.numberOfParams} params but received none.`),Ne.method,Fe);return}Zt=Ct(Dt.token)}else if(Array.isArray(Ne.params)){if(br!==void 0&&br.parameterStructures===n.ParameterStructures.byName){_t(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Ne.method} defines parameters by name but received parameters by position`),Ne.method,Fe);return}Zt=Ct(...Ne.params,Dt.token)}else{if(br!==void 0&&br.parameterStructures===n.ParameterStructures.byPosition){_t(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${Ne.method} defines parameters by position but received parameters by name`),Ne.method,Fe);return}Zt=Ct(Ne.params,Dt.token)}else K&&(Zt=K(Ne.method,Ne.params,Dt.token));const kr=Zt;Zt?kr.then?kr.then(Wr=>{ge.delete(pt),mt(Wr,Ne.method,Fe)},Wr=>{ge.delete(pt),Wr instanceof n.ResponseError?_t(Wr,Ne.method,Fe):Wr&&r.string(Wr.message)?_t(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Ne.method} failed with message: ${Wr.message}`),Ne.method,Fe):_t(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Ne.method} failed unexpectedly without providing any details.`),Ne.method,Fe)}):(ge.delete(pt),mt(Zt,Ne.method,Fe)):(ge.delete(pt),Ot(Zt,Ne.method,Fe))}catch(Zt){ge.delete(pt),Zt instanceof n.ResponseError?mt(Zt,Ne.method,Fe):Zt&&r.string(Zt.message)?_t(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Ne.method} failed with message: ${Zt.message}`),Ne.method,Fe):_t(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${Ne.method} failed unexpectedly without providing any details.`),Ne.method,Fe)}}else _t(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${Ne.method}`),Ne.method,Fe)}k(Oe,"handleRequest");function Pe(Ne){if(!_e())if(Ne.id===null)Ne.error?P.error(`Received response message without id: Error is: ${JSON.stringify(Ne.error,void 0,4)}`):P.error("Received response message without id. No further error information provided.");else{const mt=Ne.id,_t=ae.get(mt);if(St(Ne,_t),_t!==void 0){ae.delete(mt);try{if(Ne.error){const Ot=Ne.error;_t.reject(new n.ResponseError(Ot.code,Ot.message,Ot.data))}else if(Ne.result!==void 0)_t.resolve(Ne.result);else throw new Error("Should never happen.")}catch(Ot){Ot.message?P.error(`Response handler '${_t.method}' failed with message: ${Ot.message}`):P.error(`Response handler '${_t.method}' failed unexpectedly.`)}}}}k(Pe,"handleResponse");function Ie(Ne){if(_e())return;let mt,_t;if(Ne.method===o.type.method){const Ot=Ne.params.id;re.delete(Ot),Tt(Ne);return}else{const Ot=X.get(Ne.method);Ot&&(_t=Ot.handler,mt=Ot.type)}if(_t||ee)try{if(Tt(Ne),_t)if(Ne.params===void 0)mt!==void 0&&mt.numberOfParams!==0&&mt.parameterStructures!==n.ParameterStructures.byName&&P.error(`Notification ${Ne.method} defines ${mt.numberOfParams} params but received none.`),_t();else if(Array.isArray(Ne.params)){const Ot=Ne.params;Ne.method===u.type.method&&Ot.length===2&&l.is(Ot[0])?_t({token:Ot[0],value:Ot[1]}):(mt!==void 0&&(mt.parameterStructures===n.ParameterStructures.byName&&P.error(`Notification ${Ne.method} defines parameters by name but received parameters by position`),mt.numberOfParams!==Ne.params.length&&P.error(`Notification ${Ne.method} defines ${mt.numberOfParams} params but received ${Ot.length} arguments`)),_t(...Ot))}else mt!==void 0&&mt.parameterStructures===n.ParameterStructures.byPosition&&P.error(`Notification ${Ne.method} defines parameters by position but received parameters by name`),_t(Ne.params);else ee&&ee(Ne.method,Ne.params)}catch(Ot){Ot.message?P.error(`Notification handler '${Ne.method}' failed with message: ${Ot.message}`):P.error(`Notification handler '${Ne.method}' failed unexpectedly.`)}else $e.fire(Ne)}k(Ie,"handleNotification");function Ze(Ne){if(!Ne){P.error("Received empty message.");return}P.error(`Received message which is neither a response nor a notification message: ${JSON.stringify(Ne,null,4)}`);const mt=Ne;if(r.string(mt.id)||r.number(mt.id)){const _t=mt.id,Ot=ae.get(_t);Ot&&Ot.reject(new Error("The received response has neither a result nor an error property."))}}k(Ze,"handleInvalidMessage");function ze(Ne){if(Ne!=null)switch(pe){case f.Verbose:return JSON.stringify(Ne,null,4);case f.Compact:return JSON.stringify(Ne);default:return}}k(ze,"stringifyTrace");function me(Ne){if(!(pe===f.Off||!Le))if(Be===g.Text){let mt;(pe===f.Verbose||pe===f.Compact)&&Ne.params&&(mt=`Params: ${ze(Ne.params)} @@ -5262,18 +5267,18 @@ ${JSON.stringify(Ne,null,4)}`);const mt=Ne;if(r.string(mt.id)||r.number(mt.id)){ `:Ne.error===void 0&&(_t=`No result returned. -`)),mt){const Ot=Ne.error?` Request failed: ${Ne.error.message} (${Ne.error.code}).`:"";Le.log(`Received response '${mt.method} - (${Ne.id})' in ${Date.now()-mt.timerStart}ms.${Ot}`,_t)}else Le.log(`Received response ${Ne.id} without active response promise.`,_t)}else nt("receive-response",Ne)}k(St,"traceReceivedResponse");function nt(Ne,mt){if(!Le||pe===f.Off)return;const _t={isLSPMessage:!0,type:Ne,message:mt,timestamp:Date.now()};Le.log(_t)}k(nt,"logLSPMessage");function dt(){if(Qe())throw new b(y.Closed,"Connection is closed.");if(_e())throw new b(y.Disposed,"Connection is disposed.")}k(dt,"throwIfClosedOrDisposed");function ft(){if(ke())throw new b(y.AlreadyListening,"Connection is already listening")}k(ft,"throwIfListening");function gt(){if(!ke())throw new Error("Call listen() first.")}k(gt,"throwIfNotListening");function se(Ne){return Ne===void 0?null:Ne}k(se,"undefinedToNull");function It(Ne){if(Ne!==null)return Ne}k(It,"nullToUndefined");function bt(Ne){return Ne!=null&&!Array.isArray(Ne)&&typeof Ne=="object"}k(bt,"isNamedParam");function Et(Ne,mt){switch(Ne){case n.ParameterStructures.auto:return bt(mt)?It(mt):[se(mt)];case n.ParameterStructures.byName:if(!bt(mt))throw new Error("Received parameters by name but param is not an object literal.");return It(mt);case n.ParameterStructures.byPosition:return[se(mt)];default:throw new Error(`Unknown parameter structure ${Ne.toString()}`)}}k(Et,"computeSingleParam");function Nt(Ne,mt){let _t;const Ot=Ne.numberOfParams;switch(Ot){case 0:_t=void 0;break;case 1:_t=Et(Ne.parameterStructures,mt[0]);break;default:_t=[];for(let Qt=0;Qt{dt();let _t,Ot;if(r.string(Ne)){_t=Ne;const br=mt[0];let Ct=0,Fe=n.ParameterStructures.auto;n.ParameterStructures.is(br)&&(Ct=1,Fe=br);let pt=mt.length;const Dt=pt-Ct;switch(Dt){case 0:Ot=void 0;break;case 1:Ot=Et(Fe,mt[Ct]);break;default:if(Fe===n.ParameterStructures.byName)throw new Error(`Received ${Dt} parameters for 'by Name' notification parameter structure.`);Ot=mt.slice(Ct,pt).map(Zt=>se(Zt));break}}else{const br=mt;_t=Ne.method,Ot=Nt(Ne,br)}const Qt={jsonrpc:G,method:_t,params:Ot};return ie(Qt),D.write(Qt).catch(br=>{throw P.error("Sending notification failed."),br})},"sendNotification"),onNotification:k((Ne,mt)=>{dt();let _t;return r.func(Ne)?ee=Ne:mt&&(r.string(Ne)?(_t=Ne,X.set(Ne,{type:void 0,handler:mt})):(_t=Ne.method,X.set(Ne.method,{type:Ne,handler:mt}))),{dispose:k(()=>{_t!==void 0?X.delete(_t):ee=void 0},"dispose")}},"onNotification"),onProgress:k((Ne,mt,_t)=>{if(le.has(mt))throw new Error(`Progress handler for token ${mt} already registered`);return le.set(mt,_t),{dispose:k(()=>{le.delete(mt)},"dispose")}},"onProgress"),sendProgress:k((Ne,mt,_t)=>Vr.sendNotification(u.type,{token:mt,value:_t}),"sendProgress"),onUnhandledProgress:Ce.event,sendRequest:k((Ne,...mt)=>{dt(),gt();let _t,Ot,Qt;if(r.string(Ne)){_t=Ne;const pt=mt[0],Dt=mt[mt.length-1];let Zt=0,kr=n.ParameterStructures.auto;n.ParameterStructures.is(pt)&&(Zt=1,kr=pt);let Wr=mt.length;s.CancellationToken.is(Dt)&&(Wr=Wr-1,Qt=Dt);const Xr=Wr-Zt;switch(Xr){case 0:Ot=void 0;break;case 1:Ot=Et(kr,mt[Zt]);break;default:if(kr===n.ParameterStructures.byName)throw new Error(`Received ${Xr} parameters for 'by Name' request parameter structure.`);Ot=mt.slice(Zt,Wr).map(qn=>se(qn));break}}else{const pt=mt;_t=Ne.method,Ot=Nt(Ne,pt);const Dt=Ne.numberOfParams;Qt=s.CancellationToken.is(pt[Dt])?pt[Dt]:void 0}const br=z++;let Ct;Qt&&(Ct=Qt.onCancellationRequested(()=>{const pt=Ae.sender.sendCancellation(Vr,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 Fe={jsonrpc:G,id:br,method:_t,params:Ot};return me(Fe),typeof Ae.sender.enableCancellation=="function"&&Ae.sender.enableCancellation(Fe),new Promise(async(pt,Dt)=>{const Zt=k(Xr=>{pt(Xr),Ae.sender.cleanup(br),Ct?.dispose()},"resolveWithCleanup"),kr=k(Xr=>{Dt(Xr),Ae.sender.cleanup(br),Ct?.dispose()},"rejectWithCleanup"),Wr={method:_t,timerStart:Date.now(),resolve:Zt,reject:kr};try{await D.write(Fe),ae.set(br,Wr)}catch(Xr){throw P.error("Sending request failed."),Wr.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,Xr.message?Xr.message:"Unknown reason")),Xr}})},"sendRequest"),onRequest:k((Ne,mt)=>{dt();let _t=null;return h.is(Ne)?(_t=void 0,K=Ne):r.string(Ne)?(_t=null,mt!==void 0&&(_t=Ne,Y.set(Ne,{handler:mt,type:void 0}))):mt!==void 0&&(_t=Ne.method,Y.set(Ne.method,{type:Ne,handler:mt})),{dispose:k(()=>{_t!==null&&(_t!==void 0?Y.delete(_t):K=void 0)},"dispose")}},"onRequest"),hasPendingResponse:k(()=>ae.size>0,"hasPendingResponse"),trace:k(async(Ne,mt,_t)=>{let Ot=!1,Qt=g.Text;_t!==void 0&&(r.boolean(_t)?Ot=_t:(Ot=_t.sendNotification||!1,Qt=_t.traceFormat||g.Text)),pe=Ne,Be=Qt,pe===f.Off?Le=void 0:Le=mt,Ot&&!Qe()&&!_e()&&await Vr.sendNotification(m.type,{value:f.toString(Ne)})},"trace"),onError:Re.event,onClose:xe.event,onUnhandledNotification:$e.event,onDispose:ut.event,end:k(()=>{D.end()},"end"),dispose:k(()=>{if(_e())return;He=M.Disposed,ut.fire(void 0);const Ne=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const mt of ae.values())mt.reject(Ne);ae=new Map,ge=new Map,re=new Set,ne=new a.LinkedMap,r.func(D.dispose)&&D.dispose(),r.func(I.dispose)&&I.dispose()},"dispose"),listen:k(()=>{dt(),ft(),He=M.Listening,I.listen(rt)},"listen"),inspect:k(()=>{(0,e.default)().console.log("inspect")},"inspect")};return Vr.onNotification(v.type,Ne=>{if(pe===f.Off||!Le)return;const mt=pe===f.Verbose||pe===f.Compact;Le.log(Ne.message,mt?Ne.verbose:void 0)}),Vr.onNotification(u.type,Ne=>{const mt=le.get(Ne.token);mt?mt(Ne.value):Ce.fire(Ne)}),Vr}k($,"createMessageConnection"),t.createMessageConnection=$}}),f$=Jr({"../../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=dEe();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=hEe();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=h2t();Object.defineProperty(t,"Disposable",{enumerable:!0,get:k(function(){return n.Disposable},"get")});var a=E2();Object.defineProperty(t,"Event",{enumerable:!0,get:k(function(){return a.Event},"get")}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:k(function(){return a.Emitter},"get")});var i=cA();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:k(function(){return i.CancellationTokenSource},"get")}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:k(function(){return i.CancellationToken},"get")});var s=f2t();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=p2t();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=g2t();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=m2t();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:k(function(){return u.AbstractMessageBuffer},"get")});var d=v2t();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=mg();t.RAL=h.default}}),y2t=Jr({"../../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=f$(),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),a=(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),i=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(i.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 a(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}}),S2=Jr({"../../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=y2t();n.default.install();var a=f$();r(f$(),t);var i=(l=class extends a.AbstractMessageReader{constructor(h){super(),this._onData=new a.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=i;var s=(u=class extends a.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=a.NullLogger),a.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,a.createMessageConnection)(d,h,f,p)}k(o,"createMessageConnection"),t.createMessageConnection=o}}),mse=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(t,e){e.exports=S2()}}),Ia=Jr({"../../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=S2(),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 a=(u=class extends e.RequestType0{constructor(g){super(g)}},k(u,"ProtocolRequestType0"),u);t.ProtocolRequestType0=a;var i=(d=class extends e.RequestType{constructor(g){super(g,e.ParameterStructures.byName)}},k(d,"ProtocolRequestType"),d);t.ProtocolRequestType=i;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}}),UY=Jr({"../../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 a(d){return d instanceof Error}k(a,"error"),t.error=a;function i(d){return typeof d=="function"}k(i,"func"),t.func=i;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}}),_2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ImplementationRequest=r={}))}}),b2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.TypeDefinitionRequest=r={}))}}),E2t=Jr({"../../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=Ia(),r;(function(a){a.method="workspace/workspaceFolders",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(r||(t.WorkspaceFoldersRequest=r={}));var n;(function(a){a.method="workspace/didChangeWorkspaceFolders",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolNotificationType(a.method)})(n||(t.DidChangeWorkspaceFoldersNotification=n={}))}}),S2t=Jr({"../../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=Ia(),r;(function(n){n.method="workspace/configuration",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ConfigurationRequest=r={}))}}),T2t=Jr({"../../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=Ia(),r;(function(a){a.method="textDocument/documentColor",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.DocumentColorRequest=r={}));var n;(function(a){a.method="textDocument/colorPresentation",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.ColorPresentationRequest=n={}))}}),x2t=Jr({"../../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=Ia(),r;(function(a){a.method="textDocument/foldingRange",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.FoldingRangeRequest=r={}));var n;(function(a){a.method="workspace/foldingRange/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(n||(t.FoldingRangeRefreshRequest=n={}))}}),C2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.DeclarationRequest=r={}))}}),w2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.SelectionRangeRequest=r={}))}}),k2t=Jr({"../../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=S2(),r=Ia(),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 a;(function(s){s.method="window/workDoneProgress/create",s.messageDirection=r.MessageDirection.serverToClient,s.type=new r.ProtocolRequestType(s.method)})(a||(t.WorkDoneProgressCreateRequest=a={}));var i;(function(s){s.method="window/workDoneProgress/cancel",s.messageDirection=r.MessageDirection.clientToServer,s.type=new r.ProtocolNotificationType(s.method)})(i||(t.WorkDoneProgressCancelNotification=i={}))}}),A2t=Jr({"../../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=Ia(),r;(function(i){i.method="textDocument/prepareCallHierarchy",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.CallHierarchyPrepareRequest=r={}));var n;(function(i){i.method="callHierarchy/incomingCalls",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.CallHierarchyIncomingCallsRequest=n={}));var a;(function(i){i.method="callHierarchy/outgoingCalls",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.CallHierarchyOutgoingCallsRequest=a={}))}}),R2t=Jr({"../../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=Ia(),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 a;(function(l){l.method="textDocument/semanticTokens/full",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(a||(t.SemanticTokensRequest=a={}));var i;(function(l){l.method="textDocument/semanticTokens/full/delta",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(i||(t.SemanticTokensDeltaRequest=i={}));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={}))}}),N2t=Jr({"../../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=Ia(),r;(function(n){n.method="window/showDocument",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ShowDocumentRequest=r={}))}}),I2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.LinkedEditingRangeRequest=r={}))}}),O2t=Jr({"../../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=Ia(),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 a;(function(u){u.method="workspace/didCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(a||(t.DidCreateFilesNotification=a={}));var i;(function(u){u.method="workspace/willRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(i||(t.WillRenameFilesRequest=i={}));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={}))}}),D2t=Jr({"../../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=Ia(),r;(function(i){i.document="document",i.project="project",i.group="group",i.scheme="scheme",i.global="global"})(r||(t.UniquenessLevel=r={}));var n;(function(i){i.$import="import",i.$export="export",i.local="local"})(n||(t.MonikerKind=n={}));var a;(function(i){i.method="textDocument/moniker",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.MonikerRequest=a={}))}}),L2t=Jr({"../../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=Ia(),r;(function(i){i.method="textDocument/prepareTypeHierarchy",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.TypeHierarchyPrepareRequest=r={}));var n;(function(i){i.method="typeHierarchy/supertypes",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.TypeHierarchySupertypesRequest=n={}));var a;(function(i){i.method="typeHierarchy/subtypes",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.TypeHierarchySubtypesRequest=a={}))}}),M2t=Jr({"../../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=Ia(),r;(function(a){a.method="textDocument/inlineValue",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.InlineValueRequest=r={}));var n;(function(a){a.method="workspace/inlineValue/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(n||(t.InlineValueRefreshRequest=n={}))}}),P2t=Jr({"../../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=Ia(),r;(function(i){i.method="textDocument/inlayHint",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.InlayHintRequest=r={}));var n;(function(i){i.method="inlayHint/resolve",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.InlayHintResolveRequest=n={}));var a;(function(i){i.method="workspace/inlayHint/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(a||(t.InlayHintRefreshRequest=a={}))}}),B2t=Jr({"../../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=S2(),r=UY(),n=Ia(),a;(function(u){function d(h){const f=h;return f&&r.boolean(f.retriggerRequest)}k(d,"is"),u.is=d})(a||(t.DiagnosticServerCancellationData=a={}));var i;(function(u){u.Full="full",u.Unchanged="unchanged"})(i||(t.DocumentDiagnosticReportKind=i={}));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={}))}}),F2t=Jr({"../../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=(VT(),zY(lA)),r=UY(),n=Ia(),a;(function(g){g.Markup=1,g.Code=2;function m(v){return v===1||v===2}k(m,"is"),g.is=m})(a||(t.NotebookCellKind=a={}));var i;(function(g){function m(b,_){const S={executionOrder:b};return(_===!0||_===!1)&&(S.success=_),S}k(m,"create"),g.create=m;function v(b){const _=b;return r.objectLiteral(_)&&e.uinteger.is(_.executionOrder)&&(_.success===void 0||r.boolean(_.success))}k(v,"is"),g.is=v;function y(b,_){return b===_?!0:b==null||_===null||_===void 0?!1:b.executionOrder===_.executionOrder&&b.success===_.success}k(y,"equals"),g.equals=y})(i||(t.ExecutionSummary=i={}));var s;(function(g){function m(_,S){return{kind:_,document:S}}k(m,"create"),g.create=m;function v(_){const S=_;return r.objectLiteral(S)&&a.is(S.kind)&&e.DocumentUri.is(S.document)&&(S.metadata===void 0||r.objectLiteral(S.metadata))}k(v,"is"),g.is=v;function y(_,S){const x=new Set;return _.document!==S.document&&x.add("document"),_.kind!==S.kind&&x.add("kind"),_.executionSummary!==S.executionSummary&&x.add("executionSummary"),(_.metadata!==void 0||S.metadata!==void 0)&&!b(_.metadata,S.metadata)&&x.add("metadata"),(_.executionSummary!==void 0||S.executionSummary!==void 0)&&!i.equals(_.executionSummary,S.executionSummary)&&x.add("executionSummary"),x}k(y,"diff"),g.diff=y;function b(_,S){if(_===S)return!0;if(_==null||S===null||S===void 0||typeof _!=typeof S||typeof _!="object")return!1;const x=Array.isArray(_),C=Array.isArray(S);if(x!==C)return!1;if(x&&C){if(_.length!==S.length)return!1;for(let T=0;T<_.length;T++)if(!b(_[T],S[T]))return!1}if(r.objectLiteral(_)&&r.objectLiteral(S)){const T=Object.keys(_),w=Object.keys(S);if(T.length!==w.length||(T.sort(),w.sort(),!b(T,w)))return!1;for(let R=0;R0}k(It,"hasId"),se.hasId=It})(N||(t.StaticRegistrationOptions=N={}));var P;(function(se){function It(bt){const Et=bt;return Et&&(Et.documentSelector===null||$.is(Et.documentSelector))}k(It,"is"),se.is=It})(P||(t.TextDocumentRegistrationOptions=P={}));var z;(function(se){function It(Et){const Nt=Et;return n.objectLiteral(Nt)&&(Nt.workDoneProgress===void 0||n.boolean(Nt.workDoneProgress))}k(It,"is"),se.is=It;function bt(Et){const Nt=Et;return Nt&&n.boolean(Nt.workDoneProgress)}k(bt,"hasWorkDoneProgress"),se.hasWorkDoneProgress=bt})(z||(t.WorkDoneProgressOptions=z={}));var B;(function(se){se.method="initialize",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(B||(t.InitializeRequest=B={}));var U;(function(se){se.unknownProtocolVersion=1})(U||(t.InitializeErrorCodes=U={}));var G;(function(se){se.method="initialized",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(G||(t.InitializedNotification=G={}));var K;(function(se){se.method="shutdown",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType0(se.method)})(K||(t.ShutdownRequest=K={}));var Y;(function(se){se.method="exit",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType0(se.method)})(Y||(t.ExitNotification=Y={}));var ee;(function(se){se.method="workspace/didChangeConfiguration",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(ee||(t.DidChangeConfigurationNotification=ee={}));var X;(function(se){se.Error=1,se.Warning=2,se.Info=3,se.Log=4,se.Debug=5})(X||(t.MessageType=X={}));var le;(function(se){se.method="window/showMessage",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolNotificationType(se.method)})(le||(t.ShowMessageNotification=le={}));var te;(function(se){se.method="window/showMessageRequest",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolRequestType(se.method)})(te||(t.ShowMessageRequest=te={}));var ne;(function(se){se.method="window/logMessage",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolNotificationType(se.method)})(ne||(t.LogMessageNotification=ne={}));var ae;(function(se){se.method="telemetry/event",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolNotificationType(se.method)})(ae||(t.TelemetryEventNotification=ae={}));var re;(function(se){se.None=0,se.Full=1,se.Incremental=2})(re||(t.TextDocumentSyncKind=re={}));var ge;(function(se){se.method="textDocument/didOpen",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(ge||(t.DidOpenTextDocumentNotification=ge={}));var pe;(function(se){function It(Et){let Nt=Et;return Nt!=null&&typeof Nt.text=="string"&&Nt.range!==void 0&&(Nt.rangeLength===void 0||typeof Nt.rangeLength=="number")}k(It,"isIncremental"),se.isIncremental=It;function bt(Et){let Nt=Et;return Nt!=null&&typeof Nt.text=="string"&&Nt.range===void 0&&Nt.rangeLength===void 0}k(bt,"isFull"),se.isFull=bt})(pe||(t.TextDocumentContentChangeEvent=pe={}));var Be;(function(se){se.method="textDocument/didChange",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(Be||(t.DidChangeTextDocumentNotification=Be={}));var Le;(function(se){se.method="textDocument/didClose",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(Le||(t.DidCloseTextDocumentNotification=Le={}));var He;(function(se){se.method="textDocument/didSave",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(He||(t.DidSaveTextDocumentNotification=He={}));var Re;(function(se){se.Manual=1,se.AfterDelay=2,se.FocusOut=3})(Re||(t.TextDocumentSaveReason=Re={}));var xe;(function(se){se.method="textDocument/willSave",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(xe||(t.WillSaveTextDocumentNotification=xe={}));var $e;(function(se){se.method="textDocument/willSaveWaitUntil",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})($e||(t.WillSaveTextDocumentWaitUntilRequest=$e={}));var Ce;(function(se){se.method="workspace/didChangeWatchedFiles",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(Ce||(t.DidChangeWatchedFilesNotification=Ce={}));var ut;(function(se){se.Created=1,se.Changed=2,se.Deleted=3})(ut||(t.FileChangeType=ut={}));var Ae;(function(se){function It(bt){const Et=bt;return n.objectLiteral(Et)&&(r.URI.is(Et.baseUri)||r.WorkspaceFolder.is(Et.baseUri))&&n.string(Et.pattern)}k(It,"is"),se.is=It})(Ae||(t.RelativePattern=Ae={}));var je;(function(se){se.Create=1,se.Change=2,se.Delete=4})(je||(t.WatchKind=je={}));var ot;(function(se){se.method="textDocument/publishDiagnostics",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolNotificationType(se.method)})(ot||(t.PublishDiagnosticsNotification=ot={}));var lt;(function(se){se.Invoked=1,se.TriggerCharacter=2,se.TriggerForIncompleteCompletions=3})(lt||(t.CompletionTriggerKind=lt={}));var ct;(function(se){se.method="textDocument/completion",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ct||(t.CompletionRequest=ct={}));var it;(function(se){se.method="completionItem/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(it||(t.CompletionResolveRequest=it={}));var ke;(function(se){se.method="textDocument/hover",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ke||(t.HoverRequest=ke={}));var Qe;(function(se){se.Invoked=1,se.TriggerCharacter=2,se.ContentChange=3})(Qe||(t.SignatureHelpTriggerKind=Qe={}));var _e;(function(se){se.method="textDocument/signatureHelp",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(_e||(t.SignatureHelpRequest=_e={}));var ye;(function(se){se.method="textDocument/definition",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ye||(t.DefinitionRequest=ye={}));var q;(function(se){se.method="textDocument/references",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(q||(t.ReferencesRequest=q={}));var fe;(function(se){se.method="textDocument/documentHighlight",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(fe||(t.DocumentHighlightRequest=fe={}));var j;(function(se){se.method="textDocument/documentSymbol",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(j||(t.DocumentSymbolRequest=j={}));var we;(function(se){se.method="textDocument/codeAction",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(we||(t.CodeActionRequest=we={}));var Te;(function(se){se.method="codeAction/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Te||(t.CodeActionResolveRequest=Te={}));var rt;(function(se){se.method="workspace/symbol",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(rt||(t.WorkspaceSymbolRequest=rt={}));var Oe;(function(se){se.method="workspaceSymbol/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Oe||(t.WorkspaceSymbolResolveRequest=Oe={}));var Pe;(function(se){se.method="textDocument/codeLens",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Pe||(t.CodeLensRequest=Pe={}));var Ie;(function(se){se.method="codeLens/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Ie||(t.CodeLensResolveRequest=Ie={}));var Ze;(function(se){se.method="workspace/codeLens/refresh",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolRequestType0(se.method)})(Ze||(t.CodeLensRefreshRequest=Ze={}));var ze;(function(se){se.method="textDocument/documentLink",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ze||(t.DocumentLinkRequest=ze={}));var me;(function(se){se.method="documentLink/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(me||(t.DocumentLinkResolveRequest=me={}));var ie;(function(se){se.method="textDocument/formatting",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ie||(t.DocumentFormattingRequest=ie={}));var Ve;(function(se){se.method="textDocument/rangeFormatting",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Ve||(t.DocumentRangeFormattingRequest=Ve={}));var ve;(function(se){se.method="textDocument/rangesFormatting",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ve||(t.DocumentRangesFormattingRequest=ve={}));var Tt;(function(se){se.method="textDocument/onTypeFormatting",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Tt||(t.DocumentOnTypeFormattingRequest=Tt={}));var St;(function(se){se.Identifier=1})(St||(t.PrepareSupportDefaultBehavior=St={}));var nt;(function(se){se.method="textDocument/rename",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(nt||(t.RenameRequest=nt={}));var dt;(function(se){se.method="textDocument/prepareRename",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(dt||(t.PrepareRenameRequest=dt={}));var ft;(function(se){se.method="workspace/executeCommand",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ft||(t.ExecuteCommandRequest=ft={}));var gt;(function(se){se.method="workspace/applyEdit",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolRequestType("workspace/applyEdit")})(gt||(t.ApplyWorkspaceEditRequest=gt={}))}}),U2t=Jr({"../../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=S2();function r(n,a,i,s){return e.ConnectionStrategy.is(s)&&(s={connectionStrategy:s}),(0,e.createMessageConnection)(n,a,i,s)}k(r,"createProtocolConnection"),t.createProtocolConnection=r}}),G2t=Jr({"../../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(i,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(i,l,u)}):(function(i,s,o,l){l===void 0&&(l=o),i[l]=s[o]})),r=t&&t.__exportStar||function(i,s){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(S2(),t),r((VT(),zY(lA)),t),r(Ia(),t),r(z2t(),t);var n=U2t();Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:k(function(){return n.createProtocolConnection},"get")});var a;(function(i){i.lspReservedErrorRangeStart=-32899,i.RequestFailed=-32803,i.ServerCancelled=-32802,i.ContentModified=-32801,i.RequestCancelled=-32800,i.lspReservedErrorRangeEnd=-32800})(a||(t.LSPErrorCodes=a={}))}}),q2t=Jr({"../../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(i,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(i,l,u)}):(function(i,s,o,l){l===void 0&&(l=o),i[l]=s[o]})),r=t&&t.__exportStar||function(i,s){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var n=mse();r(mse(),t),r(G2t(),t);function a(i,s,o,l){return(0,n.createMessageConnection)(i,s,o,l)}k(a,"createProtocolConnection"),t.createProtocolConnection=a}}),pEe={};Kh(pEe,{AbstractAstReflection:()=>YY,AbstractCstNode:()=>VV,AbstractLangiumParser:()=>KV,AbstractParserErrorMessageProvider:()=>rke,AbstractThreadedAsyncParser:()=>f7t,AstUtils:()=>HY,BiMap:()=>Uw,Cancellation:()=>jn,CompositeCstNodeImpl:()=>i8,ContextCache:()=>h8,CstNodeBuilder:()=>Jwe,CstUtils:()=>GY,DEFAULT_TOKENIZE_OPTIONS:()=>hW,DONE_RESULT:()=>Os,DatatypeSymbol:()=>Bw,DefaultAstNodeDescriptionProvider:()=>Oke,DefaultAstNodeLocator:()=>Lke,DefaultAsyncParser:()=>Zke,DefaultCommentProvider:()=>Qke,DefaultConfigurationProvider:()=>Mke,DefaultDocumentBuilder:()=>Pke,DefaultDocumentValidator:()=>Ike,DefaultHydrator:()=>e7e,DefaultIndexManager:()=>Bke,DefaultJsonSerializer:()=>kke,DefaultLangiumDocumentFactory:()=>yke,DefaultLangiumDocuments:()=>_ke,DefaultLangiumProfiler:()=>y7t,DefaultLexer:()=>fW,DefaultLexerErrorMessageProvider:()=>$ke,DefaultLinker:()=>bke,DefaultNameProvider:()=>Eke,DefaultReferenceDescriptionProvider:()=>Dke,DefaultReferences:()=>Ske,DefaultScopeComputation:()=>Tke,DefaultScopeProvider:()=>wke,DefaultServiceRegistry:()=>Ake,DefaultTokenBuilder:()=>l8,DefaultValueConverter:()=>tW,DefaultWorkspaceLock:()=>Jke,DefaultWorkspaceManager:()=>Fke,Deferred:()=>q0,Disposable:()=>Tp,DisposableCache:()=>d8,DocumentCache:()=>Cke,DocumentState:()=>on,DocumentValidator:()=>yl,EMPTY_SCOPE:()=>c7t,EMPTY_STREAM:()=>kb,EmptyFileSystem:()=>Ul,EmptyFileSystemProvider:()=>n7e,ErrorWithLocation:()=>yA,GrammarAST:()=>vEe,GrammarUtils:()=>EH,IndentationAwareLexer:()=>g7t,IndentationAwareTokenBuilder:()=>r7e,JSDocDocumentationProvider:()=>jke,LangiumCompletionParser:()=>nke,LangiumParser:()=>tke,LangiumParserErrorMessageProvider:()=>XV,LeafCstNodeImpl:()=>Pw,LexingMode:()=>gp,MapScope:()=>l7t,Module:()=>K$,MultiMap:()=>Y0,MultiMapScope:()=>xke,OperationCancelled:()=>eu,ParserWorker:()=>p7t,ProfilingTask:()=>i7e,Reduction:()=>O4,RefResolving:()=>Bf,RegExpUtils:()=>TH,RootCstNodeImpl:()=>WV,SimpleCache:()=>oW,StreamImpl:()=>Jc,StreamScope:()=>Y$,TextDocument:()=>$w,TreeStreamImpl:()=>Ab,URI:()=>Bo,UriTrie:()=>iW,UriUtils:()=>Us,VALIDATE_EACH_NODE:()=>Nke,ValidationCategory:()=>Gw,ValidationRegistry:()=>Rke,ValueConverter:()=>Fc,WorkspaceCache:()=>lW,assertCondition:()=>SH,assertUnreachable:()=>Xh,createCompletionParser:()=>ZV,createDefaultCoreModule:()=>tl,createDefaultSharedCoreModule:()=>rl,createGrammarConfig:()=>UH,createLangiumParser:()=>JV,createParser:()=>s8,delayNextTick:()=>c8,diagnosticData:()=>pp,eagerLoad:()=>bW,getDiagnosticRange:()=>uW,indentationBuilderDefaultOptions:()=>j$,inject:()=>ga,interruptAndCheck:()=>Pi,isAstNode:()=>ti,isAstNodeDescription:()=>qY,isAstNodeWithComment:()=>cW,isCompositeCstNode:()=>M0,isIMultiModeLexerDefinition:()=>g8,isJSDoc:()=>gW,isLeafCstNode:()=>vg,isLinkingError:()=>Hf,isMultiReference:()=>iu,isNamed:()=>sW,isOperationCancelled:()=>Pg,isReference:()=>zs,isRootCstNode:()=>uA,isTokenTypeArray:()=>p8,isTokenTypeDictionary:()=>qw,loadGrammarFromJson:()=>nl,parseJSDoc:()=>pW,prepareLangiumParser:()=>eW,setInterruptionPeriod:()=>rW,startCancelableOperation:()=>u8,stream:()=>Pn,toDiagnosticData:()=>dW,toDiagnosticSeverity:()=>DS});var GY={};Kh(GY,{DefaultNameRegexp:()=>mH,RangeComparison:()=>qc,compareRange:()=>pH,findCommentNode:()=>vH,findDeclarationNodeAtOffset:()=>PEe,findLeafNodeAtOffset:()=>vA,findLeafNodeBeforeOffset:()=>yH,flattenCst:()=>MEe,getDatatypeNode:()=>LEe,getInteriorNodes:()=>$Ee,getNextNode:()=>BEe,getPreviousNode:()=>bH,getStartlineNode:()=>FEe,inRange:()=>gH,isChildNode:()=>fH,isCommentNode:()=>bw,streamCst:()=>Ob,toDocumentSegment:()=>Db,tokenToRange:()=>D4});function ti(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}k(ti,"isAstNode");function zs(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}k(zs,"isReference");function iu(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}k(iu,"isMultiReference");function qY(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}k(qY,"isAstNodeDescription");function Hf(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}k(Hf,"isLinkingError");var z1,YY=(z1=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 ti(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 a=n[r];if(a!==void 0)return a;{const i=this.types[e],s=i?i.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(),a=[];for(const i of n)this.isSubtype(i,e)&&a.push(i);return this.allSubtypes[e]=a,a}}},k(z1,"AbstractAstReflection"),z1);function M0(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}k(M0,"isCompositeCstNode");function vg(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}k(vg,"isLeafCstNode");function uA(t){return M0(t)&&typeof t.fullText=="string"}k(uA,"isRootCstNode");var uo,Jc=(uo=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(a=>[e?e(a):a,r?r(a):a]);return new Map(n)}toString(){return this.join()}concat(e){return new uo(()=>({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 Os})}join(e=","){const r=this.iterator();let n="",a,i=!1;do a=r.next(),a.done||(i&&(n+=e),n+=gEe(a.value)),i=!0;while(!a.done);return n}indexOf(e,r=0){const n=this.iterator();let a=0,i=n.next();for(;!i.done;){if(a>=r&&i.value===e)return a;i=n.next(),a++}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,a=r.next();for(;!a.done;)e(a.value,n),a=r.next(),n++}map(e){return new uo(this.startFn,r=>{const{done:n,value:a}=this.nextFn(r);return n?Os:{done:!1,value:e(a)}})}filter(e){return new uo(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return Os})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){const n=this.iterator();let a=r,i=n.next();for(;!i.done;)a===void 0?a=i.value:a=e(a,i.value),i=n.next();return a}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){const a=e.next();if(a.done)return n;const i=this.recursiveReduce(e,r,n);return i===void 0?a.value:r(i,a.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,a=r.next();for(;!a.done;){if(e(a.value))return n;a=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 uo(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const i=r.iterator.next();if(i.done)r.iterator=void 0;else return i}const{done:n,value:a}=this.nextFn(r.this);if(!n){const i=e(a);if(I4(i))r.iterator=i[Symbol.iterator]();else return{done:!1,value:i}}}while(r.iterator);return Os})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const r=e>1?this.flat(e-1):this;return new uo(()=>({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:a,value:i}=r.nextFn(n.this);if(!a)if(I4(i))n.iterator=i[Symbol.iterator]();else return{done:!1,value:i}}while(n.iterator);return Os})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new uo(()=>{const r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?Os:this.nextFn(r.state)))}distinct(e){return new uo(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){const a=e?e(n.value):n.value;if(!r.set.has(a))return r.set.add(a),n}while(!n.done);return Os})}exclude(e,r){const n=new Set;for(const a of e){const i=r?r(a):a;n.add(i)}return this.filter(a=>{const i=r?r(a):a;return!n.has(i)})}},k(uo,"StreamImpl"),uo);function gEe(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}k(gEe,"toString");function I4(t){return!!t&&typeof t[Symbol.iterator]=="function"}k(I4,"isIterable");var kb=new Jc(()=>{},()=>Os),Os=Object.freeze({done:!0,value:void 0});function Pn(...t){if(t.length===1){const e=t[0];if(e instanceof Jc)return e;if(I4(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}),a=>{for(a.pruned&&(a.iterators.pop(),a.pruned=!1);a.iterators.length>0;){const s=a.iterators[a.iterators.length-1].next();if(s.done)a.iterators.pop();else return a.iterators.push(r(s.value)[Symbol.iterator]()),s}return Os})}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(U1,"TreeStreamImpl"),U1),O4;(function(t){function e(i){return i.reduce((s,o)=>s+o,0)}k(e,"sum"),t.sum=e;function r(i){return i.reduce((s,o)=>s*o,0)}k(r,"product"),t.product=r;function n(i){return i.reduce((s,o)=>Math.min(s,o))}k(n,"min"),t.min=n;function a(i){return i.reduce((s,o)=>Math.max(s,o))}k(a,"max"),t.max=a})(O4||(O4={}));var HY={};Kh(HY,{assignMandatoryProperties:()=>VY,copyAstNode:()=>sw,findRootNode:()=>f1,getContainerOfType:()=>yg,getDocument:()=>cc,getReferenceNodes:()=>aw,hasContainerOfType:()=>mEe,linkContentToContainer:()=>Rb,streamAllContents:()=>od,streamAst:()=>uc,streamContents:()=>KT,streamReferences:()=>Nb});function Rb(t,e={}){for(const[r,n]of Object.entries(t))r.startsWith("$")||(Array.isArray(n)?n.forEach((a,i)=>{ti(a)&&(a.$container=t,a.$containerProperty=r,a.$containerIndex=i,e.deep&&Rb(a,e))}):ti(n)&&(n.$container=t,n.$containerProperty=r,e.deep&&Rb(n,e)))}k(Rb,"linkContentToContainer");function yg(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}k(yg,"getContainerOfType");function mEe(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}k(mEe,"hasContainerOfType");function cc(t){const r=f1(t).$document;if(!r)throw new Error("AST node has no document.");return r}k(cc,"getDocument");function f1(t){for(;t.$container;)t=t.$container;return t}k(f1,"findRootNode");function aw(t){return zs(t)?t.ref?[t.ref]:[]:iu(t)?t.items.map(e=>e.ref):[]}k(aw,"getReferenceNodes");function KT(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.keyIndexKT(r,e))}k(od,"streamAllContents");function uc(t,e){if(t){if(e?.range&&!iw(t,e.range))return new Ab(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new Ab(t,r=>KT(r,e),{includeRoot:!0})}k(uc,"streamAst");function iw(t,e){if(!e)return!0;const r=t.$cstNode?.range;return r?gH(r,e):!1}k(iw,"isAstNodeInRange");function Nb(t){return new Jc(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexlo,AbstractParserRule:()=>_S,AbstractRule:()=>Um,AbstractType:()=>Oo,Action:()=>Nd,Alternatives:()=>bS,ArrayLiteral:()=>ow,ArrayType:()=>lw,Assignment:()=>Id,BooleanLiteral:()=>cw,CharacterRange:()=>Od,Condition:()=>Dd,Conjunction:()=>ES,CrossReference:()=>Ld,Disjunction:()=>SS,EndOfFile:()=>uw,Grammar:()=>Ju,GrammarImport:()=>dw,Group:()=>Vf,InferredType:()=>hw,InfixRule:()=>Lc,InfixRuleOperatorList:()=>TS,InfixRuleOperators:()=>fw,Interface:()=>Gm,Keyword:()=>qm,LangiumGrammarAstReflection:()=>hH,LangiumGrammarTerminals:()=>Y2t,NamedArgument:()=>Ym,NegatedToken:()=>Wf,Negation:()=>pw,NumberLiteral:()=>gw,Parameter:()=>Hm,ParameterReference:()=>mw,ParserRule:()=>ql,ReferenceType:()=>xS,RegexToken:()=>Kf,ReturnType:()=>vw,RuleCall:()=>Xf,SimpleType:()=>Vm,StringLiteral:()=>yw,TerminalAlternatives:()=>jf,TerminalElement:()=>co,TerminalGroup:()=>Qf,TerminalRule:()=>e0,TerminalRuleCall:()=>Zf,Type:()=>CS,TypeAttribute:()=>Jf,TypeDefinition:()=>ep,UnionType:()=>_w,UnorderedGroup:()=>wS,UntilToken:()=>tp,ValueLiteral:()=>rp,Wildcard:()=>Wm,isAbstractElement:()=>dA,isAbstractParserRule:()=>_g,isAbstractRule:()=>yEe,isAbstractType:()=>_Ee,isAction:()=>Nh,isAlternatives:()=>hA,isArrayLiteral:()=>bEe,isArrayType:()=>KY,isAssignment:()=>P0,isBooleanLiteral:()=>XY,isCharacterRange:()=>jY,isCondition:()=>EEe,isConjunction:()=>QY,isCrossReference:()=>bg,isDisjunction:()=>ZY,isEndOfFile:()=>JY,isGrammar:()=>SEe,isGrammarImport:()=>TEe,isGroup:()=>Eg,isInferredType:()=>XT,isInfixRule:()=>Ib,isInfixRuleOperatorList:()=>xEe,isInfixRuleOperators:()=>CEe,isInterface:()=>eH,isKeyword:()=>B0,isNamedArgument:()=>wEe,isNegatedToken:()=>tH,isNegation:()=>rH,isNumberLiteral:()=>kEe,isParameter:()=>AEe,isParameterReference:()=>nH,isParserRule:()=>Ks,isReferenceType:()=>aH,isRegexToken:()=>iH,isReturnType:()=>sH,isRuleCall:()=>F0,isSimpleType:()=>fA,isStringLiteral:()=>REe,isTerminalAlternatives:()=>oH,isTerminalElement:()=>NEe,isTerminalGroup:()=>lH,isTerminalRule:()=>$l,isTerminalRuleCall:()=>pA,isType:()=>gA,isTypeAttribute:()=>IEe,isTypeDefinition:()=>OEe,isUnionType:()=>cH,isUnorderedGroup:()=>mA,isUntilToken:()=>uH,isValueLiteral:()=>DEe,isWildcard:()=>dH,reflection:()=>Lr});var Y2t={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]*/},lo={$type:"AbstractElement",cardinality:"cardinality"};function dA(t){return Lr.isInstance(t,lo.$type)}k(dA,"isAbstractElement");var _S={$type:"AbstractParserRule"};function _g(t){return Lr.isInstance(t,_S.$type)}k(_g,"isAbstractParserRule");var Um={$type:"AbstractRule"};function yEe(t){return Lr.isInstance(t,Um.$type)}k(yEe,"isAbstractRule");var Oo={$type:"AbstractType"};function _Ee(t){return Lr.isInstance(t,Oo.$type)}k(_Ee,"isAbstractType");var Nd={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function Nh(t){return Lr.isInstance(t,Nd.$type)}k(Nh,"isAction");var bS={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function hA(t){return Lr.isInstance(t,bS.$type)}k(hA,"isAlternatives");var ow={$type:"ArrayLiteral",elements:"elements"};function bEe(t){return Lr.isInstance(t,ow.$type)}k(bEe,"isArrayLiteral");var lw={$type:"ArrayType",elementType:"elementType"};function KY(t){return Lr.isInstance(t,lw.$type)}k(KY,"isArrayType");var Id={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function P0(t){return Lr.isInstance(t,Id.$type)}k(P0,"isAssignment");var cw={$type:"BooleanLiteral",true:"true"};function XY(t){return Lr.isInstance(t,cw.$type)}k(XY,"isBooleanLiteral");var Od={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function jY(t){return Lr.isInstance(t,Od.$type)}k(jY,"isCharacterRange");var Dd={$type:"Condition"};function EEe(t){return Lr.isInstance(t,Dd.$type)}k(EEe,"isCondition");var ES={$type:"Conjunction",left:"left",right:"right"};function QY(t){return Lr.isInstance(t,ES.$type)}k(QY,"isConjunction");var Ld={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function bg(t){return Lr.isInstance(t,Ld.$type)}k(bg,"isCrossReference");var SS={$type:"Disjunction",left:"left",right:"right"};function ZY(t){return Lr.isInstance(t,SS.$type)}k(ZY,"isDisjunction");var uw={$type:"EndOfFile",cardinality:"cardinality"};function JY(t){return Lr.isInstance(t,uw.$type)}k(JY,"isEndOfFile");var Ju={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function SEe(t){return Lr.isInstance(t,Ju.$type)}k(SEe,"isGrammar");var dw={$type:"GrammarImport",path:"path"};function TEe(t){return Lr.isInstance(t,dw.$type)}k(TEe,"isGrammarImport");var Vf={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Eg(t){return Lr.isInstance(t,Vf.$type)}k(Eg,"isGroup");var hw={$type:"InferredType",name:"name"};function XT(t){return Lr.isInstance(t,hw.$type)}k(XT,"isInferredType");var Lc={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function Ib(t){return Lr.isInstance(t,Lc.$type)}k(Ib,"isInfixRule");var TS={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function xEe(t){return Lr.isInstance(t,TS.$type)}k(xEe,"isInfixRuleOperatorList");var fw={$type:"InfixRuleOperators",precedences:"precedences"};function CEe(t){return Lr.isInstance(t,fw.$type)}k(CEe,"isInfixRuleOperators");var Gm={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function eH(t){return Lr.isInstance(t,Gm.$type)}k(eH,"isInterface");var qm={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function B0(t){return Lr.isInstance(t,qm.$type)}k(B0,"isKeyword");var Ym={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function wEe(t){return Lr.isInstance(t,Ym.$type)}k(wEe,"isNamedArgument");var Wf={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function tH(t){return Lr.isInstance(t,Wf.$type)}k(tH,"isNegatedToken");var pw={$type:"Negation",value:"value"};function rH(t){return Lr.isInstance(t,pw.$type)}k(rH,"isNegation");var gw={$type:"NumberLiteral",value:"value"};function kEe(t){return Lr.isInstance(t,gw.$type)}k(kEe,"isNumberLiteral");var Hm={$type:"Parameter",name:"name"};function AEe(t){return Lr.isInstance(t,Hm.$type)}k(AEe,"isParameter");var mw={$type:"ParameterReference",parameter:"parameter"};function nH(t){return Lr.isInstance(t,mw.$type)}k(nH,"isParameterReference");var ql={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function Ks(t){return Lr.isInstance(t,ql.$type)}k(Ks,"isParserRule");var xS={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function aH(t){return Lr.isInstance(t,xS.$type)}k(aH,"isReferenceType");var Kf={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function iH(t){return Lr.isInstance(t,Kf.$type)}k(iH,"isRegexToken");var vw={$type:"ReturnType",name:"name"};function sH(t){return Lr.isInstance(t,vw.$type)}k(sH,"isReturnType");var Xf={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function F0(t){return Lr.isInstance(t,Xf.$type)}k(F0,"isRuleCall");var Vm={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function fA(t){return Lr.isInstance(t,Vm.$type)}k(fA,"isSimpleType");var yw={$type:"StringLiteral",value:"value"};function REe(t){return Lr.isInstance(t,yw.$type)}k(REe,"isStringLiteral");var jf={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function oH(t){return Lr.isInstance(t,jf.$type)}k(oH,"isTerminalAlternatives");var co={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function NEe(t){return Lr.isInstance(t,co.$type)}k(NEe,"isTerminalElement");var Qf={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function lH(t){return Lr.isInstance(t,Qf.$type)}k(lH,"isTerminalGroup");var e0={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function $l(t){return Lr.isInstance(t,e0.$type)}k($l,"isTerminalRule");var Zf={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function pA(t){return Lr.isInstance(t,Zf.$type)}k(pA,"isTerminalRuleCall");var CS={$type:"Type",name:"name",type:"type"};function gA(t){return Lr.isInstance(t,CS.$type)}k(gA,"isType");var Jf={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function IEe(t){return Lr.isInstance(t,Jf.$type)}k(IEe,"isTypeAttribute");var ep={$type:"TypeDefinition"};function OEe(t){return Lr.isInstance(t,ep.$type)}k(OEe,"isTypeDefinition");var _w={$type:"UnionType",types:"types"};function cH(t){return Lr.isInstance(t,_w.$type)}k(cH,"isUnionType");var wS={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function mA(t){return Lr.isInstance(t,wS.$type)}k(mA,"isUnorderedGroup");var tp={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function uH(t){return Lr.isInstance(t,tp.$type)}k(uH,"isUntilToken");var rp={$type:"ValueLiteral"};function DEe(t){return Lr.isInstance(t,rp.$type)}k(DEe,"isValueLiteral");var Wm={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function dH(t){return Lr.isInstance(t,Wm.$type)}k(dH,"isWildcard");var G1,hH=(G1=class extends YY{constructor(){super(...arguments),this.types={AbstractElement:{name:lo.$type,properties:{cardinality:{name:lo.cardinality}},superTypes:[]},AbstractParserRule:{name:_S.$type,properties:{},superTypes:[Um.$type,Oo.$type]},AbstractRule:{name:Um.$type,properties:{},superTypes:[]},AbstractType:{name:Oo.$type,properties:{},superTypes:[]},Action:{name:Nd.$type,properties:{cardinality:{name:Nd.cardinality},feature:{name:Nd.feature},inferredType:{name:Nd.inferredType},operator:{name:Nd.operator},type:{name:Nd.type,referenceType:Oo.$type}},superTypes:[lo.$type]},Alternatives:{name:bS.$type,properties:{cardinality:{name:bS.cardinality},elements:{name:bS.elements,defaultValue:[]}},superTypes:[lo.$type]},ArrayLiteral:{name:ow.$type,properties:{elements:{name:ow.elements,defaultValue:[]}},superTypes:[rp.$type]},ArrayType:{name:lw.$type,properties:{elementType:{name:lw.elementType}},superTypes:[ep.$type]},Assignment:{name:Id.$type,properties:{cardinality:{name:Id.cardinality},feature:{name:Id.feature},operator:{name:Id.operator},predicate:{name:Id.predicate},terminal:{name:Id.terminal}},superTypes:[lo.$type]},BooleanLiteral:{name:cw.$type,properties:{true:{name:cw.true,defaultValue:!1}},superTypes:[Dd.$type,rp.$type]},CharacterRange:{name:Od.$type,properties:{cardinality:{name:Od.cardinality},left:{name:Od.left},lookahead:{name:Od.lookahead},parenthesized:{name:Od.parenthesized,defaultValue:!1},right:{name:Od.right}},superTypes:[co.$type]},Condition:{name:Dd.$type,properties:{},superTypes:[]},Conjunction:{name:ES.$type,properties:{left:{name:ES.left},right:{name:ES.right}},superTypes:[Dd.$type]},CrossReference:{name:Ld.$type,properties:{cardinality:{name:Ld.cardinality},deprecatedSyntax:{name:Ld.deprecatedSyntax,defaultValue:!1},isMulti:{name:Ld.isMulti,defaultValue:!1},terminal:{name:Ld.terminal},type:{name:Ld.type,referenceType:Oo.$type}},superTypes:[lo.$type]},Disjunction:{name:SS.$type,properties:{left:{name:SS.left},right:{name:SS.right}},superTypes:[Dd.$type]},EndOfFile:{name:uw.$type,properties:{cardinality:{name:uw.cardinality}},superTypes:[lo.$type]},Grammar:{name:Ju.$type,properties:{imports:{name:Ju.imports,defaultValue:[]},interfaces:{name:Ju.interfaces,defaultValue:[]},isDeclared:{name:Ju.isDeclared,defaultValue:!1},name:{name:Ju.name},rules:{name:Ju.rules,defaultValue:[]},types:{name:Ju.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:dw.$type,properties:{path:{name:dw.path}},superTypes:[]},Group:{name:Vf.$type,properties:{cardinality:{name:Vf.cardinality},elements:{name:Vf.elements,defaultValue:[]},guardCondition:{name:Vf.guardCondition},predicate:{name:Vf.predicate}},superTypes:[lo.$type]},InferredType:{name:hw.$type,properties:{name:{name:hw.name}},superTypes:[Oo.$type]},InfixRule:{name:Lc.$type,properties:{call:{name:Lc.call},dataType:{name:Lc.dataType},inferredType:{name:Lc.inferredType},name:{name:Lc.name},operators:{name:Lc.operators},parameters:{name:Lc.parameters,defaultValue:[]},returnType:{name:Lc.returnType,referenceType:Oo.$type}},superTypes:[_S.$type]},InfixRuleOperatorList:{name:TS.$type,properties:{associativity:{name:TS.associativity},operators:{name:TS.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:fw.$type,properties:{precedences:{name:fw.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Gm.$type,properties:{attributes:{name:Gm.attributes,defaultValue:[]},name:{name:Gm.name},superTypes:{name:Gm.superTypes,defaultValue:[],referenceType:Oo.$type}},superTypes:[Oo.$type]},Keyword:{name:qm.$type,properties:{cardinality:{name:qm.cardinality},predicate:{name:qm.predicate},value:{name:qm.value}},superTypes:[lo.$type]},NamedArgument:{name:Ym.$type,properties:{calledByName:{name:Ym.calledByName,defaultValue:!1},parameter:{name:Ym.parameter,referenceType:Hm.$type},value:{name:Ym.value}},superTypes:[]},NegatedToken:{name:Wf.$type,properties:{cardinality:{name:Wf.cardinality},lookahead:{name:Wf.lookahead},parenthesized:{name:Wf.parenthesized,defaultValue:!1},terminal:{name:Wf.terminal}},superTypes:[co.$type]},Negation:{name:pw.$type,properties:{value:{name:pw.value}},superTypes:[Dd.$type]},NumberLiteral:{name:gw.$type,properties:{value:{name:gw.value}},superTypes:[rp.$type]},Parameter:{name:Hm.$type,properties:{name:{name:Hm.name}},superTypes:[]},ParameterReference:{name:mw.$type,properties:{parameter:{name:mw.parameter,referenceType:Hm.$type}},superTypes:[Dd.$type]},ParserRule:{name:ql.$type,properties:{dataType:{name:ql.dataType},definition:{name:ql.definition},entry:{name:ql.entry,defaultValue:!1},fragment:{name:ql.fragment,defaultValue:!1},inferredType:{name:ql.inferredType},name:{name:ql.name},parameters:{name:ql.parameters,defaultValue:[]},returnType:{name:ql.returnType,referenceType:Oo.$type}},superTypes:[_S.$type]},ReferenceType:{name:xS.$type,properties:{isMulti:{name:xS.isMulti,defaultValue:!1},referenceType:{name:xS.referenceType}},superTypes:[ep.$type]},RegexToken:{name:Kf.$type,properties:{cardinality:{name:Kf.cardinality},lookahead:{name:Kf.lookahead},parenthesized:{name:Kf.parenthesized,defaultValue:!1},regex:{name:Kf.regex}},superTypes:[co.$type]},ReturnType:{name:vw.$type,properties:{name:{name:vw.name}},superTypes:[]},RuleCall:{name:Xf.$type,properties:{arguments:{name:Xf.arguments,defaultValue:[]},cardinality:{name:Xf.cardinality},predicate:{name:Xf.predicate},rule:{name:Xf.rule,referenceType:Um.$type}},superTypes:[lo.$type]},SimpleType:{name:Vm.$type,properties:{primitiveType:{name:Vm.primitiveType},stringType:{name:Vm.stringType},typeRef:{name:Vm.typeRef,referenceType:Oo.$type}},superTypes:[ep.$type]},StringLiteral:{name:yw.$type,properties:{value:{name:yw.value}},superTypes:[rp.$type]},TerminalAlternatives:{name:jf.$type,properties:{cardinality:{name:jf.cardinality},elements:{name:jf.elements,defaultValue:[]},lookahead:{name:jf.lookahead},parenthesized:{name:jf.parenthesized,defaultValue:!1}},superTypes:[co.$type]},TerminalElement:{name:co.$type,properties:{cardinality:{name:co.cardinality},lookahead:{name:co.lookahead},parenthesized:{name:co.parenthesized,defaultValue:!1}},superTypes:[lo.$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:[co.$type]},TerminalRule:{name:e0.$type,properties:{definition:{name:e0.definition},fragment:{name:e0.fragment,defaultValue:!1},hidden:{name:e0.hidden,defaultValue:!1},name:{name:e0.name},type:{name:e0.type}},superTypes:[Um.$type]},TerminalRuleCall:{name:Zf.$type,properties:{cardinality:{name:Zf.cardinality},lookahead:{name:Zf.lookahead},parenthesized:{name:Zf.parenthesized,defaultValue:!1},rule:{name:Zf.rule,referenceType:e0.$type}},superTypes:[co.$type]},Type:{name:CS.$type,properties:{name:{name:CS.name},type:{name:CS.type}},superTypes:[Oo.$type]},TypeAttribute:{name:Jf.$type,properties:{defaultValue:{name:Jf.defaultValue},isOptional:{name:Jf.isOptional,defaultValue:!1},name:{name:Jf.name},type:{name:Jf.type}},superTypes:[]},TypeDefinition:{name:ep.$type,properties:{},superTypes:[]},UnionType:{name:_w.$type,properties:{types:{name:_w.types,defaultValue:[]}},superTypes:[ep.$type]},UnorderedGroup:{name:wS.$type,properties:{cardinality:{name:wS.cardinality},elements:{name:wS.elements,defaultValue:[]}},superTypes:[lo.$type]},UntilToken:{name:tp.$type,properties:{cardinality:{name:tp.cardinality},lookahead:{name:tp.lookahead},parenthesized:{name:tp.parenthesized,defaultValue:!1},terminal:{name:tp.terminal}},superTypes:[co.$type]},ValueLiteral:{name:rp.$type,properties:{},superTypes:[]},Wildcard:{name:Wm.$type,properties:{cardinality:{name:Wm.cardinality},lookahead:{name:Wm.lookahead},parenthesized:{name:Wm.parenthesized,defaultValue:!1}},superTypes:[co.$type]}}}},k(G1,"LangiumGrammarAstReflection"),G1),Lr=new hH;function LEe(t){let e=t,r=!1;for(;e;){const n=yg(e.grammarSource,Ks);if(n&&n.dataType)e=e.container,r=!0;else return r?e:void 0}}k(LEe,"getDatatypeNode");function Ob(t){return new Ab(t,e=>M0(e)?e.content:[],{includeRoot:!0})}k(Ob,"streamCst");function MEe(t){return Ob(t).filter(vg)}k(MEe,"flattenCst");function fH(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}k(fH,"isChildNode");function D4(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}k(D4,"tokenToRange");function Db(t){if(!t)return;const{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}k(Db,"toDocumentSegment");var qc;(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"})(qc||(qc={}));function pH(t,e){if(t.end.linee.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return qc.After;const r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.lineqc.After}k(gH,"inRange");var mH=/^[\w\p{L}]$/u;function PEe(t,e,r=mH){if(t){if(e>0){const n=e-t.offset,a=t.text.charAt(n);r.test(a)||e--}return vA(t,e)}}k(PEe,"findDeclarationNodeAtOffset");function vH(t,e){if(t){const r=bH(t,!0);if(r&&bw(r,e))return r;if(uA(t)){const n=t.content.findIndex(a=>!a.hidden);for(let a=n-1;a>=0;a--){const i=t.content[a];if(bw(i,e))return i}}}}k(vH,"findCommentNode");function bw(t,e){return vg(t)&&e.includes(t.tokenType.name)}k(bw,"isCommentNode");function vA(t,e){if(vg(t))return t;if(M0(t)){const r=_H(t,e,!1);if(r)return vA(r,e)}}k(vA,"findLeafNodeAtOffset");function yH(t,e){if(vg(t))return t;if(M0(t)){const r=_H(t,e,!0);if(r)return yH(r,e)}}k(yH,"findLeafNodeBeforeOffset");function _H(t,e,r){let n=0,a=t.content.length-1,i;for(;n<=a;){const s=Math.floor((n+a)/2),o=t.content[s];if(o.offset<=e&&o.end>e)return o;o.end<=e?(i=r?o:void 0,n=s+1):a=s-1}return i}k(_H,"binarySearch");function bH(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);for(;n>0;){n--;const a=r.content[n];if(e||!a.hidden)return a}t=r}}k(bH,"getPreviousNode");function BEe(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);const a=r.content.length-1;for(;nLH,findNameAssignment:()=>CA,findNodeForKeyword:()=>DH,findNodeForProperty:()=>SA,findNodesForKeyword:()=>KEe,findNodesForKeywordInternal:()=>xA,findNodesForProperty:()=>OH,getActionAtElement:()=>PH,getActionType:()=>FH,getAllReachableRules:()=>EA,getAllRulesUsedForCrossReferences:()=>WEe,getCrossReferenceTerminal:()=>NH,getEntryRule:()=>kH,getExplicitRuleType:()=>QT,getHiddenRules:()=>AH,getRuleType:()=>$H,getRuleTypeName:()=>JEe,getTypeName:()=>Vp,isArrayCardinality:()=>jEe,isArrayOperator:()=>QEe,isCommentTerminal:()=>IH,isDataType:()=>ZEe,isDataTypeRule:()=>jT,isOptionalCardinality:()=>XEe,terminalRegex:()=>ZT});var q1,yA=(q1=class extends Error{constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}},k(q1,"ErrorWithLocation"),q1);function Xh(t,e="Error: Got unexpected value."){throw new Error(e)}k(Xh,"assertUnreachable");function SH(t,e="Error: Condition is violated."){if(!t)throw new Error(e)}k(SH,"assertCondition");var TH={};Kh(TH,{NEWLINE_REGEXP:()=>qEe,escapeRegExp:()=>T2,getTerminalParts:()=>HEe,isMultilineComment:()=>xH,isWhitespace:()=>bA,partialMatches:()=>CH,partialRegExp:()=>wH,whitespaceCharacters:()=>VEe});function Br(t){return t.charCodeAt(0)}k(Br,"cc");function Y5(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}k(Y5,"insertToSet");function _m(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}k(_m,"addFlag");function Lf(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}k(Lf,"ASSERT_EXISTS");function UEe(){throw Error("Internal Error - Should never get here!")}k(UEe,"ASSERT_NEVER_REACH_HERE");function g$(t){return t.type==="Character"}k(g$,"isCharacter");var Ew=[];for(let t=Br("0");t<=Br("9");t++)Ew.push(t);var Sw=[Br("_")].concat(Ew);for(let t=Br("a");t<=Br("z");t++)Sw.push(t);for(let t=Br("A");t<=Br("Z");t++)Sw.push(t);var vse=[Br(" "),Br("\f"),Br(` -`),Br("\r"),Br(" "),Br("\v"),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br("\u2028"),Br("\u2029"),Br(" "),Br(" "),Br(" "),Br("\uFEFF")],H2t=/[0-9a-fA-F]/,x3=/[0-9]/,V2t=/[1-9]/,Y1,GEe=(Y1=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":_m(n,"global");break;case"i":_m(n,"ignoreCase");break;case"m":_m(n,"multiLine");break;case"u":_m(n,"unicode");break;case"y":_m(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}}Lf(r);const n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return UEe()}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 a=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:a,atMost:a};break;case",":let i;this.isDigit()?(i=this.integerIncludingZero(),r={atLeast:a,atMost:i}):r={atLeast:a,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;Lf(r);break}if(!(e===!0&&r===void 0)&&Lf(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()),Lf(e))return e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Br(` +`)),mt){const Ot=Ne.error?` Request failed: ${Ne.error.message} (${Ne.error.code}).`:"";Le.log(`Received response '${mt.method} - (${Ne.id})' in ${Date.now()-mt.timerStart}ms.${Ot}`,_t)}else Le.log(`Received response ${Ne.id} without active response promise.`,_t)}else nt("receive-response",Ne)}k(St,"traceReceivedResponse");function nt(Ne,mt){if(!Le||pe===f.Off)return;const _t={isLSPMessage:!0,type:Ne,message:mt,timestamp:Date.now()};Le.log(_t)}k(nt,"logLSPMessage");function dt(){if(Qe())throw new b(y.Closed,"Connection is closed.");if(_e())throw new b(y.Disposed,"Connection is disposed.")}k(dt,"throwIfClosedOrDisposed");function ft(){if(ke())throw new b(y.AlreadyListening,"Connection is already listening")}k(ft,"throwIfListening");function gt(){if(!ke())throw new Error("Call listen() first.")}k(gt,"throwIfNotListening");function se(Ne){return Ne===void 0?null:Ne}k(se,"undefinedToNull");function It(Ne){if(Ne!==null)return Ne}k(It,"nullToUndefined");function bt(Ne){return Ne!=null&&!Array.isArray(Ne)&&typeof Ne=="object"}k(bt,"isNamedParam");function Et(Ne,mt){switch(Ne){case n.ParameterStructures.auto:return bt(mt)?It(mt):[se(mt)];case n.ParameterStructures.byName:if(!bt(mt))throw new Error("Received parameters by name but param is not an object literal.");return It(mt);case n.ParameterStructures.byPosition:return[se(mt)];default:throw new Error(`Unknown parameter structure ${Ne.toString()}`)}}k(Et,"computeSingleParam");function Nt(Ne,mt){let _t;const Ot=Ne.numberOfParams;switch(Ot){case 0:_t=void 0;break;case 1:_t=Et(Ne.parameterStructures,mt[0]);break;default:_t=[];for(let Qt=0;Qt{dt();let _t,Ot;if(r.string(Ne)){_t=Ne;const br=mt[0];let Ct=0,Fe=n.ParameterStructures.auto;n.ParameterStructures.is(br)&&(Ct=1,Fe=br);let pt=mt.length;const Dt=pt-Ct;switch(Dt){case 0:Ot=void 0;break;case 1:Ot=Et(Fe,mt[Ct]);break;default:if(Fe===n.ParameterStructures.byName)throw new Error(`Received ${Dt} parameters for 'by Name' notification parameter structure.`);Ot=mt.slice(Ct,pt).map(Zt=>se(Zt));break}}else{const br=mt;_t=Ne.method,Ot=Nt(Ne,br)}const Qt={jsonrpc:G,method:_t,params:Ot};return ie(Qt),D.write(Qt).catch(br=>{throw P.error("Sending notification failed."),br})},"sendNotification"),onNotification:k((Ne,mt)=>{dt();let _t;return r.func(Ne)?ee=Ne:mt&&(r.string(Ne)?(_t=Ne,X.set(Ne,{type:void 0,handler:mt})):(_t=Ne.method,X.set(Ne.method,{type:Ne,handler:mt}))),{dispose:k(()=>{_t!==void 0?X.delete(_t):ee=void 0},"dispose")}},"onNotification"),onProgress:k((Ne,mt,_t)=>{if(le.has(mt))throw new Error(`Progress handler for token ${mt} already registered`);return le.set(mt,_t),{dispose:k(()=>{le.delete(mt)},"dispose")}},"onProgress"),sendProgress:k((Ne,mt,_t)=>Vr.sendNotification(u.type,{token:mt,value:_t}),"sendProgress"),onUnhandledProgress:Ce.event,sendRequest:k((Ne,...mt)=>{dt(),gt();let _t,Ot,Qt;if(r.string(Ne)){_t=Ne;const pt=mt[0],Dt=mt[mt.length-1];let Zt=0,kr=n.ParameterStructures.auto;n.ParameterStructures.is(pt)&&(Zt=1,kr=pt);let Wr=mt.length;s.CancellationToken.is(Dt)&&(Wr=Wr-1,Qt=Dt);const Xr=Wr-Zt;switch(Xr){case 0:Ot=void 0;break;case 1:Ot=Et(kr,mt[Zt]);break;default:if(kr===n.ParameterStructures.byName)throw new Error(`Received ${Xr} parameters for 'by Name' request parameter structure.`);Ot=mt.slice(Zt,Wr).map(qn=>se(qn));break}}else{const pt=mt;_t=Ne.method,Ot=Nt(Ne,pt);const Dt=Ne.numberOfParams;Qt=s.CancellationToken.is(pt[Dt])?pt[Dt]:void 0}const br=z++;let Ct;Qt&&(Ct=Qt.onCancellationRequested(()=>{const pt=Ae.sender.sendCancellation(Vr,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 Fe={jsonrpc:G,id:br,method:_t,params:Ot};return me(Fe),typeof Ae.sender.enableCancellation=="function"&&Ae.sender.enableCancellation(Fe),new Promise(async(pt,Dt)=>{const Zt=k(Xr=>{pt(Xr),Ae.sender.cleanup(br),Ct?.dispose()},"resolveWithCleanup"),kr=k(Xr=>{Dt(Xr),Ae.sender.cleanup(br),Ct?.dispose()},"rejectWithCleanup"),Wr={method:_t,timerStart:Date.now(),resolve:Zt,reject:kr};try{await D.write(Fe),ae.set(br,Wr)}catch(Xr){throw P.error("Sending request failed."),Wr.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,Xr.message?Xr.message:"Unknown reason")),Xr}})},"sendRequest"),onRequest:k((Ne,mt)=>{dt();let _t=null;return h.is(Ne)?(_t=void 0,K=Ne):r.string(Ne)?(_t=null,mt!==void 0&&(_t=Ne,Y.set(Ne,{handler:mt,type:void 0}))):mt!==void 0&&(_t=Ne.method,Y.set(Ne.method,{type:Ne,handler:mt})),{dispose:k(()=>{_t!==null&&(_t!==void 0?Y.delete(_t):K=void 0)},"dispose")}},"onRequest"),hasPendingResponse:k(()=>ae.size>0,"hasPendingResponse"),trace:k(async(Ne,mt,_t)=>{let Ot=!1,Qt=g.Text;_t!==void 0&&(r.boolean(_t)?Ot=_t:(Ot=_t.sendNotification||!1,Qt=_t.traceFormat||g.Text)),pe=Ne,Be=Qt,pe===f.Off?Le=void 0:Le=mt,Ot&&!Qe()&&!_e()&&await Vr.sendNotification(m.type,{value:f.toString(Ne)})},"trace"),onError:Re.event,onClose:xe.event,onUnhandledNotification:$e.event,onDispose:ut.event,end:k(()=>{D.end()},"end"),dispose:k(()=>{if(_e())return;He=M.Disposed,ut.fire(void 0);const Ne=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const mt of ae.values())mt.reject(Ne);ae=new Map,ge=new Map,re=new Set,ne=new a.LinkedMap,r.func(D.dispose)&&D.dispose(),r.func(I.dispose)&&I.dispose()},"dispose"),listen:k(()=>{dt(),ft(),He=M.Listening,I.listen(rt)},"listen"),inspect:k(()=>{(0,e.default)().console.log("inspect")},"inspect")};return Vr.onNotification(v.type,Ne=>{if(pe===f.Off||!Le)return;const mt=pe===f.Verbose||pe===f.Compact;Le.log(Ne.message,mt?Ne.verbose:void 0)}),Vr.onNotification(u.type,Ne=>{const mt=le.get(Ne.token);mt?mt(Ne.value):Ce.fire(Ne)}),Vr}k($,"createMessageConnection"),t.createMessageConnection=$}}),f$=Jr({"../../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=dEe();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=hEe();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=f2t();Object.defineProperty(t,"Disposable",{enumerable:!0,get:k(function(){return n.Disposable},"get")});var a=E2();Object.defineProperty(t,"Event",{enumerable:!0,get:k(function(){return a.Event},"get")}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:k(function(){return a.Emitter},"get")});var i=cA();Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:k(function(){return i.CancellationTokenSource},"get")}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:k(function(){return i.CancellationToken},"get")});var s=p2t();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=g2t();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=m2t();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=v2t();Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:k(function(){return u.AbstractMessageBuffer},"get")});var d=y2t();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=mg();t.RAL=h.default}}),_2t=Jr({"../../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=f$(),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),a=(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),i=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(i.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 a(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}}),S2=Jr({"../../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=_2t();n.default.install();var a=f$();r(f$(),t);var i=(l=class extends a.AbstractMessageReader{constructor(h){super(),this._onData=new a.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=i;var s=(u=class extends a.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=a.NullLogger),a.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,a.createMessageConnection)(d,h,f,p)}k(o,"createMessageConnection"),t.createMessageConnection=o}}),mse=Jr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(t,e){e.exports=S2()}}),Ia=Jr({"../../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=S2(),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 a=(u=class extends e.RequestType0{constructor(g){super(g)}},k(u,"ProtocolRequestType0"),u);t.ProtocolRequestType0=a;var i=(d=class extends e.RequestType{constructor(g){super(g,e.ParameterStructures.byName)}},k(d,"ProtocolRequestType"),d);t.ProtocolRequestType=i;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}}),UY=Jr({"../../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 a(d){return d instanceof Error}k(a,"error"),t.error=a;function i(d){return typeof d=="function"}k(i,"func"),t.func=i;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}}),b2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ImplementationRequest=r={}))}}),E2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.TypeDefinitionRequest=r={}))}}),S2t=Jr({"../../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=Ia(),r;(function(a){a.method="workspace/workspaceFolders",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(r||(t.WorkspaceFoldersRequest=r={}));var n;(function(a){a.method="workspace/didChangeWorkspaceFolders",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolNotificationType(a.method)})(n||(t.DidChangeWorkspaceFoldersNotification=n={}))}}),T2t=Jr({"../../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=Ia(),r;(function(n){n.method="workspace/configuration",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ConfigurationRequest=r={}))}}),x2t=Jr({"../../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=Ia(),r;(function(a){a.method="textDocument/documentColor",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.DocumentColorRequest=r={}));var n;(function(a){a.method="textDocument/colorPresentation",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(n||(t.ColorPresentationRequest=n={}))}}),C2t=Jr({"../../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=Ia(),r;(function(a){a.method="textDocument/foldingRange",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.FoldingRangeRequest=r={}));var n;(function(a){a.method="workspace/foldingRange/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(n||(t.FoldingRangeRefreshRequest=n={}))}}),w2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.DeclarationRequest=r={}))}}),k2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.SelectionRangeRequest=r={}))}}),A2t=Jr({"../../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=S2(),r=Ia(),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 a;(function(s){s.method="window/workDoneProgress/create",s.messageDirection=r.MessageDirection.serverToClient,s.type=new r.ProtocolRequestType(s.method)})(a||(t.WorkDoneProgressCreateRequest=a={}));var i;(function(s){s.method="window/workDoneProgress/cancel",s.messageDirection=r.MessageDirection.clientToServer,s.type=new r.ProtocolNotificationType(s.method)})(i||(t.WorkDoneProgressCancelNotification=i={}))}}),R2t=Jr({"../../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=Ia(),r;(function(i){i.method="textDocument/prepareCallHierarchy",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.CallHierarchyPrepareRequest=r={}));var n;(function(i){i.method="callHierarchy/incomingCalls",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.CallHierarchyIncomingCallsRequest=n={}));var a;(function(i){i.method="callHierarchy/outgoingCalls",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.CallHierarchyOutgoingCallsRequest=a={}))}}),N2t=Jr({"../../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=Ia(),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 a;(function(l){l.method="textDocument/semanticTokens/full",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(a||(t.SemanticTokensRequest=a={}));var i;(function(l){l.method="textDocument/semanticTokens/full/delta",l.messageDirection=e.MessageDirection.clientToServer,l.type=new e.ProtocolRequestType(l.method),l.registrationMethod=n.method})(i||(t.SemanticTokensDeltaRequest=i={}));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={}))}}),I2t=Jr({"../../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=Ia(),r;(function(n){n.method="window/showDocument",n.messageDirection=e.MessageDirection.serverToClient,n.type=new e.ProtocolRequestType(n.method)})(r||(t.ShowDocumentRequest=r={}))}}),O2t=Jr({"../../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=Ia(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=e.MessageDirection.clientToServer,n.type=new e.ProtocolRequestType(n.method)})(r||(t.LinkedEditingRangeRequest=r={}))}}),D2t=Jr({"../../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=Ia(),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 a;(function(u){u.method="workspace/didCreateFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolNotificationType(u.method)})(a||(t.DidCreateFilesNotification=a={}));var i;(function(u){u.method="workspace/willRenameFiles",u.messageDirection=e.MessageDirection.clientToServer,u.type=new e.ProtocolRequestType(u.method)})(i||(t.WillRenameFilesRequest=i={}));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={}))}}),L2t=Jr({"../../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=Ia(),r;(function(i){i.document="document",i.project="project",i.group="group",i.scheme="scheme",i.global="global"})(r||(t.UniquenessLevel=r={}));var n;(function(i){i.$import="import",i.$export="export",i.local="local"})(n||(t.MonikerKind=n={}));var a;(function(i){i.method="textDocument/moniker",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.MonikerRequest=a={}))}}),M2t=Jr({"../../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=Ia(),r;(function(i){i.method="textDocument/prepareTypeHierarchy",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.TypeHierarchyPrepareRequest=r={}));var n;(function(i){i.method="typeHierarchy/supertypes",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.TypeHierarchySupertypesRequest=n={}));var a;(function(i){i.method="typeHierarchy/subtypes",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(a||(t.TypeHierarchySubtypesRequest=a={}))}}),P2t=Jr({"../../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=Ia(),r;(function(a){a.method="textDocument/inlineValue",a.messageDirection=e.MessageDirection.clientToServer,a.type=new e.ProtocolRequestType(a.method)})(r||(t.InlineValueRequest=r={}));var n;(function(a){a.method="workspace/inlineValue/refresh",a.messageDirection=e.MessageDirection.serverToClient,a.type=new e.ProtocolRequestType0(a.method)})(n||(t.InlineValueRefreshRequest=n={}))}}),B2t=Jr({"../../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=Ia(),r;(function(i){i.method="textDocument/inlayHint",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(r||(t.InlayHintRequest=r={}));var n;(function(i){i.method="inlayHint/resolve",i.messageDirection=e.MessageDirection.clientToServer,i.type=new e.ProtocolRequestType(i.method)})(n||(t.InlayHintResolveRequest=n={}));var a;(function(i){i.method="workspace/inlayHint/refresh",i.messageDirection=e.MessageDirection.serverToClient,i.type=new e.ProtocolRequestType0(i.method)})(a||(t.InlayHintRefreshRequest=a={}))}}),F2t=Jr({"../../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=S2(),r=UY(),n=Ia(),a;(function(u){function d(h){const f=h;return f&&r.boolean(f.retriggerRequest)}k(d,"is"),u.is=d})(a||(t.DiagnosticServerCancellationData=a={}));var i;(function(u){u.Full="full",u.Unchanged="unchanged"})(i||(t.DocumentDiagnosticReportKind=i={}));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={}))}}),$2t=Jr({"../../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=(VT(),zY(lA)),r=UY(),n=Ia(),a;(function(g){g.Markup=1,g.Code=2;function m(v){return v===1||v===2}k(m,"is"),g.is=m})(a||(t.NotebookCellKind=a={}));var i;(function(g){function m(b,_){const S={executionOrder:b};return(_===!0||_===!1)&&(S.success=_),S}k(m,"create"),g.create=m;function v(b){const _=b;return r.objectLiteral(_)&&e.uinteger.is(_.executionOrder)&&(_.success===void 0||r.boolean(_.success))}k(v,"is"),g.is=v;function y(b,_){return b===_?!0:b==null||_===null||_===void 0?!1:b.executionOrder===_.executionOrder&&b.success===_.success}k(y,"equals"),g.equals=y})(i||(t.ExecutionSummary=i={}));var s;(function(g){function m(_,S){return{kind:_,document:S}}k(m,"create"),g.create=m;function v(_){const S=_;return r.objectLiteral(S)&&a.is(S.kind)&&e.DocumentUri.is(S.document)&&(S.metadata===void 0||r.objectLiteral(S.metadata))}k(v,"is"),g.is=v;function y(_,S){const x=new Set;return _.document!==S.document&&x.add("document"),_.kind!==S.kind&&x.add("kind"),_.executionSummary!==S.executionSummary&&x.add("executionSummary"),(_.metadata!==void 0||S.metadata!==void 0)&&!b(_.metadata,S.metadata)&&x.add("metadata"),(_.executionSummary!==void 0||S.executionSummary!==void 0)&&!i.equals(_.executionSummary,S.executionSummary)&&x.add("executionSummary"),x}k(y,"diff"),g.diff=y;function b(_,S){if(_===S)return!0;if(_==null||S===null||S===void 0||typeof _!=typeof S||typeof _!="object")return!1;const x=Array.isArray(_),C=Array.isArray(S);if(x!==C)return!1;if(x&&C){if(_.length!==S.length)return!1;for(let T=0;T<_.length;T++)if(!b(_[T],S[T]))return!1}if(r.objectLiteral(_)&&r.objectLiteral(S)){const T=Object.keys(_),w=Object.keys(S);if(T.length!==w.length||(T.sort(),w.sort(),!b(T,w)))return!1;for(let R=0;R0}k(It,"hasId"),se.hasId=It})(N||(t.StaticRegistrationOptions=N={}));var P;(function(se){function It(bt){const Et=bt;return Et&&(Et.documentSelector===null||$.is(Et.documentSelector))}k(It,"is"),se.is=It})(P||(t.TextDocumentRegistrationOptions=P={}));var z;(function(se){function It(Et){const Nt=Et;return n.objectLiteral(Nt)&&(Nt.workDoneProgress===void 0||n.boolean(Nt.workDoneProgress))}k(It,"is"),se.is=It;function bt(Et){const Nt=Et;return Nt&&n.boolean(Nt.workDoneProgress)}k(bt,"hasWorkDoneProgress"),se.hasWorkDoneProgress=bt})(z||(t.WorkDoneProgressOptions=z={}));var B;(function(se){se.method="initialize",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(B||(t.InitializeRequest=B={}));var U;(function(se){se.unknownProtocolVersion=1})(U||(t.InitializeErrorCodes=U={}));var G;(function(se){se.method="initialized",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(G||(t.InitializedNotification=G={}));var K;(function(se){se.method="shutdown",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType0(se.method)})(K||(t.ShutdownRequest=K={}));var Y;(function(se){se.method="exit",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType0(se.method)})(Y||(t.ExitNotification=Y={}));var ee;(function(se){se.method="workspace/didChangeConfiguration",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(ee||(t.DidChangeConfigurationNotification=ee={}));var X;(function(se){se.Error=1,se.Warning=2,se.Info=3,se.Log=4,se.Debug=5})(X||(t.MessageType=X={}));var le;(function(se){se.method="window/showMessage",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolNotificationType(se.method)})(le||(t.ShowMessageNotification=le={}));var te;(function(se){se.method="window/showMessageRequest",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolRequestType(se.method)})(te||(t.ShowMessageRequest=te={}));var ne;(function(se){se.method="window/logMessage",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolNotificationType(se.method)})(ne||(t.LogMessageNotification=ne={}));var ae;(function(se){se.method="telemetry/event",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolNotificationType(se.method)})(ae||(t.TelemetryEventNotification=ae={}));var re;(function(se){se.None=0,se.Full=1,se.Incremental=2})(re||(t.TextDocumentSyncKind=re={}));var ge;(function(se){se.method="textDocument/didOpen",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(ge||(t.DidOpenTextDocumentNotification=ge={}));var pe;(function(se){function It(Et){let Nt=Et;return Nt!=null&&typeof Nt.text=="string"&&Nt.range!==void 0&&(Nt.rangeLength===void 0||typeof Nt.rangeLength=="number")}k(It,"isIncremental"),se.isIncremental=It;function bt(Et){let Nt=Et;return Nt!=null&&typeof Nt.text=="string"&&Nt.range===void 0&&Nt.rangeLength===void 0}k(bt,"isFull"),se.isFull=bt})(pe||(t.TextDocumentContentChangeEvent=pe={}));var Be;(function(se){se.method="textDocument/didChange",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(Be||(t.DidChangeTextDocumentNotification=Be={}));var Le;(function(se){se.method="textDocument/didClose",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(Le||(t.DidCloseTextDocumentNotification=Le={}));var He;(function(se){se.method="textDocument/didSave",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(He||(t.DidSaveTextDocumentNotification=He={}));var Re;(function(se){se.Manual=1,se.AfterDelay=2,se.FocusOut=3})(Re||(t.TextDocumentSaveReason=Re={}));var xe;(function(se){se.method="textDocument/willSave",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(xe||(t.WillSaveTextDocumentNotification=xe={}));var $e;(function(se){se.method="textDocument/willSaveWaitUntil",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})($e||(t.WillSaveTextDocumentWaitUntilRequest=$e={}));var Ce;(function(se){se.method="workspace/didChangeWatchedFiles",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolNotificationType(se.method)})(Ce||(t.DidChangeWatchedFilesNotification=Ce={}));var ut;(function(se){se.Created=1,se.Changed=2,se.Deleted=3})(ut||(t.FileChangeType=ut={}));var Ae;(function(se){function It(bt){const Et=bt;return n.objectLiteral(Et)&&(r.URI.is(Et.baseUri)||r.WorkspaceFolder.is(Et.baseUri))&&n.string(Et.pattern)}k(It,"is"),se.is=It})(Ae||(t.RelativePattern=Ae={}));var je;(function(se){se.Create=1,se.Change=2,se.Delete=4})(je||(t.WatchKind=je={}));var ot;(function(se){se.method="textDocument/publishDiagnostics",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolNotificationType(se.method)})(ot||(t.PublishDiagnosticsNotification=ot={}));var lt;(function(se){se.Invoked=1,se.TriggerCharacter=2,se.TriggerForIncompleteCompletions=3})(lt||(t.CompletionTriggerKind=lt={}));var ct;(function(se){se.method="textDocument/completion",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ct||(t.CompletionRequest=ct={}));var it;(function(se){se.method="completionItem/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(it||(t.CompletionResolveRequest=it={}));var ke;(function(se){se.method="textDocument/hover",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ke||(t.HoverRequest=ke={}));var Qe;(function(se){se.Invoked=1,se.TriggerCharacter=2,se.ContentChange=3})(Qe||(t.SignatureHelpTriggerKind=Qe={}));var _e;(function(se){se.method="textDocument/signatureHelp",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(_e||(t.SignatureHelpRequest=_e={}));var ye;(function(se){se.method="textDocument/definition",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ye||(t.DefinitionRequest=ye={}));var q;(function(se){se.method="textDocument/references",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(q||(t.ReferencesRequest=q={}));var fe;(function(se){se.method="textDocument/documentHighlight",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(fe||(t.DocumentHighlightRequest=fe={}));var j;(function(se){se.method="textDocument/documentSymbol",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(j||(t.DocumentSymbolRequest=j={}));var we;(function(se){se.method="textDocument/codeAction",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(we||(t.CodeActionRequest=we={}));var Te;(function(se){se.method="codeAction/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Te||(t.CodeActionResolveRequest=Te={}));var rt;(function(se){se.method="workspace/symbol",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(rt||(t.WorkspaceSymbolRequest=rt={}));var Oe;(function(se){se.method="workspaceSymbol/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Oe||(t.WorkspaceSymbolResolveRequest=Oe={}));var Pe;(function(se){se.method="textDocument/codeLens",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Pe||(t.CodeLensRequest=Pe={}));var Ie;(function(se){se.method="codeLens/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Ie||(t.CodeLensResolveRequest=Ie={}));var Ze;(function(se){se.method="workspace/codeLens/refresh",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolRequestType0(se.method)})(Ze||(t.CodeLensRefreshRequest=Ze={}));var ze;(function(se){se.method="textDocument/documentLink",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ze||(t.DocumentLinkRequest=ze={}));var me;(function(se){se.method="documentLink/resolve",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(me||(t.DocumentLinkResolveRequest=me={}));var ie;(function(se){se.method="textDocument/formatting",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ie||(t.DocumentFormattingRequest=ie={}));var Ve;(function(se){se.method="textDocument/rangeFormatting",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Ve||(t.DocumentRangeFormattingRequest=Ve={}));var ve;(function(se){se.method="textDocument/rangesFormatting",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ve||(t.DocumentRangesFormattingRequest=ve={}));var Tt;(function(se){se.method="textDocument/onTypeFormatting",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(Tt||(t.DocumentOnTypeFormattingRequest=Tt={}));var St;(function(se){se.Identifier=1})(St||(t.PrepareSupportDefaultBehavior=St={}));var nt;(function(se){se.method="textDocument/rename",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(nt||(t.RenameRequest=nt={}));var dt;(function(se){se.method="textDocument/prepareRename",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(dt||(t.PrepareRenameRequest=dt={}));var ft;(function(se){se.method="workspace/executeCommand",se.messageDirection=e.MessageDirection.clientToServer,se.type=new e.ProtocolRequestType(se.method)})(ft||(t.ExecuteCommandRequest=ft={}));var gt;(function(se){se.method="workspace/applyEdit",se.messageDirection=e.MessageDirection.serverToClient,se.type=new e.ProtocolRequestType("workspace/applyEdit")})(gt||(t.ApplyWorkspaceEditRequest=gt={}))}}),G2t=Jr({"../../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=S2();function r(n,a,i,s){return e.ConnectionStrategy.is(s)&&(s={connectionStrategy:s}),(0,e.createMessageConnection)(n,a,i,s)}k(r,"createProtocolConnection"),t.createProtocolConnection=r}}),q2t=Jr({"../../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(i,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(i,l,u)}):(function(i,s,o,l){l===void 0&&(l=o),i[l]=s[o]})),r=t&&t.__exportStar||function(i,s){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(S2(),t),r((VT(),zY(lA)),t),r(Ia(),t),r(U2t(),t);var n=G2t();Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:k(function(){return n.createProtocolConnection},"get")});var a;(function(i){i.lspReservedErrorRangeStart=-32899,i.RequestFailed=-32803,i.ServerCancelled=-32802,i.ContentModified=-32801,i.RequestCancelled=-32800,i.lspReservedErrorRangeEnd=-32800})(a||(t.LSPErrorCodes=a={}))}}),Y2t=Jr({"../../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(i,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(i,l,u)}):(function(i,s,o,l){l===void 0&&(l=o),i[l]=s[o]})),r=t&&t.__exportStar||function(i,s){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;var n=mse();r(mse(),t),r(q2t(),t);function a(i,s,o,l){return(0,n.createMessageConnection)(i,s,o,l)}k(a,"createProtocolConnection"),t.createProtocolConnection=a}}),pEe={};Kh(pEe,{AbstractAstReflection:()=>YY,AbstractCstNode:()=>VV,AbstractLangiumParser:()=>KV,AbstractParserErrorMessageProvider:()=>rke,AbstractThreadedAsyncParser:()=>p7t,AstUtils:()=>HY,BiMap:()=>Uw,Cancellation:()=>jn,CompositeCstNodeImpl:()=>i8,ContextCache:()=>h8,CstNodeBuilder:()=>Jwe,CstUtils:()=>GY,DEFAULT_TOKENIZE_OPTIONS:()=>hW,DONE_RESULT:()=>Os,DatatypeSymbol:()=>Bw,DefaultAstNodeDescriptionProvider:()=>Oke,DefaultAstNodeLocator:()=>Lke,DefaultAsyncParser:()=>Zke,DefaultCommentProvider:()=>Qke,DefaultConfigurationProvider:()=>Mke,DefaultDocumentBuilder:()=>Pke,DefaultDocumentValidator:()=>Ike,DefaultHydrator:()=>e7e,DefaultIndexManager:()=>Bke,DefaultJsonSerializer:()=>kke,DefaultLangiumDocumentFactory:()=>yke,DefaultLangiumDocuments:()=>_ke,DefaultLangiumProfiler:()=>_7t,DefaultLexer:()=>fW,DefaultLexerErrorMessageProvider:()=>$ke,DefaultLinker:()=>bke,DefaultNameProvider:()=>Eke,DefaultReferenceDescriptionProvider:()=>Dke,DefaultReferences:()=>Ske,DefaultScopeComputation:()=>Tke,DefaultScopeProvider:()=>wke,DefaultServiceRegistry:()=>Ake,DefaultTokenBuilder:()=>l8,DefaultValueConverter:()=>tW,DefaultWorkspaceLock:()=>Jke,DefaultWorkspaceManager:()=>Fke,Deferred:()=>q0,Disposable:()=>Tp,DisposableCache:()=>d8,DocumentCache:()=>Cke,DocumentState:()=>on,DocumentValidator:()=>yl,EMPTY_SCOPE:()=>u7t,EMPTY_STREAM:()=>kb,EmptyFileSystem:()=>Ul,EmptyFileSystemProvider:()=>n7e,ErrorWithLocation:()=>yA,GrammarAST:()=>vEe,GrammarUtils:()=>EH,IndentationAwareLexer:()=>m7t,IndentationAwareTokenBuilder:()=>r7e,JSDocDocumentationProvider:()=>jke,LangiumCompletionParser:()=>nke,LangiumParser:()=>tke,LangiumParserErrorMessageProvider:()=>XV,LeafCstNodeImpl:()=>Pw,LexingMode:()=>gp,MapScope:()=>c7t,Module:()=>K$,MultiMap:()=>Y0,MultiMapScope:()=>xke,OperationCancelled:()=>eu,ParserWorker:()=>g7t,ProfilingTask:()=>i7e,Reduction:()=>O4,RefResolving:()=>Bf,RegExpUtils:()=>TH,RootCstNodeImpl:()=>WV,SimpleCache:()=>oW,StreamImpl:()=>Jc,StreamScope:()=>Y$,TextDocument:()=>$w,TreeStreamImpl:()=>Ab,URI:()=>Bo,UriTrie:()=>iW,UriUtils:()=>Us,VALIDATE_EACH_NODE:()=>Nke,ValidationCategory:()=>Gw,ValidationRegistry:()=>Rke,ValueConverter:()=>Fc,WorkspaceCache:()=>lW,assertCondition:()=>SH,assertUnreachable:()=>Xh,createCompletionParser:()=>ZV,createDefaultCoreModule:()=>tl,createDefaultSharedCoreModule:()=>rl,createGrammarConfig:()=>UH,createLangiumParser:()=>JV,createParser:()=>s8,delayNextTick:()=>c8,diagnosticData:()=>pp,eagerLoad:()=>bW,getDiagnosticRange:()=>uW,indentationBuilderDefaultOptions:()=>j$,inject:()=>ga,interruptAndCheck:()=>Pi,isAstNode:()=>ti,isAstNodeDescription:()=>qY,isAstNodeWithComment:()=>cW,isCompositeCstNode:()=>M0,isIMultiModeLexerDefinition:()=>g8,isJSDoc:()=>gW,isLeafCstNode:()=>vg,isLinkingError:()=>Hf,isMultiReference:()=>iu,isNamed:()=>sW,isOperationCancelled:()=>Pg,isReference:()=>zs,isRootCstNode:()=>uA,isTokenTypeArray:()=>p8,isTokenTypeDictionary:()=>qw,loadGrammarFromJson:()=>nl,parseJSDoc:()=>pW,prepareLangiumParser:()=>eW,setInterruptionPeriod:()=>rW,startCancelableOperation:()=>u8,stream:()=>Pn,toDiagnosticData:()=>dW,toDiagnosticSeverity:()=>DS});var GY={};Kh(GY,{DefaultNameRegexp:()=>mH,RangeComparison:()=>qc,compareRange:()=>pH,findCommentNode:()=>vH,findDeclarationNodeAtOffset:()=>PEe,findLeafNodeAtOffset:()=>vA,findLeafNodeBeforeOffset:()=>yH,flattenCst:()=>MEe,getDatatypeNode:()=>LEe,getInteriorNodes:()=>$Ee,getNextNode:()=>BEe,getPreviousNode:()=>bH,getStartlineNode:()=>FEe,inRange:()=>gH,isChildNode:()=>fH,isCommentNode:()=>bw,streamCst:()=>Ob,toDocumentSegment:()=>Db,tokenToRange:()=>D4});function ti(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}k(ti,"isAstNode");function zs(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}k(zs,"isReference");function iu(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}k(iu,"isMultiReference");function qY(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}k(qY,"isAstNodeDescription");function Hf(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}k(Hf,"isLinkingError");var z1,YY=(z1=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 ti(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 a=n[r];if(a!==void 0)return a;{const i=this.types[e],s=i?i.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(),a=[];for(const i of n)this.isSubtype(i,e)&&a.push(i);return this.allSubtypes[e]=a,a}}},k(z1,"AbstractAstReflection"),z1);function M0(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}k(M0,"isCompositeCstNode");function vg(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}k(vg,"isLeafCstNode");function uA(t){return M0(t)&&typeof t.fullText=="string"}k(uA,"isRootCstNode");var uo,Jc=(uo=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(a=>[e?e(a):a,r?r(a):a]);return new Map(n)}toString(){return this.join()}concat(e){return new uo(()=>({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 Os})}join(e=","){const r=this.iterator();let n="",a,i=!1;do a=r.next(),a.done||(i&&(n+=e),n+=gEe(a.value)),i=!0;while(!a.done);return n}indexOf(e,r=0){const n=this.iterator();let a=0,i=n.next();for(;!i.done;){if(a>=r&&i.value===e)return a;i=n.next(),a++}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,a=r.next();for(;!a.done;)e(a.value,n),a=r.next(),n++}map(e){return new uo(this.startFn,r=>{const{done:n,value:a}=this.nextFn(r);return n?Os:{done:!1,value:e(a)}})}filter(e){return new uo(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return Os})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){const n=this.iterator();let a=r,i=n.next();for(;!i.done;)a===void 0?a=i.value:a=e(a,i.value),i=n.next();return a}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){const a=e.next();if(a.done)return n;const i=this.recursiveReduce(e,r,n);return i===void 0?a.value:r(i,a.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,a=r.next();for(;!a.done;){if(e(a.value))return n;a=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 uo(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const i=r.iterator.next();if(i.done)r.iterator=void 0;else return i}const{done:n,value:a}=this.nextFn(r.this);if(!n){const i=e(a);if(I4(i))r.iterator=i[Symbol.iterator]();else return{done:!1,value:i}}}while(r.iterator);return Os})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const r=e>1?this.flat(e-1):this;return new uo(()=>({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:a,value:i}=r.nextFn(n.this);if(!a)if(I4(i))n.iterator=i[Symbol.iterator]();else return{done:!1,value:i}}while(n.iterator);return Os})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new uo(()=>{const r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?Os:this.nextFn(r.state)))}distinct(e){return new uo(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){const a=e?e(n.value):n.value;if(!r.set.has(a))return r.set.add(a),n}while(!n.done);return Os})}exclude(e,r){const n=new Set;for(const a of e){const i=r?r(a):a;n.add(i)}return this.filter(a=>{const i=r?r(a):a;return!n.has(i)})}},k(uo,"StreamImpl"),uo);function gEe(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}k(gEe,"toString");function I4(t){return!!t&&typeof t[Symbol.iterator]=="function"}k(I4,"isIterable");var kb=new Jc(()=>{},()=>Os),Os=Object.freeze({done:!0,value:void 0});function Pn(...t){if(t.length===1){const e=t[0];if(e instanceof Jc)return e;if(I4(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}),a=>{for(a.pruned&&(a.iterators.pop(),a.pruned=!1);a.iterators.length>0;){const s=a.iterators[a.iterators.length-1].next();if(s.done)a.iterators.pop();else return a.iterators.push(r(s.value)[Symbol.iterator]()),s}return Os})}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(U1,"TreeStreamImpl"),U1),O4;(function(t){function e(i){return i.reduce((s,o)=>s+o,0)}k(e,"sum"),t.sum=e;function r(i){return i.reduce((s,o)=>s*o,0)}k(r,"product"),t.product=r;function n(i){return i.reduce((s,o)=>Math.min(s,o))}k(n,"min"),t.min=n;function a(i){return i.reduce((s,o)=>Math.max(s,o))}k(a,"max"),t.max=a})(O4||(O4={}));var HY={};Kh(HY,{assignMandatoryProperties:()=>VY,copyAstNode:()=>sw,findRootNode:()=>f1,getContainerOfType:()=>yg,getDocument:()=>cc,getReferenceNodes:()=>aw,hasContainerOfType:()=>mEe,linkContentToContainer:()=>Rb,streamAllContents:()=>od,streamAst:()=>uc,streamContents:()=>KT,streamReferences:()=>Nb});function Rb(t,e={}){for(const[r,n]of Object.entries(t))r.startsWith("$")||(Array.isArray(n)?n.forEach((a,i)=>{ti(a)&&(a.$container=t,a.$containerProperty=r,a.$containerIndex=i,e.deep&&Rb(a,e))}):ti(n)&&(n.$container=t,n.$containerProperty=r,e.deep&&Rb(n,e)))}k(Rb,"linkContentToContainer");function yg(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}k(yg,"getContainerOfType");function mEe(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}k(mEe,"hasContainerOfType");function cc(t){const r=f1(t).$document;if(!r)throw new Error("AST node has no document.");return r}k(cc,"getDocument");function f1(t){for(;t.$container;)t=t.$container;return t}k(f1,"findRootNode");function aw(t){return zs(t)?t.ref?[t.ref]:[]:iu(t)?t.items.map(e=>e.ref):[]}k(aw,"getReferenceNodes");function KT(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.keyIndexKT(r,e))}k(od,"streamAllContents");function uc(t,e){if(t){if(e?.range&&!iw(t,e.range))return new Ab(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new Ab(t,r=>KT(r,e),{includeRoot:!0})}k(uc,"streamAst");function iw(t,e){if(!e)return!0;const r=t.$cstNode?.range;return r?gH(r,e):!1}k(iw,"isAstNodeInRange");function Nb(t){return new Jc(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexlo,AbstractParserRule:()=>_S,AbstractRule:()=>Um,AbstractType:()=>Oo,Action:()=>Nd,Alternatives:()=>bS,ArrayLiteral:()=>ow,ArrayType:()=>lw,Assignment:()=>Id,BooleanLiteral:()=>cw,CharacterRange:()=>Od,Condition:()=>Dd,Conjunction:()=>ES,CrossReference:()=>Ld,Disjunction:()=>SS,EndOfFile:()=>uw,Grammar:()=>Ju,GrammarImport:()=>dw,Group:()=>Vf,InferredType:()=>hw,InfixRule:()=>Lc,InfixRuleOperatorList:()=>TS,InfixRuleOperators:()=>fw,Interface:()=>Gm,Keyword:()=>qm,LangiumGrammarAstReflection:()=>hH,LangiumGrammarTerminals:()=>H2t,NamedArgument:()=>Ym,NegatedToken:()=>Wf,Negation:()=>pw,NumberLiteral:()=>gw,Parameter:()=>Hm,ParameterReference:()=>mw,ParserRule:()=>ql,ReferenceType:()=>xS,RegexToken:()=>Kf,ReturnType:()=>vw,RuleCall:()=>Xf,SimpleType:()=>Vm,StringLiteral:()=>yw,TerminalAlternatives:()=>jf,TerminalElement:()=>co,TerminalGroup:()=>Qf,TerminalRule:()=>e0,TerminalRuleCall:()=>Zf,Type:()=>CS,TypeAttribute:()=>Jf,TypeDefinition:()=>ep,UnionType:()=>_w,UnorderedGroup:()=>wS,UntilToken:()=>tp,ValueLiteral:()=>rp,Wildcard:()=>Wm,isAbstractElement:()=>dA,isAbstractParserRule:()=>_g,isAbstractRule:()=>yEe,isAbstractType:()=>_Ee,isAction:()=>Nh,isAlternatives:()=>hA,isArrayLiteral:()=>bEe,isArrayType:()=>KY,isAssignment:()=>P0,isBooleanLiteral:()=>XY,isCharacterRange:()=>jY,isCondition:()=>EEe,isConjunction:()=>QY,isCrossReference:()=>bg,isDisjunction:()=>ZY,isEndOfFile:()=>JY,isGrammar:()=>SEe,isGrammarImport:()=>TEe,isGroup:()=>Eg,isInferredType:()=>XT,isInfixRule:()=>Ib,isInfixRuleOperatorList:()=>xEe,isInfixRuleOperators:()=>CEe,isInterface:()=>eH,isKeyword:()=>B0,isNamedArgument:()=>wEe,isNegatedToken:()=>tH,isNegation:()=>rH,isNumberLiteral:()=>kEe,isParameter:()=>AEe,isParameterReference:()=>nH,isParserRule:()=>Ks,isReferenceType:()=>aH,isRegexToken:()=>iH,isReturnType:()=>sH,isRuleCall:()=>F0,isSimpleType:()=>fA,isStringLiteral:()=>REe,isTerminalAlternatives:()=>oH,isTerminalElement:()=>NEe,isTerminalGroup:()=>lH,isTerminalRule:()=>$l,isTerminalRuleCall:()=>pA,isType:()=>gA,isTypeAttribute:()=>IEe,isTypeDefinition:()=>OEe,isUnionType:()=>cH,isUnorderedGroup:()=>mA,isUntilToken:()=>uH,isValueLiteral:()=>DEe,isWildcard:()=>dH,reflection:()=>Lr});var H2t={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]*/},lo={$type:"AbstractElement",cardinality:"cardinality"};function dA(t){return Lr.isInstance(t,lo.$type)}k(dA,"isAbstractElement");var _S={$type:"AbstractParserRule"};function _g(t){return Lr.isInstance(t,_S.$type)}k(_g,"isAbstractParserRule");var Um={$type:"AbstractRule"};function yEe(t){return Lr.isInstance(t,Um.$type)}k(yEe,"isAbstractRule");var Oo={$type:"AbstractType"};function _Ee(t){return Lr.isInstance(t,Oo.$type)}k(_Ee,"isAbstractType");var Nd={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function Nh(t){return Lr.isInstance(t,Nd.$type)}k(Nh,"isAction");var bS={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function hA(t){return Lr.isInstance(t,bS.$type)}k(hA,"isAlternatives");var ow={$type:"ArrayLiteral",elements:"elements"};function bEe(t){return Lr.isInstance(t,ow.$type)}k(bEe,"isArrayLiteral");var lw={$type:"ArrayType",elementType:"elementType"};function KY(t){return Lr.isInstance(t,lw.$type)}k(KY,"isArrayType");var Id={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function P0(t){return Lr.isInstance(t,Id.$type)}k(P0,"isAssignment");var cw={$type:"BooleanLiteral",true:"true"};function XY(t){return Lr.isInstance(t,cw.$type)}k(XY,"isBooleanLiteral");var Od={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function jY(t){return Lr.isInstance(t,Od.$type)}k(jY,"isCharacterRange");var Dd={$type:"Condition"};function EEe(t){return Lr.isInstance(t,Dd.$type)}k(EEe,"isCondition");var ES={$type:"Conjunction",left:"left",right:"right"};function QY(t){return Lr.isInstance(t,ES.$type)}k(QY,"isConjunction");var Ld={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function bg(t){return Lr.isInstance(t,Ld.$type)}k(bg,"isCrossReference");var SS={$type:"Disjunction",left:"left",right:"right"};function ZY(t){return Lr.isInstance(t,SS.$type)}k(ZY,"isDisjunction");var uw={$type:"EndOfFile",cardinality:"cardinality"};function JY(t){return Lr.isInstance(t,uw.$type)}k(JY,"isEndOfFile");var Ju={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function SEe(t){return Lr.isInstance(t,Ju.$type)}k(SEe,"isGrammar");var dw={$type:"GrammarImport",path:"path"};function TEe(t){return Lr.isInstance(t,dw.$type)}k(TEe,"isGrammarImport");var Vf={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Eg(t){return Lr.isInstance(t,Vf.$type)}k(Eg,"isGroup");var hw={$type:"InferredType",name:"name"};function XT(t){return Lr.isInstance(t,hw.$type)}k(XT,"isInferredType");var Lc={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function Ib(t){return Lr.isInstance(t,Lc.$type)}k(Ib,"isInfixRule");var TS={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function xEe(t){return Lr.isInstance(t,TS.$type)}k(xEe,"isInfixRuleOperatorList");var fw={$type:"InfixRuleOperators",precedences:"precedences"};function CEe(t){return Lr.isInstance(t,fw.$type)}k(CEe,"isInfixRuleOperators");var Gm={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function eH(t){return Lr.isInstance(t,Gm.$type)}k(eH,"isInterface");var qm={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function B0(t){return Lr.isInstance(t,qm.$type)}k(B0,"isKeyword");var Ym={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function wEe(t){return Lr.isInstance(t,Ym.$type)}k(wEe,"isNamedArgument");var Wf={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function tH(t){return Lr.isInstance(t,Wf.$type)}k(tH,"isNegatedToken");var pw={$type:"Negation",value:"value"};function rH(t){return Lr.isInstance(t,pw.$type)}k(rH,"isNegation");var gw={$type:"NumberLiteral",value:"value"};function kEe(t){return Lr.isInstance(t,gw.$type)}k(kEe,"isNumberLiteral");var Hm={$type:"Parameter",name:"name"};function AEe(t){return Lr.isInstance(t,Hm.$type)}k(AEe,"isParameter");var mw={$type:"ParameterReference",parameter:"parameter"};function nH(t){return Lr.isInstance(t,mw.$type)}k(nH,"isParameterReference");var ql={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function Ks(t){return Lr.isInstance(t,ql.$type)}k(Ks,"isParserRule");var xS={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function aH(t){return Lr.isInstance(t,xS.$type)}k(aH,"isReferenceType");var Kf={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function iH(t){return Lr.isInstance(t,Kf.$type)}k(iH,"isRegexToken");var vw={$type:"ReturnType",name:"name"};function sH(t){return Lr.isInstance(t,vw.$type)}k(sH,"isReturnType");var Xf={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function F0(t){return Lr.isInstance(t,Xf.$type)}k(F0,"isRuleCall");var Vm={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function fA(t){return Lr.isInstance(t,Vm.$type)}k(fA,"isSimpleType");var yw={$type:"StringLiteral",value:"value"};function REe(t){return Lr.isInstance(t,yw.$type)}k(REe,"isStringLiteral");var jf={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function oH(t){return Lr.isInstance(t,jf.$type)}k(oH,"isTerminalAlternatives");var co={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function NEe(t){return Lr.isInstance(t,co.$type)}k(NEe,"isTerminalElement");var Qf={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function lH(t){return Lr.isInstance(t,Qf.$type)}k(lH,"isTerminalGroup");var e0={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function $l(t){return Lr.isInstance(t,e0.$type)}k($l,"isTerminalRule");var Zf={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function pA(t){return Lr.isInstance(t,Zf.$type)}k(pA,"isTerminalRuleCall");var CS={$type:"Type",name:"name",type:"type"};function gA(t){return Lr.isInstance(t,CS.$type)}k(gA,"isType");var Jf={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function IEe(t){return Lr.isInstance(t,Jf.$type)}k(IEe,"isTypeAttribute");var ep={$type:"TypeDefinition"};function OEe(t){return Lr.isInstance(t,ep.$type)}k(OEe,"isTypeDefinition");var _w={$type:"UnionType",types:"types"};function cH(t){return Lr.isInstance(t,_w.$type)}k(cH,"isUnionType");var wS={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function mA(t){return Lr.isInstance(t,wS.$type)}k(mA,"isUnorderedGroup");var tp={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function uH(t){return Lr.isInstance(t,tp.$type)}k(uH,"isUntilToken");var rp={$type:"ValueLiteral"};function DEe(t){return Lr.isInstance(t,rp.$type)}k(DEe,"isValueLiteral");var Wm={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function dH(t){return Lr.isInstance(t,Wm.$type)}k(dH,"isWildcard");var G1,hH=(G1=class extends YY{constructor(){super(...arguments),this.types={AbstractElement:{name:lo.$type,properties:{cardinality:{name:lo.cardinality}},superTypes:[]},AbstractParserRule:{name:_S.$type,properties:{},superTypes:[Um.$type,Oo.$type]},AbstractRule:{name:Um.$type,properties:{},superTypes:[]},AbstractType:{name:Oo.$type,properties:{},superTypes:[]},Action:{name:Nd.$type,properties:{cardinality:{name:Nd.cardinality},feature:{name:Nd.feature},inferredType:{name:Nd.inferredType},operator:{name:Nd.operator},type:{name:Nd.type,referenceType:Oo.$type}},superTypes:[lo.$type]},Alternatives:{name:bS.$type,properties:{cardinality:{name:bS.cardinality},elements:{name:bS.elements,defaultValue:[]}},superTypes:[lo.$type]},ArrayLiteral:{name:ow.$type,properties:{elements:{name:ow.elements,defaultValue:[]}},superTypes:[rp.$type]},ArrayType:{name:lw.$type,properties:{elementType:{name:lw.elementType}},superTypes:[ep.$type]},Assignment:{name:Id.$type,properties:{cardinality:{name:Id.cardinality},feature:{name:Id.feature},operator:{name:Id.operator},predicate:{name:Id.predicate},terminal:{name:Id.terminal}},superTypes:[lo.$type]},BooleanLiteral:{name:cw.$type,properties:{true:{name:cw.true,defaultValue:!1}},superTypes:[Dd.$type,rp.$type]},CharacterRange:{name:Od.$type,properties:{cardinality:{name:Od.cardinality},left:{name:Od.left},lookahead:{name:Od.lookahead},parenthesized:{name:Od.parenthesized,defaultValue:!1},right:{name:Od.right}},superTypes:[co.$type]},Condition:{name:Dd.$type,properties:{},superTypes:[]},Conjunction:{name:ES.$type,properties:{left:{name:ES.left},right:{name:ES.right}},superTypes:[Dd.$type]},CrossReference:{name:Ld.$type,properties:{cardinality:{name:Ld.cardinality},deprecatedSyntax:{name:Ld.deprecatedSyntax,defaultValue:!1},isMulti:{name:Ld.isMulti,defaultValue:!1},terminal:{name:Ld.terminal},type:{name:Ld.type,referenceType:Oo.$type}},superTypes:[lo.$type]},Disjunction:{name:SS.$type,properties:{left:{name:SS.left},right:{name:SS.right}},superTypes:[Dd.$type]},EndOfFile:{name:uw.$type,properties:{cardinality:{name:uw.cardinality}},superTypes:[lo.$type]},Grammar:{name:Ju.$type,properties:{imports:{name:Ju.imports,defaultValue:[]},interfaces:{name:Ju.interfaces,defaultValue:[]},isDeclared:{name:Ju.isDeclared,defaultValue:!1},name:{name:Ju.name},rules:{name:Ju.rules,defaultValue:[]},types:{name:Ju.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:dw.$type,properties:{path:{name:dw.path}},superTypes:[]},Group:{name:Vf.$type,properties:{cardinality:{name:Vf.cardinality},elements:{name:Vf.elements,defaultValue:[]},guardCondition:{name:Vf.guardCondition},predicate:{name:Vf.predicate}},superTypes:[lo.$type]},InferredType:{name:hw.$type,properties:{name:{name:hw.name}},superTypes:[Oo.$type]},InfixRule:{name:Lc.$type,properties:{call:{name:Lc.call},dataType:{name:Lc.dataType},inferredType:{name:Lc.inferredType},name:{name:Lc.name},operators:{name:Lc.operators},parameters:{name:Lc.parameters,defaultValue:[]},returnType:{name:Lc.returnType,referenceType:Oo.$type}},superTypes:[_S.$type]},InfixRuleOperatorList:{name:TS.$type,properties:{associativity:{name:TS.associativity},operators:{name:TS.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:fw.$type,properties:{precedences:{name:fw.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Gm.$type,properties:{attributes:{name:Gm.attributes,defaultValue:[]},name:{name:Gm.name},superTypes:{name:Gm.superTypes,defaultValue:[],referenceType:Oo.$type}},superTypes:[Oo.$type]},Keyword:{name:qm.$type,properties:{cardinality:{name:qm.cardinality},predicate:{name:qm.predicate},value:{name:qm.value}},superTypes:[lo.$type]},NamedArgument:{name:Ym.$type,properties:{calledByName:{name:Ym.calledByName,defaultValue:!1},parameter:{name:Ym.parameter,referenceType:Hm.$type},value:{name:Ym.value}},superTypes:[]},NegatedToken:{name:Wf.$type,properties:{cardinality:{name:Wf.cardinality},lookahead:{name:Wf.lookahead},parenthesized:{name:Wf.parenthesized,defaultValue:!1},terminal:{name:Wf.terminal}},superTypes:[co.$type]},Negation:{name:pw.$type,properties:{value:{name:pw.value}},superTypes:[Dd.$type]},NumberLiteral:{name:gw.$type,properties:{value:{name:gw.value}},superTypes:[rp.$type]},Parameter:{name:Hm.$type,properties:{name:{name:Hm.name}},superTypes:[]},ParameterReference:{name:mw.$type,properties:{parameter:{name:mw.parameter,referenceType:Hm.$type}},superTypes:[Dd.$type]},ParserRule:{name:ql.$type,properties:{dataType:{name:ql.dataType},definition:{name:ql.definition},entry:{name:ql.entry,defaultValue:!1},fragment:{name:ql.fragment,defaultValue:!1},inferredType:{name:ql.inferredType},name:{name:ql.name},parameters:{name:ql.parameters,defaultValue:[]},returnType:{name:ql.returnType,referenceType:Oo.$type}},superTypes:[_S.$type]},ReferenceType:{name:xS.$type,properties:{isMulti:{name:xS.isMulti,defaultValue:!1},referenceType:{name:xS.referenceType}},superTypes:[ep.$type]},RegexToken:{name:Kf.$type,properties:{cardinality:{name:Kf.cardinality},lookahead:{name:Kf.lookahead},parenthesized:{name:Kf.parenthesized,defaultValue:!1},regex:{name:Kf.regex}},superTypes:[co.$type]},ReturnType:{name:vw.$type,properties:{name:{name:vw.name}},superTypes:[]},RuleCall:{name:Xf.$type,properties:{arguments:{name:Xf.arguments,defaultValue:[]},cardinality:{name:Xf.cardinality},predicate:{name:Xf.predicate},rule:{name:Xf.rule,referenceType:Um.$type}},superTypes:[lo.$type]},SimpleType:{name:Vm.$type,properties:{primitiveType:{name:Vm.primitiveType},stringType:{name:Vm.stringType},typeRef:{name:Vm.typeRef,referenceType:Oo.$type}},superTypes:[ep.$type]},StringLiteral:{name:yw.$type,properties:{value:{name:yw.value}},superTypes:[rp.$type]},TerminalAlternatives:{name:jf.$type,properties:{cardinality:{name:jf.cardinality},elements:{name:jf.elements,defaultValue:[]},lookahead:{name:jf.lookahead},parenthesized:{name:jf.parenthesized,defaultValue:!1}},superTypes:[co.$type]},TerminalElement:{name:co.$type,properties:{cardinality:{name:co.cardinality},lookahead:{name:co.lookahead},parenthesized:{name:co.parenthesized,defaultValue:!1}},superTypes:[lo.$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:[co.$type]},TerminalRule:{name:e0.$type,properties:{definition:{name:e0.definition},fragment:{name:e0.fragment,defaultValue:!1},hidden:{name:e0.hidden,defaultValue:!1},name:{name:e0.name},type:{name:e0.type}},superTypes:[Um.$type]},TerminalRuleCall:{name:Zf.$type,properties:{cardinality:{name:Zf.cardinality},lookahead:{name:Zf.lookahead},parenthesized:{name:Zf.parenthesized,defaultValue:!1},rule:{name:Zf.rule,referenceType:e0.$type}},superTypes:[co.$type]},Type:{name:CS.$type,properties:{name:{name:CS.name},type:{name:CS.type}},superTypes:[Oo.$type]},TypeAttribute:{name:Jf.$type,properties:{defaultValue:{name:Jf.defaultValue},isOptional:{name:Jf.isOptional,defaultValue:!1},name:{name:Jf.name},type:{name:Jf.type}},superTypes:[]},TypeDefinition:{name:ep.$type,properties:{},superTypes:[]},UnionType:{name:_w.$type,properties:{types:{name:_w.types,defaultValue:[]}},superTypes:[ep.$type]},UnorderedGroup:{name:wS.$type,properties:{cardinality:{name:wS.cardinality},elements:{name:wS.elements,defaultValue:[]}},superTypes:[lo.$type]},UntilToken:{name:tp.$type,properties:{cardinality:{name:tp.cardinality},lookahead:{name:tp.lookahead},parenthesized:{name:tp.parenthesized,defaultValue:!1},terminal:{name:tp.terminal}},superTypes:[co.$type]},ValueLiteral:{name:rp.$type,properties:{},superTypes:[]},Wildcard:{name:Wm.$type,properties:{cardinality:{name:Wm.cardinality},lookahead:{name:Wm.lookahead},parenthesized:{name:Wm.parenthesized,defaultValue:!1}},superTypes:[co.$type]}}}},k(G1,"LangiumGrammarAstReflection"),G1),Lr=new hH;function LEe(t){let e=t,r=!1;for(;e;){const n=yg(e.grammarSource,Ks);if(n&&n.dataType)e=e.container,r=!0;else return r?e:void 0}}k(LEe,"getDatatypeNode");function Ob(t){return new Ab(t,e=>M0(e)?e.content:[],{includeRoot:!0})}k(Ob,"streamCst");function MEe(t){return Ob(t).filter(vg)}k(MEe,"flattenCst");function fH(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}k(fH,"isChildNode");function D4(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}k(D4,"tokenToRange");function Db(t){if(!t)return;const{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}k(Db,"toDocumentSegment");var qc;(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"})(qc||(qc={}));function pH(t,e){if(t.end.linee.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return qc.After;const r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.lineqc.After}k(gH,"inRange");var mH=/^[\w\p{L}]$/u;function PEe(t,e,r=mH){if(t){if(e>0){const n=e-t.offset,a=t.text.charAt(n);r.test(a)||e--}return vA(t,e)}}k(PEe,"findDeclarationNodeAtOffset");function vH(t,e){if(t){const r=bH(t,!0);if(r&&bw(r,e))return r;if(uA(t)){const n=t.content.findIndex(a=>!a.hidden);for(let a=n-1;a>=0;a--){const i=t.content[a];if(bw(i,e))return i}}}}k(vH,"findCommentNode");function bw(t,e){return vg(t)&&e.includes(t.tokenType.name)}k(bw,"isCommentNode");function vA(t,e){if(vg(t))return t;if(M0(t)){const r=_H(t,e,!1);if(r)return vA(r,e)}}k(vA,"findLeafNodeAtOffset");function yH(t,e){if(vg(t))return t;if(M0(t)){const r=_H(t,e,!0);if(r)return yH(r,e)}}k(yH,"findLeafNodeBeforeOffset");function _H(t,e,r){let n=0,a=t.content.length-1,i;for(;n<=a;){const s=Math.floor((n+a)/2),o=t.content[s];if(o.offset<=e&&o.end>e)return o;o.end<=e?(i=r?o:void 0,n=s+1):a=s-1}return i}k(_H,"binarySearch");function bH(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);for(;n>0;){n--;const a=r.content[n];if(e||!a.hidden)return a}t=r}}k(bH,"getPreviousNode");function BEe(t,e=!0){for(;t.container;){const r=t.container;let n=r.content.indexOf(t);const a=r.content.length-1;for(;nLH,findNameAssignment:()=>CA,findNodeForKeyword:()=>DH,findNodeForProperty:()=>SA,findNodesForKeyword:()=>KEe,findNodesForKeywordInternal:()=>xA,findNodesForProperty:()=>OH,getActionAtElement:()=>PH,getActionType:()=>FH,getAllReachableRules:()=>EA,getAllRulesUsedForCrossReferences:()=>WEe,getCrossReferenceTerminal:()=>NH,getEntryRule:()=>kH,getExplicitRuleType:()=>QT,getHiddenRules:()=>AH,getRuleType:()=>$H,getRuleTypeName:()=>JEe,getTypeName:()=>Vp,isArrayCardinality:()=>jEe,isArrayOperator:()=>QEe,isCommentTerminal:()=>IH,isDataType:()=>ZEe,isDataTypeRule:()=>jT,isOptionalCardinality:()=>XEe,terminalRegex:()=>ZT});var q1,yA=(q1=class extends Error{constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}},k(q1,"ErrorWithLocation"),q1);function Xh(t,e="Error: Got unexpected value."){throw new Error(e)}k(Xh,"assertUnreachable");function SH(t,e="Error: Condition is violated."){if(!t)throw new Error(e)}k(SH,"assertCondition");var TH={};Kh(TH,{NEWLINE_REGEXP:()=>qEe,escapeRegExp:()=>T2,getTerminalParts:()=>HEe,isMultilineComment:()=>xH,isWhitespace:()=>bA,partialMatches:()=>CH,partialRegExp:()=>wH,whitespaceCharacters:()=>VEe});function Br(t){return t.charCodeAt(0)}k(Br,"cc");function Y5(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}k(Y5,"insertToSet");function _m(t,e){if(t[e]===!0)throw"duplicate flag "+e;t[e],t[e]=!0}k(_m,"addFlag");function Lf(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}k(Lf,"ASSERT_EXISTS");function UEe(){throw Error("Internal Error - Should never get here!")}k(UEe,"ASSERT_NEVER_REACH_HERE");function g$(t){return t.type==="Character"}k(g$,"isCharacter");var Ew=[];for(let t=Br("0");t<=Br("9");t++)Ew.push(t);var Sw=[Br("_")].concat(Ew);for(let t=Br("a");t<=Br("z");t++)Sw.push(t);for(let t=Br("A");t<=Br("Z");t++)Sw.push(t);var vse=[Br(" "),Br("\f"),Br(` +`),Br("\r"),Br(" "),Br("\v"),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br(" "),Br("\u2028"),Br("\u2029"),Br(" "),Br(" "),Br(" "),Br("\uFEFF")],V2t=/[0-9a-fA-F]/,x3=/[0-9]/,W2t=/[1-9]/,Y1,GEe=(Y1=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":_m(n,"global");break;case"i":_m(n,"ignoreCase");break;case"m":_m(n,"multiLine");break;case"u":_m(n,"unicode");break;case"y":_m(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}}Lf(r);const n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return UEe()}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 a=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:a,atMost:a};break;case",":let i;this.isDigit()?(i=this.integerIncludingZero(),r={atLeast:a,atMost:i}):r={atLeast:a,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;Lf(r);break}if(!(e===!0&&r===void 0)&&Lf(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()),Lf(e))return e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Br(` `),Br("\r"),Br("\u2028"),Br("\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=Ew;break;case"D":e=Ew,r=!0;break;case"s":e=vse;break;case"S":e=vse,r=!0;break;case"w":e=Sw;break;case"W":e=Sw,r=!0;break}if(Lf(e))return{type:"Set",value:e,complement:r}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Br("\f");break;case"n":e=Br(` `);break;case"r":e=Br("\r");break;case"t":e=Br(" ");break;case"v":e=Br("\v");break}if(Lf(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:Br("\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:Br(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:Br(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,g$(n)&&this.isRangeDash()){this.consumeChar("-");const a=this.classAtom();if(a.type,g$(a)){if(a.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},k(Y1,"RegExpParser"),Y1),H1,_A=(H1=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(a=>{this.visit(a)},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(H1,"BaseRegExpVisitor"),H1),qEe=/\r?\n/gm,YEe=new GEe,V1,W2t=(V1=class extends _A{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 a=0;a=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},k(Y1,"RegExpParser"),Y1),H1,_A=(H1=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(a=>{this.visit(a)},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(H1,"BaseRegExpVisitor"),H1),qEe=/\r?\n/gm,YEe=new GEe,V1,K2t=(V1=class extends _A{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=T2(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(V1,"TerminalRegExpVisitor"),V1),hp=new W2t;function HEe(t){try{typeof t!="string"&&(t=t.source),t=`/${t}/`;const e=YEe.pattern(t),r=[];for(const n of e.value.value)hp.reset(t),hp.visit(n),r.push({start:hp.startRegexp,end:hp.endRegex});return r}catch{return[]}}k(HEe,"getTerminalParts");function xH(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),hp.reset(t),hp.visit(YEe.pattern(t)),hp.multiline}catch{return!1}}k(xH,"isMultilineComment");var VEe=`\f -\r \v              \u2028\u2029   \uFEFF`.split("");function bA(t){const e=typeof t=="string"?new RegExp(t):t;return VEe.some(r=>e.test(r))}k(bA,"isWhitespace");function T2(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}k(T2,"escapeRegExp");function CH(t,e){const r=wH(t),n=e.match(r);return!!n&&n[0].length>0}k(CH,"partialMatches");function wH(t){typeof t=="string"&&(t=new RegExp(t));const e=t,r=t.source;let n=0;function a(){let i="",s;function o(u){i+=r.substr(n,u),n+=u}k(o,"appendRaw");function l(u){i+="(?:"+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":":i+="(?:",n+=3,i+=a()+"|$)";break;case"=":i+="(?=",n+=3,i+=a()+")";break;case"!":s=n,n+=3,a(),i+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,a(),i+=r.substr(s,n-s);break;default:o(r.indexOf(">",n)-n+1),i+=a()+"|$)";break}break}else o(1),i+=a()+"|$)";break;case")":return++n,i;default:l(1);break}return i}return k(a,"process"),new RegExp(a(),t.flags)}k(wH,"partialRegExp");function kH(t){return t.rules.find(e=>Ks(e)&&e.entry)}k(kH,"getEntryRule");function AH(t){return t.rules.filter(e=>$l(e)&&e.hidden)}k(AH,"getHiddenRules");function EA(t,e){const r=new Set,n=kH(t);if(!n)return new Set(t.rules);const a=[n].concat(AH(t));for(const s of a)RH(s,r,e);const i=new Set;for(const s of t.rules)(r.has(s.name)||$l(s)&&s.hidden)&&i.add(s);return i}k(EA,"getAllReachableRules");function RH(t,e,r){e.add(t.name),od(t).forEach(n=>{if(F0(n)||r&&pA(n)){const a=n.rule.ref;a&&!e.has(a.name)&&RH(a,e,r)}})}k(RH,"ruleDfs");function WEe(t){const e=new Set;return od(t).forEach(r=>{bg(r)&&(Ks(r.type.ref)&&e.add(r.type.ref),XT(r.type.ref)&&Ks(r.type.ref.$container)&&e.add(r.type.ref.$container))}),e}k(WEe,"getAllRulesUsedForCrossReferences");function NH(t){if(t.terminal)return t.terminal;if(t.type.ref)return CA(t.type.ref)?.terminal}k(NH,"getCrossReferenceTerminal");function IH(t){return t.hidden&&!bA(ZT(t))}k(IH,"isCommentTerminal");function OH(t,e){return!t||!e?[]:TA(t,e,t.astNode,!0)}k(OH,"findNodesForProperty");function SA(t,e,r){if(!t||!e)return;const n=TA(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(SA,"findNodeForProperty");function TA(t,e,r,n){if(!n){const a=yg(t.grammarSource,P0);if(a&&a.feature===e)return[t]}return M0(t)&&t.astNode===r?t.content.flatMap(a=>TA(a,e,r,!1)):[]}k(TA,"findNodesForPropertyInternal");function KEe(t,e){return t?xA(t,e,t?.astNode):[]}k(KEe,"findNodesForKeyword");function DH(t,e,r){if(!t)return;const n=xA(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(DH,"findNodeForKeyword");function xA(t,e,r){if(t.astNode!==r)return[];if(B0(t.grammarSource)&&t.grammarSource.value===e)return[t];const n=Ob(t).iterator();let a;const i=[];do if(a=n.next(),!a.done){const s=a.value;s.astNode===r?B0(s.grammarSource)&&s.grammarSource.value===e&&i.push(s):n.prune()}while(!a.done);return i}k(xA,"findNodesForKeywordInternal");function LH(t){const e=t.astNode;for(;e===t.container?.astNode;){const r=yg(t.grammarSource,P0);if(r)return r;t=t.container}}k(LH,"findAssignment");function CA(t){let e=t;return XT(e)&&(Nh(e.$container)?e=e.$container.$container:_g(e.$container)?e=e.$container:Xh(e.$container)),MH(t,e,new Map)}k(CA,"findNameAssignment");function MH(t,e,r){function n(a,i){let s;return yg(a,P0)||(s=MH(i,i,r)),r.set(t,s),s}if(k(n,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(const a of od(e)){if(P0(a)&&a.feature.toLowerCase()==="name")return r.set(t,a),a;if(F0(a)&&Ks(a.rule.ref))return n(a,a.rule.ref);if(fA(a)&&a.typeRef?.ref)return n(a,a.typeRef.ref)}}k(MH,"findNameAssignmentInternal");function PH(t){const e=t.$container;if(Eg(e)){const r=e.elements,n=r.indexOf(t);for(let a=n-1;a>=0;a--){const i=r[a];if(Nh(i))return i;{const s=od(r[a]).find(Nh);if(s)return s}}}if(dA(e))return PH(e)}k(PH,"getActionAtElement");function XEe(t,e){return t==="?"||t==="*"||Eg(e)&&!!e.guardCondition}k(XEe,"isOptionalCardinality");function jEe(t){return t==="*"||t==="+"}k(jEe,"isArrayCardinality");function QEe(t){return t==="+="}k(QEe,"isArrayOperator");function jT(t){return BH(t,new Set)}k(jT,"isDataTypeRule");function BH(t,e){if(e.has(t))return!0;e.add(t);for(const r of od(t))if(F0(r)){if(!r.rule.ref||Ks(r.rule.ref)&&!BH(r.rule.ref,e)||Ib(r.rule.ref))return!1}else{if(P0(r))return!1;if(Nh(r))return!1}return!!t.definition}k(BH,"isDataTypeRuleInternal");function ZEe(t){return Tw(t.type,new Set)}k(ZEe,"isDataType");function Tw(t,e){if(e.has(t))return!0;if(e.add(t),KY(t))return!1;if(aH(t))return!1;if(cH(t))return t.types.every(r=>Tw(r,e));if(fA(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 gA(r)?Tw(r.type,e):!1}else return!1}else return!1}k(Tw,"isDataTypeInternal");function QT(t){if(!$l(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(QT,"getExplicitRuleType");function Vp(t){if(_g(t))return Ks(t)&&jT(t)?t.name:QT(t)??t.name;if(eH(t)||gA(t)||sH(t))return t.name;if(Nh(t)){const e=FH(t);if(e)return e}else if(XT(t))return t.name;throw new Error("Cannot get name of Unknown Type")}k(Vp,"getTypeName");function FH(t){if(t.inferredType)return t.inferredType.name;if(t.type?.ref)return Vp(t.type.ref)}k(FH,"getActionType");function JEe(t){return $l(t)?t.type?.name??"string":Ks(t)&&jT(t)?t.name:QT(t)??t.name}k(JEe,"getRuleTypeName");function $H(t){return $l(t)?t.type?.name??"string":QT(t)??t.name}k($H,"getRuleType");function ZT(t){const e={s:!1,i:!1,u:!1},r=Sg(t.definition,e),n=Object.entries(e).filter(([,a])=>a).map(([a])=>a).join("");return new RegExp(r,n)}k(ZT,"terminalRegex");var zH=/[\s\S]/.source;function Sg(t,e){if(oH(t))return eSe(t);if(lH(t))return tSe(t);if(jY(t))return aSe(t);if(pA(t)){const r=t.rule.ref;if(!r)throw new Error("Missing rule reference.");return su(Sg(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}else{if(tH(t))return nSe(t);if(uH(t))return rSe(t);if(iH(t)){const r=t.regex.lastIndexOf("/"),n=t.regex.substring(1,r),a=t.regex.substring(r+1);return e&&(e.i=a.includes("i"),e.s=a.includes("s"),e.u=a.includes("u")),su(n,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}else{if(dH(t))return su(zH,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized});throw new Error(`Invalid terminal element: ${t?.$type}, ${t?.$cstNode?.text}`)}}}k(Sg,"abstractElementToRegex");function eSe(t){return su(t.elements.map(e=>Sg(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(eSe,"terminalAlternativesToRegex");function tSe(t){return su(t.elements.map(e=>Sg(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(tSe,"terminalGroupToRegex");function rSe(t){return su(`${zH}*?${Sg(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}k(rSe,"untilTokenToRegex");function nSe(t){return su(`(?!${Sg(t.terminal)})${zH}*?`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}k(nSe,"negateTokenToRegex");function aSe(t){return t.right?su(`[${H5(t.left)}-${H5(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1}):su(H5(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(aSe,"characterRangeToRegex");function H5(t){return T2(t.value)}k(H5,"keywordToRegex");function su(t,e){return(e.parenthesized||e.lookahead||e.wrap!==!1)&&(t=`(${e.lookahead??(e.parenthesized?"":"?:")}${t})`),e.cardinality?`${t}${e.cardinality}`:t}k(su,"withCardinality");function UH(t){const e=[],r=t.Grammar;for(const n of r.rules)$l(n)&&IH(n)&&xH(ZT(n))&&e.push(n.name);return{multilineCommentRules:e,nameRegexp:mH}}k(UH,"createGrammarConfig");var K2t=typeof global=="object"&&global&&global.Object===Object&&global,iSe=K2t,X2t=typeof self=="object"&&self&&self.Object===Object&&self,j2t=iSe||X2t||Function("return this")(),Iu=j2t,Q2t=Iu.Symbol,Pl=Q2t,sSe=Object.prototype,Z2t=sSe.hasOwnProperty,J2t=sSe.toString,sE=Pl?Pl.toStringTag:void 0;function oSe(t){var e=Z2t.call(t,sE),r=t[sE];try{t[sE]=void 0;var n=!0}catch{}var a=J2t.call(t);return n&&(e?t[sE]=r:delete t[sE]),a}k(oSe,"getRawTag");var eEt=oSe,tEt=Object.prototype,rEt=tEt.toString;function lSe(t){return rEt.call(t)}k(lSe,"objectToString");var nEt=lSe,aEt="[object Null]",iEt="[object Undefined]",yse=Pl?Pl.toStringTag:void 0;function cSe(t){return t==null?t===void 0?iEt:aEt:yse&&yse in Object(t)?eEt(t):nEt(t)}k(cSe,"baseGetTag");var jh=cSe;function uSe(t){return t!=null&&typeof t=="object"}k(uSe,"isObjectLike");var vc=uSe,sEt="[object Symbol]";function dSe(t){return typeof t=="symbol"||vc(t)&&jh(t)==sEt}k(dSe,"isSymbol");var wA=dSe;function hSe(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r0){if(++e>=GEt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}k(RSe,"shortOut");var HEt=RSe;function NSe(t){return function(){return t}}k(NSe,"constant");var VEt=NSe,WEt=(function(){try{var t=xg(Object,"defineProperty");return t({},"",{}),t}catch{}})(),xw=WEt,KEt=xw?function(t,e){return xw(t,"toString",{configurable:!0,enumerable:!1,value:VEt(e),writable:!0})}:Lb,XEt=KEt,jEt=HEt(XEt),QEt=jEt;function ISe(t,e){for(var r=-1,n=t==null?0:t.length;++r-1}k(FSe,"arrayIncludes");var $Se=FSe,eSt=9007199254740991,tSt=/^(?:0|[1-9]\d*)$/;function zSe(t,e){var r=typeof t;return e=e??eSt,!!e&&(r=="number"||r!="symbol"&&tSt.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=iSt}k(WSe,"isLength");var VH=WSe;function KSe(t){return t!=null&&VH(t.length)&&!ld(t)}k(KSe,"isArrayLike");var Ou=KSe;function XSe(t,e,r){if(!Bl(r))return!1;var n=typeof e;return(n=="number"?Ou(r)&&kA(e,r.length):n=="string"&&e in r)?tx(r[e],t):!1}k(XSe,"isIterateeCall");var RA=XSe;function jSe(t){return HH(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,s&&RA(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),e=Object(e);++n-1}k(w4e,"listCacheHas");var T4t=w4e;function k4e(t,e){var r=this.__data__,n=OA(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}k(k4e,"listCacheSet");var x4t=k4e;function wg(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e0&&r(o)?e>1?QH(o,e-1,r,n,a):jH(a,o):n||(a[a.length]=o)}return a}k(QH,"baseFlatten");var ZH=QH;function q4e(t){var e=t==null?0:t.length;return e?ZH(t,1):[]}k(q4e,"flatten");var dc=q4e,q4t=c4e(Object.getPrototypeOf,Object),Y4e=q4t;function H4e(t,e,r){var n=-1,a=t.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++no))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&Dxt?new rV:void 0;for(i.set(t,e),i.set(e,t);++h2?e[2]:void 0;for(a&&RA(e[0],e[1],a)&&(n=1);++r=w3t&&(i=nV,s=!1,e=new rV(e));e:for(;++a-1?a[i?e[s]:s]:void 0}}k(wxe,"createFind");var O3t=wxe,D3t=Math.max;function kxe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:ex(r);return a<0&&(a=D3t(n+a,0)),LSe(t,Du(e),a)}k(kxe,"findIndex");var L3t=kxe,M3t=O3t(L3t),Pb=M3t;function Axe(t){return t&&t.length?t[0]:void 0}k(Axe,"head");var yc=Axe;function Rxe(t,e){var r=-1,n=Ou(t)?Array(t.length):[];return Rg(t,function(a,i,s){n[++r]=e(a,i,s)}),n}k(Rxe,"baseMap");var P3t=Rxe;function Nxe(t,e){var r=vn(t)?JT:P3t;return r(t,Du(e))}k(Nxe,"map");var Sr=Nxe;function Ixe(t,e){return ZH(Sr(t,e),1)}k(Ixe,"flatMap");var Cl=Ixe,B3t=Object.prototype,F3t=B3t.hasOwnProperty,$3t=T3t(function(t,e,r){F3t.call(t,r)?t[r].push(e):YH(t,r,[e])}),z3t=$3t,U3t=Object.prototype,G3t=U3t.hasOwnProperty;function Oxe(t,e){return t!=null&&G3t.call(t,e)}k(Oxe,"baseHas");var q3t=Oxe;function Dxe(t,e){return t!=null&&QTe(t,e,q3t)}k(Dxe,"has");var Mr=Dxe,Y3t="[object String]";function Lxe(t){return typeof t=="string"||!vn(t)&&vc(t)&&jh(t)==Y3t}k(Lxe,"isString");var xo=Lxe;function Mxe(t,e){return JT(e,function(r){return t[r]})}k(Mxe,"baseValues");var H3t=Mxe;function Pxe(t){return t==null?[]:H3t(t,qo(t))}k(Pxe,"values");var bi=Pxe,V3t=Math.max;function Bxe(t,e,r,n){t=Ou(t)?t:bi(t),r=r&&!n?ex(r):0;var a=t.length;return r<0&&(r=V3t(a+r,0)),xo(t)?r<=a&&t.indexOf(e,r)>-1:!!a&&qH(t,e,r)>-1}k(Bxe,"includes");var ao=Bxe,W3t=Math.max;function Fxe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:ex(r);return a<0&&(a=W3t(n+a,0)),qH(t,e,a)}k(Fxe,"indexOf");var jse=Fxe,K3t="[object Map]",X3t="[object Set]",j3t=Object.prototype,Q3t=j3t.hasOwnProperty;function $xe(t){if(t==null)return!0;if(Ou(t)&&(vn(t)||typeof t=="string"||typeof t.splice=="function"||L4(t)||WH(t)||NA(t)))return!t.length;var e=Mb(t);if(e==K3t||e==X3t)return!t.size;if(nx(t))return!d4e(t).length;for(var r in t)if(Q3t.call(t,r))return!1;return!0}k($xe,"isEmpty");var Zn=$xe,Z3t="[object RegExp]";function zxe(t){return vc(t)&&jh(t)==Z3t}k(zxe,"baseIsRegExp");var J3t=zxe,Qse=Ih&&Ih.isRegExp,e5t=Qse?ax(Qse):J3t,$0=e5t;function Uxe(t){return t===void 0}k(Uxe,"isUndefined");var z0=Uxe,t5t="Expected a function";function Gxe(t){if(typeof t!="function")throw new TypeError(t5t);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(Gxe,"negate");var r5t=Gxe;function qxe(t,e,r,n){if(!Bl(t))return t;e=BA(e,t);for(var a=-1,i=e.length,s=i-1,o=t;o!=null&&++a=u5t){var u=e?null:c5t(t);if(u)return aV(u);s=!1,a=nV,l=new rV}else l=e?[]:o;e:for(;++n{r.accept(e)})}},k(W1,"AbstractProduction"),W1),K1,Xs=(K1=class extends Lu{constructor(e){super([]),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},k(K1,"NonTerminal"),K1),X1,x2=(X1=class extends Lu{constructor(e){super(e.definition),this.orgText="",Yo(this,Ec(e,r=>r!==void 0))}},k(X1,"Rule"),X1),j1,Co=(j1=class extends Lu{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Yo(this,Ec(e,r=>r!==void 0))}},k(j1,"Alternative"),j1),Q1,Ji=(Q1=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(Q1,"Option"),Q1),Z1,Jo=(Z1=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(Z1,"RepetitionMandatory"),Z1),J1,el=(J1=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(J1,"RepetitionMandatoryWithSeparator"),J1),ev,Ba=(ev=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(ev,"Repetition"),ev),tv,Ao=(tv=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(tv,"RepetitionWithSeparator"),tv),rv,Ro=(rv=class extends Lu{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,Yo(this,Ec(e,r=>r!==void 0))}},k(rv,"Alternation"),rv),nv,ia=(nv=class{constructor(e){this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}accept(e){e.visit(this)}},k(nv,"Terminal"),nv);function r3e(t){return Sr(t,NS)}k(r3e,"serializeGrammar");function NS(t){function e(r){return Sr(r,NS)}if(k(e,"convertDefinition"),t instanceof Xs){const r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return xo(t.label)&&(r.label=t.label),r}else{if(t instanceof Co)return{type:"Alternative",definition:e(t.definition)};if(t instanceof Ji)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 el)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:NS(new ia({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Ao)return{type:"RepetitionWithSeparator",idx:t.idx,separator:NS(new ia({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Ba)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof Ro)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof ia){const r={type:"Terminal",name:t.terminalType.name,label:e3e(t.terminalType),idx:t.idx};xo(t.label)&&(r.terminalLabel=t.label);const n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(r.pattern=$0(n)?n.source:n),r}else{if(t instanceof x2)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}k(NS,"serializeProduction");var av,C2=(av=class{visit(e){const r=e;switch(r.constructor){case Xs:return this.visitNonTerminal(r);case Co:return this.visitAlternative(r);case Ji:return this.visitOption(r);case Jo:return this.visitRepetitionMandatory(r);case el:return this.visitRepetitionMandatoryWithSeparator(r);case Ao:return this.visitRepetitionWithSeparator(r);case Ba:return this.visitRepetition(r);case Ro:return this.visitAlternation(r);case ia:return this.visitTerminal(r);case x2: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(av,"GAstVisitor"),av);function n3e(t){return t instanceof Co||t instanceof Ji||t instanceof Ba||t instanceof Jo||t instanceof el||t instanceof Ao||t instanceof ia||t instanceof x2}k(n3e,"isSequenceProd");function $4(t,e=[]){return t instanceof Ji||t instanceof Ba||t instanceof Ao?!0:t instanceof Ro?Qxe(t.definition,n=>$4(n,e)):t instanceof Xs&&ao(e,t)?!1:t instanceof Lu?(t instanceof Xs&&e.push(t),hc(t.definition,n=>$4(n,e))):!1}k($4,"isOptionalProd");function a3e(t){return t instanceof Ro}k(a3e,"isBranchingProd");function jl(t){if(t instanceof Xs)return"SUBRULE";if(t instanceof Ji)return"OPTION";if(t instanceof Ro)return"OR";if(t instanceof Jo)return"AT_LEAST_ONE";if(t instanceof el)return"AT_LEAST_ONE_SEP";if(t instanceof Ao)return"MANY_SEP";if(t instanceof Ba)return"MANY";if(t instanceof ia)return"CONSUME";throw Error("non exhaustive match")}k(jl,"getProductionDslName");var iv,zA=(iv=class{walk(e,r=[]){$r(e.definition,(n,a)=>{const i=Ki(e.definition,a+1);if(n instanceof Xs)this.walkProdRef(n,i,r);else if(n instanceof ia)this.walkTerminal(n,i,r);else if(n instanceof Co)this.walkFlat(n,i,r);else if(n instanceof Ji)this.walkOption(n,i,r);else if(n instanceof Jo)this.walkAtLeastOne(n,i,r);else if(n instanceof el)this.walkAtLeastOneSep(n,i,r);else if(n instanceof Ao)this.walkManySep(n,i,r);else if(n instanceof Ba)this.walkMany(n,i,r);else if(n instanceof Ro)this.walkOr(n,i,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,n){}walkProdRef(e,r,n){}walkFlat(e,r,n){const a=r.concat(n);this.walk(e,a)}walkOption(e,r,n){const a=r.concat(n);this.walk(e,a)}walkAtLeastOne(e,r,n){const a=[new Ji({definition:e.definition})].concat(r,n);this.walk(e,a)}walkAtLeastOneSep(e,r,n){const a=b$(e,r,n);this.walk(e,a)}walkMany(e,r,n){const a=[new Ji({definition:e.definition})].concat(r,n);this.walk(e,a)}walkManySep(e,r,n){const a=b$(e,r,n);this.walk(e,a)}walkOr(e,r,n){const a=r.concat(n);$r(e.definition,i=>{const s=new Co({definition:[i]});this.walk(s,a)})}},k(iv,"RestWalker"),iv);function b$(t,e,r){return[new Ji({definition:[new ia({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}k(b$,"restForRepetitionWithSeparator");function w2(t){if(t instanceof Xs)return w2(t.referencedRule);if(t instanceof ia)return o3e(t);if(n3e(t))return i3e(t);if(a3e(t))return s3e(t);throw Error("non exhaustive match")}k(w2,"first");function i3e(t){let e=[];const r=t.definition;let n=0,a=r.length>n,i,s=!0;for(;a&&s;)i=r[n],s=$4(i),e=e.concat(w2(i)),n=n+1,a=r.length>n;return oV(e)}k(i3e,"firstForSequence");function s3e(t){const e=Sr(t.definition,r=>w2(r));return oV(dc(e))}k(s3e,"firstForBranching");function o3e(t){return[t.terminalType]}k(o3e,"firstForTerminal");var l3e="_~IN~_",sv,h5t=(sv=class extends zA{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 a=u3e(e.referencedRule,e.idx)+this.topProd.name,i=r.concat(n),s=new Co({definition:i}),o=w2(s);this.follows[a]=o}},k(sv,"ResyncFollowsWalker"),sv);function c3e(t){const e={};return $r(t,r=>{const n=new h5t(r).startWalking();Yo(e,n)}),e}k(c3e,"computeAllProdsFollows");function u3e(t,e){return t.name+e+l3e}k(u3e,"buildBetweenProdsFollowPrefix");var V5={},f5t=new GEe;function ox(t){const e=t.toString();if(V5.hasOwnProperty(e))return V5[e];{const r=f5t.pattern(e);return V5[e]=r,r}}k(ox,"getRegExpAst");function d3e(){V5={}}k(d3e,"clearRegExpParserCache");var h3e="Complement Sets are not supported for first char optimization",kw=`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(V1,"TerminalRegExpVisitor"),V1),hp=new K2t;function HEe(t){try{typeof t!="string"&&(t=t.source),t=`/${t}/`;const e=YEe.pattern(t),r=[];for(const n of e.value.value)hp.reset(t),hp.visit(n),r.push({start:hp.startRegexp,end:hp.endRegex});return r}catch{return[]}}k(HEe,"getTerminalParts");function xH(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),hp.reset(t),hp.visit(YEe.pattern(t)),hp.multiline}catch{return!1}}k(xH,"isMultilineComment");var VEe=`\f +\r \v              \u2028\u2029   \uFEFF`.split("");function bA(t){const e=typeof t=="string"?new RegExp(t):t;return VEe.some(r=>e.test(r))}k(bA,"isWhitespace");function T2(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}k(T2,"escapeRegExp");function CH(t,e){const r=wH(t),n=e.match(r);return!!n&&n[0].length>0}k(CH,"partialMatches");function wH(t){typeof t=="string"&&(t=new RegExp(t));const e=t,r=t.source;let n=0;function a(){let i="",s;function o(u){i+=r.substr(n,u),n+=u}k(o,"appendRaw");function l(u){i+="(?:"+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":":i+="(?:",n+=3,i+=a()+"|$)";break;case"=":i+="(?=",n+=3,i+=a()+")";break;case"!":s=n,n+=3,a(),i+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,a(),i+=r.substr(s,n-s);break;default:o(r.indexOf(">",n)-n+1),i+=a()+"|$)";break}break}else o(1),i+=a()+"|$)";break;case")":return++n,i;default:l(1);break}return i}return k(a,"process"),new RegExp(a(),t.flags)}k(wH,"partialRegExp");function kH(t){return t.rules.find(e=>Ks(e)&&e.entry)}k(kH,"getEntryRule");function AH(t){return t.rules.filter(e=>$l(e)&&e.hidden)}k(AH,"getHiddenRules");function EA(t,e){const r=new Set,n=kH(t);if(!n)return new Set(t.rules);const a=[n].concat(AH(t));for(const s of a)RH(s,r,e);const i=new Set;for(const s of t.rules)(r.has(s.name)||$l(s)&&s.hidden)&&i.add(s);return i}k(EA,"getAllReachableRules");function RH(t,e,r){e.add(t.name),od(t).forEach(n=>{if(F0(n)||r&&pA(n)){const a=n.rule.ref;a&&!e.has(a.name)&&RH(a,e,r)}})}k(RH,"ruleDfs");function WEe(t){const e=new Set;return od(t).forEach(r=>{bg(r)&&(Ks(r.type.ref)&&e.add(r.type.ref),XT(r.type.ref)&&Ks(r.type.ref.$container)&&e.add(r.type.ref.$container))}),e}k(WEe,"getAllRulesUsedForCrossReferences");function NH(t){if(t.terminal)return t.terminal;if(t.type.ref)return CA(t.type.ref)?.terminal}k(NH,"getCrossReferenceTerminal");function IH(t){return t.hidden&&!bA(ZT(t))}k(IH,"isCommentTerminal");function OH(t,e){return!t||!e?[]:TA(t,e,t.astNode,!0)}k(OH,"findNodesForProperty");function SA(t,e,r){if(!t||!e)return;const n=TA(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(SA,"findNodeForProperty");function TA(t,e,r,n){if(!n){const a=yg(t.grammarSource,P0);if(a&&a.feature===e)return[t]}return M0(t)&&t.astNode===r?t.content.flatMap(a=>TA(a,e,r,!1)):[]}k(TA,"findNodesForPropertyInternal");function KEe(t,e){return t?xA(t,e,t?.astNode):[]}k(KEe,"findNodesForKeyword");function DH(t,e,r){if(!t)return;const n=xA(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(DH,"findNodeForKeyword");function xA(t,e,r){if(t.astNode!==r)return[];if(B0(t.grammarSource)&&t.grammarSource.value===e)return[t];const n=Ob(t).iterator();let a;const i=[];do if(a=n.next(),!a.done){const s=a.value;s.astNode===r?B0(s.grammarSource)&&s.grammarSource.value===e&&i.push(s):n.prune()}while(!a.done);return i}k(xA,"findNodesForKeywordInternal");function LH(t){const e=t.astNode;for(;e===t.container?.astNode;){const r=yg(t.grammarSource,P0);if(r)return r;t=t.container}}k(LH,"findAssignment");function CA(t){let e=t;return XT(e)&&(Nh(e.$container)?e=e.$container.$container:_g(e.$container)?e=e.$container:Xh(e.$container)),MH(t,e,new Map)}k(CA,"findNameAssignment");function MH(t,e,r){function n(a,i){let s;return yg(a,P0)||(s=MH(i,i,r)),r.set(t,s),s}if(k(n,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(const a of od(e)){if(P0(a)&&a.feature.toLowerCase()==="name")return r.set(t,a),a;if(F0(a)&&Ks(a.rule.ref))return n(a,a.rule.ref);if(fA(a)&&a.typeRef?.ref)return n(a,a.typeRef.ref)}}k(MH,"findNameAssignmentInternal");function PH(t){const e=t.$container;if(Eg(e)){const r=e.elements,n=r.indexOf(t);for(let a=n-1;a>=0;a--){const i=r[a];if(Nh(i))return i;{const s=od(r[a]).find(Nh);if(s)return s}}}if(dA(e))return PH(e)}k(PH,"getActionAtElement");function XEe(t,e){return t==="?"||t==="*"||Eg(e)&&!!e.guardCondition}k(XEe,"isOptionalCardinality");function jEe(t){return t==="*"||t==="+"}k(jEe,"isArrayCardinality");function QEe(t){return t==="+="}k(QEe,"isArrayOperator");function jT(t){return BH(t,new Set)}k(jT,"isDataTypeRule");function BH(t,e){if(e.has(t))return!0;e.add(t);for(const r of od(t))if(F0(r)){if(!r.rule.ref||Ks(r.rule.ref)&&!BH(r.rule.ref,e)||Ib(r.rule.ref))return!1}else{if(P0(r))return!1;if(Nh(r))return!1}return!!t.definition}k(BH,"isDataTypeRuleInternal");function ZEe(t){return Tw(t.type,new Set)}k(ZEe,"isDataType");function Tw(t,e){if(e.has(t))return!0;if(e.add(t),KY(t))return!1;if(aH(t))return!1;if(cH(t))return t.types.every(r=>Tw(r,e));if(fA(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 gA(r)?Tw(r.type,e):!1}else return!1}else return!1}k(Tw,"isDataTypeInternal");function QT(t){if(!$l(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(QT,"getExplicitRuleType");function Vp(t){if(_g(t))return Ks(t)&&jT(t)?t.name:QT(t)??t.name;if(eH(t)||gA(t)||sH(t))return t.name;if(Nh(t)){const e=FH(t);if(e)return e}else if(XT(t))return t.name;throw new Error("Cannot get name of Unknown Type")}k(Vp,"getTypeName");function FH(t){if(t.inferredType)return t.inferredType.name;if(t.type?.ref)return Vp(t.type.ref)}k(FH,"getActionType");function JEe(t){return $l(t)?t.type?.name??"string":Ks(t)&&jT(t)?t.name:QT(t)??t.name}k(JEe,"getRuleTypeName");function $H(t){return $l(t)?t.type?.name??"string":QT(t)??t.name}k($H,"getRuleType");function ZT(t){const e={s:!1,i:!1,u:!1},r=Sg(t.definition,e),n=Object.entries(e).filter(([,a])=>a).map(([a])=>a).join("");return new RegExp(r,n)}k(ZT,"terminalRegex");var zH=/[\s\S]/.source;function Sg(t,e){if(oH(t))return eSe(t);if(lH(t))return tSe(t);if(jY(t))return aSe(t);if(pA(t)){const r=t.rule.ref;if(!r)throw new Error("Missing rule reference.");return su(Sg(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}else{if(tH(t))return nSe(t);if(uH(t))return rSe(t);if(iH(t)){const r=t.regex.lastIndexOf("/"),n=t.regex.substring(1,r),a=t.regex.substring(r+1);return e&&(e.i=a.includes("i"),e.s=a.includes("s"),e.u=a.includes("u")),su(n,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}else{if(dH(t))return su(zH,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized});throw new Error(`Invalid terminal element: ${t?.$type}, ${t?.$cstNode?.text}`)}}}k(Sg,"abstractElementToRegex");function eSe(t){return su(t.elements.map(e=>Sg(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(eSe,"terminalAlternativesToRegex");function tSe(t){return su(t.elements.map(e=>Sg(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(tSe,"terminalGroupToRegex");function rSe(t){return su(`${zH}*?${Sg(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}k(rSe,"untilTokenToRegex");function nSe(t){return su(`(?!${Sg(t.terminal)})${zH}*?`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}k(nSe,"negateTokenToRegex");function aSe(t){return t.right?su(`[${H5(t.left)}-${H5(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1}):su(H5(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}k(aSe,"characterRangeToRegex");function H5(t){return T2(t.value)}k(H5,"keywordToRegex");function su(t,e){return(e.parenthesized||e.lookahead||e.wrap!==!1)&&(t=`(${e.lookahead??(e.parenthesized?"":"?:")}${t})`),e.cardinality?`${t}${e.cardinality}`:t}k(su,"withCardinality");function UH(t){const e=[],r=t.Grammar;for(const n of r.rules)$l(n)&&IH(n)&&xH(ZT(n))&&e.push(n.name);return{multilineCommentRules:e,nameRegexp:mH}}k(UH,"createGrammarConfig");var X2t=typeof global=="object"&&global&&global.Object===Object&&global,iSe=X2t,j2t=typeof self=="object"&&self&&self.Object===Object&&self,Q2t=iSe||j2t||Function("return this")(),Iu=Q2t,Z2t=Iu.Symbol,Pl=Z2t,sSe=Object.prototype,J2t=sSe.hasOwnProperty,eEt=sSe.toString,sE=Pl?Pl.toStringTag:void 0;function oSe(t){var e=J2t.call(t,sE),r=t[sE];try{t[sE]=void 0;var n=!0}catch{}var a=eEt.call(t);return n&&(e?t[sE]=r:delete t[sE]),a}k(oSe,"getRawTag");var tEt=oSe,rEt=Object.prototype,nEt=rEt.toString;function lSe(t){return nEt.call(t)}k(lSe,"objectToString");var aEt=lSe,iEt="[object Null]",sEt="[object Undefined]",yse=Pl?Pl.toStringTag:void 0;function cSe(t){return t==null?t===void 0?sEt:iEt:yse&&yse in Object(t)?tEt(t):aEt(t)}k(cSe,"baseGetTag");var jh=cSe;function uSe(t){return t!=null&&typeof t=="object"}k(uSe,"isObjectLike");var vc=uSe,oEt="[object Symbol]";function dSe(t){return typeof t=="symbol"||vc(t)&&jh(t)==oEt}k(dSe,"isSymbol");var wA=dSe;function hSe(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r0){if(++e>=qEt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}k(RSe,"shortOut");var VEt=RSe;function NSe(t){return function(){return t}}k(NSe,"constant");var WEt=NSe,KEt=(function(){try{var t=xg(Object,"defineProperty");return t({},"",{}),t}catch{}})(),xw=KEt,XEt=xw?function(t,e){return xw(t,"toString",{configurable:!0,enumerable:!1,value:WEt(e),writable:!0})}:Lb,jEt=XEt,QEt=VEt(jEt),ZEt=QEt;function ISe(t,e){for(var r=-1,n=t==null?0:t.length;++r-1}k(FSe,"arrayIncludes");var $Se=FSe,tSt=9007199254740991,rSt=/^(?:0|[1-9]\d*)$/;function zSe(t,e){var r=typeof t;return e=e??tSt,!!e&&(r=="number"||r!="symbol"&&rSt.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=sSt}k(WSe,"isLength");var VH=WSe;function KSe(t){return t!=null&&VH(t.length)&&!ld(t)}k(KSe,"isArrayLike");var Ou=KSe;function XSe(t,e,r){if(!Bl(r))return!1;var n=typeof e;return(n=="number"?Ou(r)&&kA(e,r.length):n=="string"&&e in r)?tx(r[e],t):!1}k(XSe,"isIterateeCall");var RA=XSe;function jSe(t){return HH(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,s&&RA(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),e=Object(e);++n-1}k(w4e,"listCacheHas");var x4t=w4e;function k4e(t,e){var r=this.__data__,n=OA(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}k(k4e,"listCacheSet");var C4t=k4e;function wg(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e0&&r(o)?e>1?QH(o,e-1,r,n,a):jH(a,o):n||(a[a.length]=o)}return a}k(QH,"baseFlatten");var ZH=QH;function q4e(t){var e=t==null?0:t.length;return e?ZH(t,1):[]}k(q4e,"flatten");var dc=q4e,Y4t=c4e(Object.getPrototypeOf,Object),Y4e=Y4t;function H4e(t,e,r){var n=-1,a=t.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(a);++no))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&Lxt?new rV:void 0;for(i.set(t,e),i.set(e,t);++h2?e[2]:void 0;for(a&&RA(e[0],e[1],a)&&(n=1);++r=k3t&&(i=nV,s=!1,e=new rV(e));e:for(;++a-1?a[i?e[s]:s]:void 0}}k(wxe,"createFind");var D3t=wxe,L3t=Math.max;function kxe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:ex(r);return a<0&&(a=L3t(n+a,0)),LSe(t,Du(e),a)}k(kxe,"findIndex");var M3t=kxe,P3t=D3t(M3t),Pb=P3t;function Axe(t){return t&&t.length?t[0]:void 0}k(Axe,"head");var yc=Axe;function Rxe(t,e){var r=-1,n=Ou(t)?Array(t.length):[];return Rg(t,function(a,i,s){n[++r]=e(a,i,s)}),n}k(Rxe,"baseMap");var B3t=Rxe;function Nxe(t,e){var r=vn(t)?JT:B3t;return r(t,Du(e))}k(Nxe,"map");var Sr=Nxe;function Ixe(t,e){return ZH(Sr(t,e),1)}k(Ixe,"flatMap");var Cl=Ixe,F3t=Object.prototype,$3t=F3t.hasOwnProperty,z3t=x3t(function(t,e,r){$3t.call(t,r)?t[r].push(e):YH(t,r,[e])}),U3t=z3t,G3t=Object.prototype,q3t=G3t.hasOwnProperty;function Oxe(t,e){return t!=null&&q3t.call(t,e)}k(Oxe,"baseHas");var Y3t=Oxe;function Dxe(t,e){return t!=null&&QTe(t,e,Y3t)}k(Dxe,"has");var Mr=Dxe,H3t="[object String]";function Lxe(t){return typeof t=="string"||!vn(t)&&vc(t)&&jh(t)==H3t}k(Lxe,"isString");var xo=Lxe;function Mxe(t,e){return JT(e,function(r){return t[r]})}k(Mxe,"baseValues");var V3t=Mxe;function Pxe(t){return t==null?[]:V3t(t,qo(t))}k(Pxe,"values");var bi=Pxe,W3t=Math.max;function Bxe(t,e,r,n){t=Ou(t)?t:bi(t),r=r&&!n?ex(r):0;var a=t.length;return r<0&&(r=W3t(a+r,0)),xo(t)?r<=a&&t.indexOf(e,r)>-1:!!a&&qH(t,e,r)>-1}k(Bxe,"includes");var ao=Bxe,K3t=Math.max;function Fxe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:ex(r);return a<0&&(a=K3t(n+a,0)),qH(t,e,a)}k(Fxe,"indexOf");var jse=Fxe,X3t="[object Map]",j3t="[object Set]",Q3t=Object.prototype,Z3t=Q3t.hasOwnProperty;function $xe(t){if(t==null)return!0;if(Ou(t)&&(vn(t)||typeof t=="string"||typeof t.splice=="function"||L4(t)||WH(t)||NA(t)))return!t.length;var e=Mb(t);if(e==X3t||e==j3t)return!t.size;if(nx(t))return!d4e(t).length;for(var r in t)if(Z3t.call(t,r))return!1;return!0}k($xe,"isEmpty");var Zn=$xe,J3t="[object RegExp]";function zxe(t){return vc(t)&&jh(t)==J3t}k(zxe,"baseIsRegExp");var e5t=zxe,Qse=Ih&&Ih.isRegExp,t5t=Qse?ax(Qse):e5t,$0=t5t;function Uxe(t){return t===void 0}k(Uxe,"isUndefined");var z0=Uxe,r5t="Expected a function";function Gxe(t){if(typeof t!="function")throw new TypeError(r5t);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(Gxe,"negate");var n5t=Gxe;function qxe(t,e,r,n){if(!Bl(t))return t;e=BA(e,t);for(var a=-1,i=e.length,s=i-1,o=t;o!=null&&++a=d5t){var u=e?null:u5t(t);if(u)return aV(u);s=!1,a=nV,l=new rV}else l=e?[]:o;e:for(;++n{r.accept(e)})}},k(W1,"AbstractProduction"),W1),K1,Xs=(K1=class extends Lu{constructor(e){super([]),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},k(K1,"NonTerminal"),K1),X1,x2=(X1=class extends Lu{constructor(e){super(e.definition),this.orgText="",Yo(this,Ec(e,r=>r!==void 0))}},k(X1,"Rule"),X1),j1,Co=(j1=class extends Lu{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Yo(this,Ec(e,r=>r!==void 0))}},k(j1,"Alternative"),j1),Q1,Ji=(Q1=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(Q1,"Option"),Q1),Z1,Jo=(Z1=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(Z1,"RepetitionMandatory"),Z1),J1,el=(J1=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(J1,"RepetitionMandatoryWithSeparator"),J1),ev,Ba=(ev=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(ev,"Repetition"),ev),tv,Ao=(tv=class extends Lu{constructor(e){super(e.definition),this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}},k(tv,"RepetitionWithSeparator"),tv),rv,Ro=(rv=class extends Lu{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,Yo(this,Ec(e,r=>r!==void 0))}},k(rv,"Alternation"),rv),nv,ia=(nv=class{constructor(e){this.idx=1,Yo(this,Ec(e,r=>r!==void 0))}accept(e){e.visit(this)}},k(nv,"Terminal"),nv);function r3e(t){return Sr(t,NS)}k(r3e,"serializeGrammar");function NS(t){function e(r){return Sr(r,NS)}if(k(e,"convertDefinition"),t instanceof Xs){const r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return xo(t.label)&&(r.label=t.label),r}else{if(t instanceof Co)return{type:"Alternative",definition:e(t.definition)};if(t instanceof Ji)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 el)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:NS(new ia({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Ao)return{type:"RepetitionWithSeparator",idx:t.idx,separator:NS(new ia({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Ba)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof Ro)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof ia){const r={type:"Terminal",name:t.terminalType.name,label:e3e(t.terminalType),idx:t.idx};xo(t.label)&&(r.terminalLabel=t.label);const n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(r.pattern=$0(n)?n.source:n),r}else{if(t instanceof x2)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}k(NS,"serializeProduction");var av,C2=(av=class{visit(e){const r=e;switch(r.constructor){case Xs:return this.visitNonTerminal(r);case Co:return this.visitAlternative(r);case Ji:return this.visitOption(r);case Jo:return this.visitRepetitionMandatory(r);case el:return this.visitRepetitionMandatoryWithSeparator(r);case Ao:return this.visitRepetitionWithSeparator(r);case Ba:return this.visitRepetition(r);case Ro:return this.visitAlternation(r);case ia:return this.visitTerminal(r);case x2: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(av,"GAstVisitor"),av);function n3e(t){return t instanceof Co||t instanceof Ji||t instanceof Ba||t instanceof Jo||t instanceof el||t instanceof Ao||t instanceof ia||t instanceof x2}k(n3e,"isSequenceProd");function $4(t,e=[]){return t instanceof Ji||t instanceof Ba||t instanceof Ao?!0:t instanceof Ro?Qxe(t.definition,n=>$4(n,e)):t instanceof Xs&&ao(e,t)?!1:t instanceof Lu?(t instanceof Xs&&e.push(t),hc(t.definition,n=>$4(n,e))):!1}k($4,"isOptionalProd");function a3e(t){return t instanceof Ro}k(a3e,"isBranchingProd");function jl(t){if(t instanceof Xs)return"SUBRULE";if(t instanceof Ji)return"OPTION";if(t instanceof Ro)return"OR";if(t instanceof Jo)return"AT_LEAST_ONE";if(t instanceof el)return"AT_LEAST_ONE_SEP";if(t instanceof Ao)return"MANY_SEP";if(t instanceof Ba)return"MANY";if(t instanceof ia)return"CONSUME";throw Error("non exhaustive match")}k(jl,"getProductionDslName");var iv,zA=(iv=class{walk(e,r=[]){$r(e.definition,(n,a)=>{const i=Ki(e.definition,a+1);if(n instanceof Xs)this.walkProdRef(n,i,r);else if(n instanceof ia)this.walkTerminal(n,i,r);else if(n instanceof Co)this.walkFlat(n,i,r);else if(n instanceof Ji)this.walkOption(n,i,r);else if(n instanceof Jo)this.walkAtLeastOne(n,i,r);else if(n instanceof el)this.walkAtLeastOneSep(n,i,r);else if(n instanceof Ao)this.walkManySep(n,i,r);else if(n instanceof Ba)this.walkMany(n,i,r);else if(n instanceof Ro)this.walkOr(n,i,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,n){}walkProdRef(e,r,n){}walkFlat(e,r,n){const a=r.concat(n);this.walk(e,a)}walkOption(e,r,n){const a=r.concat(n);this.walk(e,a)}walkAtLeastOne(e,r,n){const a=[new Ji({definition:e.definition})].concat(r,n);this.walk(e,a)}walkAtLeastOneSep(e,r,n){const a=b$(e,r,n);this.walk(e,a)}walkMany(e,r,n){const a=[new Ji({definition:e.definition})].concat(r,n);this.walk(e,a)}walkManySep(e,r,n){const a=b$(e,r,n);this.walk(e,a)}walkOr(e,r,n){const a=r.concat(n);$r(e.definition,i=>{const s=new Co({definition:[i]});this.walk(s,a)})}},k(iv,"RestWalker"),iv);function b$(t,e,r){return[new Ji({definition:[new ia({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}k(b$,"restForRepetitionWithSeparator");function w2(t){if(t instanceof Xs)return w2(t.referencedRule);if(t instanceof ia)return o3e(t);if(n3e(t))return i3e(t);if(a3e(t))return s3e(t);throw Error("non exhaustive match")}k(w2,"first");function i3e(t){let e=[];const r=t.definition;let n=0,a=r.length>n,i,s=!0;for(;a&&s;)i=r[n],s=$4(i),e=e.concat(w2(i)),n=n+1,a=r.length>n;return oV(e)}k(i3e,"firstForSequence");function s3e(t){const e=Sr(t.definition,r=>w2(r));return oV(dc(e))}k(s3e,"firstForBranching");function o3e(t){return[t.terminalType]}k(o3e,"firstForTerminal");var l3e="_~IN~_",sv,f5t=(sv=class extends zA{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 a=u3e(e.referencedRule,e.idx)+this.topProd.name,i=r.concat(n),s=new Co({definition:i}),o=w2(s);this.follows[a]=o}},k(sv,"ResyncFollowsWalker"),sv);function c3e(t){const e={};return $r(t,r=>{const n=new f5t(r).startWalking();Yo(e,n)}),e}k(c3e,"computeAllProdsFollows");function u3e(t,e){return t.name+e+l3e}k(u3e,"buildBetweenProdsFollowPrefix");var V5={},p5t=new GEe;function ox(t){const e=t.toString();if(V5.hasOwnProperty(e))return V5[e];{const r=p5t.pattern(e);return V5[e]=r,r}}k(ox,"getRegExpAst");function d3e(){V5={}}k(d3e,"clearRegExpParserCache");var h3e="Complement Sets are not supported for first char optimization",kw=`Unable to use "first char" lexer optimizations: `;function f3e(t,e=!1){try{const r=ox(t);return Aw(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===h3e)e&&lV(`${kw} Unable to optimize: < ${t.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. @@ -5282,15 +5287,15 @@ ${JSON.stringify(Ne,null,4)}`);const mt=Ne;if(r.string(mt.id)||r.number(mt.id)){ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),ww(`${kw} 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(f3e,"getOptimizedStartCodesIndices");function Aw(t,e,r){switch(t.type){case"Disjunction":for(let a=0;a{if(typeof l=="number")zE(l,e,r);else{const u=l;if(r===!0)for(let d=u.from;d<=u.to;d++)zE(d,e,r);else{for(let d=u.from;d<=u.to&&d=GE){const d=u.from>=GE?u.from:GE,h=u.to,f=U0(d),p=U0(h);for(let g=f;g<=p;g++)e[g]=g}}}});break;case"Group":Aw(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"&&Rw(s)===!1||s.type!=="Group"&&o===!1)break}break;default:throw Error("non exhaustive match!")}return bi(e)}k(Aw,"firstCharOptimizedIndices");function zE(t,e,r){const n=U0(t);e[n]=n,r===!0&&p3e(t,e)}k(zE,"addOptimizedIdxToResult");function p3e(t,e){const r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){const a=U0(n.charCodeAt(0));e[a]=a}else{const a=r.toLowerCase();if(a!==r){const i=U0(a.charCodeAt(0));e[i]=i}}}k(p3e,"handleIgnoreCase");function E$(t,e){return Pb(t.value,r=>{if(typeof r=="number")return ao(e,r);{const n=r;return Pb(e,a=>n.from<=a&&a<=n.to)!==void 0}})}k(E$,"findCode");function Rw(t){const e=t.quantifier;return e&&e.atLeast===0?!0:t.value?vn(t.value)?hc(t.value,Rw):Rw(t.value):!1}k(Rw,"isWholeOptional");var ov,p5t=(ov=class extends _A{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){ao(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?E$(e,this.targetCharCodes)===void 0&&(this.found=!0):E$(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},k(ov,"CharCodeFinder"),ov);function UA(t,e){if(e instanceof RegExp){const r=ox(e),n=new p5t(t);return n.visit(r),n.found}else return Pb(e,r=>ao(t,r.charCodeAt(0)))!==void 0}k(UA,"canMatchCharCode");var Kp="PATTERN",UE="defaultMode",w3="modes",g3e=typeof new RegExp("(?:)").sticky=="boolean";function m3e(t,e){e=sV(e,{useSticky:g3e,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}k(f3e,"getOptimizedStartCodesIndices");function Aw(t,e,r){switch(t.type){case"Disjunction":for(let a=0;a{if(typeof l=="number")zE(l,e,r);else{const u=l;if(r===!0)for(let d=u.from;d<=u.to;d++)zE(d,e,r);else{for(let d=u.from;d<=u.to&&d=GE){const d=u.from>=GE?u.from:GE,h=u.to,f=U0(d),p=U0(h);for(let g=f;g<=p;g++)e[g]=g}}}});break;case"Group":Aw(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"&&Rw(s)===!1||s.type!=="Group"&&o===!1)break}break;default:throw Error("non exhaustive match!")}return bi(e)}k(Aw,"firstCharOptimizedIndices");function zE(t,e,r){const n=U0(t);e[n]=n,r===!0&&p3e(t,e)}k(zE,"addOptimizedIdxToResult");function p3e(t,e){const r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){const a=U0(n.charCodeAt(0));e[a]=a}else{const a=r.toLowerCase();if(a!==r){const i=U0(a.charCodeAt(0));e[i]=i}}}k(p3e,"handleIgnoreCase");function E$(t,e){return Pb(t.value,r=>{if(typeof r=="number")return ao(e,r);{const n=r;return Pb(e,a=>n.from<=a&&a<=n.to)!==void 0}})}k(E$,"findCode");function Rw(t){const e=t.quantifier;return e&&e.atLeast===0?!0:t.value?vn(t.value)?hc(t.value,Rw):Rw(t.value):!1}k(Rw,"isWholeOptional");var ov,g5t=(ov=class extends _A{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){ao(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?E$(e,this.targetCharCodes)===void 0&&(this.found=!0):E$(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},k(ov,"CharCodeFinder"),ov);function UA(t,e){if(e instanceof RegExp){const r=ox(e),n=new g5t(t);return n.visit(r),n.found}else return Pb(e,r=>ao(t,r.charCodeAt(0)))!==void 0}k(UA,"canMatchCharCode");var Kp="PATTERN",UE="defaultMode",w3="modes",g3e=typeof new RegExp("(?:)").sticky=="boolean";function m3e(t,e){e=sV(e,{useSticky:g3e,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` `],tracer:k((b,_)=>_(),"tracer")});const r=e.tracer;r("initCharCodeToOptimizedIndexMap",()=>{B3e()});let n;r("Reject Lexer.NA",()=>{n=$A(t,b=>b[Kp]===Ys.NA)});let a=!1,i;r("Transform Patterns",()=>{a=!1,i=Sr(n,b=>{const _=b[Kp];if($0(_)){const S=_.source;return S.length===1&&S!=="^"&&S!=="$"&&S!=="."&&!_.ignoreCase?S:S.length===2&&S[0]==="\\"&&!ao(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],S[1])?S[1]:e.useSticky?T$(_):S$(_)}else{if(ld(_))return a=!0,{exec:_};if(typeof _=="object")return a=!0,_;if(typeof _=="string"){if(_.length===1)return _;{const S=_.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),x=new RegExp(S);return e.useSticky?T$(x):S$(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(_!==Ys.SKIPPED){if(xo(_))return _;if(z0(_))return!1;throw Error("non exhaustive match")}}),l=Sr(n,b=>{const _=b.LONGER_ALT;if(_)return vn(_)?Sr(_,x=>jse(n,x)):[jse(n,_)]}),u=Sr(n,b=>b.PUSH_MODE),d=Sr(n,b=>Mr(b,"POP_MODE"))});let h;r("Line Terminator Handling",()=>{const b=fV(e.lineTerminatorCharacters);h=Sr(n,_=>!1),e.positionTracking!=="onlyOffset"&&(h=Sr(n,_=>Mr(_,"LINE_BREAKS")?!!_.LINE_BREAKS:hV(_,b)===!1&&UA(b,_.PATTERN)))});let f,p,g,m;r("Misc Mapping #2",()=>{f=Sr(n,dV),p=Sr(i,M3e),g=Ho(n,(b,_)=>{const S=_.GROUP;return xo(S)&&S!==Ys.SKIPPED&&(b[S]=[]),b},{}),m=Sr(i,(b,_)=>({pattern:i[_],longerAlt:l[_],canLineTerminator:h[_],isCustom:f[_],short:p[_],group:o[_],push:u[_],pop:d[_],tokenTypeIdx:s[_],tokenType:n[_]}))});let v=!0,y=[];return e.safeMode||r("First Char Optimization",()=>{y=Ho(n,(b,_,S)=>{if(typeof _.PATTERN=="string"){const x=_.PATTERN.charCodeAt(0),C=U0(x);W5(b,C,m[S])}else if(vn(_.START_CHARS_HINT)){let x;$r(_.START_CHARS_HINT,C=>{const T=typeof C=="string"?C.charCodeAt(0):C,w=U0(T);x!==w&&(x=w,W5(b,w,m[S]))})}else if($0(_.PATTERN))if(_.PATTERN.unicode)v=!1,e.ensureOptimizations&&ww(`${kw} 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=f3e(_.PATTERN,e.ensureOptimizations);Zn(x)&&(v=!1),$r(x,C=>{W5(b,C,m[S])})}else e.ensureOptimizations&&ww(`${kw} 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`),v=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:m,charCodeToPatternIdxToConfig:y,hasCustom:a,canBeOptimized:v}}k(m3e,"analyzeTokenTypes");function v3e(t,e){let r=[];const n=_3e(t);r=r.concat(n.errors);const a=b3e(n.valid),i=a.valid;return r=r.concat(a.errors),r=r.concat(y3e(i)),r=r.concat(w3e(i)),r=r.concat(k3e(i,e)),r=r.concat(A3e(i)),r}k(v3e,"validatePatterns");function y3e(t){let e=[];const r=zl(t,n=>$0(n[Kp]));return e=e.concat(E3e(r)),e=e.concat(T3e(r)),e=e.concat(x3e(r)),e=e.concat(C3e(r)),e=e.concat(S3e(r)),e}k(y3e,"validateRegExpPattern");function _3e(t){const e=zl(t,a=>!Mr(a,Kp)),r=Sr(e,a=>({message:"Token Type: ->"+a.name+"<- missing static 'PATTERN' property",type:Fa.MISSING_PATTERN,tokenTypes:[a]})),n=FA(t,e);return{errors:r,valid:n}}k(_3e,"findMissingPatterns");function b3e(t){const e=zl(t,a=>{const i=a[Kp];return!$0(i)&&!ld(i)&&!Mr(i,"exec")&&!xo(i)}),r=Sr(e,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fa.INVALID_PATTERN,tokenTypes:[a]})),n=FA(t,e);return{errors:r,valid:n}}k(b3e,"findInvalidPatterns");var g5t=/[^\\][$]/;function E3e(t){const a=class a extends _A{constructor(){super(...arguments),this.found=!1}visitEndAnchor(s){this.found=!0}};k(a,"EndAnchorFinder");let e=a;const r=zl(t,i=>{const s=i.PATTERN;try{const o=ox(s),l=new e;return l.visit(o),l.found}catch{return g5t.test(s.source)}});return Sr(r,i=>({message:`Unexpected RegExp Anchor Error: + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),v=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:m,charCodeToPatternIdxToConfig:y,hasCustom:a,canBeOptimized:v}}k(m3e,"analyzeTokenTypes");function v3e(t,e){let r=[];const n=_3e(t);r=r.concat(n.errors);const a=b3e(n.valid),i=a.valid;return r=r.concat(a.errors),r=r.concat(y3e(i)),r=r.concat(w3e(i)),r=r.concat(k3e(i,e)),r=r.concat(A3e(i)),r}k(v3e,"validatePatterns");function y3e(t){let e=[];const r=zl(t,n=>$0(n[Kp]));return e=e.concat(E3e(r)),e=e.concat(T3e(r)),e=e.concat(x3e(r)),e=e.concat(C3e(r)),e=e.concat(S3e(r)),e}k(y3e,"validateRegExpPattern");function _3e(t){const e=zl(t,a=>!Mr(a,Kp)),r=Sr(e,a=>({message:"Token Type: ->"+a.name+"<- missing static 'PATTERN' property",type:Fa.MISSING_PATTERN,tokenTypes:[a]})),n=FA(t,e);return{errors:r,valid:n}}k(_3e,"findMissingPatterns");function b3e(t){const e=zl(t,a=>{const i=a[Kp];return!$0(i)&&!ld(i)&&!Mr(i,"exec")&&!xo(i)}),r=Sr(e,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Fa.INVALID_PATTERN,tokenTypes:[a]})),n=FA(t,e);return{errors:r,valid:n}}k(b3e,"findInvalidPatterns");var m5t=/[^\\][$]/;function E3e(t){const a=class a extends _A{constructor(){super(...arguments),this.found=!1}visitEndAnchor(s){this.found=!0}};k(a,"EndAnchorFinder");let e=a;const r=zl(t,i=>{const s=i.PATTERN;try{const o=ox(s),l=new e;return l.visit(o),l.found}catch{return m5t.test(s.source)}});return Sr(r,i=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$' - See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Fa.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}k(E3e,"findEndOfInputAnchor");function S3e(t){const e=zl(t,n=>n.PATTERN.test(""));return Sr(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:Fa.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}k(S3e,"findEmptyMatchRegExps");var m5t=/[^\\[][\^]|^\^/;function T3e(t){const a=class a extends _A{constructor(){super(...arguments),this.found=!1}visitStartAnchor(s){this.found=!0}};k(a,"StartAnchorFinder");let e=a;const r=zl(t,i=>{const s=i.PATTERN;try{const o=ox(s),l=new e;return l.visit(o),l.found}catch{return m5t.test(s.source)}});return Sr(r,i=>({message:`Unexpected RegExp Anchor Error: + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Fa.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}k(E3e,"findEndOfInputAnchor");function S3e(t){const e=zl(t,n=>n.PATTERN.test(""));return Sr(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:Fa.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}k(S3e,"findEmptyMatchRegExps");var v5t=/[^\\[][\^]|^\^/;function T3e(t){const a=class a extends _A{constructor(){super(...arguments),this.found=!1}visitStartAnchor(s){this.found=!0}};k(a,"StartAnchorFinder");let e=a;const r=zl(t,i=>{const s=i.PATTERN;try{const o=ox(s),l=new e;return l.visit(o),l.found}catch{return v5t.test(s.source)}});return Sr(r,i=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^' See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Fa.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}k(T3e,"findStartOfInputAnchor");function x3e(t){const e=zl(t,n=>{const a=n[Kp];return a instanceof RegExp&&(a.multiline||a.global)});return Sr(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Fa.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}k(x3e,"findUnsupportedFlags");function C3e(t){const e=[];let r=Sr(t,i=>Ho(t,(s,o)=>(i.PATTERN.source===o.PATTERN.source&&!ao(e,o)&&o.PATTERN!==Ys.NA&&(e.push(o),s.push(o)),s),[]));r=sx(r);const n=zl(r,i=>i.length>1);return Sr(n,i=>{const s=Sr(i,l=>l.name);return{message:`The same RegExp pattern ->${yc(i).PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`,type:Fa.DUPLICATE_PATTERNS_FOUND,tokenTypes:i}})}k(C3e,"findDuplicatePatterns");function w3e(t){const e=zl(t,n=>{if(!Mr(n,"GROUP"))return!1;const a=n.GROUP;return a!==Ys.SKIPPED&&a!==Ys.NA&&!xo(a)});return Sr(e,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Fa.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}k(w3e,"findInvalidGroupType");function k3e(t,e){const r=zl(t,a=>a.PUSH_MODE!==void 0&&!ao(e,a.PUSH_MODE));return Sr(r,a=>({message:`Token Type: ->${a.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${a.PUSH_MODE}<-which does not exist`,type:Fa.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[a]}))}k(k3e,"findModesThatDoNotExist");function A3e(t){const e=[],r=Ho(t,(n,a,i)=>{const s=a.PATTERN;return s===Ys.NA||(xo(s)?n.push({str:s,idx:i,tokenType:a}):$0(s)&&N3e(s)&&n.push({str:s.source,idx:i,tokenType:a})),n},[]);return $r(t,(n,a)=>{$r(r,({str:i,idx:s,tokenType:o})=>{if(a${o.name}<- can never be matched. Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. @@ -5303,27 +5308,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:Fa.NO_LINE_BREAKS_FLAGS}),n}k(D3e,"performWarningRuntimeChecks");function L3e(t){const e={},r=qo(t);return $r(r,n=>{const a=t[n];if(vn(a))e[n]=[];else throw Error("non exhaustive match")}),e}k(L3e,"cloneEmptyGroups");function dV(t){const e=t.PATTERN;if($0(e))return!1;if(ld(e))return!0;if(Mr(e,"exec"))return!0;if(xo(e))return!1;throw Error("non exhaustive match")}k(dV,"isCustomPattern");function M3e(t){return xo(t)&&t.length===1?t.charCodeAt(0):!1}k(M3e,"isShortPattern");var v5t={test:k(function(t){const e=t.length;for(let r=this.lastIndex;r{const a=t[n];if(vn(a))e[n]=[];else throw Error("non exhaustive match")}),e}k(L3e,"cloneEmptyGroups");function dV(t){const e=t.PATTERN;if($0(e))return!1;if(ld(e))return!0;if(Mr(e,"exec"))return!0;if(xo(e))return!1;throw Error("non exhaustive match")}k(dV,"isCustomPattern");function M3e(t){return xo(t)&&t.length===1?t.charCodeAt(0):!1}k(M3e,"isShortPattern");var y5t={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===Fa.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(P3e,"buildLineBreakIssueMessage");function fV(t){return Sr(t,r=>xo(r)?r.charCodeAt(0):r)}k(fV,"getCharCodes");function W5(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}k(W5,"addToMapOfArrays");var GE=256,K5=[];function U0(t){return t255?255+~~(t/255):t}}k(B3e,"initCharCodeToOptimizedIndexMap");function k2(t,e){const r=t.tokenTypeIdx;return r===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[r]===!0}k(k2,"tokenStructuredMatcher");function z4(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}k(z4,"tokenStructuredMatcherNoCategories");var Zse=1,F3e={};function A2(t){const e=$3e(t);z3e(e),G3e(e),U3e(e),$r(e,r=>{r.isParent=r.categoryMatches.length>0})}k(A2,"augmentTokenTypes");function $3e(t){let e=es(t),r=t,n=!0;for(;n;){r=sx(dc(Sr(r,i=>i.CATEGORIES)));const a=FA(r,e);e=e.concat(a),Zn(a)?n=!1:r=a}return e}k($3e,"expandCategories");function z3e(t){$r(t,e=>{gV(e)||(F3e[Zse]=e,e.tokenTypeIdx=Zse++),x$(e)&&!vn(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),x$(e)||(e.CATEGORIES=[]),q3e(e)||(e.categoryMatches=[]),Y3e(e)||(e.categoryMatchesMap={})})}k(z3e,"assignTokenDefaultProps");function U3e(t){$r(t,e=>{e.categoryMatches=[],$r(e.categoryMatchesMap,(r,n)=>{e.categoryMatches.push(F3e[n].tokenTypeIdx)})})}k(U3e,"assignCategoriesTokensProp");function G3e(t){$r(t,e=>{pV([],e)})}k(G3e,"assignCategoriesMapProp");function pV(t,e){$r(t,r=>{e.categoryMatchesMap[r.tokenTypeIdx]=!0}),$r(e.CATEGORIES,r=>{const n=t.concat(e);ao(n,r)||pV(n,r)})}k(pV,"singleAssignCategoriesToksMap");function gV(t){return Mr(t,"tokenTypeIdx")}k(gV,"hasShortKeyProperty");function x$(t){return Mr(t,"CATEGORIES")}k(x$,"hasCategoriesProperty");function q3e(t){return Mr(t,"categoryMatches")}k(q3e,"hasExtendingTokensTypesProperty");function Y3e(t){return Mr(t,"categoryMatchesMap")}k(Y3e,"hasExtendingTokensTypesMapProperty");function H3e(t){return Mr(t,"tokenTypeIdx")}k(H3e,"isTokenType");var C$={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,n,a,i){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}},Fa;(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"})(Fa||(Fa={}));var qE={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:C$,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(qE);var lv,Ys=(lv=class{constructor(e,r=qE){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=(a,i)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${a}>`);const{time:o,value:l}=cV(i),u=o>10?console.warn:console.log;return this.traceInitIndent time: ${o}ms`),this.traceInitIndent--,l}else return i()},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=Yo({},qE,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 a,i=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===qE.lineTerminatorsPattern)this.config.lineTerminatorsPattern=v5t;else if(this.config.lineTerminatorCharacters===qE.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. +a boolean 2nd argument is no longer supported`);this.config=Yo({},qE,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 a,i=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===qE.lineTerminatorsPattern)this.config.lineTerminatorsPattern=y5t;else if(this.config.lineTerminatorCharacters===qE.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),vn(e)?a={modes:{defaultMode:es(e)},defaultMode:UE}:(i=!1,a=es(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(O3e(a,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(D3e(a,this.trackStartLines,this.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},$r(a.modes,(o,l)=>{a.modes[l]=$A(o,u=>z0(u))});const s=qo(a.modes);if($r(a.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(v3e(o,s))}),Zn(this.lexerDefinitionErrors)){A2(o);let u;this.TRACE_INIT("analyzeTokenTypes",()=>{u=m3e(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=Yo({},this.emptyGroups,u.emptyGroups),this.hasCustom=u.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=u.canBeOptimized}})}),this.defaultMode=a.defaultMode,!Zn(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const l=Sr(this.lexerDefinitionErrors,u=>u.message).join(`----------------------- `);throw new Error(`Errors detected in definition of Lexer: `+l)}$r(this.lexerDefinitionWarning,o=>{lV(o.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(g3e?(this.chopInput=Lb,this.match=this.matchWithTest):(this.updateLastIndex=mi,this.match=this.matchWithExec),i&&(this.handleModes=mi),this.trackStartLines===!1&&(this.computeNewColumn=Lb),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=mi),/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=Ho(this.canModeBeOptimized,(l,u,d)=>(u===!1&&l.push(d),l),[]);if(r.ensureOptimizations&&!Zn(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",()=>{d3e()}),this.TRACE_INIT("toFastProperties",()=>{uV(this)})})}tokenize(e,r=this.defaultMode){if(!Zn(this.lexerDefinitionErrors)){const a=Sr(this.lexerDefinitionErrors,i=>i.message).join(`----------------------- `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: -`+a)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let n,a,i,s,o,l,u,d,h,f,p,g,m,v,y;const b=e,_=b.length;let S=0,x=0;const C=this.hasCustom?0:Math.floor(e.length/10),T=new Array(C),w=[];let R=this.trackStartLines?1:void 0,O=this.trackStartLines?1:void 0;const M=L3e(this.emptyGroups),$=this.trackStartLines,F=this.config.lineTerminatorsPattern;let A=0,I=[],D=[];const L=[],N=[];Object.freeze(N);let P;function z(){return I}k(z,"getPossiblePatternsSlow");function B(ee){const X=U0(ee),le=D[X];return le===void 0?N:le}k(B,"getPossiblePatternsOptimized");const U=k(ee=>{if(L.length===1&&ee.tokenType.PUSH_MODE===void 0){const X=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ee);w.push({offset:ee.startOffset,line:ee.startLine,column:ee.startColumn,length:ee.image.length,message:X})}else{L.pop();const X=Wp(L);I=this.patternIdxToConfig[X],D=this.charCodeToPatternIdxToConfig[X],A=I.length;const le=this.canModeBeOptimized[X]&&this.config.safeMode===!1;D&&le?P=B:P=z}},"pop_mode");function G(ee){L.push(ee),D=this.charCodeToPatternIdxToConfig[ee],I=this.patternIdxToConfig[ee],A=I.length,A=I.length;const X=this.canModeBeOptimized[ee]&&this.config.safeMode===!1;D&&X?P=B:P=z}k(G,"push_mode"),G.call(this,r);let K;const Y=this.config.recoveryEnabled;for(;S<_;){l=null;const ee=b.charCodeAt(S),X=P(ee),le=X.length;for(n=0;nl.length){l=s,u=d,K=re;break}}}break}}if(l!==null){if(h=l.length,f=K.group,f!==void 0&&(p=K.tokenTypeIdx,g=this.createTokenInstance(l,S,p,K.tokenType,R,O,h),this.handlePayload(g,u),f===!1?x=this.addToken(T,x,g):M[f].push(g)),e=this.chopInput(e,h),S=S+h,O=this.computeNewColumn(O,h),$===!0&&K.canLineTerminator===!0){let te=0,ne,ae;F.lastIndex=0;do ne=F.test(l),ne===!0&&(ae=F.lastIndex-1,te++);while(ne===!0);te!==0&&(R=R+te,O=h-ae,this.updateTokenEndLineColumnLocation(g,f,ae,te,R,O,h))}this.handleModes(K,U,G,g)}else{const te=S,ne=R,ae=O;let re=Y===!1;for(;re===!1&&S<_;)for(e=this.chopInput(e,1),S++,a=0;a{if(L.length===1&&ee.tokenType.PUSH_MODE===void 0){const X=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ee);w.push({offset:ee.startOffset,line:ee.startLine,column:ee.startColumn,length:ee.image.length,message:X})}else{L.pop();const X=Wp(L);I=this.patternIdxToConfig[X],D=this.charCodeToPatternIdxToConfig[X],A=I.length;const le=this.canModeBeOptimized[X]&&this.config.safeMode===!1;D&&le?P=B:P=z}},"pop_mode");function G(ee){L.push(ee),D=this.charCodeToPatternIdxToConfig[ee],I=this.patternIdxToConfig[ee],A=I.length,A=I.length;const X=this.canModeBeOptimized[ee]&&this.config.safeMode===!1;D&&X?P=B:P=z}k(G,"push_mode"),G.call(this,r);let K;const Y=this.config.recoveryEnabled;for(;S<_;){l=null;const ee=b.charCodeAt(S),X=P(ee),le=X.length;for(n=0;nl.length){l=s,u=d,K=re;break}}}break}}if(l!==null){if(h=l.length,f=K.group,f!==void 0&&(p=K.tokenTypeIdx,g=this.createTokenInstance(l,S,p,K.tokenType,R,O,h),this.handlePayload(g,u),f===!1?x=this.addToken(T,x,g):M[f].push(g)),e=this.chopInput(e,h),S=S+h,O=this.computeNewColumn(O,h),$===!0&&K.canLineTerminator===!0){let te=0,ne,ae;F.lastIndex=0;do ne=F.test(l),ne===!0&&(ae=F.lastIndex-1,te++);while(ne===!0);te!==0&&(R=R+te,O=h-ae,this.updateTokenEndLineColumnLocation(g,f,ae,te,R,O,h))}this.handleModes(K,U,G,g)}else{const te=S,ne=R,ae=O;let re=Y===!1;for(;re===!1&&S<_;)for(e=this.chopInput(e,1),S++,a=0;a ${Sp(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:a}){const i="Expecting: ",o=` but found: '`+yc(e).image+"'";if(n)return i+n+o;{const l=Ho(t,(f,p)=>f.concat(p),[]),u=Sr(l,f=>`[${Sr(f,p=>Sp(p)).join(", ")}]`),h=`one of these possible Token sequences: ${Sr(u,(f,p)=>` ${p+1}. ${f}`).join(` `)}`;return i+h+o}},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:r,ruleName:n}){const a="Expecting: ",s=` but found: '`+yc(e).image+"'";if(r)return a+r+s;{const l=`expecting at least one iteration which starts with one of these possible Token sequences:: - <${Sr(t,u=>`[${Sr(u,d=>Sp(d)).join(",")}]`).join(" ,")}>`;return a+l+s}}};Object.freeze(Km);var _5t={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- + <${Sr(t,u=>`[${Sr(u,d=>Sp(d)).join(",")}]`).join(" ,")}>`;return a+l+s}}};Object.freeze(Km);var b5t={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- inside top level rule: ->`+t.name+"<-"}},fp={buildDuplicateFoundError(t,e){function r(d){return d instanceof ia?d.terminalType.name:d instanceof Xs?d.nonTerminalName:""}k(r,"getExtraProductionArgument");const n=t.name,a=yc(e),i=a.idx,s=jl(a),o=r(a),l=i>0;let u=`->${s}${l?i:""}<- ${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 @@ -5348,35 +5353,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 x2?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}};function W3e(t,e){const r=new b5t(t,e);return r.resolveRefs(),r.errors}k(W3e,"resolveGrammar");var cv,b5t=(cv=class extends C2{constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){$r(bi(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:js.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},k(cv,"GastRefResolverVisitor"),cv),uv,E5t=(uv=class extends zA{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=es(this.path.ruleStack).reverse(),this.occurrenceStack=es(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 a=r.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,a)}}updateExpectedNext(){Zn(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},k(uv,"AbstractNextPossibleTokensWalker"),uv),dv,S5t=(dv=class extends E5t{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 a=r.concat(n),i=new Co({definition:a});this.possibleTokTypes=w2(i),this.found=!0}}},k(dv,"NextAfterTokenWalker"),dv),hv,GA=(hv=class extends zA{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(hv,"AbstractNextTerminalAfterProductionWalker"),hv),fv,T5t=(fv=class extends GA{walkMany(e,r,n){if(e.idx===this.occurrence){const a=yc(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof ia&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkMany(e,r,n)}},k(fv,"NextTerminalAfterManyWalker"),fv),pv,ooe=(pv=class extends GA{walkManySep(e,r,n){if(e.idx===this.occurrence){const a=yc(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof ia&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkManySep(e,r,n)}},k(pv,"NextTerminalAfterManySepWalker"),pv),gv,x5t=(gv=class extends GA{walkAtLeastOne(e,r,n){if(e.idx===this.occurrence){const a=yc(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof ia&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkAtLeastOne(e,r,n)}},k(gv,"NextTerminalAfterAtLeastOneWalker"),gv),mv,loe=(mv=class extends GA{walkAtLeastOneSep(e,r,n){if(e.idx===this.occurrence){const a=yc(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof ia&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkAtLeastOneSep(e,r,n)}},k(mv,"NextTerminalAfterAtLeastOneSepWalker"),mv);function Nw(t,e,r=[]){r=es(r);let n=[],a=0;function i(o){return o.concat(Ki(t,a+1))}k(i,"remainingPathWith");function s(o){const l=Nw(i(o),e,r);return n.concat(l)}for(k(s,"getAlternativesForProd");r.length{Zn(l.definition)===!1&&(n=s(l.definition))}),n;if(o instanceof ia)r.push(o.terminalType);else throw Error("non exhaustive match")}a++}return n.push({partialPath:r,suffixDef:Ki(t,a)}),n}k(Nw,"possiblePathsFrom");function yV(t,e,r,n){const a="EXIT_NONE_TERMINAL",i=[a],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:[]});!Zn(h);){const f=h.pop();if(f===s){o&&Wp(h).idx<=u&&h.pop();continue}const p=f.def,g=f.idx,m=f.ruleStack,v=f.occurrenceStack;if(Zn(p))continue;const y=p[0];if(y===a){const b={idx:g,def:Ki(p),ruleStack:F4(m),occurrenceStack:F4(v)};h.push(b)}else if(y instanceof ia)if(g=0;b--){const _=y.definition[b],S={idx:g,def:_.definition.concat(Ki(p)),ruleStack:m,occurrenceStack:v};h.push(S),h.push(s)}else if(y instanceof Co)h.push({idx:g,def:y.definition.concat(Ki(p)),ruleStack:m,occurrenceStack:v});else if(y instanceof x2)h.push(K3e(y,g,m,v));else throw Error("non exhaustive match")}return d}k(yV,"nextPossibleTokensAfter");function K3e(t,e,r,n){const a=es(r);a.push(t.name);const i=es(n);return i.push(1),{idx:e,def:t.definition,ruleStack:a,occurrenceStack:i}}k(K3e,"expandTopLevelRule");var Ra;(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"})(Ra||(Ra={}));function qA(t){if(t instanceof Ji||t==="Option")return Ra.OPTION;if(t instanceof Ba||t==="Repetition")return Ra.REPETITION;if(t instanceof Jo||t==="RepetitionMandatory")return Ra.REPETITION_MANDATORY;if(t instanceof el||t==="RepetitionMandatoryWithSeparator")return Ra.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof Ao||t==="RepetitionWithSeparator")return Ra.REPETITION_WITH_SEPARATOR;if(t instanceof Ro||t==="Alternation")return Ra.ALTERNATION;throw Error("non exhaustive match")}k(qA,"getProdType");function w$(t){const{occurrence:e,rule:r,prodType:n,maxLookahead:a}=t,i=qA(n);return i===Ra.ALTERNATION?cx(e,r,a):ux(e,r,i,a)}k(w$,"getLookaheadPaths");function X3e(t,e,r,n,a,i){const s=cx(t,e,r),o=bV(s)?z4:k2;return i(s,n,o,a)}k(X3e,"buildLookaheadFuncForOr");function j3e(t,e,r,n,a,i){const s=ux(t,e,a,r),o=bV(s)?z4:k2;return i(s[0],o,n)}k(j3e,"buildLookaheadFuncForOptionalProd");function Q3e(t,e,r,n){const a=t.length,i=hc(t,s=>hc(s,o=>o.length===1));if(e)return function(s){const o=Sr(s,l=>l.GATE);for(let l=0;ldc(l)),o=Ho(s,(l,u,d)=>($r(u,h=>{Mr(l,h.tokenTypeIdx)||(l[h.tokenTypeIdx]=d),$r(h.categoryMatches,f=>{Mr(l,f)||(l[f]=d)})}),l),{});return function(){const l=this.LA(1);return o[l.tokenTypeIdx]}}else return function(){for(let s=0;si.length===1),a=t.length;if(n&&!r){const i=dc(t);if(i.length===1&&Zn(i[0].categoryMatches)){const o=i[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===o}}else{const s=Ho(i,(o,l,u)=>(o[l.tokenTypeIdx]=!0,$r(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 i=0;iNw([s],1)),n=k$(r.length),a=Sr(r,s=>{const o={};return $r(s,l=>{const u=X5(l.partialPath);$r(u,d=>{o[d]=!0})}),o});let i=r;for(let s=1;s<=e;s++){const o=i;i=k$(o.length);for(let l=0;l{const y=X5(v.partialPath);$r(y,b=>{a[l][b]=!0})})}}}}return n}k(_V,"lookAheadSequenceFromAlternatives");function cx(t,e,r,n){const a=new J3e(t,Ra.ALTERNATION,n);return e.accept(a),_V(a.result,r)}k(cx,"getLookaheadPathsForOr");function ux(t,e,r,n){const a=new J3e(t,r);e.accept(a);const i=a.result,o=new C5t(e,t,r).startWalking(),l=new Co({definition:i}),u=new Co({definition:o});return _V([l,u],n)}k(ux,"getLookaheadPathsForOptionalProd");function Iw(t,e){e:for(let r=0;r{const a=e[n];return r===a||a.categoryMatchesMap[r.tokenTypeIdx]})}k(t5e,"isStrictPrefixOfPath");function bV(t){return hc(t,e=>hc(e,r=>hc(r,n=>Zn(n.categoryMatches))))}k(bV,"areTokenCategoriesNotUsed");function r5e(t){const e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return Sr(e,r=>Object.assign({type:js.CUSTOM_LOOKAHEAD_VALIDATION},r))}k(r5e,"validateLookahead");function n5e(t,e,r,n){const a=Cl(t,l=>a5e(l,r)),i=p5e(t,e,r),s=Cl(t,l=>u5e(l,r)),o=Cl(t,l=>s5e(l,t,n,r));return a.concat(i,s,o)}k(n5e,"validateGrammar");function a5e(t,e){const r=new w5t;t.accept(r);const n=r.allProductions,a=z3t(n,i5e),i=Ec(a,o=>o.length>1);return Sr(bi(i),o=>{const l=yc(o),u=e.buildDuplicateFoundError(t,o),d=jl(l),h={message:u,type:js.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:d,occurrence:l.idx},f=EV(l);return f&&(h.parameter=f),h})}k(a5e,"validateDuplicateProductions");function i5e(t){return`${jl(t)}_#_${t.idx}_#_${EV(t)}`}k(i5e,"identifyProductionForDuplicates");function EV(t){return t instanceof ia?t.terminalType.name:t instanceof Xs?t.nonTerminalName:""}k(EV,"getExtraProductionArgument");var _v,w5t=(_v=class extends C2{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(_v,"OccurrenceValidationCollector"),_v);function s5e(t,e,r,n){const a=[];if(Ho(e,(s,o)=>o.name===t.name?s+1:s,0)>1){const s=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});a.push({message:s,type:js.DUPLICATE_RULE_NAME,ruleName:t.name})}return a}k(s5e,"validateRuleDoesNotAlreadyExist");function o5e(t,e,r){const n=[];let a;return ao(e,t)||(a=`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:a,type:js.INVALID_RULE_OVERRIDE,ruleName:t})),n}k(o5e,"validateRuleIsOverridden");function SV(t,e,r,n=[]){const a=[],i=IS(e.definition);if(Zn(i))return[];{const s=t.name;ao(i,t)&&a.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:js.LEFT_RECURSION,ruleName:s});const l=FA(i,n.concat([t])),u=Cl(l,d=>{const h=es(n);return h.push(d),SV(t,d,r,h)});return a.concat(u)}}k(SV,"validateNoLeftRecursion");function IS(t){let e=[];if(Zn(t))return e;const r=yc(t);if(r instanceof Xs)e.push(r.referencedRule);else if(r instanceof Co||r instanceof Ji||r instanceof Jo||r instanceof el||r instanceof Ao||r instanceof Ba)e=e.concat(IS(r.definition));else if(r instanceof Ro)e=dc(Sr(r.definition,i=>IS(i.definition)));else if(!(r instanceof ia))throw Error("non exhaustive match");const n=$4(r),a=t.length>1;if(n&&a){const i=Ki(t);return e.concat(IS(i))}else return e}k(IS,"getFirstNoneTerminal");var bv,TV=(bv=class extends C2{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},k(bv,"OrCollector"),bv);function l5e(t,e){const r=new TV;t.accept(r);const n=r.alternations;return Cl(n,i=>{const s=F4(i.definition);return Cl(s,(o,l)=>{const u=yV([o],[],k2,1);return Zn(u)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:i,emptyChoiceIdx:l}),type:js.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:i.idx,alternative:l+1}]:[]})})}k(l5e,"validateEmptyOrAlternative");function c5e(t,e,r){const n=new TV;t.accept(n);let a=n.alternations;return a=$A(a,s=>s.ignoreAmbiguities===!0),Cl(a,s=>{const o=s.idx,l=s.maxLookahead||e,u=cx(o,t,l,s),d=h5e(u,s,t,r),h=f5e(u,s,t,r);return d.concat(h)})}k(c5e,"validateAmbiguousAlternationAlternatives");var Ev,k5t=(Ev=class extends C2{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(Ev,"RepetitionCollector"),Ev);function u5e(t,e){const r=new TV;t.accept(r);const n=r.alternations;return Cl(n,i=>i.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:i}),type:js.TOO_MANY_ALTS,ruleName:t.name,occurrence:i.idx}]:[])}k(u5e,"validateTooManyAlts");function d5e(t,e,r){const n=[];return $r(t,a=>{const i=new k5t;a.accept(i);const s=i.allProductions;$r(s,o=>{const l=qA(o),u=o.maxLookahead||e,d=o.idx,f=ux(d,a,l,u)[0];if(Zn(dc(f))){const p=r.buildEmptyRepetitionError({topLevelRule:a,repetition:o});n.push({message:p,type:js.NO_NON_EMPTY_LOOKAHEAD,ruleName:a.name})}})}),n}k(d5e,"validateSomeNonEmptyLookaheadPath");function h5e(t,e,r,n){const a=[],i=Ho(t,(o,l,u)=>(e.definition[u].ignoreAmbiguities===!0||$r(l,d=>{const h=[u];$r(t,(f,p)=>{u!==p&&Iw(f,d)&&e.definition[p].ignoreAmbiguities!==!0&&h.push(p)}),h.length>1&&!Iw(a,d)&&(a.push(d),o.push({alts:h,path:d}))}),o),[]);return Sr(i,o=>{const l=Sr(o.alts,d=>d+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:l,prefixPath:o.path}),type:js.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:o.alts}})}k(h5e,"checkAlternativesAmbiguities");function f5e(t,e,r,n){const a=Ho(t,(s,o,l)=>{const u=Sr(o,d=>({idx:l,path:d}));return s.concat(u)},[]);return sx(Cl(a,s=>{if(e.definition[s.idx].ignoreAmbiguities===!0)return[];const l=s.idx,u=s.path,d=zl(a,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:js.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:p}})}))}k(f5e,"checkPrefixAlternativesAmbiguities");function p5e(t,e,r){const n=[],a=Sr(e,i=>i.name);return $r(t,i=>{const s=i.name;if(ao(a,s)){const o=r.buildNamespaceConflictError(i);n.push({message:o,type:js.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),n}k(p5e,"checkTerminalAndNoneTerminalsNameSpace");function g5e(t){const e=sV(t,{errMsgProvider:_5t}),r={};return $r(t.rules,n=>{r[n.name]=n}),W3e(r,e.errMsgProvider)}k(g5e,"resolveGrammar");function m5e(t){return t=sV(t,{errMsgProvider:fp}),n5e(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}k(m5e,"validateGrammar");var v5e="MismatchedTokenException",y5e="NoViableAltException",_5e="EarlyExitException",b5e="NotAllInputParsedException",E5e=[v5e,y5e,_5e,b5e];Object.freeze(E5e);function U4(t){return ao(E5e,t.name)}k(U4,"isRecognitionException");var Sv,YA=(Sv=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(Sv,"RecognitionException"),Sv),Tv,S5e=(Tv=class extends YA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=v5e}},k(Tv,"MismatchedTokenException"),Tv),xv,A5t=(xv=class extends YA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=y5e}},k(xv,"NoViableAltException"),xv),Cv,R5t=(Cv=class extends YA{constructor(e,r){super(e,r),this.name=b5e}},k(Cv,"NotAllInputParsedException"),Cv),wv,N5t=(wv=class extends YA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=_5e}},k(wv,"EarlyExitException"),wv),KL={},T5e="InRuleRecoveryException",kv,I5t=(kv=class extends Error{constructor(e){super(e),this.name=T5e}},k(kv,"InRuleRecoveryException"),kv),Av,O5t=(Av=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Mr(e,"recoveryEnabled")?e.recoveryEnabled:G0.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=x5e)}getTokenToInsert(e){const r=lx(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,n,a){const i=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:a,actual:u,previous:f,ruleName:this.getCurrRuleFullName()}),g=new S5e(p,u,this.LA(0));g.resyncedTokens=F4(o),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(d,a)){h();return}else if(n.call(this)){h(),e.apply(this,r);return}else this.tokenMatcher(d,i)?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 I5t("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e)||Zn(r))return!1;const n=this.LA(1);return Pb(r,i=>this.tokenMatcher(n,i))!==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 ao(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let r=this.LA(1),n=2;for(;;){const a=Pb(e,i=>vV(r,i));if(a!==void 0)return a;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return KL;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,a)=>a===0?KL:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[a],inRule:this.shortRuleNameToFullName(e[a-1])})}flattenFollowSet(){const e=Sr(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return dc(e)}getFollowSetFromFollowKey(e){if(e===KL)return[Oh];const r=e.ruleName+e.idxInCallingRule+l3e+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){return this.tokenMatcher(e,Oh)||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 F4(r)}attemptInRepetitionRecovery(e,r,n,a,i,s,o){}getCurrentGrammarPath(e,r){const n=this.getHumanReadableRuleStack(),a=es(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:a,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){return Sr(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},k(Av,"Recoverable"),Av);function x5e(t,e,r,n,a,i,s){const o=this.getKeyForAutomaticLookahead(n,a);let l=this.firstAfterRepMap[o];if(l===void 0){const f=this.getCurrRuleFullName(),p=this.getGAstProductions()[f];l=new i(p,a).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=Oh,d=1),!(u===void 0||d===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,d,s)&&this.tryInRepetitionRecovery(t,e,r,u)}k(x5e,"attemptInRepetitionRecovery");var D5t=4,Qh=8,C5e=1<SV(r,r,fp))}validateEmptyOrAlternatives(e){return Cl(e,r=>l5e(r,fp))}validateAmbiguousAlternationAlternatives(e,r){return Cl(e,n=>c5e(n,r,fp))}validateSomeNonEmptyLookaheadPath(e,r){return d5e(e,r,fp)}buildLookaheadForAlternation(e){return X3e(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Q3e)}buildLookaheadForOptional(e){return j3e(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,qA(e.prodType),Z3e)}},k(Rv,"LLkLookaheadStrategy"),Rv),Nv,L5t=(Nv=class{initLooksAhead(e){this.dynamicTokensEnabled=Mr(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:G0.dynamicTokensEnabled,this.maxLookahead=Mr(e,"maxLookahead")?e.maxLookahead:G0.maxLookahead,this.lookaheadStrategy=Mr(e,"lookaheadStrategy")?e.lookaheadStrategy:new xV({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){$r(e,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{const{alternation:n,repetition:a,option:i,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=k5e(r);$r(n,u=>{const d=u.idx===0?"":u.idx;this.TRACE_INIT(`${jl(u)}${d}`,()=>{const h=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:r,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),f=Q5(this.fullRuleNameToShort[r.name],C5e,u.idx);this.setLaFuncCache(f,h)})}),$r(a,u=>{this.computeLookaheadFunc(r,u.idx,A$,"Repetition",u.maxLookahead,jl(u))}),$r(i,u=>{this.computeLookaheadFunc(r,u.idx,w5e,"Option",u.maxLookahead,jl(u))}),$r(s,u=>{this.computeLookaheadFunc(r,u.idx,R$,"RepetitionMandatory",u.maxLookahead,jl(u))}),$r(o,u=>{this.computeLookaheadFunc(r,u.idx,j5,"RepetitionMandatoryWithSeparator",u.maxLookahead,jl(u))}),$r(l,u=>{this.computeLookaheadFunc(r,u.idx,N$,"RepetitionWithSeparator",u.maxLookahead,jl(u))})})})}computeLookaheadFunc(e,r,n,a,i,s){this.TRACE_INIT(`${s}${r===0?"":r}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:a}),l=Q5(this.fullRuleNameToShort[e.name],n,r);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,r){const n=this.getLastExplicitRuleShortName();return Q5(n,e,r)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,r){this.lookAheadFuncsCache.set(e,r)}},k(Nv,"LooksAhead"),Nv),Iv,M5t=(Iv=class extends C2{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(Iv,"DslMethodsCollectorVisitor"),Iv),k3=new M5t;function k5e(t){k3.reset(),t.accept(k3);const e=k3.dslMethods;return k3.reset(),e}k(k5e,"collectMethods");function I$(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 x2?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}};function W3e(t,e){const r=new E5t(t,e);return r.resolveRefs(),r.errors}k(W3e,"resolveGrammar");var cv,E5t=(cv=class extends C2{constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){$r(bi(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:js.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},k(cv,"GastRefResolverVisitor"),cv),uv,S5t=(uv=class extends zA{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=es(this.path.ruleStack).reverse(),this.occurrenceStack=es(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 a=r.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,a)}}updateExpectedNext(){Zn(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},k(uv,"AbstractNextPossibleTokensWalker"),uv),dv,T5t=(dv=class extends S5t{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 a=r.concat(n),i=new Co({definition:a});this.possibleTokTypes=w2(i),this.found=!0}}},k(dv,"NextAfterTokenWalker"),dv),hv,GA=(hv=class extends zA{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(hv,"AbstractNextTerminalAfterProductionWalker"),hv),fv,x5t=(fv=class extends GA{walkMany(e,r,n){if(e.idx===this.occurrence){const a=yc(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof ia&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkMany(e,r,n)}},k(fv,"NextTerminalAfterManyWalker"),fv),pv,ooe=(pv=class extends GA{walkManySep(e,r,n){if(e.idx===this.occurrence){const a=yc(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof ia&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkManySep(e,r,n)}},k(pv,"NextTerminalAfterManySepWalker"),pv),gv,C5t=(gv=class extends GA{walkAtLeastOne(e,r,n){if(e.idx===this.occurrence){const a=yc(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof ia&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkAtLeastOne(e,r,n)}},k(gv,"NextTerminalAfterAtLeastOneWalker"),gv),mv,loe=(mv=class extends GA{walkAtLeastOneSep(e,r,n){if(e.idx===this.occurrence){const a=yc(r.concat(n));this.result.isEndOfRule=a===void 0,a instanceof ia&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else super.walkAtLeastOneSep(e,r,n)}},k(mv,"NextTerminalAfterAtLeastOneSepWalker"),mv);function Nw(t,e,r=[]){r=es(r);let n=[],a=0;function i(o){return o.concat(Ki(t,a+1))}k(i,"remainingPathWith");function s(o){const l=Nw(i(o),e,r);return n.concat(l)}for(k(s,"getAlternativesForProd");r.length{Zn(l.definition)===!1&&(n=s(l.definition))}),n;if(o instanceof ia)r.push(o.terminalType);else throw Error("non exhaustive match")}a++}return n.push({partialPath:r,suffixDef:Ki(t,a)}),n}k(Nw,"possiblePathsFrom");function yV(t,e,r,n){const a="EXIT_NONE_TERMINAL",i=[a],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:[]});!Zn(h);){const f=h.pop();if(f===s){o&&Wp(h).idx<=u&&h.pop();continue}const p=f.def,g=f.idx,m=f.ruleStack,v=f.occurrenceStack;if(Zn(p))continue;const y=p[0];if(y===a){const b={idx:g,def:Ki(p),ruleStack:F4(m),occurrenceStack:F4(v)};h.push(b)}else if(y instanceof ia)if(g=0;b--){const _=y.definition[b],S={idx:g,def:_.definition.concat(Ki(p)),ruleStack:m,occurrenceStack:v};h.push(S),h.push(s)}else if(y instanceof Co)h.push({idx:g,def:y.definition.concat(Ki(p)),ruleStack:m,occurrenceStack:v});else if(y instanceof x2)h.push(K3e(y,g,m,v));else throw Error("non exhaustive match")}return d}k(yV,"nextPossibleTokensAfter");function K3e(t,e,r,n){const a=es(r);a.push(t.name);const i=es(n);return i.push(1),{idx:e,def:t.definition,ruleStack:a,occurrenceStack:i}}k(K3e,"expandTopLevelRule");var Ra;(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"})(Ra||(Ra={}));function qA(t){if(t instanceof Ji||t==="Option")return Ra.OPTION;if(t instanceof Ba||t==="Repetition")return Ra.REPETITION;if(t instanceof Jo||t==="RepetitionMandatory")return Ra.REPETITION_MANDATORY;if(t instanceof el||t==="RepetitionMandatoryWithSeparator")return Ra.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof Ao||t==="RepetitionWithSeparator")return Ra.REPETITION_WITH_SEPARATOR;if(t instanceof Ro||t==="Alternation")return Ra.ALTERNATION;throw Error("non exhaustive match")}k(qA,"getProdType");function w$(t){const{occurrence:e,rule:r,prodType:n,maxLookahead:a}=t,i=qA(n);return i===Ra.ALTERNATION?cx(e,r,a):ux(e,r,i,a)}k(w$,"getLookaheadPaths");function X3e(t,e,r,n,a,i){const s=cx(t,e,r),o=bV(s)?z4:k2;return i(s,n,o,a)}k(X3e,"buildLookaheadFuncForOr");function j3e(t,e,r,n,a,i){const s=ux(t,e,a,r),o=bV(s)?z4:k2;return i(s[0],o,n)}k(j3e,"buildLookaheadFuncForOptionalProd");function Q3e(t,e,r,n){const a=t.length,i=hc(t,s=>hc(s,o=>o.length===1));if(e)return function(s){const o=Sr(s,l=>l.GATE);for(let l=0;ldc(l)),o=Ho(s,(l,u,d)=>($r(u,h=>{Mr(l,h.tokenTypeIdx)||(l[h.tokenTypeIdx]=d),$r(h.categoryMatches,f=>{Mr(l,f)||(l[f]=d)})}),l),{});return function(){const l=this.LA(1);return o[l.tokenTypeIdx]}}else return function(){for(let s=0;si.length===1),a=t.length;if(n&&!r){const i=dc(t);if(i.length===1&&Zn(i[0].categoryMatches)){const o=i[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===o}}else{const s=Ho(i,(o,l,u)=>(o[l.tokenTypeIdx]=!0,$r(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 i=0;iNw([s],1)),n=k$(r.length),a=Sr(r,s=>{const o={};return $r(s,l=>{const u=X5(l.partialPath);$r(u,d=>{o[d]=!0})}),o});let i=r;for(let s=1;s<=e;s++){const o=i;i=k$(o.length);for(let l=0;l{const y=X5(v.partialPath);$r(y,b=>{a[l][b]=!0})})}}}}return n}k(_V,"lookAheadSequenceFromAlternatives");function cx(t,e,r,n){const a=new J3e(t,Ra.ALTERNATION,n);return e.accept(a),_V(a.result,r)}k(cx,"getLookaheadPathsForOr");function ux(t,e,r,n){const a=new J3e(t,r);e.accept(a);const i=a.result,o=new w5t(e,t,r).startWalking(),l=new Co({definition:i}),u=new Co({definition:o});return _V([l,u],n)}k(ux,"getLookaheadPathsForOptionalProd");function Iw(t,e){e:for(let r=0;r{const a=e[n];return r===a||a.categoryMatchesMap[r.tokenTypeIdx]})}k(t5e,"isStrictPrefixOfPath");function bV(t){return hc(t,e=>hc(e,r=>hc(r,n=>Zn(n.categoryMatches))))}k(bV,"areTokenCategoriesNotUsed");function r5e(t){const e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return Sr(e,r=>Object.assign({type:js.CUSTOM_LOOKAHEAD_VALIDATION},r))}k(r5e,"validateLookahead");function n5e(t,e,r,n){const a=Cl(t,l=>a5e(l,r)),i=p5e(t,e,r),s=Cl(t,l=>u5e(l,r)),o=Cl(t,l=>s5e(l,t,n,r));return a.concat(i,s,o)}k(n5e,"validateGrammar");function a5e(t,e){const r=new k5t;t.accept(r);const n=r.allProductions,a=U3t(n,i5e),i=Ec(a,o=>o.length>1);return Sr(bi(i),o=>{const l=yc(o),u=e.buildDuplicateFoundError(t,o),d=jl(l),h={message:u,type:js.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:d,occurrence:l.idx},f=EV(l);return f&&(h.parameter=f),h})}k(a5e,"validateDuplicateProductions");function i5e(t){return`${jl(t)}_#_${t.idx}_#_${EV(t)}`}k(i5e,"identifyProductionForDuplicates");function EV(t){return t instanceof ia?t.terminalType.name:t instanceof Xs?t.nonTerminalName:""}k(EV,"getExtraProductionArgument");var _v,k5t=(_v=class extends C2{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(_v,"OccurrenceValidationCollector"),_v);function s5e(t,e,r,n){const a=[];if(Ho(e,(s,o)=>o.name===t.name?s+1:s,0)>1){const s=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});a.push({message:s,type:js.DUPLICATE_RULE_NAME,ruleName:t.name})}return a}k(s5e,"validateRuleDoesNotAlreadyExist");function o5e(t,e,r){const n=[];let a;return ao(e,t)||(a=`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:a,type:js.INVALID_RULE_OVERRIDE,ruleName:t})),n}k(o5e,"validateRuleIsOverridden");function SV(t,e,r,n=[]){const a=[],i=IS(e.definition);if(Zn(i))return[];{const s=t.name;ao(i,t)&&a.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:js.LEFT_RECURSION,ruleName:s});const l=FA(i,n.concat([t])),u=Cl(l,d=>{const h=es(n);return h.push(d),SV(t,d,r,h)});return a.concat(u)}}k(SV,"validateNoLeftRecursion");function IS(t){let e=[];if(Zn(t))return e;const r=yc(t);if(r instanceof Xs)e.push(r.referencedRule);else if(r instanceof Co||r instanceof Ji||r instanceof Jo||r instanceof el||r instanceof Ao||r instanceof Ba)e=e.concat(IS(r.definition));else if(r instanceof Ro)e=dc(Sr(r.definition,i=>IS(i.definition)));else if(!(r instanceof ia))throw Error("non exhaustive match");const n=$4(r),a=t.length>1;if(n&&a){const i=Ki(t);return e.concat(IS(i))}else return e}k(IS,"getFirstNoneTerminal");var bv,TV=(bv=class extends C2{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},k(bv,"OrCollector"),bv);function l5e(t,e){const r=new TV;t.accept(r);const n=r.alternations;return Cl(n,i=>{const s=F4(i.definition);return Cl(s,(o,l)=>{const u=yV([o],[],k2,1);return Zn(u)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:i,emptyChoiceIdx:l}),type:js.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:i.idx,alternative:l+1}]:[]})})}k(l5e,"validateEmptyOrAlternative");function c5e(t,e,r){const n=new TV;t.accept(n);let a=n.alternations;return a=$A(a,s=>s.ignoreAmbiguities===!0),Cl(a,s=>{const o=s.idx,l=s.maxLookahead||e,u=cx(o,t,l,s),d=h5e(u,s,t,r),h=f5e(u,s,t,r);return d.concat(h)})}k(c5e,"validateAmbiguousAlternationAlternatives");var Ev,A5t=(Ev=class extends C2{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(Ev,"RepetitionCollector"),Ev);function u5e(t,e){const r=new TV;t.accept(r);const n=r.alternations;return Cl(n,i=>i.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:i}),type:js.TOO_MANY_ALTS,ruleName:t.name,occurrence:i.idx}]:[])}k(u5e,"validateTooManyAlts");function d5e(t,e,r){const n=[];return $r(t,a=>{const i=new A5t;a.accept(i);const s=i.allProductions;$r(s,o=>{const l=qA(o),u=o.maxLookahead||e,d=o.idx,f=ux(d,a,l,u)[0];if(Zn(dc(f))){const p=r.buildEmptyRepetitionError({topLevelRule:a,repetition:o});n.push({message:p,type:js.NO_NON_EMPTY_LOOKAHEAD,ruleName:a.name})}})}),n}k(d5e,"validateSomeNonEmptyLookaheadPath");function h5e(t,e,r,n){const a=[],i=Ho(t,(o,l,u)=>(e.definition[u].ignoreAmbiguities===!0||$r(l,d=>{const h=[u];$r(t,(f,p)=>{u!==p&&Iw(f,d)&&e.definition[p].ignoreAmbiguities!==!0&&h.push(p)}),h.length>1&&!Iw(a,d)&&(a.push(d),o.push({alts:h,path:d}))}),o),[]);return Sr(i,o=>{const l=Sr(o.alts,d=>d+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:l,prefixPath:o.path}),type:js.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:o.alts}})}k(h5e,"checkAlternativesAmbiguities");function f5e(t,e,r,n){const a=Ho(t,(s,o,l)=>{const u=Sr(o,d=>({idx:l,path:d}));return s.concat(u)},[]);return sx(Cl(a,s=>{if(e.definition[s.idx].ignoreAmbiguities===!0)return[];const l=s.idx,u=s.path,d=zl(a,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:js.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:p}})}))}k(f5e,"checkPrefixAlternativesAmbiguities");function p5e(t,e,r){const n=[],a=Sr(e,i=>i.name);return $r(t,i=>{const s=i.name;if(ao(a,s)){const o=r.buildNamespaceConflictError(i);n.push({message:o,type:js.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),n}k(p5e,"checkTerminalAndNoneTerminalsNameSpace");function g5e(t){const e=sV(t,{errMsgProvider:b5t}),r={};return $r(t.rules,n=>{r[n.name]=n}),W3e(r,e.errMsgProvider)}k(g5e,"resolveGrammar");function m5e(t){return t=sV(t,{errMsgProvider:fp}),n5e(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}k(m5e,"validateGrammar");var v5e="MismatchedTokenException",y5e="NoViableAltException",_5e="EarlyExitException",b5e="NotAllInputParsedException",E5e=[v5e,y5e,_5e,b5e];Object.freeze(E5e);function U4(t){return ao(E5e,t.name)}k(U4,"isRecognitionException");var Sv,YA=(Sv=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(Sv,"RecognitionException"),Sv),Tv,S5e=(Tv=class extends YA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=v5e}},k(Tv,"MismatchedTokenException"),Tv),xv,R5t=(xv=class extends YA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=y5e}},k(xv,"NoViableAltException"),xv),Cv,N5t=(Cv=class extends YA{constructor(e,r){super(e,r),this.name=b5e}},k(Cv,"NotAllInputParsedException"),Cv),wv,I5t=(wv=class extends YA{constructor(e,r,n){super(e,r),this.previousToken=n,this.name=_5e}},k(wv,"EarlyExitException"),wv),KL={},T5e="InRuleRecoveryException",kv,O5t=(kv=class extends Error{constructor(e){super(e),this.name=T5e}},k(kv,"InRuleRecoveryException"),kv),Av,D5t=(Av=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Mr(e,"recoveryEnabled")?e.recoveryEnabled:G0.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=x5e)}getTokenToInsert(e){const r=lx(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,n,a){const i=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:a,actual:u,previous:f,ruleName:this.getCurrRuleFullName()}),g=new S5e(p,u,this.LA(0));g.resyncedTokens=F4(o),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(d,a)){h();return}else if(n.call(this)){h(),e.apply(this,r);return}else this.tokenMatcher(d,i)?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 O5t("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e)||Zn(r))return!1;const n=this.LA(1);return Pb(r,i=>this.tokenMatcher(n,i))!==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 ao(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let r=this.LA(1),n=2;for(;;){const a=Pb(e,i=>vV(r,i));if(a!==void 0)return a;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return KL;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,a)=>a===0?KL:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[a],inRule:this.shortRuleNameToFullName(e[a-1])})}flattenFollowSet(){const e=Sr(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return dc(e)}getFollowSetFromFollowKey(e){if(e===KL)return[Oh];const r=e.ruleName+e.idxInCallingRule+l3e+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){return this.tokenMatcher(e,Oh)||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 F4(r)}attemptInRepetitionRecovery(e,r,n,a,i,s,o){}getCurrentGrammarPath(e,r){const n=this.getHumanReadableRuleStack(),a=es(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:a,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){return Sr(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},k(Av,"Recoverable"),Av);function x5e(t,e,r,n,a,i,s){const o=this.getKeyForAutomaticLookahead(n,a);let l=this.firstAfterRepMap[o];if(l===void 0){const f=this.getCurrRuleFullName(),p=this.getGAstProductions()[f];l=new i(p,a).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=Oh,d=1),!(u===void 0||d===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,d,s)&&this.tryInRepetitionRecovery(t,e,r,u)}k(x5e,"attemptInRepetitionRecovery");var L5t=4,Qh=8,C5e=1<SV(r,r,fp))}validateEmptyOrAlternatives(e){return Cl(e,r=>l5e(r,fp))}validateAmbiguousAlternationAlternatives(e,r){return Cl(e,n=>c5e(n,r,fp))}validateSomeNonEmptyLookaheadPath(e,r){return d5e(e,r,fp)}buildLookaheadForAlternation(e){return X3e(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Q3e)}buildLookaheadForOptional(e){return j3e(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,qA(e.prodType),Z3e)}},k(Rv,"LLkLookaheadStrategy"),Rv),Nv,M5t=(Nv=class{initLooksAhead(e){this.dynamicTokensEnabled=Mr(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:G0.dynamicTokensEnabled,this.maxLookahead=Mr(e,"maxLookahead")?e.maxLookahead:G0.maxLookahead,this.lookaheadStrategy=Mr(e,"lookaheadStrategy")?e.lookaheadStrategy:new xV({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){$r(e,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{const{alternation:n,repetition:a,option:i,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=k5e(r);$r(n,u=>{const d=u.idx===0?"":u.idx;this.TRACE_INIT(`${jl(u)}${d}`,()=>{const h=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:r,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),f=Q5(this.fullRuleNameToShort[r.name],C5e,u.idx);this.setLaFuncCache(f,h)})}),$r(a,u=>{this.computeLookaheadFunc(r,u.idx,A$,"Repetition",u.maxLookahead,jl(u))}),$r(i,u=>{this.computeLookaheadFunc(r,u.idx,w5e,"Option",u.maxLookahead,jl(u))}),$r(s,u=>{this.computeLookaheadFunc(r,u.idx,R$,"RepetitionMandatory",u.maxLookahead,jl(u))}),$r(o,u=>{this.computeLookaheadFunc(r,u.idx,j5,"RepetitionMandatoryWithSeparator",u.maxLookahead,jl(u))}),$r(l,u=>{this.computeLookaheadFunc(r,u.idx,N$,"RepetitionWithSeparator",u.maxLookahead,jl(u))})})})}computeLookaheadFunc(e,r,n,a,i,s){this.TRACE_INIT(`${s}${r===0?"":r}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:a}),l=Q5(this.fullRuleNameToShort[e.name],n,r);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,r){const n=this.getLastExplicitRuleShortName();return Q5(n,e,r)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,r){this.lookAheadFuncsCache.set(e,r)}},k(Nv,"LooksAhead"),Nv),Iv,P5t=(Iv=class extends C2{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(Iv,"DslMethodsCollectorVisitor"),Iv),k3=new P5t;function k5e(t){k3.reset(),t.accept(k3);const e=k3.dslMethods;return k3.reset(),e}k(k5e,"collectMethods");function I$(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}>: ${i.join(` `).replace(/\n/g,` - `)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=e,r}k(I5e,"createBaseSemanticVisitorConstructor");function O5e(t,e,r){const n=k(function(){},"derivedConstructor");CV(n,t+"BaseSemanticsWithDefaults");const a=Object.create(r.prototype);return $r(e,i=>{a[i]=N5e}),n.prototype=a,n.prototype.constructor=n,n}k(O5e,"createBaseVisitorConstructorWithDefaults");var D$;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(D$||(D$={}));function D5e(t,e){return L5e(t,e)}k(D5e,"validateVisitor");function L5e(t,e){const r=zl(e,a=>ld(t[a])===!1),n=Sr(r,a=>({msg:`Missing visitor method: <${a}> on ${t.constructor.name} CST Visitor.`,type:D$.MISSING_METHOD,methodName:a}));return sx(n)}k(L5e,"validateMissingCstMethods");var Ov,B5t=(Ov=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Mr(e,"nodeLocationTracking")?e.nodeLocationTracking:G0.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=mi,this.cstFinallyStateUpdate=mi,this.cstPostTerminal=mi,this.cstPostNonTerminal=mi,this.cstPostRule=mi;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=O$,this.setNodeLocationFromNode=O$,this.cstPostRule=mi,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=mi,this.setNodeLocationFromNode=mi,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=I$,this.setNodeLocationFromNode=I$,this.cstPostRule=mi,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=mi,this.setNodeLocationFromNode=mi,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=mi,this.setNodeLocationFromNode=mi,this.cstPostRule=mi,this.setInitialNodeLocation=mi;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];A5e(n,r,e),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];R5e(n,r,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(z0(this.baseCstVisitorConstructor)){const e=I5e(this.className,qo(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(z0(this.baseCstVisitorWithDefaultsConstructor)){const e=O5e(this.className,qo(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(Ov,"TreeBuilder"),Ov),Dv,F5t=(Dv=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)):Ow}LA(e){const r=this.currIdx+e;return r<0||this.tokVectorLength<=r?Ow: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(Dv,"LexerAdapter"),Dv),Lv,$5t=(Lv=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=Dw){if(ao(this.definedRulesNames,e)){const s={message:fp.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:js.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);const a=this.defineRule(e,r,n);return this[e]=a,a}OVERRIDE_RULE(e,r,n=Dw){const a=o5e(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(a);const i=this.defineRule(e,r,n);return this[e]=i,i}BACKTRACK(e,r){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,r),!0}catch(a){if(U4(a))return!1;throw a}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return r3e(bi(this.gastProductionsCache))}},k(Lv,"RecognizerApi"),Lv),Mv,z5t=(Mv=class{initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=z4,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Mr(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(I5e,"createBaseSemanticVisitorConstructor");function O5e(t,e,r){const n=k(function(){},"derivedConstructor");CV(n,t+"BaseSemanticsWithDefaults");const a=Object.create(r.prototype);return $r(e,i=>{a[i]=N5e}),n.prototype=a,n.prototype.constructor=n,n}k(O5e,"createBaseVisitorConstructorWithDefaults");var D$;(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(D$||(D$={}));function D5e(t,e){return L5e(t,e)}k(D5e,"validateVisitor");function L5e(t,e){const r=zl(e,a=>ld(t[a])===!1),n=Sr(r,a=>({msg:`Missing visitor method: <${a}> on ${t.constructor.name} CST Visitor.`,type:D$.MISSING_METHOD,methodName:a}));return sx(n)}k(L5e,"validateMissingCstMethods");var Ov,F5t=(Ov=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Mr(e,"nodeLocationTracking")?e.nodeLocationTracking:G0.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=mi,this.cstFinallyStateUpdate=mi,this.cstPostTerminal=mi,this.cstPostNonTerminal=mi,this.cstPostRule=mi;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=O$,this.setNodeLocationFromNode=O$,this.cstPostRule=mi,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=mi,this.setNodeLocationFromNode=mi,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=I$,this.setNodeLocationFromNode=I$,this.cstPostRule=mi,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=mi,this.setNodeLocationFromNode=mi,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=mi,this.setNodeLocationFromNode=mi,this.cstPostRule=mi,this.setInitialNodeLocation=mi;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];A5e(n,r,e),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(e,r){const n=this.CST_STACK[this.CST_STACK.length-1];R5e(n,r,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(z0(this.baseCstVisitorConstructor)){const e=I5e(this.className,qo(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(z0(this.baseCstVisitorWithDefaultsConstructor)){const e=O5e(this.className,qo(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(Ov,"TreeBuilder"),Ov),Dv,$5t=(Dv=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)):Ow}LA(e){const r=this.currIdx+e;return r<0||this.tokVectorLength<=r?Ow: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(Dv,"LexerAdapter"),Dv),Lv,z5t=(Lv=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=Dw){if(ao(this.definedRulesNames,e)){const s={message:fp.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:js.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);const a=this.defineRule(e,r,n);return this[e]=a,a}OVERRIDE_RULE(e,r,n=Dw){const a=o5e(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(a);const i=this.defineRule(e,r,n);return this[e]=i,i}BACKTRACK(e,r){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,r),!0}catch(a){if(U4(a))return!1;throw a}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return r3e(bi(this.gastProductionsCache))}},k(Lv,"RecognizerApi"),Lv),Mv,U5t=(Mv=class{initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=z4,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Mr(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(vn(e)){if(Zn(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(vn(e))this.tokensMap=Ho(e,(i,s)=>(i[s.name]=s,i),{});else if(Mr(e,"modes")&&hc(dc(bi(e.modes)),H3e)){const i=dc(bi(e.modes)),s=oV(i);this.tokensMap=Ho(s,(o,l)=>(o[l.name]=l,o),{})}else if(Bl(e))this.tokensMap=es(e);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Oh;const n=Mr(e,"modes")?dc(bi(e.modes)):bi(e),a=hc(n,i=>Zn(i.categoryMatches));this.tokenMatcher=a?z4:k2,A2(bi(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 a=Mr(n,"resyncEnabled")?n.resyncEnabled:Dw.resyncEnabled,i=Mr(n,"recoveryValueFunc")?n.recoveryValueFunc:Dw.recoveryValueFunc,s=this.ruleShortNameIdx<s.call(this)&&o.call(this),"lookAheadFunc")}}else i=e;if(a.call(this)===!0)return i.call(this)}atLeastOneInternal(e,r){const n=this.getKeyForAutomaticLookahead(R$,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let a=this.getLaFuncFromCache(n),i;if(typeof r!="function"){i=r.DEF;const s=r.GATE;if(s!==void 0){const o=a;a=k(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else i=r;if(a.call(this)===!0){let s=this.doSingleRepetition(i);for(;a.call(this)===!0&&s===!0;)s=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,Ra.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],a,R$,e,x5t)}atLeastOneSepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(j5,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){const a=r.DEF,i=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){a.call(this);const o=k(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,o,a,loe],o,j5,e,loe)}else throw this.raiseEarlyExitException(e,Ra.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 a=this.getLaFuncFromCache(n),i;if(typeof r!="function"){i=r.DEF;const o=r.GATE;if(o!==void 0){const l=a;a=k(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else i=r;let s=!0;for(;a.call(this)===!0&&s===!0;)s=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],a,A$,e,T5t,s)}manySepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(N$,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){const a=r.DEF,i=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){a.call(this);const o=k(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,o,a,ooe],o,N$,e,ooe)}}repetitionSepSecondInternal(e,r,n,a,i){for(;n();)this.CONSUME(r),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,a,i],n,j5,e,i)}doSingleRepetition(e){const r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){const n=this.getKeyForAutomaticLookahead(C5e,r),a=vn(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,a);if(s!==void 0)return a[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 R5t(r,e))}}subruleInternal(e,r,n){let a;try{const i=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,a=e.apply(this,i),this.cstPostNonTerminal(a,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),a}catch(i){throw this.subruleInternalError(i,n,e.ruleName)}}subruleInternalError(e,r,n){throw U4(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 a;try{const i=this.LA(1);this.tokenMatcher(i,e)===!0?(this.consumeToken(),a=i):this.consumeInternalError(e,i,n)}catch(i){a=this.consumeInternalRecovery(e,r,i)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,a),a}consumeInternalError(e,r,n){let a;const i=this.LA(0);throw n!==void 0&&n.ERR_MSG?a=n.ERR_MSG:a=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new S5e(a,r,i))}consumeInternalRecovery(e,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){const a=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,a)}catch(i){throw i.name===T5e?n:i}}else throw n}saveRecogState(){const e=this.errors,r=es(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),Oh)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},k(Mv,"RecognizerEngine"),Mv),Pv,U5t=(Pv=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Mr(e,"errorMessageProvider")?e.errorMessageProvider:G0.errorMessageProvider}SAVE_ERROR(e){if(U4(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:es(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return es(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,r,n){const a=this.getCurrRuleFullName(),i=this.getGAstProductions()[a],o=ux(e,i,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:a});throw this.SAVE_ERROR(new N5t(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){const n=this.getCurrRuleFullName(),a=this.getGAstProductions()[n],i=cx(e,a,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:i,actual:s,previous:o,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new A5t(l,this.LA(1),o))}},k(Pv,"ErrorHandler"),Pv),Bv,G5t=(Bv=class{initContentAssist(){}computeContentAssist(e,r){const n=this.gastProductionsCache[e];if(z0(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return yV([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const r=yc(e.ruleStack),a=this.getGAstProductions()[r];return new S5t(a,e).startWalking()}},k(Bv,"ContentAssist"),Bv),HA={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(HA);var coe=!0,uoe=Math.pow(2,Qh)-1,M5e=g1({name:"RECORDING_PHASE_TOKEN",pattern:Ys.NA});A2([M5e]);var P5e=lx(M5e,`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(P5e);var q5t={name:`This CSTNode indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Fv,Y5t=(Fv=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,a){return this.consumeInternalRecord(n,e,a)},this[`SUBRULE${r}`]=function(n,a){return this.subruleInternalRecord(n,e,a)},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 Ow}topLevelRuleRecord(e,r){try{const n=new x2({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 a=Mr(n,"resyncEnabled")?n.resyncEnabled:Dw.resyncEnabled,i=Mr(n,"recoveryValueFunc")?n.recoveryValueFunc:Dw.recoveryValueFunc,s=this.ruleShortNameIdx<s.call(this)&&o.call(this),"lookAheadFunc")}}else i=e;if(a.call(this)===!0)return i.call(this)}atLeastOneInternal(e,r){const n=this.getKeyForAutomaticLookahead(R$,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let a=this.getLaFuncFromCache(n),i;if(typeof r!="function"){i=r.DEF;const s=r.GATE;if(s!==void 0){const o=a;a=k(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else i=r;if(a.call(this)===!0){let s=this.doSingleRepetition(i);for(;a.call(this)===!0&&s===!0;)s=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,Ra.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],a,R$,e,C5t)}atLeastOneSepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(j5,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){const a=r.DEF,i=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){a.call(this);const o=k(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,o,a,loe],o,j5,e,loe)}else throw this.raiseEarlyExitException(e,Ra.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 a=this.getLaFuncFromCache(n),i;if(typeof r!="function"){i=r.DEF;const o=r.GATE;if(o!==void 0){const l=a;a=k(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else i=r;let s=!0;for(;a.call(this)===!0&&s===!0;)s=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],a,A$,e,x5t,s)}manySepFirstInternal(e,r){const n=this.getKeyForAutomaticLookahead(N$,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){const a=r.DEF,i=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){a.call(this);const o=k(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,o,a,ooe],o,N$,e,ooe)}}repetitionSepSecondInternal(e,r,n,a,i){for(;n();)this.CONSUME(r),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,a,i],n,j5,e,i)}doSingleRepetition(e){const r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){const n=this.getKeyForAutomaticLookahead(C5e,r),a=vn(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,a);if(s!==void 0)return a[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 N5t(r,e))}}subruleInternal(e,r,n){let a;try{const i=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,a=e.apply(this,i),this.cstPostNonTerminal(a,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),a}catch(i){throw this.subruleInternalError(i,n,e.ruleName)}}subruleInternalError(e,r,n){throw U4(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 a;try{const i=this.LA(1);this.tokenMatcher(i,e)===!0?(this.consumeToken(),a=i):this.consumeInternalError(e,i,n)}catch(i){a=this.consumeInternalRecovery(e,r,i)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,a),a}consumeInternalError(e,r,n){let a;const i=this.LA(0);throw n!==void 0&&n.ERR_MSG?a=n.ERR_MSG:a=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new S5e(a,r,i))}consumeInternalRecovery(e,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){const a=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,a)}catch(i){throw i.name===T5e?n:i}}else throw n}saveRecogState(){const e=this.errors,r=es(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),Oh)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},k(Mv,"RecognizerEngine"),Mv),Pv,G5t=(Pv=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Mr(e,"errorMessageProvider")?e.errorMessageProvider:G0.errorMessageProvider}SAVE_ERROR(e){if(U4(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:es(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return es(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,r,n){const a=this.getCurrRuleFullName(),i=this.getGAstProductions()[a],o=ux(e,i,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:a});throw this.SAVE_ERROR(new I5t(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){const n=this.getCurrRuleFullName(),a=this.getGAstProductions()[n],i=cx(e,a,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:i,actual:s,previous:o,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new R5t(l,this.LA(1),o))}},k(Pv,"ErrorHandler"),Pv),Bv,q5t=(Bv=class{initContentAssist(){}computeContentAssist(e,r){const n=this.gastProductionsCache[e];if(z0(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return yV([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const r=yc(e.ruleStack),a=this.getGAstProductions()[r];return new T5t(a,e).startWalking()}},k(Bv,"ContentAssist"),Bv),HA={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(HA);var coe=!0,uoe=Math.pow(2,Qh)-1,M5e=g1({name:"RECORDING_PHASE_TOKEN",pattern:Ys.NA});A2([M5e]);var P5e=lx(M5e,`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(P5e);var Y5t={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Fv,H5t=(Fv=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,a){return this.consumeInternalRecord(n,e,a)},this[`SUBRULE${r}`]=function(n,a){return this.subruleInternalRecord(n,e,a)},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 Ow}topLevelRuleRecord(e,r){try{const n=new x2({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 bm.call(this,Ji,e,r)}atLeastOneInternalRecord(e,r){bm.call(this,Jo,r,e)}atLeastOneSepFirstInternalRecord(e,r){bm.call(this,el,r,e,coe)}manyInternalRecord(e,r){bm.call(this,Ba,r,e)}manySepFirstInternalRecord(e,r){bm.call(this,Ao,r,e,coe)}orInternalRecord(e,r){return B5e.call(this,e,r)}subruleInternalRecord(e,r,n){if(G4(r),!e||Mr(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 a=Wp(this.recordingProdStack),i=e.ruleName,s=new Xs({idx:r,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return a.definition.push(s),this.outputCst?q5t:HA}consumeInternalRecord(e,r,n){if(G4(r),!gV(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 a=Wp(this.recordingProdStack),i=e.ruleName,s=new Xs({idx:r,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return a.definition.push(s),this.outputCst?Y5t:HA}consumeInternalRecord(e,r,n){if(G4(r),!gV(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 a=Wp(this.recordingProdStack),i=new ia({idx:r,terminalType:e,label:n?.LABEL});return a.definition.push(i),P5e}},k(Fv,"GastRecorder"),Fv);function bm(t,e,r,n=!1){G4(r);const a=Wp(this.recordingProdStack),i=ld(e)?e:e.DEF,s=new t({definition:[],idx:r});return n&&(s.separator=e.SEP),Mr(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(s),i.call(this),a.definition.push(s),this.recordingProdStack.pop(),HA}k(bm,"recordProd");function B5e(t,e){G4(e);const r=Wp(this.recordingProdStack),n=vn(t)===!1,a=n===!1?t:t.DEF,i=new Ro({definition:[],idx:e,ignoreAmbiguities:n&&t.IGNORE_AMBIGUITIES===!0});Mr(t,"MAX_LOOKAHEAD")&&(i.maxLookahead=t.MAX_LOOKAHEAD);const s=Qxe(a,o=>ld(o.GATE));return i.hasPredicates=s,r.definition.push(i),$r(a,o=>{const l=new Co({definition:[]});i.definition.push(l),Mr(o,"IGNORE_AMBIGUITIES")?l.ignoreAmbiguities=o.IGNORE_AMBIGUITIES:Mr(o,"GATE")&&(l.ignoreAmbiguities=!0),this.recordingProdStack.push(l),o.ALT.call(this),this.recordingProdStack.pop()}),HA}k(B5e,"recordOrProd");function L$(t){return t===0?"":`${t}`}k(L$,"getIdxSuffix");function G4(t){if(t<0||t>uoe){const e=new Error(`Invalid DSL Method idx value: <${t}> - Idx value must be a none negative value smaller than ${uoe+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}k(G4,"assertMethodIdxIsValid");var $v,H5t=($v=class{initPerformanceTracer(e){if(Mr(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=G0.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:a,value:i}=cV(r),s=a>10?console.warn:console.log;return this.traceInitIndent time: ${a}ms`),this.traceInitIndent--,i}else return r()}},k($v,"PerformanceTracer"),$v);function F5e(t,e){e.forEach(r=>{const n=r.prototype;Object.getOwnPropertyNames(n).forEach(a=>{if(a==="constructor")return;const i=Object.getOwnPropertyDescriptor(n,a);i&&(i.get||i.set)?Object.defineProperty(t.prototype,a,i):t.prototype[a]=r.prototype[a]})})}k(F5e,"applyMixins");var Ow=lx(Oh,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Ow);var G0=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Km,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Dw=Object.freeze({recoveryValueFunc:k(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),js;(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"})(js||(js={}));function M$(t=void 0){return function(){return t}}k(M$,"EMPTY_ALT");var Cp,wV=(Cp=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",()=>{uV(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),$r(this.definedRulesNames,a=>{const s=this[a].originalGrammarAction;let o;this.TRACE_INIT(`${a} Rule`,()=>{o=this.topLevelRuleRecord(a,s)}),this.gastProductionsCache[a]=o})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=g5e({rules:bi(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(Zn(n)&&this.skipValidations===!1){const a=m5e({rules:bi(this.gastProductionsCache),tokenTypes:bi(this.tokensMap),errMsgProvider:fp,grammarName:r}),i=r5e({lookaheadStrategy:this.lookaheadStrategy,rules:bi(this.gastProductionsCache),tokenTypes:bi(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(a,i)}}),Zn(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const a=c3e(bi(this.gastProductionsCache));this.resyncFollows=a}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var a,i;(i=(a=this.lookaheadStrategy).initialize)===null||i===void 0||i.call(a,{rules:bi(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(bi(this.gastProductionsCache))})),!Cp.DEFER_DEFINITION_ERRORS_HANDLING&&!Zn(this.definitionErrors))throw e=Sr(this.definitionErrors,a=>a.message),new Error(`Parser Definition Errors detected: + Idx value must be a none negative value smaller than ${uoe+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}k(G4,"assertMethodIdxIsValid");var $v,V5t=($v=class{initPerformanceTracer(e){if(Mr(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=G0.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:a,value:i}=cV(r),s=a>10?console.warn:console.log;return this.traceInitIndent time: ${a}ms`),this.traceInitIndent--,i}else return r()}},k($v,"PerformanceTracer"),$v);function F5e(t,e){e.forEach(r=>{const n=r.prototype;Object.getOwnPropertyNames(n).forEach(a=>{if(a==="constructor")return;const i=Object.getOwnPropertyDescriptor(n,a);i&&(i.get||i.set)?Object.defineProperty(t.prototype,a,i):t.prototype[a]=r.prototype[a]})})}k(F5e,"applyMixins");var Ow=lx(Oh,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Ow);var G0=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Km,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Dw=Object.freeze({recoveryValueFunc:k(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),js;(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"})(js||(js={}));function M$(t=void 0){return function(){return t}}k(M$,"EMPTY_ALT");var Cp,wV=(Cp=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",()=>{uV(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),$r(this.definedRulesNames,a=>{const s=this[a].originalGrammarAction;let o;this.TRACE_INIT(`${a} Rule`,()=>{o=this.topLevelRuleRecord(a,s)}),this.gastProductionsCache[a]=o})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=g5e({rules:bi(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(Zn(n)&&this.skipValidations===!1){const a=m5e({rules:bi(this.gastProductionsCache),tokenTypes:bi(this.tokensMap),errMsgProvider:fp,grammarName:r}),i=r5e({lookaheadStrategy:this.lookaheadStrategy,rules:bi(this.gastProductionsCache),tokenTypes:bi(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(a,i)}}),Zn(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const a=c3e(bi(this.gastProductionsCache));this.resyncFollows=a}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var a,i;(i=(a=this.lookaheadStrategy).initialize)===null||i===void 0||i.call(a,{rules:bi(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(bi(this.gastProductionsCache))})),!Cp.DEFER_DEFINITION_ERRORS_HANDLING&&!Zn(this.definitionErrors))throw e=Sr(this.definitionErrors,a=>a.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),Mr(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=Mr(r,"skipValidations")?r.skipValidations:G0.skipValidations}},k(Cp,"Parser"),Cp);wV.DEFER_DEFINITION_ERRORS_HANDLING=!1;F5e(wV,[O5t,L5t,B5t,F5t,z5t,$5t,U5t,G5t,Y5t,H5t]);var zv,V5t=(zv=class extends wV{constructor(e,r=G0){const n=es(r);n.outputCst=!1,super(e,n)}},k(zv,"EmbeddedActionsParser"),zv);function $5e(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r-1}k(W5e,"listCacheHas");var Z5t=W5e;function K5e(t,e){var r=this.__data__,n=VA(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}k(K5e,"listCacheSet");var J5t=K5e;function Ng(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&i6t?new kCe:void 0;for(i.set(t,e),i.set(e,t);++h-1&&t%1==0&&t-1&&t%1==0&&t<=z6t}k(jCe,"isLength");var RV=jCe,U6t="[object Arguments]",G6t="[object Array]",q6t="[object Boolean]",Y6t="[object Date]",H6t="[object Error]",V6t="[object Function]",W6t="[object Map]",K6t="[object Number]",X6t="[object Object]",j6t="[object RegExp]",Q6t="[object Set]",Z6t="[object String]",J6t="[object WeakMap]",ewt="[object ArrayBuffer]",twt="[object DataView]",rwt="[object Float32Array]",nwt="[object Float64Array]",awt="[object Int8Array]",iwt="[object Int16Array]",swt="[object Int32Array]",owt="[object Uint8Array]",lwt="[object Uint8ClampedArray]",cwt="[object Uint16Array]",uwt="[object Uint32Array]",ra={};ra[rwt]=ra[nwt]=ra[awt]=ra[iwt]=ra[swt]=ra[owt]=ra[lwt]=ra[cwt]=ra[uwt]=!0;ra[U6t]=ra[G6t]=ra[ewt]=ra[q6t]=ra[twt]=ra[Y6t]=ra[H6t]=ra[V6t]=ra[W6t]=ra[K6t]=ra[X6t]=ra[j6t]=ra[Q6t]=ra[Z6t]=ra[J6t]=!1;function QCe(t){return Bb(t)&&RV(t.length)&&!!ra[R2(t)]}k(QCe,"baseIsTypedArray");var dwt=QCe;function ZCe(t){return function(e){return t(e)}}k(ZCe,"baseUnary");var hwt=ZCe,JCe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,OS=JCe&&typeof module=="object"&&module&&!module.nodeType&&module,fwt=OS&&OS.exports===JCe,QL=fwt&&J5e.process,pwt=(function(){try{var t=OS&&OS.require&&OS.require("util").types;return t||QL&&QL.binding&&QL.binding("util")}catch{}})(),boe=pwt,Eoe=boe&&boe.isTypedArray,gwt=Eoe?hwt(Eoe):dwt,NV=gwt,mwt=Object.prototype,vwt=mwt.hasOwnProperty;function e6e(t,e){var r=Qs(t),n=!r&&jA(t),a=!r&&!n&&Lw(t),i=!r&&!n&&!a&&NV(t),s=r||n||a||i,o=s?R6t(t.length,String):[],l=o.length;for(var u in t)(e||vwt.call(t,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XCe(u,l)))&&o.push(u);return o}k(e6e,"arrayLikeKeys");var ywt=e6e,_wt=Object.prototype;function t6e(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||_wt;return t===r}k(t6e,"isPrototype");var r6e=t6e;function n6e(t,e){return function(r){return t(e(r))}}k(n6e,"overArg");var bwt=n6e,Ewt=bwt(Object.keys,Object),Swt=Ewt,Twt=Object.prototype,xwt=Twt.hasOwnProperty;function a6e(t){if(!r6e(t))return Swt(t);var e=[];for(var r in Object(t))xwt.call(t,r)&&r!="constructor"&&e.push(r);return e}k(a6e,"baseKeys");var i6e=a6e;function s6e(t){return t!=null&&RV(t.length)&&!sCe(t)}k(s6e,"isArrayLike");var QA=s6e;function o6e(t){return QA(t)?ywt(t):i6e(t)}k(o6e,"keys");var IV=o6e;function l6e(t){return T6t(t,IV,A6t)}k(l6e,"getAllKeys");var Soe=l6e,Cwt=1,wwt=Object.prototype,kwt=wwt.hasOwnProperty;function c6e(t,e,r,n,a,i){var s=r&Cwt,o=Soe(t),l=o.length,u=Soe(e),d=u.length;if(l!=d&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in e:kwt.call(e,f)))return!1}var p=i.get(t),g=i.get(e);if(p&&g)return p==e&&g==t;var m=!0;i.set(t,e),i.set(e,t);for(var v=s;++h$V(t,e,s));return Mg(t,e,n,r,...a)}k(twe,"alternation");function rwe(t,e,r){const n=xi(t,e,r,{type:Dh});ud(t,n);const a=Mg(t,e,n,r,Zh(t,e,r));return nwe(t,e,r,a)}k(rwe,"option");function Zh(t,e,r){const n=xkt(g0(r.definition,a=>$V(t,e,a)),a=>a!==void 0);return n.length===1?n[0]:n.length===0?void 0:iwe(t,n)}k(Zh,"block");function zV(t,e,r,n,a){const i=n.left,s=n.right,o=xi(t,e,r,{type:Rkt});ud(t,o);const l=xi(t,e,r,{type:W6e});return i.loopback=o,l.loopback=o,t.decisionMap[Xp(e,a?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,Ha(s,o),a===void 0?(Ha(o,i),Ha(o,l)):(Ha(o,l),Ha(o,a.left),Ha(a.right,i)),{left:i,right:l}}k(zV,"plus");function UV(t,e,r,n,a){const i=n.left,s=n.right,o=xi(t,e,r,{type:Akt});ud(t,o);const l=xi(t,e,r,{type:W6e}),u=xi(t,e,r,{type:kkt});return o.loopback=u,l.loopback=u,Ha(o,i),Ha(o,l),Ha(s,u),a!==void 0?(Ha(u,l),Ha(u,a.left),Ha(a.right,i)):Ha(u,o),t.decisionMap[Xp(e,a?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}k(UV,"star");function nwe(t,e,r,n){const a=n.left,i=n.right;return Ha(a,i),t.decisionMap[Xp(e,"Option",r.idx)]=a,n}k(nwe,"optional");function ud(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}k(ud,"defineDecisionState");function Mg(t,e,r,n,...a){const i=xi(t,e,n,{type:wkt,start:r});r.end=i;for(const o of a)o!==void 0?(Ha(r,o.left),Ha(o.right,i)):Ha(r,i);const s={left:r,right:i};return t.decisionMap[Xp(e,awe(n),n.idx)]=r,s}k(Mg,"makeAlts");function awe(t){if(t instanceof Ro)return"Alternation";if(t instanceof Ji)return"Option";if(t instanceof Ba)return"Repetition";if(t instanceof Ao)return"RepetitionWithSeparator";if(t instanceof Jo)return"RepetitionMandatory";if(t instanceof el)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}k(awe,"getProdType");function iwe(t,e){const r=e.length;for(let i=0;ie.alt)}get key(){let e="";for(const r in this.map)e+=r+":";return e}},k(Hv,"ATNConfigSet"),Hv);function GV(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(r=>r.stateNumber.toString()).join("_")}`}k(GV,"getATNConfigKey");function cwe(t,e,r){for(var n=-1,a=t.length;++n0&&r(o)?e>1?qV(o,e-1,r,n,a):BCe(a,o):n||(a[a.length]=o)}return a}k(qV,"baseFlatten");var fwe=qV;function pwe(t,e){return fwe(g0(t,e),1)}k(pwe,"flatMap");var Lkt=pwe;function gwe(t,e,r,n){for(var a=t.length,i=r+(n?1:-1);n?i--:++i-1}k(_we,"arrayIncludes");var $kt=_we;function bwe(t,e,r){for(var n=-1,a=t==null?0:t.length;++n=Hkt){var u=e?null:Ykt(t);if(u)return AV(u);s=!1,a=NCe,l=new kCe}else l=e?[]:o;e:for(;++n{const a=n.toString();let i=r[a];return i!==void 0||(i={atnStartState:t,decision:e,states:{}},r[a]=i),i}}k(Owe,"createDFACache");var Vv,Dwe=(Vv=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=X6e(e.rules),this.dfas=Lwe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:r,rule:n,hasPredicates:a,dynamicTokensEnabled:i}=e,s=this.dfas,o=this.logging,l=Xp(n,"Alternation",r),d=this.atn.decisionMap[l].decision,h=g0(w$({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),f=>g0(f,p=>p[0]));if(U$(h,!1)&&!i){const f=Loe(h,(p,g,m)=>(ZL(g,v=>{v&&(p[v.tokenTypeIdx]=m,ZL(v.categoryMatches,y=>{p[y]=m}))}),p),{});return a?function(p){var g;const m=this.LA(1),v=f[m.tokenTypeIdx];if(p!==void 0&&v!==void 0){const y=(g=p[v])===null||g===void 0?void 0:g.GATE;if(y!==void 0&&y.call(this)===!1)return}return v}:function(){const p=this.LA(1);return f[p.tokenTypeIdx]}}else return a?function(f){const p=new Dwe,g=f===void 0?0:f.length;for(let v=0;vg0(f,p=>p[0]));if(U$(h)&&h[0][0]&&!i){const f=h[0],p=Kkt(f);if(p.length===1&&t7t(p[0].categoryMatches)){const m=p[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===m}}else{const g=Loe(p,(m,v)=>(v!==void 0&&(m[v.tokenTypeIdx]=!0,ZL(v.categoryMatches,y=>{m[y]=!0})),m),{});return function(){const m=this.LA(1);return g[m.tokenTypeIdx]===!0}}}return function(){const f=J5.call(this,s,d,Moe,o);return typeof f=="object"?!1:f===0}}},k(Wv,"LLStarLookaheadStrategy"),Wv);function U$(t,e=!0){const r=new Set;for(const n of t){const a=new Set;for(const i of n){if(i===void 0){if(e)break;return!1}const s=[i.tokenTypeIdx].concat(i.categoryMatches);for(const o of s)if(r.has(o)){if(!a.has(o))return!1}else r.add(o),a.add(o)}}return!0}k(U$,"isLL1Sequence");function Lwe(t){const e=t.decisionStates.length,r=Array(e);for(let n=0;nSp(a)).join(", "),r=t.production.idx===0?"":t.production.idx;let n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${$we(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, + For further details.`);this.skipValidations=Mr(r,"skipValidations")?r.skipValidations:G0.skipValidations}},k(Cp,"Parser"),Cp);wV.DEFER_DEFINITION_ERRORS_HANDLING=!1;F5e(wV,[D5t,M5t,F5t,$5t,U5t,z5t,G5t,q5t,H5t,V5t]);var zv,W5t=(zv=class extends wV{constructor(e,r=G0){const n=es(r);n.outputCst=!1,super(e,n)}},k(zv,"EmbeddedActionsParser"),zv);function $5e(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r-1}k(W5e,"listCacheHas");var J5t=W5e;function K5e(t,e){var r=this.__data__,n=VA(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}k(K5e,"listCacheSet");var eCt=K5e;function Ng(t){var e=-1,r=t==null?0:t.length;for(this.clear();++eo))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var h=-1,f=!0,p=r&s6t?new kCe:void 0;for(i.set(t,e),i.set(e,t);++h-1&&t%1==0&&t-1&&t%1==0&&t<=U6t}k(jCe,"isLength");var RV=jCe,G6t="[object Arguments]",q6t="[object Array]",Y6t="[object Boolean]",H6t="[object Date]",V6t="[object Error]",W6t="[object Function]",K6t="[object Map]",X6t="[object Number]",j6t="[object Object]",Q6t="[object RegExp]",Z6t="[object Set]",J6t="[object String]",ewt="[object WeakMap]",twt="[object ArrayBuffer]",rwt="[object DataView]",nwt="[object Float32Array]",awt="[object Float64Array]",iwt="[object Int8Array]",swt="[object Int16Array]",owt="[object Int32Array]",lwt="[object Uint8Array]",cwt="[object Uint8ClampedArray]",uwt="[object Uint16Array]",dwt="[object Uint32Array]",ra={};ra[nwt]=ra[awt]=ra[iwt]=ra[swt]=ra[owt]=ra[lwt]=ra[cwt]=ra[uwt]=ra[dwt]=!0;ra[G6t]=ra[q6t]=ra[twt]=ra[Y6t]=ra[rwt]=ra[H6t]=ra[V6t]=ra[W6t]=ra[K6t]=ra[X6t]=ra[j6t]=ra[Q6t]=ra[Z6t]=ra[J6t]=ra[ewt]=!1;function QCe(t){return Bb(t)&&RV(t.length)&&!!ra[R2(t)]}k(QCe,"baseIsTypedArray");var hwt=QCe;function ZCe(t){return function(e){return t(e)}}k(ZCe,"baseUnary");var fwt=ZCe,JCe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,OS=JCe&&typeof module=="object"&&module&&!module.nodeType&&module,pwt=OS&&OS.exports===JCe,QL=pwt&&J5e.process,gwt=(function(){try{var t=OS&&OS.require&&OS.require("util").types;return t||QL&&QL.binding&&QL.binding("util")}catch{}})(),boe=gwt,Eoe=boe&&boe.isTypedArray,mwt=Eoe?fwt(Eoe):hwt,NV=mwt,vwt=Object.prototype,ywt=vwt.hasOwnProperty;function e6e(t,e){var r=Qs(t),n=!r&&jA(t),a=!r&&!n&&Lw(t),i=!r&&!n&&!a&&NV(t),s=r||n||a||i,o=s?N6t(t.length,String):[],l=o.length;for(var u in t)(e||ywt.call(t,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||XCe(u,l)))&&o.push(u);return o}k(e6e,"arrayLikeKeys");var _wt=e6e,bwt=Object.prototype;function t6e(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||bwt;return t===r}k(t6e,"isPrototype");var r6e=t6e;function n6e(t,e){return function(r){return t(e(r))}}k(n6e,"overArg");var Ewt=n6e,Swt=Ewt(Object.keys,Object),Twt=Swt,xwt=Object.prototype,Cwt=xwt.hasOwnProperty;function a6e(t){if(!r6e(t))return Twt(t);var e=[];for(var r in Object(t))Cwt.call(t,r)&&r!="constructor"&&e.push(r);return e}k(a6e,"baseKeys");var i6e=a6e;function s6e(t){return t!=null&&RV(t.length)&&!sCe(t)}k(s6e,"isArrayLike");var QA=s6e;function o6e(t){return QA(t)?_wt(t):i6e(t)}k(o6e,"keys");var IV=o6e;function l6e(t){return x6t(t,IV,R6t)}k(l6e,"getAllKeys");var Soe=l6e,wwt=1,kwt=Object.prototype,Awt=kwt.hasOwnProperty;function c6e(t,e,r,n,a,i){var s=r&wwt,o=Soe(t),l=o.length,u=Soe(e),d=u.length;if(l!=d&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in e:Awt.call(e,f)))return!1}var p=i.get(t),g=i.get(e);if(p&&g)return p==e&&g==t;var m=!0;i.set(t,e),i.set(e,t);for(var v=s;++h$V(t,e,s));return Mg(t,e,n,r,...a)}k(twe,"alternation");function rwe(t,e,r){const n=xi(t,e,r,{type:Dh});ud(t,n);const a=Mg(t,e,n,r,Zh(t,e,r));return nwe(t,e,r,a)}k(rwe,"option");function Zh(t,e,r){const n=Ckt(g0(r.definition,a=>$V(t,e,a)),a=>a!==void 0);return n.length===1?n[0]:n.length===0?void 0:iwe(t,n)}k(Zh,"block");function zV(t,e,r,n,a){const i=n.left,s=n.right,o=xi(t,e,r,{type:Nkt});ud(t,o);const l=xi(t,e,r,{type:W6e});return i.loopback=o,l.loopback=o,t.decisionMap[Xp(e,a?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,Ha(s,o),a===void 0?(Ha(o,i),Ha(o,l)):(Ha(o,l),Ha(o,a.left),Ha(a.right,i)),{left:i,right:l}}k(zV,"plus");function UV(t,e,r,n,a){const i=n.left,s=n.right,o=xi(t,e,r,{type:Rkt});ud(t,o);const l=xi(t,e,r,{type:W6e}),u=xi(t,e,r,{type:Akt});return o.loopback=u,l.loopback=u,Ha(o,i),Ha(o,l),Ha(s,u),a!==void 0?(Ha(u,l),Ha(u,a.left),Ha(a.right,i)):Ha(u,o),t.decisionMap[Xp(e,a?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}k(UV,"star");function nwe(t,e,r,n){const a=n.left,i=n.right;return Ha(a,i),t.decisionMap[Xp(e,"Option",r.idx)]=a,n}k(nwe,"optional");function ud(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}k(ud,"defineDecisionState");function Mg(t,e,r,n,...a){const i=xi(t,e,n,{type:kkt,start:r});r.end=i;for(const o of a)o!==void 0?(Ha(r,o.left),Ha(o.right,i)):Ha(r,i);const s={left:r,right:i};return t.decisionMap[Xp(e,awe(n),n.idx)]=r,s}k(Mg,"makeAlts");function awe(t){if(t instanceof Ro)return"Alternation";if(t instanceof Ji)return"Option";if(t instanceof Ba)return"Repetition";if(t instanceof Ao)return"RepetitionWithSeparator";if(t instanceof Jo)return"RepetitionMandatory";if(t instanceof el)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}k(awe,"getProdType");function iwe(t,e){const r=e.length;for(let i=0;ie.alt)}get key(){let e="";for(const r in this.map)e+=r+":";return e}},k(Hv,"ATNConfigSet"),Hv);function GV(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(r=>r.stateNumber.toString()).join("_")}`}k(GV,"getATNConfigKey");function cwe(t,e,r){for(var n=-1,a=t.length;++n0&&r(o)?e>1?qV(o,e-1,r,n,a):BCe(a,o):n||(a[a.length]=o)}return a}k(qV,"baseFlatten");var fwe=qV;function pwe(t,e){return fwe(g0(t,e),1)}k(pwe,"flatMap");var Mkt=pwe;function gwe(t,e,r,n){for(var a=t.length,i=r+(n?1:-1);n?i--:++i-1}k(_we,"arrayIncludes");var zkt=_we;function bwe(t,e,r){for(var n=-1,a=t==null?0:t.length;++n=Vkt){var u=e?null:Hkt(t);if(u)return AV(u);s=!1,a=NCe,l=new kCe}else l=e?[]:o;e:for(;++n{const a=n.toString();let i=r[a];return i!==void 0||(i={atnStartState:t,decision:e,states:{}},r[a]=i),i}}k(Owe,"createDFACache");var Vv,Dwe=(Vv=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=X6e(e.rules),this.dfas=Lwe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:r,rule:n,hasPredicates:a,dynamicTokensEnabled:i}=e,s=this.dfas,o=this.logging,l=Xp(n,"Alternation",r),d=this.atn.decisionMap[l].decision,h=g0(w$({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),f=>g0(f,p=>p[0]));if(U$(h,!1)&&!i){const f=Loe(h,(p,g,m)=>(ZL(g,v=>{v&&(p[v.tokenTypeIdx]=m,ZL(v.categoryMatches,y=>{p[y]=m}))}),p),{});return a?function(p){var g;const m=this.LA(1),v=f[m.tokenTypeIdx];if(p!==void 0&&v!==void 0){const y=(g=p[v])===null||g===void 0?void 0:g.GATE;if(y!==void 0&&y.call(this)===!1)return}return v}:function(){const p=this.LA(1);return f[p.tokenTypeIdx]}}else return a?function(f){const p=new Dwe,g=f===void 0?0:f.length;for(let v=0;vg0(f,p=>p[0]));if(U$(h)&&h[0][0]&&!i){const f=h[0],p=Xkt(f);if(p.length===1&&r7t(p[0].categoryMatches)){const m=p[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===m}}else{const g=Loe(p,(m,v)=>(v!==void 0&&(m[v.tokenTypeIdx]=!0,ZL(v.categoryMatches,y=>{m[y]=!0})),m),{});return function(){const m=this.LA(1);return g[m.tokenTypeIdx]===!0}}}return function(){const f=J5.call(this,s,d,Moe,o);return typeof f=="object"?!1:f===0}}},k(Wv,"LLStarLookaheadStrategy"),Wv);function U$(t,e=!0){const r=new Set;for(const n of t){const a=new Set;for(const i of n){if(i===void 0){if(e)break;return!1}const s=[i.tokenTypeIdx].concat(i.categoryMatches);for(const o of s)if(r.has(o)){if(!a.has(o))return!1}else r.add(o),a.add(o)}}return!0}k(U$,"isLL1Sequence");function Lwe(t){const e=t.decisionStates.length,r=Array(e);for(let n=0;nSp(a)).join(", "),r=t.production.idx===0?"":t.production.idx;let n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${$we(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(Fwe,"buildAmbiguityError");function $we(t){if(t instanceof Xs)return"SUBRULE";if(t instanceof Ji)return"OPTION";if(t instanceof Ro)return"OR";if(t instanceof Jo)return"AT_LEAST_ONE";if(t instanceof el)return"AT_LEAST_ONE_SEP";if(t instanceof Ao)return"MANY_SEP";if(t instanceof Ba)return"MANY";if(t instanceof ia)return"CONSUME";throw Error("non exhaustive match")}k($we,"getProductionDslName");function zwe(t,e,r){const n=Lkt(e.configs.elements,i=>i.state.transitions),a=Wkt(n.filter(i=>i instanceof BV).map(i=>i.tokenType),i=>i.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:a,tokenPath:t}}k(zwe,"buildAdaptivePredictError");function Uwe(t,e){return t.edges[e.tokenTypeIdx]}k(Uwe,"getExistingTargetState");function Gwe(t,e,r){const n=new z$,a=[];for(const s of t.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===dx){a.push(s);continue}const o=s.state.transitions.length;for(let l=0;l0&&!Wwe(i))for(const s of a)i.add(s);return i}k(Gwe,"computeReachSet");function qwe(t,e){if(t instanceof BV&&vV(e,t.tokenType))return t.target}k(qwe,"getReachableTarget");function Ywe(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(Ywe,"getUniqueAlt");function YV(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}k(YV,"newDFAState");function G$(t,e,r,n){return n=HV(t,n),e.edges[r.tokenTypeIdx]=n,n}k(G$,"addDFAEdge");function HV(t,e){if(e===Mw)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(HV,"addDFAState");function Hwe(t){const e=new z$,r=t.transitions.length;for(let n=0;n0){const a=[...t.stack],s={state:a.pop(),alt:t.alt,stack:a};V4(s,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);const n=r.transitions.length;for(let a=0;a1)return!0;return!1}k(Qwe,"hasConflictingAltSet");function Zwe(t){for(const e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}k(Zwe,"hasStateAssociatedWithOneAlt");VT();var Kv,Jwe=(Kv=class{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new WV(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const r=new i8;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){const n=new Pw(e.startOffset,e.image.length,D4(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 i of e){const s=new Pw(i.startOffset,i.image.length,D4(i),i.tokenType,!0);s.root=this.rootNode,r.push(s)}let n=this.current,a=!1;if(n.content.length>0){n.content.push(...r);return}for(;n.container;){const i=n.container.content.indexOf(n);if(i>0){n.container.content.splice(i,0,...r),a=!0;break}n=n.container}a||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(Kv,"CstNodeBuilder"),Kv),Xv,VV=(Xv=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(Xv,"AbstractCstNode"),Xv),jv,Pw=(jv=class extends VV{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,a,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=a,this._length=r,this._range=n}},k(jv,"LeafCstNodeImpl"),jv),Qv,i8=(Qv=class extends VV{constructor(){super(...arguments),this.content=new i7t(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:a}=r;this._rangeCache={start:n.start,end:a.end.line=0;e--){const r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},k(Qv,"CompositeCstNodeImpl"),Qv),wp,i7t=(wp=class extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,wp.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(wp,"CstNodeContainer"),wp),Zv,WV=(Zv=class extends i8{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},k(Zv,"RootCstNodeImpl"),Zv),Bw=Symbol("Datatype");function eC(t){return t.$type===Bw}k(eC,"isDataTypeNode");var Poe="​",eke=k(t=>t.endsWith(Poe)?t:t+Poe,"withRuleSuffix"),Jv,KV=(Jv=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 o7t(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new ake(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(Jv,"AbstractLangiumParser"),Jv),ey,tke=(ey=class extends KV{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Jwe,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 a;Ib(e)&&(a=e.name,this.registerPrecedenceMap(e));const i=this.wrapper.DEFINE_RULE(eke(e.name),this.startImplementation(n,a,r).bind(this));return this.allRules.set(e.name,i),Ks(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){const r=e.name,n=new Map;for(let a=0;a0&&(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 a=>{const i=!this.isRecording()&&e!==void 0;if(i){const s={$type:e};this.stack.push(s),e===Bw?s.value="":r!==void 0&&(s.$infixName=r)}return n(a),i?this.construct():void 0}}extractHiddenTokens(e){const r=this.lexerResult.hidden;if(!r.length)return[];const n=e.startOffset;for(let a=0;an)return r.splice(0,a);return r.splice(0,r.length)}consume(e,r,n){const a=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(a)){const i=this.extractHiddenTokens(a);this.nodeBuilder.addHiddenNodes(i);const s=this.nodeBuilder.buildLeafNode(a,n),{assignment:o,crossRef:l}=this.getAssignment(n),u=this.current;if(o){const d=B0(n)?a.image:this.converter.convert(a.image,s);this.assign(o.operator,o.feature,d,s,l)}else if(eC(u)){let d=a.image;B0(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,a,i){let s;!this.isRecording()&&!n&&(s=this.nodeBuilder.buildCompositeNode(a));let o;try{o=this.wrapper.wrapSubrule(e,r,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&s&&s.length>0&&this.performSubruleAssignment(o,a,s))}}performSubruleAssignment(e,r,n){const{assignment:a,crossRef:i}=this.getAssignment(r);if(a)this.assign(a.operator,a.feature,e,n,i);else if(!a){const s=this.current;if(eC(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 i={$type:e};this.stack.push(i),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)):eC(e)?this.converter.convert(e.value,e.$cstNode):(VY(this.astReflection,e),e)}constructInfix(e,r){const n=e.parts;if(!Array.isArray(n)||n.length===0)return;const a=e.operators;if(!Array.isArray(a)||n.length<2)return n[0];let i=0,s=-1;for(let m=0;ms?(s=y.precedence,i=m):y.precedence===s&&(y.rightAssoc||(i=m))}const o=a.slice(0,i),l=a.slice(i+1),u=n.slice(0,i+1),d=n.slice(i+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:a[i],right:g}}getAssignment(e){if(!this.assignmentMap.has(e)){const r=yg(e,P0);this.assignmentMap.set(e,{assignment:r,crossRef:r&&bg(r.terminal)?r.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,r,n,a,i){const s=this.current;let o;switch(i==="single"&&typeof n=="string"?o=this.linker.buildReference(s,r,a,n):i==="multi"&&typeof n=="string"?o=this.linker.buildMultiReference(s,r,a,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[a,i]of Object.entries(r)){const s=e[a];s===void 0?e[a]=i:Array.isArray(s)&&Array.isArray(i)&&(i.push(...s),e[a]=i)}const n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},k(ey,"LangiumParser"),ey),ty,rke=(ty=class{buildMismatchTokenMessage(e){return Km.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Km.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Km.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Km.buildEarlyExitMessage(e)}},k(ty,"AbstractParserErrorMessageProvider"),ty),ry,XV=(ry=class extends rke{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(ry,"LangiumParserErrorMessageProvider"),ry),ny,nke=(ny=class extends KV{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(eke(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,a,i){this.before(a),this.wrapper.wrapSubrule(e,r,i),this.after(a)}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(ny,"LangiumCompletionParser"),ny),s7t={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new XV},ay,ake=(ay=class extends V5t{constructor(e,r){const n=r&&"maxLookahead"in r;super(e,{...s7t,lookaheadStrategy:n?new xV({maxLookahead:r.maxLookahead}):new a7t({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(ay,"ChevrotainWrapper"),ay),iy,o7t=(iy=class extends ake{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(iy,"ProfilerWrapper"),iy);function s8(t,e,r){return ike({parser:e,tokens:r,ruleNames:new Map},t),e}k(s8,"createParser");function ike(t,e){const r=EA(e,!1),n=Pn(e.rules).filter(Ks).filter(i=>r.has(i));for(const i of n){const s={...t,consume:1,optional:1,subrule:1,many:1,or:1};t.parser.rule(i,Lh(s,i.definition))}const a=Pn(e.rules).filter(Ib).filter(i=>r.has(i));for(const i of a)t.parser.rule(i,ske(t,i))}k(ike,"buildRules");function ske(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($l(r))throw new Error("Cannot use terminal rule in infix expression");const n=e.operators.precedences.flatMap(p=>p.operators),a={$type:"Group",elements:[]},i={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:e.call},s={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(i,s);const l={$container:s,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},u={...i,$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=o8(t,r)),t.parser.subrule(0,f,!1,i,p),t.parser.many(0,{DEF:k(()=>{t.parser.alternatives(0,h),t.parser.subrule(1,f,!1,u,p)},"DEF")})}}k(ske,"buildInfixRule");function Lh(t,e,r=!1){let n;if(B0(e))n=fke(t,e);else if(Nh(e))n=oke(t,e);else if(P0(e))n=Lh(t,e.terminal);else if(bg(e))n=jV(t,e);else if(F0(e))n=lke(t,e);else if(hA(e))n=uke(t,e);else if(mA(e))n=dke(t,e);else if(Eg(e))n=hke(t,e);else if(JY(e)){const a=t.consume++;n=k(()=>t.parser.consume(a,Oh,e),"method")}else throw new yA(e.$cstNode,`Unexpected element type: ${e.$type}`);return QV(t,r?void 0:W4(e),n,e.cardinality)}k(Lh,"buildElement");function oke(t,e){const r=Vp(e);return()=>t.parser.action(r,e)}k(oke,"buildAction");function lke(t,e){const r=e.rule.ref;if(_g(r)){const n=t.subrule++,a=Ks(r)&&r.fragment,i=e.arguments.length>0?cke(r,e.arguments):()=>({});let s;return o=>{s??(s=o8(t,r)),t.parser.subrule(n,s,a,e,i(o))}}else if($l(r)){const n=t.consume++,a=Fw(t,r.name);return()=>t.parser.consume(n,a,e)}else if(r)Xh();else throw new yA(e.$cstNode,`Undefined rule: ${e.rule.$refText}`)}k(lke,"buildRuleCall");function cke(t,e){if(e.some(n=>n.calledByName)){const n=e.map(a=>({parameterName:a.parameter?.ref?.name,predicate:Zl(a.value)}));return a=>{const i={};for(const{parameterName:s,predicate:o}of n)s&&(i[s]=o(a));return i}}else{const n=e.map(a=>Zl(a.value));return a=>{const i={};for(let s=0;se(n)||r(n)}else if(QY(t)){const e=Zl(t.left),r=Zl(t.right);return n=>e(n)&&r(n)}else if(rH(t)){const e=Zl(t.value);return r=>!e(r)}else if(nH(t)){const e=t.parameter.ref.name;return r=>r!==void 0&&r[e]===!0}else if(XY(t)){const e=!!t.true;return()=>e}Xh()}k(Zl,"buildPredicate");function uke(t,e){if(e.elements.length===1)return Lh(t,e.elements[0]);{const r=[];for(const a of e.elements){const i={ALT:Lh(t,a,!0)},s=W4(a);s&&(i.GATE=Zl(s)),r.push(i)}const n=t.or++;return a=>t.parser.alternatives(n,r.map(i=>{const s={ALT:k(()=>i.ALT(a),"ALT")},o=i.GATE;return o&&(s.GATE=()=>o(a)),s}))}}k(uke,"buildAlternatives");function dke(t,e){if(e.elements.length===1)return Lh(t,e.elements[0]);const r=[];for(const o of e.elements){const l={ALT:Lh(t,o,!0)},u=W4(o);u&&(l.GATE=Zl(u)),r.push(l)}const n=t.or++,a=k((o,l)=>{const u=l.getRuleStack().join("-");return`uGroup_${o}_${u}`},"idFunc"),i=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=a(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(a(n,h))?.[u],d})),"alternatives"),s=QV(t,W4(e),i,"*");return o=>{s(o),t.parser.isRecording()||t.parser.unorderedGroups.delete(a(n,t.parser))}}k(dke,"buildUnorderedGroup");function hke(t,e){const r=e.elements.map(n=>Lh(t,n));return n=>r.forEach(a=>a(n))}k(hke,"buildGroup");function W4(t){if(Eg(t))return t.guardCondition}k(W4,"getGuardCondition");function jV(t,e,r=e.terminal){if(r)if(F0(r)&&Ks(r.rule.ref)){const n=r.rule.ref,a=t.subrule++;let i;return s=>{i??(i=o8(t,n)),t.parser.subrule(a,i,!1,e,s)}}else if(F0(r)&&$l(r.rule.ref)){const n=t.consume++,a=Fw(t,r.rule.ref.name);return()=>t.parser.consume(n,a,e)}else if(B0(r)){const n=t.consume++,a=Fw(t,r.value);return()=>t.parser.consume(n,a,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 a=CA(e.type.ref)?.terminal;if(!a)throw new Error("Could not find name assignment for type: "+Vp(e.type.ref));return jV(t,e,a)}}k(jV,"buildCrossReference");function fke(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(fke,"buildKeyword");function QV(t,e,r,n){const a=e&&Zl(e);if(!n)if(a){const i=t.or++;return s=>t.parser.alternatives(i,[{ALT:k(()=>r(s),"ALT"),GATE:k(()=>a(s),"GATE")},{ALT:M$(),GATE:k(()=>!a(s),"GATE")}])}else return r;if(n==="*"){const i=t.many++;return s=>t.parser.many(i,{DEF:k(()=>r(s),"DEF"),GATE:a?()=>a(s):void 0})}else if(n==="+"){const i=t.many++;if(a){const s=t.or++;return o=>t.parser.alternatives(s,[{ALT:k(()=>t.parser.atLeastOne(i,{DEF:k(()=>r(o),"DEF")}),"ALT"),GATE:k(()=>a(o),"GATE")},{ALT:M$(),GATE:k(()=>!a(o),"GATE")}])}else return s=>t.parser.atLeastOne(i,{DEF:k(()=>r(s),"DEF")})}else if(n==="?"){const i=t.optional++;return s=>t.parser.optional(i,{DEF:k(()=>r(s),"DEF"),GATE:a?()=>a(s):void 0})}else Xh()}k(QV,"wrap");function o8(t,e){const r=pke(t,e),n=t.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}k(o8,"getRule");function pke(t,e){if(_g(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let r=e,n=r.$container,a=e.$type;for(;!Ks(n);)(Eg(n)||hA(n)||mA(n))&&(a=n.elements.indexOf(r).toString()+":"+a),r=n,n=n.$container;return a=n.name+":"+a,t.ruleNames.set(e,a),a}}k(pke,"getRuleName");function Fw(t,e){const r=t.tokens[e];if(!r)throw new Error(`Token "${e}" not found."`);return r}k(Fw,"getToken");function ZV(t){const e=t.Grammar,r=t.parser.Lexer,n=new nke(t);return s8(e,n,r.definition),n.finalize(),n}k(ZV,"createCompletionParser");function JV(t){const e=eW(t);return e.finalize(),e}k(JV,"createLangiumParser");function eW(t){const e=t.Grammar,r=t.parser.Lexer,n=new tke(t);return s8(e,n,r.definition)}k(eW,"prepareLangiumParser");var sy,l8=(sy=class{constructor(){this.diagnostics=[]}buildTokens(e,r){const n=Pn(EA(e,!1)),a=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,a,r);return i.push(...a),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter($l).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){const r=ZT(e),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,a={name:e.name,PATTERN:n};return typeof n=="function"&&(a.LINE_BREAKS=!0),e.hidden&&(a.GROUP=bA(r)?Ys.SKIPPED:"hidden"),a}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){const r=new RegExp(e,e.flags+"y");return(n,a)=>(r.lastIndex=a,r.exec(n))}buildKeywordTokens(e,r,n){return e.filter(_g).flatMap(a=>od(a).filter(B0)).distinct(a=>a.value).toArray().sort((a,i)=>i.value.length-a.value.length).map(a=>this.buildKeywordToken(a,r,!!n?.caseInsensitive))}buildKeywordToken(e,r,n){const a=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:a,LONGER_ALT:this.findLongerAlt(e,r)};return typeof a=="function"&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,r){return r?new RegExp(T2(e.value),"i"):e.value}findLongerAlt(e,r){return r.reduce((n,a)=>{const i=a?.PATTERN;return i?.source&&CH("^"+i.source+"$",e.value)&&n.push(a),n},[])}},k(sy,"DefaultTokenBuilder"),sy),oy,tW=(oy=class{convert(e,r){let n=r.grammarSource;if(bg(n)&&(n=NH(n)),F0(n)){const a=n.rule.ref;if(!a)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(a,e,r)}return e}runConverter(e,r,n){switch(e.name.toUpperCase()){case"INT":return Fc.convertInt(r);case"STRING":return Fc.convertString(r);case"ID":return Fc.convertID(r)}switch($H(e)?.toLowerCase()){case"number":return Fc.convertNumber(r);case"boolean":return Fc.convertBoolean(r);case"bigint":return Fc.convertBigint(r);case"date":return Fc.convertDate(r);default:return r}}},k(oy,"DefaultValueConverter"),oy),Fc;(function(t){function e(u){let d="";for(let h=1;h{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}k(c8,"delayNextTick");var tC=0,gke=10;function u8(){return tC=performance.now(),new jn.CancellationTokenSource}k(u8,"startCancelableOperation");function rW(t){gke=t}k(rW,"setInterruptionPeriod");var eu=Symbol("OperationCancelled");function Pg(t){return t===eu}k(Pg,"isOperationCancelled");async function Pi(t){if(t===jn.CancellationToken.None)return;const e=performance.now();if(e-tC>=gke&&(tC=e,await c8(),tC=performance.now()),t.isCancellationRequested)throw eu}k(Pi,"interruptAndCheck");var ly,q0=(ly=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>(e(n),this),this.reject=n=>(r(n),this)})}},k(ly,"Deferred"),ly),rh,Boe=(rh=class{constructor(e,r,n,a){this._uri=e,this._languageId=r,this._version=n,this._content=a,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(rh.isIncremental(n)){const a=aW(n.range),i=this.offsetAt(a.start),s=this.offsetAt(a.end);this._content=this._content.substring(0,i)+n.text+this._content.substring(s,this._content.length);const o=Math.max(a.start.line,0),l=Math.max(a.end.line,0);let u=this._lineOffsets;const d=q$(n.text,!1,i);if(l-o===d.length)for(let f=0,p=d.length;fe?a=s:n=s+1}const i=n-1;return e=this.ensureBeforeEOL(e,r[i]),{line:i,character:e-r[i]}}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 a=e.line+1r&&nW(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(rh,"FullTextDocument"),rh),$w;(function(t){function e(a,i,s,o){return new Boe(a,i,s,o)}k(e,"create"),t.create=e;function r(a,i,s){if(a instanceof Boe)return a.update(i,s),a;throw new Error("TextDocument.update: document must be created by TextDocument.create")}k(r,"update"),t.update=r;function n(a,i){const s=a.getText(),o=zw(i.map(mke),(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=a.offsetAt(d.range.start);if(hl&&u.push(s.substring(l,h)),d.newText.length&&u.push(d.newText),l=a.offsetAt(d.range.end)}return u.push(s.substr(l)),u.join("")}k(n,"applyEdits"),t.applyEdits=n})($w||($w={}));function zw(t,e){if(t.length<=1)return t;const r=t.length/2|0,n=t.slice(0,r),a=t.slice(r);zw(n,e),zw(a,e);let i=0,s=0,o=0;for(;ir.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}k(aW,"getWellformedRange");function mke(t){const e=aW(t.range);return e!==t.range?{newText:t.newText,range:e}:t}k(mke,"getWellformedEdit");var vke;(()=>{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,N){for(var P,z="",B=0,U=-1,G=0,K=0;K<=L.length;++K){if(K2){var Y=z.lastIndexOf("/");if(Y!==z.length-1){Y===-1?(z="",B=0):B=(z=z.slice(0,Y)).length-1-z.lastIndexOf("/"),U=K,G=0;continue}}else if(z.length===2||z.length===1){z="",B=0,U=K,G=0;continue}}N&&(z.length>0?z+="/..":z="..",B=2)}else z.length>0?z+="/"+L.slice(U+1,K):z=L.slice(U+1,K),B=K-U-1;U=K,G=0}else P===46&&G!==-1?++G:G=-1}return z}k(I,"r");var D={resolve:k(function(){for(var L,N="",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&&(N=B+"/"+N,P=B.charCodeAt(0)===47)}return N=I(N,!P),P?N.length>0?"/"+N:"/":N.length>0?N:"."},"resolve"),normalize:k(function(L){if(A(L),L.length===0)return".";var N=L.charCodeAt(0)===47,P=L.charCodeAt(L.length-1)===47;return(L=I(L,!N)).length!==0||N||(L="."),L.length>0&&P&&(L+="/"),N?"/"+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,N=0;N0&&(L===void 0?L=P:L+="/"+P)}return L===void 0?".":D.normalize(L)},"join"),relative:k(function(L,N){if(A(L),A(N),L===N||(L=D.resolve(L))===(N=D.resolve(N)))return"";for(var P=1;PK){if(N.charCodeAt(U+ee)===47)return N.slice(U+ee+1);if(ee===0)return N.slice(U+ee)}else B>K&&(L.charCodeAt(P+ee)===47?Y=ee:ee===0&&(Y=0));break}var X=L.charCodeAt(P+ee);if(X!==N.charCodeAt(U+ee))break;X===47&&(Y=ee)}var le="";for(ee=P+Y+1;ee<=z;++ee)ee!==z&&L.charCodeAt(ee)!==47||(le.length===0?le+="..":le+="/..");return le.length>0?le+N.slice(U+Y):(U+=Y,N.charCodeAt(U)===47&&++U,N.slice(U))},"relative"),_makeLong:k(function(L){return L},"_makeLong"),dirname:k(function(L){if(A(L),L.length===0)return".";for(var N=L.charCodeAt(0),P=N===47,z=-1,B=!0,U=L.length-1;U>=1;--U)if((N=L.charCodeAt(U))===47){if(!B){z=U;break}}else B=!1;return z===-1?P?"/":".":P&&z===1?"//":L.slice(0,z)},"dirname"),basename:k(function(L,N){if(N!==void 0&&typeof N!="string")throw new TypeError('"ext" argument must be a string');A(L);var P,z=0,B=-1,U=!0;if(N!==void 0&&N.length>0&&N.length<=L.length){if(N.length===L.length&&N===L)return"";var G=N.length-1,K=-1;for(P=L.length-1;P>=0;--P){var Y=L.charCodeAt(P);if(Y===47){if(!U){z=P+1;break}}else K===-1&&(U=!1,K=P+1),G>=0&&(Y===N.charCodeAt(G)?--G==-1&&(B=P):(G=-1,B=K))}return z===B?B=K:B===-1&&(B=L.length),L.slice(z,B)}for(P=L.length-1;P>=0;--P)if(L.charCodeAt(P)===47){if(!U){z=P+1;break}}else B===-1&&(U=!1,B=P+1);return B===-1?"":L.slice(z,B)},"basename"),extname:k(function(L){A(L);for(var N=-1,P=0,z=-1,B=!0,U=0,G=L.length-1;G>=0;--G){var K=L.charCodeAt(G);if(K!==47)z===-1&&(B=!1,z=G+1),K===46?N===-1?N=G:U!==1&&(U=1):N!==-1&&(U=-1);else if(!B){P=G+1;break}}return N===-1||z===-1||U===0||U===1&&N===z-1&&N===P+1?"":L.slice(N,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(N,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 N={root:"",dir:"",base:"",ext:"",name:""};if(L.length===0)return N;var P,z=L.charCodeAt(0),B=z===47;B?(N.root="/",P=1):P=0;for(var U=-1,G=0,K=-1,Y=!0,ee=L.length-1,X=0;ee>=P;--ee)if((z=L.charCodeAt(ee))!==47)K===-1&&(Y=!1,K=ee+1),z===46?U===-1?U=ee:X!==1&&(X=1):U!==-1&&(X=-1);else if(!Y){G=ee+1;break}return U===-1||K===-1||X===0||X===1&&U===K-1&&U===G+1?K!==-1&&(N.base=N.name=G===0&&B?L.slice(1,K):L.slice(G,K)):(G===0&&B?(N.name=L.slice(1,U),N.base=L.slice(1,K)):(N.name=L.slice(G,U),N.base=L.slice(G,K)),N.ext=L.slice(U,K)),G>0?N.dir=L.slice(0,G-1):B&&(N.dir="/"),N},"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 a;r.r(n),r.d(n,{URI:k(()=>f,"URI"),Utils:k(()=>O,"Utils")}),typeof process=="object"?a=process.platform==="win32":typeof navigator=="object"&&(a=navigator.userAgent.indexOf("Windows")>=0);const i=/^\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&&!i.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,N,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=N||u,l(this,P))}get fsPath(){return b(this,!1)}with(A){if(!A)return this;let{scheme:I,authority:D,path:L,query:N,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),N===void 0?N=this.query:N===null&&(N=u),P===void 0?P=this.fragment:P===null&&(P=u),I===this.scheme&&D===this.authority&&L===this.path&&N===this.query&&P===this.fragment?this:new g(I,D,L,N,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(a&&(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=a?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 v(F,A,I){let D,L=-1;for(let N=0;N=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,N)),L=-1),D!==void 0&&(D+=F.charAt(N));else{D===void 0&&(D=F.substr(0,N));const z=m[P];z!==void 0?(L!==-1&&(D+=encodeURIComponent(F.substring(L,N)),L=-1),D+=z):L===-1&&(L=N)}}return L!==-1&&(D+=encodeURIComponent(F.substring(L))),D!==void 0?D:F}k(v,"m");function y(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,a&&(I=I.replace(/\//g,"\\")),I}k(b,"v");function _(F,A){const I=A?y:v;let D="",{scheme:L,authority:N,path:P,query:z,fragment:B}=F;if(L&&(D+=L,D+=":"),(N||L==="file")&&(D+=d,D+=d),N){let U=N.indexOf("@");if(U!==-1){const G=N.substr(0,U);N=N.substr(U+1),U=G.lastIndexOf(":"),U===-1?D+=I(G,!1,!1):(D+=I(G.substr(0,U),!1,!1),D+=":",D+=I(G.substr(U+1),!1,!0)),D+="@"}N=N.toLowerCase(),U=N.lastIndexOf(":"),U===-1?D+=I(N,!1,!0):(D+=I(N.substr(0,U),!1,!0),D+=N.substr(U))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){const U=P.charCodeAt(1);U>=65&&U<=90&&(P=`/${String.fromCharCode(U+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){const U=P.charCodeAt(0);U>=65&&U<=90&&(P=`${String.fromCharCode(U+32)}:${P.substr(2)}`)}D+=I(P,!0,!1)}return z&&(D+="?",D+=I(z,!1,!1)),B&&(D+="#",D+=A?B:v(B,!1,!1)),D}k(_,"b");function S(F){try{return decodeURIComponent(F)}catch{return F.length>3?F.substr(0,3)+S(F.substr(3)):F}}k(S,"C");const x=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(F){return F.match(x)?F.replace(x,(A=>S(A))):F}k(C,"w");var T=r(975);const w=T.posix||T,R="/";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]!==R&&(D=R+D,L=!0);let N=w.resolve(D,...I);return L&&N[0]===R&&!A.authority&&(N=N.substring(1)),A.with({path:N})},F.dirname=function(A){if(A.path.length===0||A.path===R)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={})),vke=n})();var{URI:Bo,Utils:lE}=vke,Us;(function(t){t.basename=lE.basename,t.dirname=lE.dirname,t.extname=lE.extname,t.joinPath=lE.joinPath,t.resolvePath=lE.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"?Bo.parse(s).path:s.path,u=typeof o=="string"?Bo.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:a.name,uri:Us.joinPath(Bo.parse(r),a.name).toString(),element:a.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const r=this.getNode(Us.normalize(e),!1);return r?this.collectValues(r):[]}getNode(e,r){const n=e.split("/");e.charAt(e.length-1)==="/"&&n.pop();let a=this.root;for(const i of n){let s=a.children.get(i);if(!s)if(r)s={name:i,children:new Map,parent:a},a.children.set(i,s);else return;a=s}return a}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(cy,"UriTrie"),cy),on;(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"})(on||(on={}));var uy,yke=(uy=class{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=jn.CancellationToken.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,r)}fromTextDocument(e,r,n){return r=r??Bo.parse(e.uri),jn.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromString(e,r,n){return jn.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 a=this.parse(e,r,n);return this.createLangiumDocument(a,e,void 0,r)}else if("$model"in r){const a={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(a,e)}else{const a=this.parse(e,r.getText(),n);return this.createLangiumDocument(a,e,r)}}async createAsync(e,r,n){if(typeof r=="string"){const a=await this.parseAsync(e,r,n);return this.createLangiumDocument(a,e,void 0,r)}else{const a=await this.parseAsync(e,r.getText(),n);return this.createLangiumDocument(a,e,r)}}createLangiumDocument(e,r,n,a){let i;if(n)i={parseResult:e,uri:r,state:on.Parsed,references:[],textDocument:n};else{const s=this.createTextDocumentGetter(r,a);i={parseResult:e,uri:r,state:on.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=i,i}async update(e,r){const n=e.parseResult.value.$cstNode?.root.fullText,a=this.textDocuments?.get(e.uri.toString()),i=a?a.getText():await this.fileSystemProvider.readFile(e.uri);if(a)Object.defineProperty(e,"textDocument",{value:a});else{const s=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:s})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,r),e.parseResult.value.$document=e),e.state=on.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 a;return()=>a??(a=$w.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,r??""))}},k(uy,"DefaultLangiumDocumentFactory"),uy),dy,_ke=(dy=class{constructor(e){this.documentTrie=new iW,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return Pn(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(a=>(this.addDocument(a),a));{const a=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(a),a}}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,on.Changed),n}deleteDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&(n.state=on.Changed,this.documentTrie.delete(r)),n}deleteDocuments(e){const r=e.toString(),n=this.documentTrie.findAll(r);for(const a of n)a.state=on.Changed;return this.documentTrie.delete(r),n}},k(dy,"DefaultLangiumDocuments"),dy),Bf=Symbol("RefResolving"),hy,bke=(hy=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=jn.CancellationToken.None){if(this.profiler?.isActive("linking")){const n=this.profiler.createTask("linking",this.languageId);n.start();try{for(const a of uc(e.parseResult.value))await Pi(r),Nb(a).forEach(i=>{const s=`${a.$type}:${i.property}`;n.startSubTask(s);try{this.doLink(i,e)}finally{n.stopSubTask(s)}})}finally{n.stop()}}else for(const n of uc(e.parseResult.value))await Pi(r),Nb(n).forEach(a=>this.doLink(a,e))}doLink(e,r){const n=e.reference;if("_ref"in n&&n._ref===void 0){n._ref=Bf;try{const a=this.getCandidate(e);if(Hf(a))n._ref=a;else{n._nodeDescription=a;const i=this.loadAstNode(a);n._ref=i??this.createLinkingError(e,a)}}catch(a){console.error(`An error occurred while resolving reference to '${n.$refText}':`,a);const i=a.message??String(a);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${i}`}}r.references.push(n)}else if("_items"in n&&n._items===void 0){n._items=Bf;try{const a=this.getCandidates(e),i=[];if(Hf(a))n._linkingError=a;else for(const s of a){const o=this.loadAstNode(s);o&&i.push({ref:o,$nodeDescription:s})}n._items=i}catch(a){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${a}`},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(a=>`${a.documentUri}#${a.path}`).toArray();return n.length>0?n:this.createLinkingError(e)}buildReference(e,r,n,a){const i=this,s={$refNode:n,$refText:a,_ref:void 0,get ref(){if(ti(this._ref))return this._ref;if(qY(this._nodeDescription)){const o=i.loadAstNode(this._nodeDescription);this._ref=o??i.createLinkingError({reference:s,container:e,property:r},this._nodeDescription)}else if(this._ref===void 0){this._ref=Bf;const o=f1(e).$document,l=i.getLinkedNode({reference:s,container:e,property:r});if(l.error&&o&&o.state0))return this._linkingError=i.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(Hf(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=f1(e.container).$document;n&&n.statebg(r)&&r.isMulti)}findDeclarations(e){if(e){const r=LH(e),n=e.astNode;if(r&&n){const a=n[r.feature];if(zs(a)||iu(a))return aw(a);if(Array.isArray(a)){for(const i of a)if((zs(i)||iu(i))&&i.$refNode&&i.$refNode.offset<=e.offset&&i.$refNode.end>=e.end)return aw(i)}}if(n){const a=this.nameProvider.getNameNode(n);if(a&&(a===e||fH(e,a)))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 a of Nb(n))if(iu(a.reference)&&a.reference.items.some(i=>i.ref===e))return a.reference.items.map(i=>i.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 a of r){const i=this.nameProvider.getNameNode(a)??a.$cstNode;i&&n.push(i)}return n}findReferences(e,r){const n=[];r.includeDeclaration&&n.push(...this.getSelfReferences(e));let a=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return r.documentUri&&(a=a.filter(i=>Us.equals(i.sourceUri,r.documentUri))),n.push(...a),Pn(n)}getSelfReferences(e){const r=this.getSelfNodes(e),n=[];for(const a of r){const i=this.nameProvider.getNameNode(a);if(i){const s=cc(a),o=this.nodeLocator.getAstNodePath(a);n.push({sourceUri:s.uri,sourcePath:o,targetUri:s.uri,targetPath:o,segment:Db(i),local:!0})}}return n}},k(py,"DefaultReferences"),py),gy,Y0=(gy=class{constructor(e){if(this.map=new Map,e)for(const[r,n]of e)this.add(r,n)}get size(){return O4.sum(Pn(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 a=n.indexOf(r);if(a>=0)return n.length===1?this.map.delete(e):n.splice(a,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const r=this.map.get(e);return r?Pn(r):kb}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(a=>e(a,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Pn(this.map.entries()).flatMap(([e,r])=>r.map(n=>[e,n]))}keys(){return Pn(this.map.keys())}values(){return Pn(this.map.values()).flat()}entriesGroupedByKey(){return Pn(this.map.entries())}},k(gy,"MultiMap"),gy),my,Uw=(my=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(my,"BiMap"),my),vy,Tke=(vy=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,r=jn.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,r)}async collectExportedSymbolsForNode(e,r,n=KT,a=jn.CancellationToken.None){const i=[];this.addExportedSymbol(e,i,r);for(const s of n(e))await Pi(a),this.addExportedSymbol(s,i,r);return i}addExportedSymbol(e,r,n){const a=this.nameProvider.getName(e);a&&r.push(this.descriptions.createDescription(e,a,n))}async collectLocalSymbols(e,r=jn.CancellationToken.None){const n=e.parseResult.value,a=new Y0;for(const i of od(n))await Pi(r),this.addLocalSymbol(i,e,a);return a}addLocalSymbol(e,r,n){const a=e.$container;if(a){const i=this.nameProvider.getName(e);i&&n.add(a,this.descriptions.createDescription(e,i,r))}}},k(vy,"DefaultScopeComputation"),vy),yy,Y$=(yy=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(a=>a.name.toLowerCase()===r):this.elements.find(a=>a.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(a=>a.name.toLowerCase()===r):this.elements.filter(a=>a.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},k(yy,"StreamScope"),yy),_y,l7t=(_y=class{constructor(e,r,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const a of e){const i=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.set(i,a)}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),a=n?[n]:[];return(this.concatOuterScope||a.length>0)&&this.outerScope?Pn(a).concat(this.outerScope.getElements(e)):Pn(a)}getAllElements(){let e=Pn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},k(_y,"MapScope"),_y),by,xke=(by=class{constructor(e,r,n){this.elements=new Y0,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const a of e){const i=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.add(i,a)}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?Pn(n).concat(this.outerScope.getElements(e)):Pn(n)}getAllElements(){let e=Pn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},k(by,"MultiMapScope"),by),c7t={getElement(){},getElements(){return kb},getAllElements(){return kb}},Ey,d8=(Ey=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(Ey,"DisposableCache"),Ey),Sy,oW=(Sy=class extends d8{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(Sy,"SimpleCache"),Sy),Ty,h8=(Ty=class extends d8{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 a=this.cacheForContext(e);if(a.has(r))return a.get(r);if(n){const i=n();return a.set(r,i),i}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(Ty,"ContextCache"),Ty),xy,Cke=(xy=class extends h8{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,a)=>{for(const i of a)this.clear(i)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,a)=>{const i=n.concat(a);for(const s of i)this.clear(s)}))}},k(xy,"DocumentCache"),xy),Cy,lW=(Cy=class extends oW{constructor(e,r){super(),r?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,a)=>{a.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},k(Cy,"WorkspaceCache"),Cy),wy,wke=(wy=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 lW(e.shared)}getScope(e){const r=[],n=this.reflection.getReferenceType(e),a=cc(e.container).localSymbols;if(a){let s=e.container;do a.has(s)&&r.push(a.getStream(s).filter(o=>this.reflection.isSubtype(o.type,n))),s=s.$container;while(s)}let i=this.getGlobalScope(n,e);for(let s=r.length-1;s>=0;s--)i=this.createScope(r[s],i);return i}createScope(e,r,n){return new Y$(Pn(e),r,n)}createScopeForNodes(e,r,n){const a=Pn(e).map(i=>{const s=this.nameProvider.getName(i);if(s)return this.descriptions.createDescription(i,s)}).nonNullable();return new Y$(a,r,n)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new xke(this.indexManager.allElements(e)))}},k(wy,"DefaultScopeProvider"),wy);function cW(t){return typeof t.$comment=="string"}k(cW,"isAstNodeWithComment");function H$(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}k(H$,"isIntermediateReference");var ky,kke=(ky=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??{},a=r?.replacer,i=k((o,l)=>this.replacer(o,l,n),"defaultReplacer"),s=a?(o,l)=>a(o,l,i):i;try{return this.currentDocument=cc(e),JSON.stringify(e,s,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r){const n=r??{},a=JSON.parse(e);return this.linkNode(a,a,n),a}replacer(e,r,{refText:n,sourceText:a,textRegions:i,comments:s,uriConverter:o}){if(!this.ignoreProperties.has(e))if(zs(r)){const l=r.ref,u=n?r.$refText:void 0;if(l){const d=cc(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(iu(r)){const l=n?r.$refText:void 0,u=[];for(const d of r.items){const h=d.ref,f=cc(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(ti(r)){let l;if(i&&(l=this.addAstNodeRegionWithAssignmentsTo({...r}),(!e||r.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),a&&!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),a=n.assignments={};return Object.keys(e).filter(i=>!i.startsWith("$")).forEach(i=>{const s=OH(e.$cstNode,i).map(r);s.length!==0&&(a[i]=s)}),e}}linkNode(e,r,n,a,i,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,a,i),"An error occurred during validation",a,n)}}async handleException(e,r,n,a){try{await e()}catch(i){if(Pg(i))throw i;console.error(`${r}:`,i),i instanceof Error&&i.stack&&console.error(i.stack);const s=i instanceof Error?i.message:String(i);n("error",`${r}: ${s}`,{node:a})}}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=Pn(this.entries.get(e)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(a=>r.includes(a.category))),n.map(a=>a.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(a,i,s,o)=>{await this.handleException(()=>e.call(n,a,i,s,o),r,i,a)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},k(Ry,"ValidationRegistry"),Ry),Nke=Object.freeze({validateNode:!0,validateChildren:!0}),Ny,Ike=(Ny=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=jn.CancellationToken.None){const a=e.parseResult,i=[];if(await Pi(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(a,i,r),r.stopAfterLexingErrors&&i.some(s=>s.data?.code===yl.LexingError)||(this.processParsingErrors(a,i,r),r.stopAfterParsingErrors&&i.some(s=>s.data?.code===yl.ParsingError))||(this.processLinkingErrors(e,i,r),r.stopAfterLinkingErrors&&i.some(s=>s.data?.code===yl.LinkingError))))return i;try{i.push(...await this.validateAst(a.value,r,n))}catch(s){if(Pg(s))throw s;console.error("An error occurred during validation:",s)}return await Pi(n),i}processLexingErrors(e,r,n){const a=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const i of a){const s=i.severity??"error",o={severity:DS(s),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:dW(s),source:this.getSource()};r.push(o)}}processParsingErrors(e,r,n){for(const a of e.parserErrors){let i;if(isNaN(a.token.startOffset)){if("previousToken"in a){const s=a.previousToken;if(isNaN(s.startOffset)){const o={line:0,character:0};i={start:o,end:o}}else{const o={line:s.endLine-1,character:s.endColumn};i={start:o,end:o}}}}else i=D4(a.token);if(i){const s={severity:DS("error"),range:i,message:a.message,data:pp(yl.ParsingError),source:this.getSource()};r.push(s)}}}processLinkingErrors(e,r,n){for(const a of e.references){const i=a.error;if(i){const s={node:i.info.container,range:a.$refNode?.range,property:i.info.property,index:i.info.index,data:{code:yl.LinkingError,containerType:i.info.container.$type,property:i.info.property,refText:i.info.reference.$refText}};r.push(this.toDiagnostic("error",i.message,s))}}}async validateAst(e,r,n=jn.CancellationToken.None){const a=[],i=k((s,o,l)=>{a.push(this.toDiagnostic(s,o,l))},"acceptor");return await this.validateAstBefore(e,r,i,n),await this.validateAstNodes(e,r,i,n),await this.validateAstAfter(e,r,i,n),a}async validateAstBefore(e,r,n,a=jn.CancellationToken.None){const i=this.validationRegistry.checksBefore;for(const s of i)await Pi(a),await s(e,n,r.categories??[],a)}async validateAstNodes(e,r,n,a=jn.CancellationToken.None){if(this.profiler?.isActive("validating")){const i=this.profiler.createTask("validating",this.languageId);i.start();try{const s=uc(e).iterator();for(const o of s){i.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,a)}finally{i.stopSubTask(o.$type)}l.validateChildren||s.prune()}}finally{i.stop()}}else{const i=uc(e).iterator();for(const s of i){await Pi(a);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,a)}o.validateChildren||i.prune()}}}validateSingleNodeOptions(e,r){return Nke}async validateAstAfter(e,r,n,a=jn.CancellationToken.None){const i=this.validationRegistry.checksAfter;for(const s of i)await Pi(a),await s(e,n,r.categories??[],a)}toDiagnostic(e,r,n){return{message:r,range:uW(n),severity:DS(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(Ny,"DefaultDocumentValidator"),Ny);function uW(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=SA(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=DH(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(uW,"getDiagnosticRange");function DS(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(DS,"toDiagnosticSeverity");function dW(t){switch(t){case"error":return pp(yl.LexingError);case"warning":return pp(yl.LexingWarning);case"info":return pp(yl.LexingInfo);case"hint":return pp(yl.LexingHint);default:throw new Error("Invalid diagnostic severity: "+t)}}k(dW,"toDiagnosticData");var yl;(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"})(yl||(yl={}));var Iy,Oke=(Iy=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,n){const a=n??cc(e);r??(r=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!r)throw new Error(`Node at path ${i} has no name.`);let s;const o=k(()=>s??(s=Db(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return o()},selectionSegment:Db(e.$cstNode),type:e.$type,documentUri:a.uri,path:i}}},k(Iy,"DefaultAstNodeDescriptionProvider"),Iy),Oy,Dke=(Oy=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=jn.CancellationToken.None){const n=[],a=e.parseResult.value;for(const i of uc(a))await Pi(r),Nb(i).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=[];zs(r)&&r.$nodeDescription?n=[r.$nodeDescription]:iu(r)&&(n=r.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));const a=cc(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),s=[],o=Db(r.$refNode);for(const l of n)s.push({sourceUri:a,sourcePath:i,targetUri:l.documentUri,targetPath:l.path,segment:o,local:Us.equals(l.documentUri,a)});return s}},k(Oy,"DefaultReferenceDescriptionProvider"),Oy),Dy,Lke=(Dy=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((a,i)=>{if(!a||i.length===0)return a;const s=i.indexOf(this.indexSeparator);if(s>0){const o=i.substring(0,s),l=parseInt(i.substring(s+1));return a[o]?.[l]}return a[i]},e)}},k(Dy,"DefaultAstNodeLocator"),Dy),f8={};oA(f8,$Y(E2()));var Ly,Mke=(Ly=class{constructor(e){this._ready=new q0,this.onConfigurationSectionUpdateEmitter=new f8.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(a=>({section:this.toSectionName(a.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(r);r.forEach((a,i)=>{this.updateSectionConfiguration(a.section,n[i])})}}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(Ly,"DefaultConfigurationProvider"),Ly),R3=$Y(q2t()),Tp;(function(t){function e(r){return{dispose:k(async()=>await r(),"dispose")}}k(e,"create"),t.create=e})(Tp||(Tp={}));var My,Pke=(My=class{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Y0,this.documentPhaseListeners=new Y0,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=on.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=jn.CancellationToken.None){for(const a of e){const i=a.uri.toString();if(a.state===on.Validated){if(typeof r.validation=="boolean"&&r.validation)this.resetToState(a,on.IndexedReferences);else if(typeof r.validation=="object"){const s=this.findMissingValidationCategories(a,r);s.length>0&&(this.buildState.set(i,{completed:!1,options:{validation:{categories:s}},result:this.buildState.get(i)?.result}),a.state=on.IndexedReferences)}}else this.buildState.delete(i)}this.currentState=on.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,r,n)}async update(e,r,n=jn.CancellationToken.None){this.currentState=on.Changed;const a=[];for(const l of r){const u=this.langiumDocuments.deleteDocuments(l);for(const d of u)a.push(d.uri),this.cleanUpDeleted(d)}const i=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(const l of i){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=on.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,on.Changed)}const s=Pn(i).concat(a).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!s.has(l.uri.toString())&&this.shouldRelink(l,s)).forEach(l=>this.resetToState(l,on.ComputedScopes)),await this.emitUpdate(i,a),await Pi(n);const o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state=1}findMissingValidationCategories(e,r){const n=this.buildState.get(e.uri.toString()),a=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?a:new Set,s=r===void 0||r.validation===!0?a:typeof r.validation=="object"?r.validation.categories??a:[];return Pn(s).filter(o=>!i.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),Tp.create(()=>{const r=this.updateListeners.indexOf(e);r>=0&&this.updateListeners.splice(r,1)})}resetToState(e,r){switch(r){case on.Changed:case on.Parsed:this.indexManager.removeContent(e.uri);case on.IndexedContent:e.localSymbols=void 0;case on.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case on.Linked:this.indexManager.removeReferences(e.uri);case on.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case on.Validated:}e.state>r&&(e.state=r)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=on.Changed}async buildDocuments(e,r,n){this.prepareBuild(e,r),await this.runCancelable(e,on.Parsed,n,s=>this.langiumDocumentFactory.update(s,n)),await this.runCancelable(e,on.IndexedContent,n,s=>this.indexManager.updateContent(s,n)),await this.runCancelable(e,on.ComputedScopes,n,async s=>{const o=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.localSymbols=await o.collectLocalSymbols(s,n)});const a=e.filter(s=>this.shouldLink(s));await this.runCancelable(a,on.Linked,n,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,n)),await this.runCancelable(a,on.IndexedReferences,n,s=>this.indexManager.updateReferences(s,n));const i=e.filter(s=>this.shouldValidate(s)?!0:(this.markAsCompleted(s),!1));await this.runCancelable(i,on.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 a=n.uri.toString(),i=this.buildState.get(a);(!i||i.completed)&&this.buildState.set(a,{completed:!1,options:r,result:i?.result})}}async runCancelable(e,r,n,a){for(const s of e)s.states.state===r);await this.notifyBuildPhase(i,r,n),this.currentState=r}onBuildPhase(e,r){return this.buildPhaseListeners.add(e,r),Tp.create(()=>{this.buildPhaseListeners.delete(e,r)})}onDocumentPhase(e,r){return this.documentPhaseListeners.add(e,r),Tp.create(()=>{this.documentPhaseListeners.delete(e,r)})}waitUntil(e,r,n){let a;return r&&"path"in r?a=r:n=r,n??(n=jn.CancellationToken.None),a?this.awaitDocumentState(e,a,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,r,n){const a=this.langiumDocuments.getDocument(r);if(a){if(a.state>=e)return Promise.resolve(r);if(n.isCancellationRequested)return Promise.reject(eu);if(this.currentState>=e&&e>a.state)return Promise.reject(new R3.ResponseError(R3.LSPErrorCodes.RequestFailed,`Document state of ${r.toString()} is ${on[a.state]}, requiring ${on[e]}, but workspace state is already ${on[this.currentState]}. Returning undefined.`))}else return Promise.reject(new R3.ResponseError(R3.LSPErrorCodes.ServerCancelled,`No document found for URI: ${r.toString()}`));return new Promise((i,s)=>{const o=this.onDocumentPhase(e,u=>{Us.equals(u.uri,r)&&(o.dispose(),l.dispose(),i(u.uri))}),l=n.onCancellationRequested(()=>{o.dispose(),l.dispose(),s(eu)})})}awaitBuilderState(e,r){return this.currentState>=e?Promise.resolve():r.isCancellationRequested?Promise.reject(eu):new Promise((n,a)=>{const i=this.onBuildPhase(e,()=>{i.dispose(),s.dispose(),n()}),s=r.onCancellationRequested(()=>{i.dispose(),s.dispose(),a(eu)})})}async notifyDocumentPhase(e,r,n){const i=this.documentPhaseListeners.get(r).slice();for(const s of i)try{await Pi(n),await s(e,n)}catch(o){if(!Pg(o))throw o}}async notifyBuildPhase(e,r,n){if(e.length===0)return;const i=this.buildPhaseListeners.get(r).slice();for(const s of i)await Pi(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,a=this.getBuildOptions(e),i=typeof a.validation=="object"?{...a.validation}:{};i.categories=this.findMissingValidationCategories(e,a);const s=await n.validateDocument(e,i,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=Pn(o.result.validationChecks).concat(i.categories).distinct().toArray():o.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},k(My,"DefaultDocumentBuilder"),My),Py,Bke=(Py=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new h8,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){const n=cc(e).uri,a=[];return this.referenceIndex.forEach(i=>{i.forEach(s=>{Us.equals(s.targetUri,n)&&s.targetPath===r&&a.push(s)})}),Pn(a)}allElements(e,r){let n=Pn(this.symbolIndex.keys());return r&&(n=n.filter(a=>!r||r.has(a))),n.map(a=>this.getFileDescriptions(a,e)).flat()}getFileDescriptions(e,r){return r?this.symbolByTypeIndex.get(e,r,()=>(this.symbolIndex.get(e)??[]).filter(i=>this.astReflection.isSubtype(i.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=jn.CancellationToken.None){const a=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,r),i=e.uri.toString();this.symbolIndex.set(i,a),this.symbolByTypeIndex.clear(i)}async updateReferences(e,r=jn.CancellationToken.None){const a=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),a)}isAffected(e,r){const n=this.referenceIndex.get(e.uri.toString());return n?n.some(a=>!a.local&&r.has(a.targetUri.toString())):!1}},k(Py,"DefaultIndexManager"),Py),By,Fke=(By=class{constructor(e){this.initialBuildOptions={},this._ready=new q0,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=jn.CancellationToken.None){const n=await this.performStartup(e);await Pi(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 a=[];await Promise.all(e.map(s=>this.getRootFolder(s)).map(async s=>this.traverseFolder(s,a)));const i=Pn(a).distinct(s=>s.toString()).filter(s=>!this.langiumDocuments.hasDocument(s));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),r}async loadWorkspaceDocuments(e,r){await Promise.all(e.map(async n=>{const a=await this.langiumDocuments.getOrCreateDocument(n);r(a)}))}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return Bo.parse(e.uri)}async traverseFolder(e,r){try{const n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async a=>{this.shouldIncludeEntry(a)&&(a.isDirectory?await this.traverseFolder(a.uri,r):a.isFile&&r.push(a.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=Us.basename(e.uri);return r.startsWith(".")?!1:e.isDirectory?r!=="node_modules"&&r!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},k(By,"DefaultWorkspaceManager"),By),Fy,$ke=(Fy=class{buildUnexpectedCharactersMessage(e,r,n,a,i){return C$.buildUnexpectedCharactersMessage(e,r,n,a,i)}buildUnableToPopLexerModeMessage(e){return C$.buildUnableToPopLexerModeMessage(e)}},k(Fy,"DefaultLexerErrorMessageProvider"),Fy),hW={mode:"full"},$y,fW=($y=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=qw(r)?Object.values(r):r,a=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new Ys(n,{positionTracking:"full",skipValidations:a,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,r=hW){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(qw(e))return e;const r=g8(e)?Object.values(e.modes).flat():e,n={};return r.forEach(a=>n[a.name]=a),n}},k($y,"DefaultLexer"),$y);function p8(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}k(p8,"isTokenTypeArray");function g8(t){return t&&"modes"in t&&"defaultMode"in t}k(g8,"isIMultiModeLexerDefinition");function qw(t){return!p8(t)&&!g8(t)}k(qw,"isTokenTypeDictionary");VT();function pW(t,e,r){let n,a;typeof t=="string"?(a=e,n=r):(a=t.range.start,n=e),a||(a=Cn.create(0,0));const i=mW(t),s=m8(n),o=zke({lines:i,position:a,options:s});return qke({index:0,tokens:o,position:a})}k(pW,"parseJSDoc");function gW(t,e){const r=m8(e),n=mW(t);if(n.length===0)return!1;const a=n[0],i=n[n.length-1],s=r.start,o=r.end;return!!s?.exec(a)&&!!o?.exec(i)}k(gW,"isJSDoc");function mW(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(qEe)}k(mW,"getLines");var Foe=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,u7t=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function zke(t){const e=[];let r=t.position.line,n=t.position.character;for(let a=0;a=o.length){if(e.length>0){const d=Cn.create(r,n);e.push({type:"break",content:"",range:hn.create(d,d)})}}else{Foe.lastIndex=l;const d=Foe.exec(o);if(d){const h=d[0],f=d[1],p=Cn.create(r,n+l),g=Cn.create(r,n+l+h.length);e.push({type:"tag",content:f,range:hn.create(p,g)}),l+=h.length,l=Yw(o,l)}if(l0&&e[e.length-1].type==="break"?e.slice(0,-1):e}k(zke,"tokenize");function Uke(t,e,r,n){const a=[];if(t.length===0){const i=Cn.create(r,n),s=Cn.create(r,n+e.length);a.push({type:"text",content:e,range:hn.create(i,s)})}else{let i=0;for(const o of t){const l=o.index,u=e.substring(i,l);u.length>0&&a.push({type:"text",content:e.substring(i,l),range:hn.create(Cn.create(r,i+n),Cn.create(r,l+n))});let d=u.length+1;const h=o[1];if(a.push({type:"inline-tag",content:h,range:hn.create(Cn.create(r,i+d+n),Cn.create(r,i+d+h.length+n))}),d+=h.length,o.length===4){d+=o[2].length;const f=o[3];a.push({type:"text",content:f,range:hn.create(Cn.create(r,i+d+n),Cn.create(r,i+d+f.length+n))})}else a.push({type:"text",content:"",range:hn.create(Cn.create(r,i+d+n),Cn.create(r,i+d+n))});i=l+o[0].length}const s=e.substring(i);s.length>0&&a.push({type:"text",content:s,range:hn.create(Cn.create(r,i+n),Cn.create(r,i+n+s.length))})}return a}k(Uke,"buildInlineTokens");var d7t=/\S/,h7t=/\s*$/;function Yw(t,e){const r=t.substring(e).match(d7t);return r?e+r.index:t.length}k(Yw,"skipWhitespace");function Gke(t){const e=t.match(h7t);if(e&&typeof e.index=="number")return e.index}k(Gke,"lastCharacter");function qke(t){const e=Cn.create(t.position.line,t.position.character);if(t.tokens.length===0)return new $oe([],hn.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+=W$(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 a=n.toMarkdown(e);r+=W$(r)+a}return r.trim()}},k(zy,"JSDocCommentImpl"),zy),Uy,JL=(Uy=class{constructor(e,r,n,a){this.name=e,this.content=r,this.inline=n,this.range=a}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(Fwe,"buildAmbiguityError");function $we(t){if(t instanceof Xs)return"SUBRULE";if(t instanceof Ji)return"OPTION";if(t instanceof Ro)return"OR";if(t instanceof Jo)return"AT_LEAST_ONE";if(t instanceof el)return"AT_LEAST_ONE_SEP";if(t instanceof Ao)return"MANY_SEP";if(t instanceof Ba)return"MANY";if(t instanceof ia)return"CONSUME";throw Error("non exhaustive match")}k($we,"getProductionDslName");function zwe(t,e,r){const n=Mkt(e.configs.elements,i=>i.state.transitions),a=Kkt(n.filter(i=>i instanceof BV).map(i=>i.tokenType),i=>i.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:a,tokenPath:t}}k(zwe,"buildAdaptivePredictError");function Uwe(t,e){return t.edges[e.tokenTypeIdx]}k(Uwe,"getExistingTargetState");function Gwe(t,e,r){const n=new z$,a=[];for(const s of t.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===dx){a.push(s);continue}const o=s.state.transitions.length;for(let l=0;l0&&!Wwe(i))for(const s of a)i.add(s);return i}k(Gwe,"computeReachSet");function qwe(t,e){if(t instanceof BV&&vV(e,t.tokenType))return t.target}k(qwe,"getReachableTarget");function Ywe(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(Ywe,"getUniqueAlt");function YV(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}k(YV,"newDFAState");function G$(t,e,r,n){return n=HV(t,n),e.edges[r.tokenTypeIdx]=n,n}k(G$,"addDFAEdge");function HV(t,e){if(e===Mw)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(HV,"addDFAState");function Hwe(t){const e=new z$,r=t.transitions.length;for(let n=0;n0){const a=[...t.stack],s={state:a.pop(),alt:t.alt,stack:a};V4(s,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);const n=r.transitions.length;for(let a=0;a1)return!0;return!1}k(Qwe,"hasConflictingAltSet");function Zwe(t){for(const e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}k(Zwe,"hasStateAssociatedWithOneAlt");VT();var Kv,Jwe=(Kv=class{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new WV(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const r=new i8;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){const n=new Pw(e.startOffset,e.image.length,D4(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 i of e){const s=new Pw(i.startOffset,i.image.length,D4(i),i.tokenType,!0);s.root=this.rootNode,r.push(s)}let n=this.current,a=!1;if(n.content.length>0){n.content.push(...r);return}for(;n.container;){const i=n.container.content.indexOf(n);if(i>0){n.container.content.splice(i,0,...r),a=!0;break}n=n.container}a||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(Kv,"CstNodeBuilder"),Kv),Xv,VV=(Xv=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(Xv,"AbstractCstNode"),Xv),jv,Pw=(jv=class extends VV{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,a,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=a,this._length=r,this._range=n}},k(jv,"LeafCstNodeImpl"),jv),Qv,i8=(Qv=class extends VV{constructor(){super(...arguments),this.content=new s7t(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:a}=r;this._rangeCache={start:n.start,end:a.end.line=0;e--){const r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},k(Qv,"CompositeCstNodeImpl"),Qv),wp,s7t=(wp=class extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,wp.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(wp,"CstNodeContainer"),wp),Zv,WV=(Zv=class extends i8{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},k(Zv,"RootCstNodeImpl"),Zv),Bw=Symbol("Datatype");function eC(t){return t.$type===Bw}k(eC,"isDataTypeNode");var Poe="​",eke=k(t=>t.endsWith(Poe)?t:t+Poe,"withRuleSuffix"),Jv,KV=(Jv=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 l7t(r,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new ake(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(Jv,"AbstractLangiumParser"),Jv),ey,tke=(ey=class extends KV{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Jwe,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 a;Ib(e)&&(a=e.name,this.registerPrecedenceMap(e));const i=this.wrapper.DEFINE_RULE(eke(e.name),this.startImplementation(n,a,r).bind(this));return this.allRules.set(e.name,i),Ks(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){const r=e.name,n=new Map;for(let a=0;a0&&(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 a=>{const i=!this.isRecording()&&e!==void 0;if(i){const s={$type:e};this.stack.push(s),e===Bw?s.value="":r!==void 0&&(s.$infixName=r)}return n(a),i?this.construct():void 0}}extractHiddenTokens(e){const r=this.lexerResult.hidden;if(!r.length)return[];const n=e.startOffset;for(let a=0;an)return r.splice(0,a);return r.splice(0,r.length)}consume(e,r,n){const a=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(a)){const i=this.extractHiddenTokens(a);this.nodeBuilder.addHiddenNodes(i);const s=this.nodeBuilder.buildLeafNode(a,n),{assignment:o,crossRef:l}=this.getAssignment(n),u=this.current;if(o){const d=B0(n)?a.image:this.converter.convert(a.image,s);this.assign(o.operator,o.feature,d,s,l)}else if(eC(u)){let d=a.image;B0(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,a,i){let s;!this.isRecording()&&!n&&(s=this.nodeBuilder.buildCompositeNode(a));let o;try{o=this.wrapper.wrapSubrule(e,r,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&s&&s.length>0&&this.performSubruleAssignment(o,a,s))}}performSubruleAssignment(e,r,n){const{assignment:a,crossRef:i}=this.getAssignment(r);if(a)this.assign(a.operator,a.feature,e,n,i);else if(!a){const s=this.current;if(eC(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 i={$type:e};this.stack.push(i),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)):eC(e)?this.converter.convert(e.value,e.$cstNode):(VY(this.astReflection,e),e)}constructInfix(e,r){const n=e.parts;if(!Array.isArray(n)||n.length===0)return;const a=e.operators;if(!Array.isArray(a)||n.length<2)return n[0];let i=0,s=-1;for(let m=0;ms?(s=y.precedence,i=m):y.precedence===s&&(y.rightAssoc||(i=m))}const o=a.slice(0,i),l=a.slice(i+1),u=n.slice(0,i+1),d=n.slice(i+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:a[i],right:g}}getAssignment(e){if(!this.assignmentMap.has(e)){const r=yg(e,P0);this.assignmentMap.set(e,{assignment:r,crossRef:r&&bg(r.terminal)?r.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,r,n,a,i){const s=this.current;let o;switch(i==="single"&&typeof n=="string"?o=this.linker.buildReference(s,r,a,n):i==="multi"&&typeof n=="string"?o=this.linker.buildMultiReference(s,r,a,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[a,i]of Object.entries(r)){const s=e[a];s===void 0?e[a]=i:Array.isArray(s)&&Array.isArray(i)&&(i.push(...s),e[a]=i)}const n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},k(ey,"LangiumParser"),ey),ty,rke=(ty=class{buildMismatchTokenMessage(e){return Km.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Km.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Km.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Km.buildEarlyExitMessage(e)}},k(ty,"AbstractParserErrorMessageProvider"),ty),ry,XV=(ry=class extends rke{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(ry,"LangiumParserErrorMessageProvider"),ry),ny,nke=(ny=class extends KV{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(eke(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,a,i){this.before(a),this.wrapper.wrapSubrule(e,r,i),this.after(a)}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(ny,"LangiumCompletionParser"),ny),o7t={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new XV},ay,ake=(ay=class extends W5t{constructor(e,r){const n=r&&"maxLookahead"in r;super(e,{...o7t,lookaheadStrategy:n?new xV({maxLookahead:r.maxLookahead}):new i7t({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(ay,"ChevrotainWrapper"),ay),iy,l7t=(iy=class extends ake{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(iy,"ProfilerWrapper"),iy);function s8(t,e,r){return ike({parser:e,tokens:r,ruleNames:new Map},t),e}k(s8,"createParser");function ike(t,e){const r=EA(e,!1),n=Pn(e.rules).filter(Ks).filter(i=>r.has(i));for(const i of n){const s={...t,consume:1,optional:1,subrule:1,many:1,or:1};t.parser.rule(i,Lh(s,i.definition))}const a=Pn(e.rules).filter(Ib).filter(i=>r.has(i));for(const i of a)t.parser.rule(i,ske(t,i))}k(ike,"buildRules");function ske(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($l(r))throw new Error("Cannot use terminal rule in infix expression");const n=e.operators.precedences.flatMap(p=>p.operators),a={$type:"Group",elements:[]},i={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:e.call},s={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(i,s);const l={$container:s,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},u={...i,$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=o8(t,r)),t.parser.subrule(0,f,!1,i,p),t.parser.many(0,{DEF:k(()=>{t.parser.alternatives(0,h),t.parser.subrule(1,f,!1,u,p)},"DEF")})}}k(ske,"buildInfixRule");function Lh(t,e,r=!1){let n;if(B0(e))n=fke(t,e);else if(Nh(e))n=oke(t,e);else if(P0(e))n=Lh(t,e.terminal);else if(bg(e))n=jV(t,e);else if(F0(e))n=lke(t,e);else if(hA(e))n=uke(t,e);else if(mA(e))n=dke(t,e);else if(Eg(e))n=hke(t,e);else if(JY(e)){const a=t.consume++;n=k(()=>t.parser.consume(a,Oh,e),"method")}else throw new yA(e.$cstNode,`Unexpected element type: ${e.$type}`);return QV(t,r?void 0:W4(e),n,e.cardinality)}k(Lh,"buildElement");function oke(t,e){const r=Vp(e);return()=>t.parser.action(r,e)}k(oke,"buildAction");function lke(t,e){const r=e.rule.ref;if(_g(r)){const n=t.subrule++,a=Ks(r)&&r.fragment,i=e.arguments.length>0?cke(r,e.arguments):()=>({});let s;return o=>{s??(s=o8(t,r)),t.parser.subrule(n,s,a,e,i(o))}}else if($l(r)){const n=t.consume++,a=Fw(t,r.name);return()=>t.parser.consume(n,a,e)}else if(r)Xh();else throw new yA(e.$cstNode,`Undefined rule: ${e.rule.$refText}`)}k(lke,"buildRuleCall");function cke(t,e){if(e.some(n=>n.calledByName)){const n=e.map(a=>({parameterName:a.parameter?.ref?.name,predicate:Zl(a.value)}));return a=>{const i={};for(const{parameterName:s,predicate:o}of n)s&&(i[s]=o(a));return i}}else{const n=e.map(a=>Zl(a.value));return a=>{const i={};for(let s=0;se(n)||r(n)}else if(QY(t)){const e=Zl(t.left),r=Zl(t.right);return n=>e(n)&&r(n)}else if(rH(t)){const e=Zl(t.value);return r=>!e(r)}else if(nH(t)){const e=t.parameter.ref.name;return r=>r!==void 0&&r[e]===!0}else if(XY(t)){const e=!!t.true;return()=>e}Xh()}k(Zl,"buildPredicate");function uke(t,e){if(e.elements.length===1)return Lh(t,e.elements[0]);{const r=[];for(const a of e.elements){const i={ALT:Lh(t,a,!0)},s=W4(a);s&&(i.GATE=Zl(s)),r.push(i)}const n=t.or++;return a=>t.parser.alternatives(n,r.map(i=>{const s={ALT:k(()=>i.ALT(a),"ALT")},o=i.GATE;return o&&(s.GATE=()=>o(a)),s}))}}k(uke,"buildAlternatives");function dke(t,e){if(e.elements.length===1)return Lh(t,e.elements[0]);const r=[];for(const o of e.elements){const l={ALT:Lh(t,o,!0)},u=W4(o);u&&(l.GATE=Zl(u)),r.push(l)}const n=t.or++,a=k((o,l)=>{const u=l.getRuleStack().join("-");return`uGroup_${o}_${u}`},"idFunc"),i=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=a(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(a(n,h))?.[u],d})),"alternatives"),s=QV(t,W4(e),i,"*");return o=>{s(o),t.parser.isRecording()||t.parser.unorderedGroups.delete(a(n,t.parser))}}k(dke,"buildUnorderedGroup");function hke(t,e){const r=e.elements.map(n=>Lh(t,n));return n=>r.forEach(a=>a(n))}k(hke,"buildGroup");function W4(t){if(Eg(t))return t.guardCondition}k(W4,"getGuardCondition");function jV(t,e,r=e.terminal){if(r)if(F0(r)&&Ks(r.rule.ref)){const n=r.rule.ref,a=t.subrule++;let i;return s=>{i??(i=o8(t,n)),t.parser.subrule(a,i,!1,e,s)}}else if(F0(r)&&$l(r.rule.ref)){const n=t.consume++,a=Fw(t,r.rule.ref.name);return()=>t.parser.consume(n,a,e)}else if(B0(r)){const n=t.consume++,a=Fw(t,r.value);return()=>t.parser.consume(n,a,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 a=CA(e.type.ref)?.terminal;if(!a)throw new Error("Could not find name assignment for type: "+Vp(e.type.ref));return jV(t,e,a)}}k(jV,"buildCrossReference");function fke(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(fke,"buildKeyword");function QV(t,e,r,n){const a=e&&Zl(e);if(!n)if(a){const i=t.or++;return s=>t.parser.alternatives(i,[{ALT:k(()=>r(s),"ALT"),GATE:k(()=>a(s),"GATE")},{ALT:M$(),GATE:k(()=>!a(s),"GATE")}])}else return r;if(n==="*"){const i=t.many++;return s=>t.parser.many(i,{DEF:k(()=>r(s),"DEF"),GATE:a?()=>a(s):void 0})}else if(n==="+"){const i=t.many++;if(a){const s=t.or++;return o=>t.parser.alternatives(s,[{ALT:k(()=>t.parser.atLeastOne(i,{DEF:k(()=>r(o),"DEF")}),"ALT"),GATE:k(()=>a(o),"GATE")},{ALT:M$(),GATE:k(()=>!a(o),"GATE")}])}else return s=>t.parser.atLeastOne(i,{DEF:k(()=>r(s),"DEF")})}else if(n==="?"){const i=t.optional++;return s=>t.parser.optional(i,{DEF:k(()=>r(s),"DEF"),GATE:a?()=>a(s):void 0})}else Xh()}k(QV,"wrap");function o8(t,e){const r=pke(t,e),n=t.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}k(o8,"getRule");function pke(t,e){if(_g(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let r=e,n=r.$container,a=e.$type;for(;!Ks(n);)(Eg(n)||hA(n)||mA(n))&&(a=n.elements.indexOf(r).toString()+":"+a),r=n,n=n.$container;return a=n.name+":"+a,t.ruleNames.set(e,a),a}}k(pke,"getRuleName");function Fw(t,e){const r=t.tokens[e];if(!r)throw new Error(`Token "${e}" not found."`);return r}k(Fw,"getToken");function ZV(t){const e=t.Grammar,r=t.parser.Lexer,n=new nke(t);return s8(e,n,r.definition),n.finalize(),n}k(ZV,"createCompletionParser");function JV(t){const e=eW(t);return e.finalize(),e}k(JV,"createLangiumParser");function eW(t){const e=t.Grammar,r=t.parser.Lexer,n=new tke(t);return s8(e,n,r.definition)}k(eW,"prepareLangiumParser");var sy,l8=(sy=class{constructor(){this.diagnostics=[]}buildTokens(e,r){const n=Pn(EA(e,!1)),a=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,a,r);return i.push(...a),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter($l).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){const r=ZT(e),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,a={name:e.name,PATTERN:n};return typeof n=="function"&&(a.LINE_BREAKS=!0),e.hidden&&(a.GROUP=bA(r)?Ys.SKIPPED:"hidden"),a}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){const r=new RegExp(e,e.flags+"y");return(n,a)=>(r.lastIndex=a,r.exec(n))}buildKeywordTokens(e,r,n){return e.filter(_g).flatMap(a=>od(a).filter(B0)).distinct(a=>a.value).toArray().sort((a,i)=>i.value.length-a.value.length).map(a=>this.buildKeywordToken(a,r,!!n?.caseInsensitive))}buildKeywordToken(e,r,n){const a=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:a,LONGER_ALT:this.findLongerAlt(e,r)};return typeof a=="function"&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,r){return r?new RegExp(T2(e.value),"i"):e.value}findLongerAlt(e,r){return r.reduce((n,a)=>{const i=a?.PATTERN;return i?.source&&CH("^"+i.source+"$",e.value)&&n.push(a),n},[])}},k(sy,"DefaultTokenBuilder"),sy),oy,tW=(oy=class{convert(e,r){let n=r.grammarSource;if(bg(n)&&(n=NH(n)),F0(n)){const a=n.rule.ref;if(!a)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(a,e,r)}return e}runConverter(e,r,n){switch(e.name.toUpperCase()){case"INT":return Fc.convertInt(r);case"STRING":return Fc.convertString(r);case"ID":return Fc.convertID(r)}switch($H(e)?.toLowerCase()){case"number":return Fc.convertNumber(r);case"boolean":return Fc.convertBoolean(r);case"bigint":return Fc.convertBigint(r);case"date":return Fc.convertDate(r);default:return r}}},k(oy,"DefaultValueConverter"),oy),Fc;(function(t){function e(u){let d="";for(let h=1;h{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}k(c8,"delayNextTick");var tC=0,gke=10;function u8(){return tC=performance.now(),new jn.CancellationTokenSource}k(u8,"startCancelableOperation");function rW(t){gke=t}k(rW,"setInterruptionPeriod");var eu=Symbol("OperationCancelled");function Pg(t){return t===eu}k(Pg,"isOperationCancelled");async function Pi(t){if(t===jn.CancellationToken.None)return;const e=performance.now();if(e-tC>=gke&&(tC=e,await c8(),tC=performance.now()),t.isCancellationRequested)throw eu}k(Pi,"interruptAndCheck");var ly,q0=(ly=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>(e(n),this),this.reject=n=>(r(n),this)})}},k(ly,"Deferred"),ly),rh,Boe=(rh=class{constructor(e,r,n,a){this._uri=e,this._languageId=r,this._version=n,this._content=a,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(rh.isIncremental(n)){const a=aW(n.range),i=this.offsetAt(a.start),s=this.offsetAt(a.end);this._content=this._content.substring(0,i)+n.text+this._content.substring(s,this._content.length);const o=Math.max(a.start.line,0),l=Math.max(a.end.line,0);let u=this._lineOffsets;const d=q$(n.text,!1,i);if(l-o===d.length)for(let f=0,p=d.length;fe?a=s:n=s+1}const i=n-1;return e=this.ensureBeforeEOL(e,r[i]),{line:i,character:e-r[i]}}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 a=e.line+1r&&nW(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(rh,"FullTextDocument"),rh),$w;(function(t){function e(a,i,s,o){return new Boe(a,i,s,o)}k(e,"create"),t.create=e;function r(a,i,s){if(a instanceof Boe)return a.update(i,s),a;throw new Error("TextDocument.update: document must be created by TextDocument.create")}k(r,"update"),t.update=r;function n(a,i){const s=a.getText(),o=zw(i.map(mke),(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=a.offsetAt(d.range.start);if(hl&&u.push(s.substring(l,h)),d.newText.length&&u.push(d.newText),l=a.offsetAt(d.range.end)}return u.push(s.substr(l)),u.join("")}k(n,"applyEdits"),t.applyEdits=n})($w||($w={}));function zw(t,e){if(t.length<=1)return t;const r=t.length/2|0,n=t.slice(0,r),a=t.slice(r);zw(n,e),zw(a,e);let i=0,s=0,o=0;for(;ir.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}k(aW,"getWellformedRange");function mke(t){const e=aW(t.range);return e!==t.range?{newText:t.newText,range:e}:t}k(mke,"getWellformedEdit");var vke;(()=>{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,N){for(var P,z="",B=0,U=-1,G=0,K=0;K<=L.length;++K){if(K2){var Y=z.lastIndexOf("/");if(Y!==z.length-1){Y===-1?(z="",B=0):B=(z=z.slice(0,Y)).length-1-z.lastIndexOf("/"),U=K,G=0;continue}}else if(z.length===2||z.length===1){z="",B=0,U=K,G=0;continue}}N&&(z.length>0?z+="/..":z="..",B=2)}else z.length>0?z+="/"+L.slice(U+1,K):z=L.slice(U+1,K),B=K-U-1;U=K,G=0}else P===46&&G!==-1?++G:G=-1}return z}k(I,"r");var D={resolve:k(function(){for(var L,N="",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&&(N=B+"/"+N,P=B.charCodeAt(0)===47)}return N=I(N,!P),P?N.length>0?"/"+N:"/":N.length>0?N:"."},"resolve"),normalize:k(function(L){if(A(L),L.length===0)return".";var N=L.charCodeAt(0)===47,P=L.charCodeAt(L.length-1)===47;return(L=I(L,!N)).length!==0||N||(L="."),L.length>0&&P&&(L+="/"),N?"/"+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,N=0;N0&&(L===void 0?L=P:L+="/"+P)}return L===void 0?".":D.normalize(L)},"join"),relative:k(function(L,N){if(A(L),A(N),L===N||(L=D.resolve(L))===(N=D.resolve(N)))return"";for(var P=1;PK){if(N.charCodeAt(U+ee)===47)return N.slice(U+ee+1);if(ee===0)return N.slice(U+ee)}else B>K&&(L.charCodeAt(P+ee)===47?Y=ee:ee===0&&(Y=0));break}var X=L.charCodeAt(P+ee);if(X!==N.charCodeAt(U+ee))break;X===47&&(Y=ee)}var le="";for(ee=P+Y+1;ee<=z;++ee)ee!==z&&L.charCodeAt(ee)!==47||(le.length===0?le+="..":le+="/..");return le.length>0?le+N.slice(U+Y):(U+=Y,N.charCodeAt(U)===47&&++U,N.slice(U))},"relative"),_makeLong:k(function(L){return L},"_makeLong"),dirname:k(function(L){if(A(L),L.length===0)return".";for(var N=L.charCodeAt(0),P=N===47,z=-1,B=!0,U=L.length-1;U>=1;--U)if((N=L.charCodeAt(U))===47){if(!B){z=U;break}}else B=!1;return z===-1?P?"/":".":P&&z===1?"//":L.slice(0,z)},"dirname"),basename:k(function(L,N){if(N!==void 0&&typeof N!="string")throw new TypeError('"ext" argument must be a string');A(L);var P,z=0,B=-1,U=!0;if(N!==void 0&&N.length>0&&N.length<=L.length){if(N.length===L.length&&N===L)return"";var G=N.length-1,K=-1;for(P=L.length-1;P>=0;--P){var Y=L.charCodeAt(P);if(Y===47){if(!U){z=P+1;break}}else K===-1&&(U=!1,K=P+1),G>=0&&(Y===N.charCodeAt(G)?--G==-1&&(B=P):(G=-1,B=K))}return z===B?B=K:B===-1&&(B=L.length),L.slice(z,B)}for(P=L.length-1;P>=0;--P)if(L.charCodeAt(P)===47){if(!U){z=P+1;break}}else B===-1&&(U=!1,B=P+1);return B===-1?"":L.slice(z,B)},"basename"),extname:k(function(L){A(L);for(var N=-1,P=0,z=-1,B=!0,U=0,G=L.length-1;G>=0;--G){var K=L.charCodeAt(G);if(K!==47)z===-1&&(B=!1,z=G+1),K===46?N===-1?N=G:U!==1&&(U=1):N!==-1&&(U=-1);else if(!B){P=G+1;break}}return N===-1||z===-1||U===0||U===1&&N===z-1&&N===P+1?"":L.slice(N,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(N,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 N={root:"",dir:"",base:"",ext:"",name:""};if(L.length===0)return N;var P,z=L.charCodeAt(0),B=z===47;B?(N.root="/",P=1):P=0;for(var U=-1,G=0,K=-1,Y=!0,ee=L.length-1,X=0;ee>=P;--ee)if((z=L.charCodeAt(ee))!==47)K===-1&&(Y=!1,K=ee+1),z===46?U===-1?U=ee:X!==1&&(X=1):U!==-1&&(X=-1);else if(!Y){G=ee+1;break}return U===-1||K===-1||X===0||X===1&&U===K-1&&U===G+1?K!==-1&&(N.base=N.name=G===0&&B?L.slice(1,K):L.slice(G,K)):(G===0&&B?(N.name=L.slice(1,U),N.base=L.slice(1,K)):(N.name=L.slice(G,U),N.base=L.slice(G,K)),N.ext=L.slice(U,K)),G>0?N.dir=L.slice(0,G-1):B&&(N.dir="/"),N},"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 a;r.r(n),r.d(n,{URI:k(()=>f,"URI"),Utils:k(()=>O,"Utils")}),typeof process=="object"?a=process.platform==="win32":typeof navigator=="object"&&(a=navigator.userAgent.indexOf("Windows")>=0);const i=/^\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&&!i.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,N,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=N||u,l(this,P))}get fsPath(){return b(this,!1)}with(A){if(!A)return this;let{scheme:I,authority:D,path:L,query:N,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),N===void 0?N=this.query:N===null&&(N=u),P===void 0?P=this.fragment:P===null&&(P=u),I===this.scheme&&D===this.authority&&L===this.path&&N===this.query&&P===this.fragment?this:new g(I,D,L,N,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(a&&(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=a?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 v(F,A,I){let D,L=-1;for(let N=0;N=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,N)),L=-1),D!==void 0&&(D+=F.charAt(N));else{D===void 0&&(D=F.substr(0,N));const z=m[P];z!==void 0?(L!==-1&&(D+=encodeURIComponent(F.substring(L,N)),L=-1),D+=z):L===-1&&(L=N)}}return L!==-1&&(D+=encodeURIComponent(F.substring(L))),D!==void 0?D:F}k(v,"m");function y(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,a&&(I=I.replace(/\//g,"\\")),I}k(b,"v");function _(F,A){const I=A?y:v;let D="",{scheme:L,authority:N,path:P,query:z,fragment:B}=F;if(L&&(D+=L,D+=":"),(N||L==="file")&&(D+=d,D+=d),N){let U=N.indexOf("@");if(U!==-1){const G=N.substr(0,U);N=N.substr(U+1),U=G.lastIndexOf(":"),U===-1?D+=I(G,!1,!1):(D+=I(G.substr(0,U),!1,!1),D+=":",D+=I(G.substr(U+1),!1,!0)),D+="@"}N=N.toLowerCase(),U=N.lastIndexOf(":"),U===-1?D+=I(N,!1,!0):(D+=I(N.substr(0,U),!1,!0),D+=N.substr(U))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){const U=P.charCodeAt(1);U>=65&&U<=90&&(P=`/${String.fromCharCode(U+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){const U=P.charCodeAt(0);U>=65&&U<=90&&(P=`${String.fromCharCode(U+32)}:${P.substr(2)}`)}D+=I(P,!0,!1)}return z&&(D+="?",D+=I(z,!1,!1)),B&&(D+="#",D+=A?B:v(B,!1,!1)),D}k(_,"b");function S(F){try{return decodeURIComponent(F)}catch{return F.length>3?F.substr(0,3)+S(F.substr(3)):F}}k(S,"C");const x=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(F){return F.match(x)?F.replace(x,(A=>S(A))):F}k(C,"w");var T=r(975);const w=T.posix||T,R="/";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]!==R&&(D=R+D,L=!0);let N=w.resolve(D,...I);return L&&N[0]===R&&!A.authority&&(N=N.substring(1)),A.with({path:N})},F.dirname=function(A){if(A.path.length===0||A.path===R)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={})),vke=n})();var{URI:Bo,Utils:lE}=vke,Us;(function(t){t.basename=lE.basename,t.dirname=lE.dirname,t.extname=lE.extname,t.joinPath=lE.joinPath,t.resolvePath=lE.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"?Bo.parse(s).path:s.path,u=typeof o=="string"?Bo.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:a.name,uri:Us.joinPath(Bo.parse(r),a.name).toString(),element:a.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const r=this.getNode(Us.normalize(e),!1);return r?this.collectValues(r):[]}getNode(e,r){const n=e.split("/");e.charAt(e.length-1)==="/"&&n.pop();let a=this.root;for(const i of n){let s=a.children.get(i);if(!s)if(r)s={name:i,children:new Map,parent:a},a.children.set(i,s);else return;a=s}return a}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(cy,"UriTrie"),cy),on;(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"})(on||(on={}));var uy,yke=(uy=class{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=jn.CancellationToken.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,r)}fromTextDocument(e,r,n){return r=r??Bo.parse(e.uri),jn.CancellationToken.is(n)?this.createAsync(r,e,n):this.create(r,e,n)}fromString(e,r,n){return jn.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 a=this.parse(e,r,n);return this.createLangiumDocument(a,e,void 0,r)}else if("$model"in r){const a={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(a,e)}else{const a=this.parse(e,r.getText(),n);return this.createLangiumDocument(a,e,r)}}async createAsync(e,r,n){if(typeof r=="string"){const a=await this.parseAsync(e,r,n);return this.createLangiumDocument(a,e,void 0,r)}else{const a=await this.parseAsync(e,r.getText(),n);return this.createLangiumDocument(a,e,r)}}createLangiumDocument(e,r,n,a){let i;if(n)i={parseResult:e,uri:r,state:on.Parsed,references:[],textDocument:n};else{const s=this.createTextDocumentGetter(r,a);i={parseResult:e,uri:r,state:on.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=i,i}async update(e,r){const n=e.parseResult.value.$cstNode?.root.fullText,a=this.textDocuments?.get(e.uri.toString()),i=a?a.getText():await this.fileSystemProvider.readFile(e.uri);if(a)Object.defineProperty(e,"textDocument",{value:a});else{const s=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:s})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,r),e.parseResult.value.$document=e),e.state=on.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 a;return()=>a??(a=$w.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,r??""))}},k(uy,"DefaultLangiumDocumentFactory"),uy),dy,_ke=(dy=class{constructor(e){this.documentTrie=new iW,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return Pn(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(a=>(this.addDocument(a),a));{const a=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(a),a}}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,on.Changed),n}deleteDocument(e){const r=e.toString(),n=this.documentTrie.find(r);return n&&(n.state=on.Changed,this.documentTrie.delete(r)),n}deleteDocuments(e){const r=e.toString(),n=this.documentTrie.findAll(r);for(const a of n)a.state=on.Changed;return this.documentTrie.delete(r),n}},k(dy,"DefaultLangiumDocuments"),dy),Bf=Symbol("RefResolving"),hy,bke=(hy=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=jn.CancellationToken.None){if(this.profiler?.isActive("linking")){const n=this.profiler.createTask("linking",this.languageId);n.start();try{for(const a of uc(e.parseResult.value))await Pi(r),Nb(a).forEach(i=>{const s=`${a.$type}:${i.property}`;n.startSubTask(s);try{this.doLink(i,e)}finally{n.stopSubTask(s)}})}finally{n.stop()}}else for(const n of uc(e.parseResult.value))await Pi(r),Nb(n).forEach(a=>this.doLink(a,e))}doLink(e,r){const n=e.reference;if("_ref"in n&&n._ref===void 0){n._ref=Bf;try{const a=this.getCandidate(e);if(Hf(a))n._ref=a;else{n._nodeDescription=a;const i=this.loadAstNode(a);n._ref=i??this.createLinkingError(e,a)}}catch(a){console.error(`An error occurred while resolving reference to '${n.$refText}':`,a);const i=a.message??String(a);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${i}`}}r.references.push(n)}else if("_items"in n&&n._items===void 0){n._items=Bf;try{const a=this.getCandidates(e),i=[];if(Hf(a))n._linkingError=a;else for(const s of a){const o=this.loadAstNode(s);o&&i.push({ref:o,$nodeDescription:s})}n._items=i}catch(a){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${a}`},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(a=>`${a.documentUri}#${a.path}`).toArray();return n.length>0?n:this.createLinkingError(e)}buildReference(e,r,n,a){const i=this,s={$refNode:n,$refText:a,_ref:void 0,get ref(){if(ti(this._ref))return this._ref;if(qY(this._nodeDescription)){const o=i.loadAstNode(this._nodeDescription);this._ref=o??i.createLinkingError({reference:s,container:e,property:r},this._nodeDescription)}else if(this._ref===void 0){this._ref=Bf;const o=f1(e).$document,l=i.getLinkedNode({reference:s,container:e,property:r});if(l.error&&o&&o.state0))return this._linkingError=i.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(Hf(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=f1(e.container).$document;n&&n.statebg(r)&&r.isMulti)}findDeclarations(e){if(e){const r=LH(e),n=e.astNode;if(r&&n){const a=n[r.feature];if(zs(a)||iu(a))return aw(a);if(Array.isArray(a)){for(const i of a)if((zs(i)||iu(i))&&i.$refNode&&i.$refNode.offset<=e.offset&&i.$refNode.end>=e.end)return aw(i)}}if(n){const a=this.nameProvider.getNameNode(n);if(a&&(a===e||fH(e,a)))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 a of Nb(n))if(iu(a.reference)&&a.reference.items.some(i=>i.ref===e))return a.reference.items.map(i=>i.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 a of r){const i=this.nameProvider.getNameNode(a)??a.$cstNode;i&&n.push(i)}return n}findReferences(e,r){const n=[];r.includeDeclaration&&n.push(...this.getSelfReferences(e));let a=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return r.documentUri&&(a=a.filter(i=>Us.equals(i.sourceUri,r.documentUri))),n.push(...a),Pn(n)}getSelfReferences(e){const r=this.getSelfNodes(e),n=[];for(const a of r){const i=this.nameProvider.getNameNode(a);if(i){const s=cc(a),o=this.nodeLocator.getAstNodePath(a);n.push({sourceUri:s.uri,sourcePath:o,targetUri:s.uri,targetPath:o,segment:Db(i),local:!0})}}return n}},k(py,"DefaultReferences"),py),gy,Y0=(gy=class{constructor(e){if(this.map=new Map,e)for(const[r,n]of e)this.add(r,n)}get size(){return O4.sum(Pn(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 a=n.indexOf(r);if(a>=0)return n.length===1?this.map.delete(e):n.splice(a,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const r=this.map.get(e);return r?Pn(r):kb}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(a=>e(a,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Pn(this.map.entries()).flatMap(([e,r])=>r.map(n=>[e,n]))}keys(){return Pn(this.map.keys())}values(){return Pn(this.map.values()).flat()}entriesGroupedByKey(){return Pn(this.map.entries())}},k(gy,"MultiMap"),gy),my,Uw=(my=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(my,"BiMap"),my),vy,Tke=(vy=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,r=jn.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,r)}async collectExportedSymbolsForNode(e,r,n=KT,a=jn.CancellationToken.None){const i=[];this.addExportedSymbol(e,i,r);for(const s of n(e))await Pi(a),this.addExportedSymbol(s,i,r);return i}addExportedSymbol(e,r,n){const a=this.nameProvider.getName(e);a&&r.push(this.descriptions.createDescription(e,a,n))}async collectLocalSymbols(e,r=jn.CancellationToken.None){const n=e.parseResult.value,a=new Y0;for(const i of od(n))await Pi(r),this.addLocalSymbol(i,e,a);return a}addLocalSymbol(e,r,n){const a=e.$container;if(a){const i=this.nameProvider.getName(e);i&&n.add(a,this.descriptions.createDescription(e,i,r))}}},k(vy,"DefaultScopeComputation"),vy),yy,Y$=(yy=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(a=>a.name.toLowerCase()===r):this.elements.find(a=>a.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(a=>a.name.toLowerCase()===r):this.elements.filter(a=>a.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},k(yy,"StreamScope"),yy),_y,c7t=(_y=class{constructor(e,r,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const a of e){const i=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.set(i,a)}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),a=n?[n]:[];return(this.concatOuterScope||a.length>0)&&this.outerScope?Pn(a).concat(this.outerScope.getElements(e)):Pn(a)}getAllElements(){let e=Pn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},k(_y,"MapScope"),_y),by,xke=(by=class{constructor(e,r,n){this.elements=new Y0,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(const a of e){const i=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.add(i,a)}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?Pn(n).concat(this.outerScope.getElements(e)):Pn(n)}getAllElements(){let e=Pn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},k(by,"MultiMapScope"),by),u7t={getElement(){},getElements(){return kb},getAllElements(){return kb}},Ey,d8=(Ey=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(Ey,"DisposableCache"),Ey),Sy,oW=(Sy=class extends d8{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(Sy,"SimpleCache"),Sy),Ty,h8=(Ty=class extends d8{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 a=this.cacheForContext(e);if(a.has(r))return a.get(r);if(n){const i=n();return a.set(r,i),i}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(Ty,"ContextCache"),Ty),xy,Cke=(xy=class extends h8{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,a)=>{for(const i of a)this.clear(i)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,a)=>{const i=n.concat(a);for(const s of i)this.clear(s)}))}},k(xy,"DocumentCache"),xy),Cy,lW=(Cy=class extends oW{constructor(e,r){super(),r?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((n,a)=>{a.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},k(Cy,"WorkspaceCache"),Cy),wy,wke=(wy=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 lW(e.shared)}getScope(e){const r=[],n=this.reflection.getReferenceType(e),a=cc(e.container).localSymbols;if(a){let s=e.container;do a.has(s)&&r.push(a.getStream(s).filter(o=>this.reflection.isSubtype(o.type,n))),s=s.$container;while(s)}let i=this.getGlobalScope(n,e);for(let s=r.length-1;s>=0;s--)i=this.createScope(r[s],i);return i}createScope(e,r,n){return new Y$(Pn(e),r,n)}createScopeForNodes(e,r,n){const a=Pn(e).map(i=>{const s=this.nameProvider.getName(i);if(s)return this.descriptions.createDescription(i,s)}).nonNullable();return new Y$(a,r,n)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new xke(this.indexManager.allElements(e)))}},k(wy,"DefaultScopeProvider"),wy);function cW(t){return typeof t.$comment=="string"}k(cW,"isAstNodeWithComment");function H$(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}k(H$,"isIntermediateReference");var ky,kke=(ky=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??{},a=r?.replacer,i=k((o,l)=>this.replacer(o,l,n),"defaultReplacer"),s=a?(o,l)=>a(o,l,i):i;try{return this.currentDocument=cc(e),JSON.stringify(e,s,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r){const n=r??{},a=JSON.parse(e);return this.linkNode(a,a,n),a}replacer(e,r,{refText:n,sourceText:a,textRegions:i,comments:s,uriConverter:o}){if(!this.ignoreProperties.has(e))if(zs(r)){const l=r.ref,u=n?r.$refText:void 0;if(l){const d=cc(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(iu(r)){const l=n?r.$refText:void 0,u=[];for(const d of r.items){const h=d.ref,f=cc(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(ti(r)){let l;if(i&&(l=this.addAstNodeRegionWithAssignmentsTo({...r}),(!e||r.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),a&&!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),a=n.assignments={};return Object.keys(e).filter(i=>!i.startsWith("$")).forEach(i=>{const s=OH(e.$cstNode,i).map(r);s.length!==0&&(a[i]=s)}),e}}linkNode(e,r,n,a,i,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,a,i),"An error occurred during validation",a,n)}}async handleException(e,r,n,a){try{await e()}catch(i){if(Pg(i))throw i;console.error(`${r}:`,i),i instanceof Error&&i.stack&&console.error(i.stack);const s=i instanceof Error?i.message:String(i);n("error",`${r}: ${s}`,{node:a})}}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=Pn(this.entries.get(e)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(a=>r.includes(a.category))),n.map(a=>a.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(a,i,s,o)=>{await this.handleException(()=>e.call(n,a,i,s,o),r,i,a)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},k(Ry,"ValidationRegistry"),Ry),Nke=Object.freeze({validateNode:!0,validateChildren:!0}),Ny,Ike=(Ny=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=jn.CancellationToken.None){const a=e.parseResult,i=[];if(await Pi(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(a,i,r),r.stopAfterLexingErrors&&i.some(s=>s.data?.code===yl.LexingError)||(this.processParsingErrors(a,i,r),r.stopAfterParsingErrors&&i.some(s=>s.data?.code===yl.ParsingError))||(this.processLinkingErrors(e,i,r),r.stopAfterLinkingErrors&&i.some(s=>s.data?.code===yl.LinkingError))))return i;try{i.push(...await this.validateAst(a.value,r,n))}catch(s){if(Pg(s))throw s;console.error("An error occurred during validation:",s)}return await Pi(n),i}processLexingErrors(e,r,n){const a=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const i of a){const s=i.severity??"error",o={severity:DS(s),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:dW(s),source:this.getSource()};r.push(o)}}processParsingErrors(e,r,n){for(const a of e.parserErrors){let i;if(isNaN(a.token.startOffset)){if("previousToken"in a){const s=a.previousToken;if(isNaN(s.startOffset)){const o={line:0,character:0};i={start:o,end:o}}else{const o={line:s.endLine-1,character:s.endColumn};i={start:o,end:o}}}}else i=D4(a.token);if(i){const s={severity:DS("error"),range:i,message:a.message,data:pp(yl.ParsingError),source:this.getSource()};r.push(s)}}}processLinkingErrors(e,r,n){for(const a of e.references){const i=a.error;if(i){const s={node:i.info.container,range:a.$refNode?.range,property:i.info.property,index:i.info.index,data:{code:yl.LinkingError,containerType:i.info.container.$type,property:i.info.property,refText:i.info.reference.$refText}};r.push(this.toDiagnostic("error",i.message,s))}}}async validateAst(e,r,n=jn.CancellationToken.None){const a=[],i=k((s,o,l)=>{a.push(this.toDiagnostic(s,o,l))},"acceptor");return await this.validateAstBefore(e,r,i,n),await this.validateAstNodes(e,r,i,n),await this.validateAstAfter(e,r,i,n),a}async validateAstBefore(e,r,n,a=jn.CancellationToken.None){const i=this.validationRegistry.checksBefore;for(const s of i)await Pi(a),await s(e,n,r.categories??[],a)}async validateAstNodes(e,r,n,a=jn.CancellationToken.None){if(this.profiler?.isActive("validating")){const i=this.profiler.createTask("validating",this.languageId);i.start();try{const s=uc(e).iterator();for(const o of s){i.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,a)}finally{i.stopSubTask(o.$type)}l.validateChildren||s.prune()}}finally{i.stop()}}else{const i=uc(e).iterator();for(const s of i){await Pi(a);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,a)}o.validateChildren||i.prune()}}}validateSingleNodeOptions(e,r){return Nke}async validateAstAfter(e,r,n,a=jn.CancellationToken.None){const i=this.validationRegistry.checksAfter;for(const s of i)await Pi(a),await s(e,n,r.categories??[],a)}toDiagnostic(e,r,n){return{message:r,range:uW(n),severity:DS(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(Ny,"DefaultDocumentValidator"),Ny);function uW(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=SA(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=DH(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(uW,"getDiagnosticRange");function DS(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(DS,"toDiagnosticSeverity");function dW(t){switch(t){case"error":return pp(yl.LexingError);case"warning":return pp(yl.LexingWarning);case"info":return pp(yl.LexingInfo);case"hint":return pp(yl.LexingHint);default:throw new Error("Invalid diagnostic severity: "+t)}}k(dW,"toDiagnosticData");var yl;(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"})(yl||(yl={}));var Iy,Oke=(Iy=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,n){const a=n??cc(e);r??(r=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!r)throw new Error(`Node at path ${i} has no name.`);let s;const o=k(()=>s??(s=Db(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return o()},selectionSegment:Db(e.$cstNode),type:e.$type,documentUri:a.uri,path:i}}},k(Iy,"DefaultAstNodeDescriptionProvider"),Iy),Oy,Dke=(Oy=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=jn.CancellationToken.None){const n=[],a=e.parseResult.value;for(const i of uc(a))await Pi(r),Nb(i).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=[];zs(r)&&r.$nodeDescription?n=[r.$nodeDescription]:iu(r)&&(n=r.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));const a=cc(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),s=[],o=Db(r.$refNode);for(const l of n)s.push({sourceUri:a,sourcePath:i,targetUri:l.documentUri,targetPath:l.path,segment:o,local:Us.equals(l.documentUri,a)});return s}},k(Oy,"DefaultReferenceDescriptionProvider"),Oy),Dy,Lke=(Dy=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((a,i)=>{if(!a||i.length===0)return a;const s=i.indexOf(this.indexSeparator);if(s>0){const o=i.substring(0,s),l=parseInt(i.substring(s+1));return a[o]?.[l]}return a[i]},e)}},k(Dy,"DefaultAstNodeLocator"),Dy),f8={};oA(f8,$Y(E2()));var Ly,Mke=(Ly=class{constructor(e){this._ready=new q0,this.onConfigurationSectionUpdateEmitter=new f8.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(a=>({section:this.toSectionName(a.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(r);r.forEach((a,i)=>{this.updateSectionConfiguration(a.section,n[i])})}}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(Ly,"DefaultConfigurationProvider"),Ly),R3=$Y(Y2t()),Tp;(function(t){function e(r){return{dispose:k(async()=>await r(),"dispose")}}k(e,"create"),t.create=e})(Tp||(Tp={}));var My,Pke=(My=class{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Y0,this.documentPhaseListeners=new Y0,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=on.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=jn.CancellationToken.None){for(const a of e){const i=a.uri.toString();if(a.state===on.Validated){if(typeof r.validation=="boolean"&&r.validation)this.resetToState(a,on.IndexedReferences);else if(typeof r.validation=="object"){const s=this.findMissingValidationCategories(a,r);s.length>0&&(this.buildState.set(i,{completed:!1,options:{validation:{categories:s}},result:this.buildState.get(i)?.result}),a.state=on.IndexedReferences)}}else this.buildState.delete(i)}this.currentState=on.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,r,n)}async update(e,r,n=jn.CancellationToken.None){this.currentState=on.Changed;const a=[];for(const l of r){const u=this.langiumDocuments.deleteDocuments(l);for(const d of u)a.push(d.uri),this.cleanUpDeleted(d)}const i=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(const l of i){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=on.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,on.Changed)}const s=Pn(i).concat(a).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!s.has(l.uri.toString())&&this.shouldRelink(l,s)).forEach(l=>this.resetToState(l,on.ComputedScopes)),await this.emitUpdate(i,a),await Pi(n);const o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state=1}findMissingValidationCategories(e,r){const n=this.buildState.get(e.uri.toString()),a=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?a:new Set,s=r===void 0||r.validation===!0?a:typeof r.validation=="object"?r.validation.categories??a:[];return Pn(s).filter(o=>!i.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),Tp.create(()=>{const r=this.updateListeners.indexOf(e);r>=0&&this.updateListeners.splice(r,1)})}resetToState(e,r){switch(r){case on.Changed:case on.Parsed:this.indexManager.removeContent(e.uri);case on.IndexedContent:e.localSymbols=void 0;case on.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case on.Linked:this.indexManager.removeReferences(e.uri);case on.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case on.Validated:}e.state>r&&(e.state=r)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=on.Changed}async buildDocuments(e,r,n){this.prepareBuild(e,r),await this.runCancelable(e,on.Parsed,n,s=>this.langiumDocumentFactory.update(s,n)),await this.runCancelable(e,on.IndexedContent,n,s=>this.indexManager.updateContent(s,n)),await this.runCancelable(e,on.ComputedScopes,n,async s=>{const o=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.localSymbols=await o.collectLocalSymbols(s,n)});const a=e.filter(s=>this.shouldLink(s));await this.runCancelable(a,on.Linked,n,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,n)),await this.runCancelable(a,on.IndexedReferences,n,s=>this.indexManager.updateReferences(s,n));const i=e.filter(s=>this.shouldValidate(s)?!0:(this.markAsCompleted(s),!1));await this.runCancelable(i,on.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 a=n.uri.toString(),i=this.buildState.get(a);(!i||i.completed)&&this.buildState.set(a,{completed:!1,options:r,result:i?.result})}}async runCancelable(e,r,n,a){for(const s of e)s.states.state===r);await this.notifyBuildPhase(i,r,n),this.currentState=r}onBuildPhase(e,r){return this.buildPhaseListeners.add(e,r),Tp.create(()=>{this.buildPhaseListeners.delete(e,r)})}onDocumentPhase(e,r){return this.documentPhaseListeners.add(e,r),Tp.create(()=>{this.documentPhaseListeners.delete(e,r)})}waitUntil(e,r,n){let a;return r&&"path"in r?a=r:n=r,n??(n=jn.CancellationToken.None),a?this.awaitDocumentState(e,a,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,r,n){const a=this.langiumDocuments.getDocument(r);if(a){if(a.state>=e)return Promise.resolve(r);if(n.isCancellationRequested)return Promise.reject(eu);if(this.currentState>=e&&e>a.state)return Promise.reject(new R3.ResponseError(R3.LSPErrorCodes.RequestFailed,`Document state of ${r.toString()} is ${on[a.state]}, requiring ${on[e]}, but workspace state is already ${on[this.currentState]}. Returning undefined.`))}else return Promise.reject(new R3.ResponseError(R3.LSPErrorCodes.ServerCancelled,`No document found for URI: ${r.toString()}`));return new Promise((i,s)=>{const o=this.onDocumentPhase(e,u=>{Us.equals(u.uri,r)&&(o.dispose(),l.dispose(),i(u.uri))}),l=n.onCancellationRequested(()=>{o.dispose(),l.dispose(),s(eu)})})}awaitBuilderState(e,r){return this.currentState>=e?Promise.resolve():r.isCancellationRequested?Promise.reject(eu):new Promise((n,a)=>{const i=this.onBuildPhase(e,()=>{i.dispose(),s.dispose(),n()}),s=r.onCancellationRequested(()=>{i.dispose(),s.dispose(),a(eu)})})}async notifyDocumentPhase(e,r,n){const i=this.documentPhaseListeners.get(r).slice();for(const s of i)try{await Pi(n),await s(e,n)}catch(o){if(!Pg(o))throw o}}async notifyBuildPhase(e,r,n){if(e.length===0)return;const i=this.buildPhaseListeners.get(r).slice();for(const s of i)await Pi(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,a=this.getBuildOptions(e),i=typeof a.validation=="object"?{...a.validation}:{};i.categories=this.findMissingValidationCategories(e,a);const s=await n.validateDocument(e,i,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=Pn(o.result.validationChecks).concat(i.categories).distinct().toArray():o.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},k(My,"DefaultDocumentBuilder"),My),Py,Bke=(Py=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new h8,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){const n=cc(e).uri,a=[];return this.referenceIndex.forEach(i=>{i.forEach(s=>{Us.equals(s.targetUri,n)&&s.targetPath===r&&a.push(s)})}),Pn(a)}allElements(e,r){let n=Pn(this.symbolIndex.keys());return r&&(n=n.filter(a=>!r||r.has(a))),n.map(a=>this.getFileDescriptions(a,e)).flat()}getFileDescriptions(e,r){return r?this.symbolByTypeIndex.get(e,r,()=>(this.symbolIndex.get(e)??[]).filter(i=>this.astReflection.isSubtype(i.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=jn.CancellationToken.None){const a=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,r),i=e.uri.toString();this.symbolIndex.set(i,a),this.symbolByTypeIndex.clear(i)}async updateReferences(e,r=jn.CancellationToken.None){const a=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),a)}isAffected(e,r){const n=this.referenceIndex.get(e.uri.toString());return n?n.some(a=>!a.local&&r.has(a.targetUri.toString())):!1}},k(Py,"DefaultIndexManager"),Py),By,Fke=(By=class{constructor(e){this.initialBuildOptions={},this._ready=new q0,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=jn.CancellationToken.None){const n=await this.performStartup(e);await Pi(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 a=[];await Promise.all(e.map(s=>this.getRootFolder(s)).map(async s=>this.traverseFolder(s,a)));const i=Pn(a).distinct(s=>s.toString()).filter(s=>!this.langiumDocuments.hasDocument(s));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),r}async loadWorkspaceDocuments(e,r){await Promise.all(e.map(async n=>{const a=await this.langiumDocuments.getOrCreateDocument(n);r(a)}))}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return Bo.parse(e.uri)}async traverseFolder(e,r){try{const n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async a=>{this.shouldIncludeEntry(a)&&(a.isDirectory?await this.traverseFolder(a.uri,r):a.isFile&&r.push(a.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=Us.basename(e.uri);return r.startsWith(".")?!1:e.isDirectory?r!=="node_modules"&&r!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},k(By,"DefaultWorkspaceManager"),By),Fy,$ke=(Fy=class{buildUnexpectedCharactersMessage(e,r,n,a,i){return C$.buildUnexpectedCharactersMessage(e,r,n,a,i)}buildUnableToPopLexerModeMessage(e){return C$.buildUnableToPopLexerModeMessage(e)}},k(Fy,"DefaultLexerErrorMessageProvider"),Fy),hW={mode:"full"},$y,fW=($y=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=qw(r)?Object.values(r):r,a=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new Ys(n,{positionTracking:"full",skipValidations:a,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,r=hW){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(qw(e))return e;const r=g8(e)?Object.values(e.modes).flat():e,n={};return r.forEach(a=>n[a.name]=a),n}},k($y,"DefaultLexer"),$y);function p8(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}k(p8,"isTokenTypeArray");function g8(t){return t&&"modes"in t&&"defaultMode"in t}k(g8,"isIMultiModeLexerDefinition");function qw(t){return!p8(t)&&!g8(t)}k(qw,"isTokenTypeDictionary");VT();function pW(t,e,r){let n,a;typeof t=="string"?(a=e,n=r):(a=t.range.start,n=e),a||(a=Cn.create(0,0));const i=mW(t),s=m8(n),o=zke({lines:i,position:a,options:s});return qke({index:0,tokens:o,position:a})}k(pW,"parseJSDoc");function gW(t,e){const r=m8(e),n=mW(t);if(n.length===0)return!1;const a=n[0],i=n[n.length-1],s=r.start,o=r.end;return!!s?.exec(a)&&!!o?.exec(i)}k(gW,"isJSDoc");function mW(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(qEe)}k(mW,"getLines");var Foe=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,d7t=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function zke(t){const e=[];let r=t.position.line,n=t.position.character;for(let a=0;a=o.length){if(e.length>0){const d=Cn.create(r,n);e.push({type:"break",content:"",range:hn.create(d,d)})}}else{Foe.lastIndex=l;const d=Foe.exec(o);if(d){const h=d[0],f=d[1],p=Cn.create(r,n+l),g=Cn.create(r,n+l+h.length);e.push({type:"tag",content:f,range:hn.create(p,g)}),l+=h.length,l=Yw(o,l)}if(l0&&e[e.length-1].type==="break"?e.slice(0,-1):e}k(zke,"tokenize");function Uke(t,e,r,n){const a=[];if(t.length===0){const i=Cn.create(r,n),s=Cn.create(r,n+e.length);a.push({type:"text",content:e,range:hn.create(i,s)})}else{let i=0;for(const o of t){const l=o.index,u=e.substring(i,l);u.length>0&&a.push({type:"text",content:e.substring(i,l),range:hn.create(Cn.create(r,i+n),Cn.create(r,l+n))});let d=u.length+1;const h=o[1];if(a.push({type:"inline-tag",content:h,range:hn.create(Cn.create(r,i+d+n),Cn.create(r,i+d+h.length+n))}),d+=h.length,o.length===4){d+=o[2].length;const f=o[3];a.push({type:"text",content:f,range:hn.create(Cn.create(r,i+d+n),Cn.create(r,i+d+f.length+n))})}else a.push({type:"text",content:"",range:hn.create(Cn.create(r,i+d+n),Cn.create(r,i+d+n))});i=l+o[0].length}const s=e.substring(i);s.length>0&&a.push({type:"text",content:s,range:hn.create(Cn.create(r,i+n),Cn.create(r,i+n+s.length))})}return a}k(Uke,"buildInlineTokens");var h7t=/\S/,f7t=/\s*$/;function Yw(t,e){const r=t.substring(e).match(h7t);return r?e+r.index:t.length}k(Yw,"skipWhitespace");function Gke(t){const e=t.match(f7t);if(e&&typeof e.index=="number")return e.index}k(Gke,"lastCharacter");function qke(t){const e=Cn.create(t.position.line,t.position.character);if(t.tokens.length===0)return new $oe([],hn.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+=W$(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 a=n.toMarkdown(e);r+=W$(r)+a}return r.trim()}},k(zy,"JSDocCommentImpl"),zy),Uy,JL=(Uy=class{constructor(e,r,n,a){this.name=e,this.content=r,this.inline=n,this.range=a}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 i=Wke(this.name,r,e??{});if(typeof i=="string")return i}let n="";e?.tag==="italic"||e?.tag===void 0?n="*":e?.tag==="bold"?n="**":e?.tag==="bold-italic"&&(n="***");let a=`${n}@${this.name}${n}`;return this.content.inlines.length===1?a=`${a} — ${r}`:this.content.inlines.length>1&&(a=`${a} ${r}`),this.inline?`{${a}}`:a}},k(Uy,"JSDocTagImpl"),Uy);function Wke(t,e,r){if(t==="linkplain"||t==="linkcode"||t==="link"){const n=e.indexOf(" ");let a=e;if(n>0){const s=Yw(e,n);a=e.substring(s),e=e.substring(0,n)}return(t==="linkcode"||t==="link"&&r.link==="code")&&(a=`\`${a}\``),r.renderLink?.(e,a)??Kke(e,a)}}k(Wke,"renderInlineTag");function Kke(t,e){try{return Bo.parse(t,!0),`[${e}](${t})`}catch{return t}}k(Kke,"renderLinkDefault");var Gy,V$=(Gy=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;na.range.start.line&&(r+=` @@ -5384,11 +5389,11 @@ ${r}`),this.inline?`{${a}}`:a}},k(Uy,"JSDocTagImpl"),Uy);function Wke(t,e,r){if( `)?` `:` -`}k(W$,"fillNewlines");var Yy,jke=(Yy=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const r=this.commentProvider.getComment(e);if(r&&gW(r))return pW(r).toMarkdown({renderLink:k((a,i)=>this.documentationLinkRenderer(e,a,i),"renderLink"),renderTag:k(a=>this.documentationTagRenderer(e,a),"renderTag")})}documentationLinkRenderer(e,r,n){const a=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(a&&a.nameSegment){const i=a.nameSegment.range.start.line+1,s=a.nameSegment.range.start.character+1,o=a.documentUri.with({fragment:`L${i},${s}`});return`[${n}](${o.toString()})`}else return}documentationTagRenderer(e,r){}findNameInLocalSymbols(e,r){const a=cc(e).localSymbols;if(!a)return;let i=e;do{const o=a.getStream(i).find(l=>l.name===r);if(o)return o;i=i.$container}while(i)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(a=>a.name===r)}},k(Yy,"JSDocDocumentationProvider"),Yy),Hy,Qke=(Hy=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return cW(e)?e.$comment:vH(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},k(Hy,"DefaultCommentProvider"),Hy),Vy,Zke=(Vy=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}},k(Vy,"DefaultAsyncParser"),Vy),Wy,f7t=(Wy=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),a=new q0;let i;const s=r.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(o=>{const l=this.hydrator.hydrate(o);a.resolve(l)}).catch(o=>{a.reject(o)}).finally(()=>{s.dispose(),clearTimeout(i)}),a.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 q0;return e.onCancellationRequested(()=>{const n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(eu)}),this.queue.push(r),r.promise}},k(Wy,"AbstractThreadedAsyncParser"),Wy),Ky,p7t=(Ky=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,a){this.onReadyEmitter=new f8.Emitter,this.deferred=new q0,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=a,r(i=>{const s=i;this.deferred.resolve(s),this.unlock()}),n(i=>{this.deferred.reject(i),this.unlock()})}terminate(){this.deferred.reject(eu),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 q0,this.sendMessage(e),this.deferred.promise}},k(Ky,"ParserWorker"),Ky),Xy,Jke=(Xy=class{constructor(){this.previousTokenSource=new jn.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const r=u8();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n=jn.CancellationToken.None){const a=new q0,i={action:r,deferred:a,cancellationToken:n};return e.push(i),this.performNextOperation(),a.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:a})=>{try{const i=await Promise.resolve().then(()=>r(a));n.resolve(i)}catch(i){Pg(i)?n.resolve(void 0):n.reject(i)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},k(Xy,"DefaultWorkspaceLock"),Xy),jy,e7e=(jy=class{constructor(e){this.grammarElementIdMap=new Uw,this.tokenTypeIdMap=new Uw,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 a of uc(e))r.set(a,{});if(e.$cstNode)for(const a of Ob(e.$cstNode))n.set(a,{});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[a,i]of Object.entries(e))if(!a.startsWith("$"))if(Array.isArray(i)){const s=[];n[a]=s;for(const o of i)ti(o)?s.push(this.dehydrateAstNode(o,r)):zs(o)?s.push(this.dehydrateReference(o,r)):s.push(o)}else ti(i)?n[a]=this.dehydrateAstNode(i,r):zs(i)?n[a]=this.dehydrateReference(i,r):i!==void 0&&(n[a]=i);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 uA(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=r.astNodes.get(e.astNode),M0(e)?n.content=e.content.map(a=>this.dehydrateCstNode(a,r)):vg(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 i of uc(e))r.set(i,{});let a;if(e.$cstNode)for(const i of Ob(e.$cstNode)){let s;"fullText"in i?(s=new WV(i.fullText),a=s):"content"in i?s=new i8:"tokenType"in i&&(s=this.hydrateCstLeafNode(i)),s&&(n.set(i,s),s.root=a)}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[a,i]of Object.entries(e))if(!a.startsWith("$"))if(Array.isArray(i)){const s=[];n[a]=s;for(const o of i)ti(o)?s.push(this.setParent(this.hydrateAstNode(o,r),n)):zs(o)?s.push(this.hydrateReference(o,n,a,r)):s.push(o)}else ti(i)?n[a]=this.setParent(this.hydrateAstNode(i,r),n):zs(i)?n[a]=this.hydrateReference(i,n,a,r):i!==void 0&&(n[a]=i);return n}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,n,a){return this.linker.buildReference(r,n,a.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,n=0){const a=r.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(a.grammarSource=this.getGrammarElement(e.grammarSource)),a.astNode=r.astNodes.get(e.astNode),M0(a))for(const i of e.content){const s=this.hydrateCstNode(i,r,n++);a.content.push(s)}return a}hydrateCstLeafNode(e){const r=this.getTokenType(e.tokenType),n=e.offset,a=e.length,i=e.startLine,s=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new Pw(n,a,{start:{line:i,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 uc(this.grammar))dA(r)&&this.grammarElementIdMap.set(r,e++)}},k(jy,"DefaultHydrator"),jy);function tl(t){return{documentation:{CommentProvider:k(e=>new Qke(e),"CommentProvider"),DocumentationProvider:k(e=>new jke(e),"DocumentationProvider")},parser:{AsyncParser:k(e=>new Zke(e),"AsyncParser"),GrammarConfig:k(e=>UH(e),"GrammarConfig"),LangiumParser:k(e=>JV(e),"LangiumParser"),CompletionParser:k(e=>ZV(e),"CompletionParser"),ValueConverter:k(()=>new tW,"ValueConverter"),TokenBuilder:k(()=>new l8,"TokenBuilder"),Lexer:k(e=>new fW(e),"Lexer"),ParserErrorMessageProvider:k(()=>new XV,"ParserErrorMessageProvider"),LexerErrorMessageProvider:k(()=>new $ke,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:k(()=>new Lke,"AstNodeLocator"),AstNodeDescriptionProvider:k(e=>new Oke(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:k(e=>new Dke(e),"ReferenceDescriptionProvider")},references:{Linker:k(e=>new bke(e),"Linker"),NameProvider:k(()=>new Eke,"NameProvider"),ScopeProvider:k(e=>new wke(e),"ScopeProvider"),ScopeComputation:k(e=>new Tke(e),"ScopeComputation"),References:k(e=>new Ske(e),"References")},serializer:{Hydrator:k(e=>new e7e(e),"Hydrator"),JsonSerializer:k(e=>new kke(e),"JsonSerializer")},validation:{DocumentValidator:k(e=>new Ike(e),"DocumentValidator"),ValidationRegistry:k(e=>new Rke(e),"ValidationRegistry")},shared:k(()=>t.shared,"shared")}}k(tl,"createDefaultCoreModule");function rl(t){return{ServiceRegistry:k(e=>new Ake(e),"ServiceRegistry"),workspace:{LangiumDocuments:k(e=>new _ke(e),"LangiumDocuments"),LangiumDocumentFactory:k(e=>new yke(e),"LangiumDocumentFactory"),DocumentBuilder:k(e=>new Pke(e),"DocumentBuilder"),IndexManager:k(e=>new Bke(e),"IndexManager"),WorkspaceManager:k(e=>new Fke(e),"WorkspaceManager"),FileSystemProvider:k(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:k(()=>new Jke,"WorkspaceLock"),ConfigurationProvider:k(e=>new Mke(e),"ConfigurationProvider")},profilers:{}}}k(rl,"createDefaultSharedCoreModule");var K$;(function(t){t.merge=(e,r)=>Fb(Fb({},e),r)})(K$||(K$={}));function ga(t,e,r,n,a,i,s,o,l){const u=[t,e,r,n,a,i,s,o,l].reduce(Fb,{});return EW(u)}k(ga,"inject");var t7e=Symbol("isProxy");function bW(t){if(t&&t[t7e])for(const e of Object.values(t))bW(e);return t}k(bW,"eagerLoad");function EW(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,a)=>a===t7e?!0:X$(n,a,t,e||r),"get"),getOwnPropertyDescriptor:k((n,a)=>(X$(n,a,t,e||r),Object.getOwnPropertyDescriptor(n,a)),"getOwnPropertyDescriptor"),has:k((n,a)=>a in t,"has"),ownKeys:k(()=>[...Object.getOwnPropertyNames(t)],"ownKeys")});return r}k(EW,"_inject");var zoe=Symbol();function X$(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]===zoe)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 a=r[e];t[e]=zoe;try{t[e]=typeof a=="function"?a(n):EW(a,n)}catch(i){throw t[e]=i instanceof Error?i:void 0,i}return t[e]}else return}k(X$,"_resolve");function Fb(t,e){if(e){for(const[r,n]of Object.entries(e))if(n!=null)if(typeof n=="object"){const a=t[r];typeof a=="object"&&a!==null?t[r]=Fb(a,n):t[r]=Fb({},n)}else t[r]=n}return t}k(Fb,"_merge");var j$={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},gp;(function(t){t.REGULAR="indentation-sensitive",t.IGNORE_INDENTATION="ignore-indentation"})(gp||(gp={}));var Qy,r7e=(Qy=class extends l8{constructor(e=j$){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...j$,...e},this.indentTokenType=g1({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=g1({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,r){const n=super.buildTokens(e,r);if(!p8(n))throw new Error("Invalid tokens built by default builder");const{indentTokenName:a,dedentTokenName:i,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=gp.IGNORE_INDENTATION:f.name===g&&(f.POP_MODE=!0);f.name===i?l=f:f.name===a?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:{[gp.REGULAR]:[l,u,...h,d],[gp.IGNORE_INDENTATION]:[...h,d]},defaultMode:gp.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,a){this.whitespaceRegExp.lastIndex=r;const i=this.whitespaceRegExp.exec(e);return{currIndentLevel:i?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,r,n,a){const i=this.getLineNumber(r,a);return lx(e,n,a,a+n.length,i,i,1,n.length)}getLineNumber(e,r){return e.substring(0,r).split(/\r\n|\r|\n/).length}indentMatcher(e,r,n,a){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:i,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,a);return i<=s?null:(this.indentationStack.push(i),o)}dedentMatcher(e,r,n,a){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:i,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,a);if(i>=s)return null;const l=this.indentationStack.lastIndexOf(i);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${i} 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(Qy,"IndentationAwareTokenBuilder"),Qy),Zy,g7t=(Zy=class extends fW{constructor(e){if(super(e),e.parser.TokenBuilder instanceof r7e)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,r=hW){const n=super.tokenize(e),a=n.report;r?.mode==="full"&&n.tokens.push(...a.remainingDedents),a.remainingDedents=[];const{indentTokenType:i,dedentTokenType:s}=this.indentationTokenBuilder,o=i.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(Zy,"IndentationAwareLexer"),Zy),SW={};Kh(SW,{AstUtils:()=>HY,BiMap:()=>Uw,Cancellation:()=>jn,ContextCache:()=>h8,CstUtils:()=>GY,DONE_RESULT:()=>Os,Deferred:()=>q0,Disposable:()=>Tp,DisposableCache:()=>d8,DocumentCache:()=>Cke,EMPTY_STREAM:()=>kb,ErrorWithLocation:()=>yA,GrammarUtils:()=>EH,MultiMap:()=>Y0,OperationCancelled:()=>eu,Reduction:()=>O4,RegExpUtils:()=>TH,SimpleCache:()=>oW,StreamImpl:()=>Jc,TreeStreamImpl:()=>Ab,URI:()=>Bo,UriTrie:()=>iW,UriUtils:()=>Us,WorkspaceCache:()=>lW,assertCondition:()=>SH,assertUnreachable:()=>Xh,delayNextTick:()=>c8,interruptAndCheck:()=>Pi,isOperationCancelled:()=>Pg,loadGrammarFromJson:()=>nl,setInterruptionPeriod:()=>rW,startCancelableOperation:()=>u8,stream:()=>Pn});oA(SW,f8);var Jy,n7e=(Jy=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(Jy,"EmptyFileSystemProvider"),Jy),Ul={fileSystemProvider:k(()=>new n7e,"fileSystemProvider")},m7t={Grammar:k(()=>{},"Grammar"),LanguageMetaData:k(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},v7t={AstReflection:k(()=>new hH,"AstReflection")};function a7e(){const t=ga(rl(Ul),v7t),e=ga(tl({shared:t}),m7t);return t.ServiceRegistry.register(e),e}k(a7e,"createMinimalGrammarServices");function nl(t){const e=a7e(),r=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(r,Bo.parse(`memory:/${r.name??"grammar"}.langium`)),r}k(nl,"loadGrammarFromJson");oA(pEe,SW);var e_,y7t=(e_=class{constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new Y0}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 i7e(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 a=r.duration-n.map(s=>s.duration).reduce((s,o)=>s+o,0);n.push({name:r.identifier,count:1,duration:a}),n.sort((s,o)=>o.duration-s.duration);function i(s){return Math.round(100*s)/100}return k(i,"Round"),console.table(n.map(s=>({Element:s.name,Count:s.count,"Self %":i(100*s.duration/r.duration),"Time (ms)":i(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(e_,"DefaultLangiumProfiler"),e_),t_,i7e=(t_=class{constructor(e,r){this.stack=[],this.entries=new Y0,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 a=n-r.content;this.entries.add(e,a)}},k(t_,"ProfilingTask"),t_),Q$;(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 ]+)\]/}})(Q$||(Q$={}));var Z$;(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]*/}})(Z$||(Z$={}));var J$;(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])?/}})(J$||(J$={}));var ez;(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]*/}})(ez||(ez={}));var tz;(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]*/}})(tz||(tz={}));var rz;(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]*/}})(rz||(rz={}));var nz;(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]*/}})(nz||(nz={}));var az;(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:/"[^"]*"|'[^']*'/}})(az||(az={}));var iz;(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:/"[^"]*"|'[^']*'/}})(iz||(iz={}));var sz;(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]*/}})(sz||(sz={}));({...Q$.Terminals,...Z$.Terminals,...J$.Terminals,...ez.Terminals,...tz.Terminals,...rz.Terminals,...nz.Terminals,...iz.Terminals,...az.Terminals,...sz.Terminals});var N3={$type:"Accelerator",name:"name",x:"x",y:"y"},I3={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},cE={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},eM={$type:"Annotations",x:"x",y:"y"},Qu={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function _7t(t){return al.isInstance(t,Qu.$type)}k(_7t,"isArchitecture");var O3={$type:"Axis",label:"label",name:"name"},nC={$type:"Branch",name:"name",order:"order"};function b7t(t){return al.isInstance(t,nC.$type)}k(b7t,"isBranch");var Uoe={$type:"Checkout",branch:"branch"},D3={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},tM={$type:"ClassDefStatement",className:"className",styleText:"styleText"},Em={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function E7t(t){return al.isInstance(t,Em.$type)}k(E7t,"isCommit");var L3={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},_f={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},M3={$type:"Curve",entries:"entries",label:"label",name:"name"},P3={$type:"Deaccelerator",name:"name",x:"x",y:"y"},Goe={$type:"Decorator",strategy:"strategy"},tm={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},Ac={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},rm={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},bf={$type:"EmFrame"},uE={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},qoe={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},rM={$type:"EmModelEntity",name:"name"};function S7t(t){return t==="rmo"||t==="readmodel"||t==="ui"||t==="cmd"||t==="command"||t==="evt"||t==="event"||t==="pcr"||t==="processor"}k(S7t,"isEmModelEntityType");var B3={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},Zu={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function s7e(t){return al.isInstance(t,Zu.$type)}k(s7e,"isEmResetFrame");var xd={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},nM={$type:"Entry",axis:"axis",value:"value"},Hu={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},Yoe={$type:"Evolution",stages:"stages"},F3={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},aM={$type:"Evolve",component:"component",target:"target"},Ff={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function T7t(t){return al.isInstance(t,Ff.$type)}k(T7t,"isGitGraph");var dE={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},YE={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function x7t(t){return al.isInstance(t,YE.$type)}k(x7t,"isInfo");var hE={$type:"Item",classSelector:"classSelector",name:"name"},iM={$type:"Junction",id:"id",in:"in"},fE={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},$3={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},Ef={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},Sm={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function C7t(t){return al.isInstance(t,Sm.$type)}k(C7t,"isMerge");var z3={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},sM={$type:"Option",name:"name",value:"value"},Tm={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function w7t(t){return al.isInstance(t,Tm.$type)}k(w7t,"isPacket");var xm={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function k7t(t){return al.isInstance(t,xm.$type)}k(k7t,"isPacketBlock");var $f={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function A7t(t){return al.isInstance(t,$f.$type)}k(A7t,"isPie");var aC={$type:"PieSection",label:"label",value:"value"};function R7t(t){return al.isInstance(t,aC.$type)}k(R7t,"isPieSection");var oM={$type:"Pipeline",components:"components",parent:"parent"},U3={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},Sf={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},lM={$type:"Section",classSelector:"classSelector",name:"name"},nm={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},cM={$type:"Size",height:"height",width:"width"},am={$type:"Statement"},Cm={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function N7t(t){return al.isInstance(t,Cm.$type)}k(N7t,"isTreemap");var uM={$type:"TreemapRow",indent:"indent",item:"item"},dM={$type:"TreeNode",indent:"indent",name:"name"},pE={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Vi={$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 I7t(t){return al.isInstance(t,Vi.$type)}k(I7t,"isWardley");var r_,o7e=(r_=class extends YY{constructor(){super(...arguments),this.types={Accelerator:{name:N3.$type,properties:{name:{name:N3.name},x:{name:N3.x},y:{name:N3.y}},superTypes:[]},Anchor:{name:I3.$type,properties:{evolution:{name:I3.evolution},name:{name:I3.name},visibility:{name:I3.visibility}},superTypes:[]},Annotation:{name:cE.$type,properties:{number:{name:cE.number},text:{name:cE.text},x:{name:cE.x},y:{name:cE.y}},superTypes:[]},Annotations:{name:eM.$type,properties:{x:{name:eM.x},y:{name:eM.y}},superTypes:[]},Architecture:{name:Qu.$type,properties:{accDescr:{name:Qu.accDescr},accTitle:{name:Qu.accTitle},edges:{name:Qu.edges,defaultValue:[]},groups:{name:Qu.groups,defaultValue:[]},junctions:{name:Qu.junctions,defaultValue:[]},services:{name:Qu.services,defaultValue:[]},title:{name:Qu.title}},superTypes:[]},Axis:{name:O3.$type,properties:{label:{name:O3.label},name:{name:O3.name}},superTypes:[]},Branch:{name:nC.$type,properties:{name:{name:nC.name},order:{name:nC.order}},superTypes:[am.$type]},Checkout:{name:Uoe.$type,properties:{branch:{name:Uoe.branch}},superTypes:[am.$type]},CherryPicking:{name:D3.$type,properties:{id:{name:D3.id},parent:{name:D3.parent},tags:{name:D3.tags,defaultValue:[]}},superTypes:[am.$type]},ClassDefStatement:{name:tM.$type,properties:{className:{name:tM.className},styleText:{name:tM.styleText}},superTypes:[]},Commit:{name:Em.$type,properties:{id:{name:Em.id},message:{name:Em.message},tags:{name:Em.tags,defaultValue:[]},type:{name:Em.type}},superTypes:[am.$type]},Common:{name:L3.$type,properties:{accDescr:{name:L3.accDescr},accTitle:{name:L3.accTitle},title:{name:L3.title}},superTypes:[]},Component:{name:_f.$type,properties:{decorator:{name:_f.decorator},evolution:{name:_f.evolution},inertia:{name:_f.inertia,defaultValue:!1},label:{name:_f.label},name:{name:_f.name},visibility:{name:_f.visibility}},superTypes:[]},Curve:{name:M3.$type,properties:{entries:{name:M3.entries,defaultValue:[]},label:{name:M3.label},name:{name:M3.name}},superTypes:[]},Deaccelerator:{name:P3.$type,properties:{name:{name:P3.name},x:{name:P3.x},y:{name:P3.y}},superTypes:[]},Decorator:{name:Goe.$type,properties:{strategy:{name:Goe.strategy}},superTypes:[]},Direction:{name:tm.$type,properties:{accDescr:{name:tm.accDescr},accTitle:{name:tm.accTitle},dir:{name:tm.dir},statements:{name:tm.statements,defaultValue:[]},title:{name:tm.title}},superTypes:[Ff.$type]},Edge:{name:Ac.$type,properties:{lhsDir:{name:Ac.lhsDir},lhsGroup:{name:Ac.lhsGroup,defaultValue:!1},lhsId:{name:Ac.lhsId},lhsInto:{name:Ac.lhsInto,defaultValue:!1},rhsDir:{name:Ac.rhsDir},rhsGroup:{name:Ac.rhsGroup,defaultValue:!1},rhsId:{name:Ac.rhsId},rhsInto:{name:Ac.rhsInto,defaultValue:!1},title:{name:Ac.title}},superTypes:[]},EmDataEntity:{name:rm.$type,properties:{dataBlockValue:{name:rm.dataBlockValue},dataType:{name:rm.dataType},name:{name:rm.name}},superTypes:[]},EmFrame:{name:bf.$type,properties:{},superTypes:[]},EmGwt:{name:uE.$type,properties:{givenStatements:{name:uE.givenStatements,defaultValue:[]},sourceFrame:{name:uE.sourceFrame,referenceType:bf.$type},thenStatements:{name:uE.thenStatements,defaultValue:[]},whenStatements:{name:uE.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:qoe.$type,properties:{entityIdentifier:{name:qoe.entityIdentifier,referenceType:rM.$type}},superTypes:[]},EmModelEntity:{name:rM.$type,properties:{name:{name:rM.name}},superTypes:[]},EmNoteEntity:{name:B3.$type,properties:{dataBlockValue:{name:B3.dataBlockValue},dataType:{name:B3.dataType},sourceFrame:{name:B3.sourceFrame,referenceType:bf.$type}},superTypes:[]},EmResetFrame:{name:Zu.$type,properties:{dataInlineValue:{name:Zu.dataInlineValue},dataReference:{name:Zu.dataReference,referenceType:rm.$type},dataType:{name:Zu.dataType},entityIdentifier:{name:Zu.entityIdentifier},modelEntityType:{name:Zu.modelEntityType},name:{name:Zu.name},sourceFrames:{name:Zu.sourceFrames,defaultValue:[],referenceType:bf.$type}},superTypes:[bf.$type]},EmTimeFrame:{name:xd.$type,properties:{dataInlineValue:{name:xd.dataInlineValue},dataReference:{name:xd.dataReference,referenceType:rm.$type},dataType:{name:xd.dataType},entityIdentifier:{name:xd.entityIdentifier},modelEntityType:{name:xd.modelEntityType},name:{name:xd.name},sourceFrames:{name:xd.sourceFrames,defaultValue:[],referenceType:bf.$type}},superTypes:[bf.$type]},Entry:{name:nM.$type,properties:{axis:{name:nM.axis,referenceType:O3.$type},value:{name:nM.value}},superTypes:[]},EventModel:{name:Hu.$type,properties:{accDescr:{name:Hu.accDescr},accTitle:{name:Hu.accTitle},dataEntities:{name:Hu.dataEntities,defaultValue:[]},frames:{name:Hu.frames,defaultValue:[]},gwtEntities:{name:Hu.gwtEntities,defaultValue:[]},modelEntities:{name:Hu.modelEntities,defaultValue:[]},noteEntities:{name:Hu.noteEntities,defaultValue:[]},title:{name:Hu.title}},superTypes:[]},Evolution:{name:Yoe.$type,properties:{stages:{name:Yoe.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:F3.$type,properties:{boundary:{name:F3.boundary},name:{name:F3.name},secondName:{name:F3.secondName}},superTypes:[]},Evolve:{name:aM.$type,properties:{component:{name:aM.component},target:{name:aM.target}},superTypes:[]},GitGraph:{name:Ff.$type,properties:{accDescr:{name:Ff.accDescr},accTitle:{name:Ff.accTitle},statements:{name:Ff.statements,defaultValue:[]},title:{name:Ff.title}},superTypes:[]},Group:{name:dE.$type,properties:{icon:{name:dE.icon},id:{name:dE.id},in:{name:dE.in},title:{name:dE.title}},superTypes:[]},Info:{name:YE.$type,properties:{accDescr:{name:YE.accDescr},accTitle:{name:YE.accTitle},title:{name:YE.title}},superTypes:[]},Item:{name:hE.$type,properties:{classSelector:{name:hE.classSelector},name:{name:hE.name}},superTypes:[]},Junction:{name:iM.$type,properties:{id:{name:iM.id},in:{name:iM.in}},superTypes:[]},Label:{name:fE.$type,properties:{negX:{name:fE.negX,defaultValue:!1},negY:{name:fE.negY,defaultValue:!1},offsetX:{name:fE.offsetX},offsetY:{name:fE.offsetY}},superTypes:[]},Leaf:{name:$3.$type,properties:{classSelector:{name:$3.classSelector},name:{name:$3.name},value:{name:$3.value}},superTypes:[hE.$type]},Link:{name:Ef.$type,properties:{arrow:{name:Ef.arrow},from:{name:Ef.from},fromPort:{name:Ef.fromPort},linkLabel:{name:Ef.linkLabel},to:{name:Ef.to},toPort:{name:Ef.toPort}},superTypes:[]},Merge:{name:Sm.$type,properties:{branch:{name:Sm.branch},id:{name:Sm.id},tags:{name:Sm.tags,defaultValue:[]},type:{name:Sm.type}},superTypes:[am.$type]},Note:{name:z3.$type,properties:{evolution:{name:z3.evolution},text:{name:z3.text},visibility:{name:z3.visibility}},superTypes:[]},Option:{name:sM.$type,properties:{name:{name:sM.name},value:{name:sM.value,defaultValue:!1}},superTypes:[]},Packet:{name:Tm.$type,properties:{accDescr:{name:Tm.accDescr},accTitle:{name:Tm.accTitle},blocks:{name:Tm.blocks,defaultValue:[]},title:{name:Tm.title}},superTypes:[]},PacketBlock:{name:xm.$type,properties:{bits:{name:xm.bits},end:{name:xm.end},label:{name:xm.label},start:{name:xm.start}},superTypes:[]},Pie:{name:$f.$type,properties:{accDescr:{name:$f.accDescr},accTitle:{name:$f.accTitle},sections:{name:$f.sections,defaultValue:[]},showData:{name:$f.showData,defaultValue:!1},title:{name:$f.title}},superTypes:[]},PieSection:{name:aC.$type,properties:{label:{name:aC.label},value:{name:aC.value}},superTypes:[]},Pipeline:{name:oM.$type,properties:{components:{name:oM.components,defaultValue:[]},parent:{name:oM.parent}},superTypes:[]},PipelineComponent:{name:U3.$type,properties:{evolution:{name:U3.evolution},label:{name:U3.label},name:{name:U3.name}},superTypes:[]},Radar:{name:Sf.$type,properties:{accDescr:{name:Sf.accDescr},accTitle:{name:Sf.accTitle},axes:{name:Sf.axes,defaultValue:[]},curves:{name:Sf.curves,defaultValue:[]},options:{name:Sf.options,defaultValue:[]},title:{name:Sf.title}},superTypes:[]},Section:{name:lM.$type,properties:{classSelector:{name:lM.classSelector},name:{name:lM.name}},superTypes:[hE.$type]},Service:{name:nm.$type,properties:{icon:{name:nm.icon},iconText:{name:nm.iconText},id:{name:nm.id},in:{name:nm.in},title:{name:nm.title}},superTypes:[]},Size:{name:cM.$type,properties:{height:{name:cM.height},width:{name:cM.width}},superTypes:[]},Statement:{name:am.$type,properties:{},superTypes:[]},TreeNode:{name:dM.$type,properties:{indent:{name:dM.indent},name:{name:dM.name}},superTypes:[]},TreeView:{name:pE.$type,properties:{accDescr:{name:pE.accDescr},accTitle:{name:pE.accTitle},nodes:{name:pE.nodes,defaultValue:[]},title:{name:pE.title}},superTypes:[]},Treemap:{name:Cm.$type,properties:{accDescr:{name:Cm.accDescr},accTitle:{name:Cm.accTitle},title:{name:Cm.title},TreemapRows:{name:Cm.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:uM.$type,properties:{indent:{name:uM.indent},item:{name:uM.item}},superTypes:[]},Wardley:{name:Vi.$type,properties:{accDescr:{name:Vi.accDescr},accelerators:{name:Vi.accelerators,defaultValue:[]},accTitle:{name:Vi.accTitle},anchors:{name:Vi.anchors,defaultValue:[]},annotation:{name:Vi.annotation,defaultValue:[]},annotations:{name:Vi.annotations,defaultValue:[]},components:{name:Vi.components,defaultValue:[]},deaccelerators:{name:Vi.deaccelerators,defaultValue:[]},evolution:{name:Vi.evolution},evolves:{name:Vi.evolves,defaultValue:[]},links:{name:Vi.links,defaultValue:[]},notes:{name:Vi.notes,defaultValue:[]},pipelines:{name:Vi.pipelines,defaultValue:[]},size:{name:Vi.size},title:{name:Vi.title}},superTypes:[]}}}},k(r_,"MermaidAstReflection"),r_),al=new o7e,Hoe,O7t=k(()=>Hoe??(Hoe=nl(`{"$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"),Voe,D7t=k(()=>Voe??(Voe=nl('{"$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"),Woe,L7t=k(()=>Woe??(Woe=nl(`{"$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"),Koe,M7t=k(()=>Koe??(Koe=nl(`{"$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"),Xoe,P7t=k(()=>Xoe??(Xoe=nl(`{"$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"),joe,B7t=k(()=>joe??(joe=nl(`{"$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"),Qoe,F7t=k(()=>Qoe??(Qoe=nl(`{"$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"),Zoe,$7t=k(()=>Zoe??(Zoe=nl(`{"$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"),Joe,z7t=k(()=>Joe??(Joe=nl(`{"$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"),ele,U7t=k(()=>ele??(ele=nl(`{"$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"),G7t={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},q7t={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Y7t={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},H7t={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},V7t={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},W7t={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},K7t={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},X7t={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},j7t={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Q7t={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Mu={AstReflection:k(()=>new o7e,"AstReflection")},Z7t={Grammar:k(()=>O7t(),"Grammar"),LanguageMetaData:k(()=>G7t,"LanguageMetaData"),parser:{}},J7t={Grammar:k(()=>D7t(),"Grammar"),LanguageMetaData:k(()=>q7t,"LanguageMetaData"),parser:{}},eAt={Grammar:k(()=>L7t(),"Grammar"),LanguageMetaData:k(()=>Y7t,"LanguageMetaData"),parser:{}},tAt={Grammar:k(()=>M7t(),"Grammar"),LanguageMetaData:k(()=>H7t,"LanguageMetaData"),parser:{}},rAt={Grammar:k(()=>P7t(),"Grammar"),LanguageMetaData:k(()=>V7t,"LanguageMetaData"),parser:{}},nAt={Grammar:k(()=>B7t(),"Grammar"),LanguageMetaData:k(()=>W7t,"LanguageMetaData"),parser:{}},aAt={Grammar:k(()=>F7t(),"Grammar"),LanguageMetaData:k(()=>K7t,"LanguageMetaData"),parser:{}},iAt={Grammar:k(()=>$7t(),"Grammar"),LanguageMetaData:k(()=>X7t,"LanguageMetaData"),parser:{}},sAt={Grammar:k(()=>z7t(),"Grammar"),LanguageMetaData:k(()=>j7t,"LanguageMetaData"),parser:{}},oAt={Grammar:k(()=>U7t(),"Grammar"),LanguageMetaData:k(()=>Q7t,"LanguageMetaData"),parser:{}},lAt=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,cAt=/accTitle[\t ]*:([^\n\r]*)/,uAt=/title([\t ][^\n\r]*|)/,dAt={ACC_DESCR:lAt,ACC_TITLE:cAt,TITLE:uAt},n_,I2=(n_=class extends tW{runConverter(e,r,n){let a=this.runCommonConverter(e,r,n);return a===void 0&&(a=this.runCustomConverter(e,r,n)),a===void 0?super.runConverter(e,r,n):a}runCommonConverter(e,r,n){const a=dAt[e.name];if(a===void 0)return;const i=a.exec(r);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm," ");if(i[2]!==void 0)return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` -`)}}},k(n_,"AbstractMermaidValueConverter"),n_),a_,hx=(a_=class extends I2{runCustomConverter(e,r,n){}},k(a_,"CommonValueConverter"),a_),i_,Pu=(i_=class extends l8{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,r,n){const a=super.buildKeywordTokens(e,r,n);return a.forEach(i=>{this.keywords.has(i.name)&&i.PATTERN!==void 0&&(i.PATTERN=new RegExp(i.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),a}},k(i_,"AbstractMermaidTokenBuilder"),i_),s_;s_=class extends Pu{},k(s_,"CommonTokenBuilder");var o_,hAt=(o_=class extends Pu{constructor(){super(["radar-beta"])}},k(o_,"RadarTokenBuilder"),o_),l7e={parser:{TokenBuilder:k(()=>new hAt,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")}};function c7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),aAt,l7e);return e.ServiceRegistry.register(r),{shared:e,Radar:r}}k(c7e,"createRadarServices");var l_,fAt=(l_=class extends Pu{constructor(){super(["treemap"])}},k(l_,"TreemapTokenBuilder"),l_),pAt=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,c_,gAt=(c_=class extends I2{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 a=pAt.exec(r);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}},k(c_,"TreemapValueConverter"),c_);function u7e(t){const e=t.validation.TreemapValidator,r=t.validation.ValidationRegistry;if(r){const n={Treemap:e.checkSingleRoot.bind(e)};r.register(n,e)}}k(u7e,"registerValidationChecks");var u_,mAt=(u_=class{checkSingleRoot(e,r){let n;for(const a of e.TreemapRows)a.item&&(n===void 0&&a.indent===void 0?n=0:a.indent===void 0?r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):n!==void 0&&n>=parseInt(a.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},k(u_,"TreemapValidator"),u_),d7e={parser:{TokenBuilder:k(()=>new fAt,"TokenBuilder"),ValueConverter:k(()=>new gAt,"ValueConverter")},validation:{TreemapValidator:k(()=>new mAt,"TreemapValidator")}};function h7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),iAt,d7e);return e.ServiceRegistry.register(r),u7e(r),{shared:e,Treemap:r}}k(h7e,"createTreemapServices");var d_,vAt=(d_=class extends I2{runCustomConverter(e,r,n){if(e.name.toUpperCase()==="LINK_LABEL")return r.substring(1).trim()}},k(d_,"WardleyValueConverter"),d_),f7e={parser:{ValueConverter:k(()=>new vAt,"ValueConverter")}};function p7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),oAt,f7e);return e.ServiceRegistry.register(r),{shared:e,Wardley:r}}k(p7e,"createWardleyServices");var h_,yAt=(h_=class extends Pu{constructor(){super(["gitGraph"])}},k(h_,"GitGraphTokenBuilder"),h_),g7e={parser:{TokenBuilder:k(()=>new yAt,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")}};function m7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),eAt,g7e);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}k(m7e,"createGitGraphServices");var f_,_At=(f_=class extends Pu{constructor(){super(["info","showInfo"])}},k(f_,"InfoTokenBuilder"),f_),v7e={parser:{TokenBuilder:k(()=>new _At,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")}};function y7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),tAt,v7e);return e.ServiceRegistry.register(r),{shared:e,Info:r}}k(y7e,"createInfoServices");var p_,bAt=(p_=class extends Pu{constructor(){super(["packet"])}},k(p_,"PacketTokenBuilder"),p_),_7e={parser:{TokenBuilder:k(()=>new bAt,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")}};function b7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),rAt,_7e);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}k(b7e,"createPacketServices");var g_,EAt=(g_=class extends Pu{constructor(){super(["pie","showData"])}},k(g_,"PieTokenBuilder"),g_),m_,SAt=(m_=class extends I2{runCustomConverter(e,r,n){if(e.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},k(m_,"PieValueConverter"),m_),E7e={parser:{TokenBuilder:k(()=>new EAt,"TokenBuilder"),ValueConverter:k(()=>new SAt,"ValueConverter")}};function S7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),nAt,E7e);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}k(S7e,"createPieServices");var v_,TAt=(v_=class extends I2{runCustomConverter(e,r,n){if(e.name==="INDENTATION")return r?.length||0;if(e.name==="STRING2")return r.substring(1,r.length-1)}},k(v_,"TreeViewValueConverter"),v_),y_,xAt=(y_=class extends Pu{constructor(){super(["treeView-beta"])}},k(y_,"TreeViewTokenBuilder"),y_),T7e={parser:{TokenBuilder:k(()=>new xAt,"TokenBuilder"),ValueConverter:k(()=>new TAt,"ValueConverter")}};function x7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),sAt,T7e);return e.ServiceRegistry.register(r),{shared:e,TreeView:r}}k(x7e,"createTreeViewServices");var __,CAt=(__=class extends Pu{constructor(){super(["architecture"])}},k(__,"ArchitectureTokenBuilder"),__),b_,wAt=(b_=class extends I2{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 a=r.replace(/^\[|]$/g,"").trim();return(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))&&(a=a.slice(1,-1),a=a.replace(/\\"/g,'"').replace(/\\'/g,"'")),a.trim()}}},k(b_,"ArchitectureValueConverter"),b_),C7e={parser:{TokenBuilder:k(()=>new CAt,"TokenBuilder"),ValueConverter:k(()=>new wAt,"ValueConverter")}};function w7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),Z7t,C7e);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}k(w7e,"createArchitectureServices");var E_,kAt=(E_=class extends Pu{constructor(){super(["eventmodeling"])}},k(E_,"EventModelingTokenBuilder"),E_),tle=new Set(["cmd","command"]),rle=new Set(["evt","event"]),hM=new Set(["rmo","readmodel"]),nle=new Set(["pcr","processor"]),ale=new Set(["ui"]);function k7e(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(k7e,"registerValidationChecks");var S_,AAt=(S_=class{checkSourceFrameTypes(e,r){e.sourceFrames.length!==0&&(tle.has(e.modelEntityType)?this.validateSources(e,new Set([...ale,...nle]),"command","ui or processor",r):rle.has(e.modelEntityType)?this.validateSources(e,tle,"event","command",r):hM.has(e.modelEntityType)?this.validateSources(e,rle,"read model","event",r):nle.has(e.modelEntityType)?this.validateSources(e,hM,"processor","read model",r):ale.has(e.modelEntityType)&&this.validateSources(e,hM,"ui","read model",r))}validateSources(e,r,n,a,i){for(const s of e.sourceFrames){const o=s.ref;o!==void 0&&!r.has(o.modelEntityType)&&i("error",`A ${n} can only receive input from a ${a}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},k(S_,"EventModelingValidator"),S_),A7e={parser:{TokenBuilder:k(()=>new kAt,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")},validation:{EventModelingValidator:k(()=>new AAt,"EventModelingValidator")}};function R7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),J7t,A7e);return e.ServiceRegistry.register(r),k7e(r),{shared:e,EventModel:r}}k(R7e,"createEventModelingServices");var dl={},RAt={info:k(async()=>{const{createInfoServices:t}=await Promise.resolve().then(()=>qFt),e=t().Info.parser.LangiumParser;dl.info=e},"info"),packet:k(async()=>{const{createPacketServices:t}=await Promise.resolve().then(()=>YFt),e=t().Packet.parser.LangiumParser;dl.packet=e},"packet"),pie:k(async()=>{const{createPieServices:t}=await Promise.resolve().then(()=>HFt),e=t().Pie.parser.LangiumParser;dl.pie=e},"pie"),treeView:k(async()=>{const{createTreeViewServices:t}=await Promise.resolve().then(()=>VFt),e=t().TreeView.parser.LangiumParser;dl.treeView=e},"treeView"),architecture:k(async()=>{const{createArchitectureServices:t}=await Promise.resolve().then(()=>WFt),e=t().Architecture.parser.LangiumParser;dl.architecture=e},"architecture"),gitGraph:k(async()=>{const{createGitGraphServices:t}=await Promise.resolve().then(()=>KFt),e=t().GitGraph.parser.LangiumParser;dl.gitGraph=e},"gitGraph"),eventmodeling:k(async()=>{const{createEventModelingServices:t}=await Promise.resolve().then(()=>XFt),e=t().EventModel.parser.LangiumParser;dl.eventmodeling=e},"eventmodeling"),radar:k(async()=>{const{createRadarServices:t}=await Promise.resolve().then(()=>jFt),e=t().Radar.parser.LangiumParser;dl.radar=e},"radar"),treemap:k(async()=>{const{createTreemapServices:t}=await Promise.resolve().then(()=>QFt),e=t().Treemap.parser.LangiumParser;dl.treemap=e},"treemap"),wardley:k(async()=>{const{createWardleyServices:t}=await Promise.resolve().then(()=>ZFt),e=t().Wardley.parser.LangiumParser;dl.wardley=e},"wardley")};async function Sc(t,e){const r=RAt[t];if(!r)throw new Error(`Unknown diagram type: ${t}`);dl[t]||await r();const a=dl[t].parse(e);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new NAt(a);return a.value}k(Sc,"parse");var T_,NAt=(T_=class extends Error{constructor(e){const r=e.lexerErrors.map(a=>{const i=a.line!==void 0&&!isNaN(a.line)?a.line:"?",s=a.column!==void 0&&!isNaN(a.column)?a.column:"?";return`Lexer error on line ${i}, column ${s}: ${a.message}`}).join(` +`}k(W$,"fillNewlines");var Yy,jke=(Yy=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const r=this.commentProvider.getComment(e);if(r&&gW(r))return pW(r).toMarkdown({renderLink:k((a,i)=>this.documentationLinkRenderer(e,a,i),"renderLink"),renderTag:k(a=>this.documentationTagRenderer(e,a),"renderTag")})}documentationLinkRenderer(e,r,n){const a=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(a&&a.nameSegment){const i=a.nameSegment.range.start.line+1,s=a.nameSegment.range.start.character+1,o=a.documentUri.with({fragment:`L${i},${s}`});return`[${n}](${o.toString()})`}else return}documentationTagRenderer(e,r){}findNameInLocalSymbols(e,r){const a=cc(e).localSymbols;if(!a)return;let i=e;do{const o=a.getStream(i).find(l=>l.name===r);if(o)return o;i=i.$container}while(i)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(a=>a.name===r)}},k(Yy,"JSDocDocumentationProvider"),Yy),Hy,Qke=(Hy=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return cW(e)?e.$comment:vH(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},k(Hy,"DefaultCommentProvider"),Hy),Vy,Zke=(Vy=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}},k(Vy,"DefaultAsyncParser"),Vy),Wy,p7t=(Wy=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),a=new q0;let i;const s=r.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(o=>{const l=this.hydrator.hydrate(o);a.resolve(l)}).catch(o=>{a.reject(o)}).finally(()=>{s.dispose(),clearTimeout(i)}),a.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 q0;return e.onCancellationRequested(()=>{const n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(eu)}),this.queue.push(r),r.promise}},k(Wy,"AbstractThreadedAsyncParser"),Wy),Ky,g7t=(Ky=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,a){this.onReadyEmitter=new f8.Emitter,this.deferred=new q0,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=a,r(i=>{const s=i;this.deferred.resolve(s),this.unlock()}),n(i=>{this.deferred.reject(i),this.unlock()})}terminate(){this.deferred.reject(eu),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 q0,this.sendMessage(e),this.deferred.promise}},k(Ky,"ParserWorker"),Ky),Xy,Jke=(Xy=class{constructor(){this.previousTokenSource=new jn.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const r=u8();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n=jn.CancellationToken.None){const a=new q0,i={action:r,deferred:a,cancellationToken:n};return e.push(i),this.performNextOperation(),a.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:a})=>{try{const i=await Promise.resolve().then(()=>r(a));n.resolve(i)}catch(i){Pg(i)?n.resolve(void 0):n.reject(i)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},k(Xy,"DefaultWorkspaceLock"),Xy),jy,e7e=(jy=class{constructor(e){this.grammarElementIdMap=new Uw,this.tokenTypeIdMap=new Uw,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 a of uc(e))r.set(a,{});if(e.$cstNode)for(const a of Ob(e.$cstNode))n.set(a,{});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[a,i]of Object.entries(e))if(!a.startsWith("$"))if(Array.isArray(i)){const s=[];n[a]=s;for(const o of i)ti(o)?s.push(this.dehydrateAstNode(o,r)):zs(o)?s.push(this.dehydrateReference(o,r)):s.push(o)}else ti(i)?n[a]=this.dehydrateAstNode(i,r):zs(i)?n[a]=this.dehydrateReference(i,r):i!==void 0&&(n[a]=i);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 uA(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=r.astNodes.get(e.astNode),M0(e)?n.content=e.content.map(a=>this.dehydrateCstNode(a,r)):vg(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 i of uc(e))r.set(i,{});let a;if(e.$cstNode)for(const i of Ob(e.$cstNode)){let s;"fullText"in i?(s=new WV(i.fullText),a=s):"content"in i?s=new i8:"tokenType"in i&&(s=this.hydrateCstLeafNode(i)),s&&(n.set(i,s),s.root=a)}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[a,i]of Object.entries(e))if(!a.startsWith("$"))if(Array.isArray(i)){const s=[];n[a]=s;for(const o of i)ti(o)?s.push(this.setParent(this.hydrateAstNode(o,r),n)):zs(o)?s.push(this.hydrateReference(o,n,a,r)):s.push(o)}else ti(i)?n[a]=this.setParent(this.hydrateAstNode(i,r),n):zs(i)?n[a]=this.hydrateReference(i,n,a,r):i!==void 0&&(n[a]=i);return n}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,n,a){return this.linker.buildReference(r,n,a.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,n=0){const a=r.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(a.grammarSource=this.getGrammarElement(e.grammarSource)),a.astNode=r.astNodes.get(e.astNode),M0(a))for(const i of e.content){const s=this.hydrateCstNode(i,r,n++);a.content.push(s)}return a}hydrateCstLeafNode(e){const r=this.getTokenType(e.tokenType),n=e.offset,a=e.length,i=e.startLine,s=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new Pw(n,a,{start:{line:i,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 uc(this.grammar))dA(r)&&this.grammarElementIdMap.set(r,e++)}},k(jy,"DefaultHydrator"),jy);function tl(t){return{documentation:{CommentProvider:k(e=>new Qke(e),"CommentProvider"),DocumentationProvider:k(e=>new jke(e),"DocumentationProvider")},parser:{AsyncParser:k(e=>new Zke(e),"AsyncParser"),GrammarConfig:k(e=>UH(e),"GrammarConfig"),LangiumParser:k(e=>JV(e),"LangiumParser"),CompletionParser:k(e=>ZV(e),"CompletionParser"),ValueConverter:k(()=>new tW,"ValueConverter"),TokenBuilder:k(()=>new l8,"TokenBuilder"),Lexer:k(e=>new fW(e),"Lexer"),ParserErrorMessageProvider:k(()=>new XV,"ParserErrorMessageProvider"),LexerErrorMessageProvider:k(()=>new $ke,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:k(()=>new Lke,"AstNodeLocator"),AstNodeDescriptionProvider:k(e=>new Oke(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:k(e=>new Dke(e),"ReferenceDescriptionProvider")},references:{Linker:k(e=>new bke(e),"Linker"),NameProvider:k(()=>new Eke,"NameProvider"),ScopeProvider:k(e=>new wke(e),"ScopeProvider"),ScopeComputation:k(e=>new Tke(e),"ScopeComputation"),References:k(e=>new Ske(e),"References")},serializer:{Hydrator:k(e=>new e7e(e),"Hydrator"),JsonSerializer:k(e=>new kke(e),"JsonSerializer")},validation:{DocumentValidator:k(e=>new Ike(e),"DocumentValidator"),ValidationRegistry:k(e=>new Rke(e),"ValidationRegistry")},shared:k(()=>t.shared,"shared")}}k(tl,"createDefaultCoreModule");function rl(t){return{ServiceRegistry:k(e=>new Ake(e),"ServiceRegistry"),workspace:{LangiumDocuments:k(e=>new _ke(e),"LangiumDocuments"),LangiumDocumentFactory:k(e=>new yke(e),"LangiumDocumentFactory"),DocumentBuilder:k(e=>new Pke(e),"DocumentBuilder"),IndexManager:k(e=>new Bke(e),"IndexManager"),WorkspaceManager:k(e=>new Fke(e),"WorkspaceManager"),FileSystemProvider:k(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:k(()=>new Jke,"WorkspaceLock"),ConfigurationProvider:k(e=>new Mke(e),"ConfigurationProvider")},profilers:{}}}k(rl,"createDefaultSharedCoreModule");var K$;(function(t){t.merge=(e,r)=>Fb(Fb({},e),r)})(K$||(K$={}));function ga(t,e,r,n,a,i,s,o,l){const u=[t,e,r,n,a,i,s,o,l].reduce(Fb,{});return EW(u)}k(ga,"inject");var t7e=Symbol("isProxy");function bW(t){if(t&&t[t7e])for(const e of Object.values(t))bW(e);return t}k(bW,"eagerLoad");function EW(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,a)=>a===t7e?!0:X$(n,a,t,e||r),"get"),getOwnPropertyDescriptor:k((n,a)=>(X$(n,a,t,e||r),Object.getOwnPropertyDescriptor(n,a)),"getOwnPropertyDescriptor"),has:k((n,a)=>a in t,"has"),ownKeys:k(()=>[...Object.getOwnPropertyNames(t)],"ownKeys")});return r}k(EW,"_inject");var zoe=Symbol();function X$(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]===zoe)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 a=r[e];t[e]=zoe;try{t[e]=typeof a=="function"?a(n):EW(a,n)}catch(i){throw t[e]=i instanceof Error?i:void 0,i}return t[e]}else return}k(X$,"_resolve");function Fb(t,e){if(e){for(const[r,n]of Object.entries(e))if(n!=null)if(typeof n=="object"){const a=t[r];typeof a=="object"&&a!==null?t[r]=Fb(a,n):t[r]=Fb({},n)}else t[r]=n}return t}k(Fb,"_merge");var j$={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},gp;(function(t){t.REGULAR="indentation-sensitive",t.IGNORE_INDENTATION="ignore-indentation"})(gp||(gp={}));var Qy,r7e=(Qy=class extends l8{constructor(e=j$){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...j$,...e},this.indentTokenType=g1({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=g1({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,r){const n=super.buildTokens(e,r);if(!p8(n))throw new Error("Invalid tokens built by default builder");const{indentTokenName:a,dedentTokenName:i,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=gp.IGNORE_INDENTATION:f.name===g&&(f.POP_MODE=!0);f.name===i?l=f:f.name===a?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:{[gp.REGULAR]:[l,u,...h,d],[gp.IGNORE_INDENTATION]:[...h,d]},defaultMode:gp.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,a){this.whitespaceRegExp.lastIndex=r;const i=this.whitespaceRegExp.exec(e);return{currIndentLevel:i?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,r,n,a){const i=this.getLineNumber(r,a);return lx(e,n,a,a+n.length,i,i,1,n.length)}getLineNumber(e,r){return e.substring(0,r).split(/\r\n|\r|\n/).length}indentMatcher(e,r,n,a){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:i,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,a);return i<=s?null:(this.indentationStack.push(i),o)}dedentMatcher(e,r,n,a){if(!this.isStartOfLine(e,r))return null;const{currIndentLevel:i,prevIndentLevel:s,match:o}=this.matchWhitespace(e,r,n,a);if(i>=s)return null;const l=this.indentationStack.lastIndexOf(i);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${i} 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(Qy,"IndentationAwareTokenBuilder"),Qy),Zy,m7t=(Zy=class extends fW{constructor(e){if(super(e),e.parser.TokenBuilder instanceof r7e)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,r=hW){const n=super.tokenize(e),a=n.report;r?.mode==="full"&&n.tokens.push(...a.remainingDedents),a.remainingDedents=[];const{indentTokenType:i,dedentTokenType:s}=this.indentationTokenBuilder,o=i.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(Zy,"IndentationAwareLexer"),Zy),SW={};Kh(SW,{AstUtils:()=>HY,BiMap:()=>Uw,Cancellation:()=>jn,ContextCache:()=>h8,CstUtils:()=>GY,DONE_RESULT:()=>Os,Deferred:()=>q0,Disposable:()=>Tp,DisposableCache:()=>d8,DocumentCache:()=>Cke,EMPTY_STREAM:()=>kb,ErrorWithLocation:()=>yA,GrammarUtils:()=>EH,MultiMap:()=>Y0,OperationCancelled:()=>eu,Reduction:()=>O4,RegExpUtils:()=>TH,SimpleCache:()=>oW,StreamImpl:()=>Jc,TreeStreamImpl:()=>Ab,URI:()=>Bo,UriTrie:()=>iW,UriUtils:()=>Us,WorkspaceCache:()=>lW,assertCondition:()=>SH,assertUnreachable:()=>Xh,delayNextTick:()=>c8,interruptAndCheck:()=>Pi,isOperationCancelled:()=>Pg,loadGrammarFromJson:()=>nl,setInterruptionPeriod:()=>rW,startCancelableOperation:()=>u8,stream:()=>Pn});oA(SW,f8);var Jy,n7e=(Jy=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(Jy,"EmptyFileSystemProvider"),Jy),Ul={fileSystemProvider:k(()=>new n7e,"fileSystemProvider")},v7t={Grammar:k(()=>{},"Grammar"),LanguageMetaData:k(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},y7t={AstReflection:k(()=>new hH,"AstReflection")};function a7e(){const t=ga(rl(Ul),y7t),e=ga(tl({shared:t}),v7t);return t.ServiceRegistry.register(e),e}k(a7e,"createMinimalGrammarServices");function nl(t){const e=a7e(),r=e.serializer.JsonSerializer.deserialize(t);return e.shared.workspace.LangiumDocumentFactory.fromModel(r,Bo.parse(`memory:/${r.name??"grammar"}.langium`)),r}k(nl,"loadGrammarFromJson");oA(pEe,SW);var e_,_7t=(e_=class{constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new Y0}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 i7e(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 a=r.duration-n.map(s=>s.duration).reduce((s,o)=>s+o,0);n.push({name:r.identifier,count:1,duration:a}),n.sort((s,o)=>o.duration-s.duration);function i(s){return Math.round(100*s)/100}return k(i,"Round"),console.table(n.map(s=>({Element:s.name,Count:s.count,"Self %":i(100*s.duration/r.duration),"Time (ms)":i(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(e_,"DefaultLangiumProfiler"),e_),t_,i7e=(t_=class{constructor(e,r){this.stack=[],this.entries=new Y0,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 a=n-r.content;this.entries.add(e,a)}},k(t_,"ProfilingTask"),t_),Q$;(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 ]+)\]/}})(Q$||(Q$={}));var Z$;(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]*/}})(Z$||(Z$={}));var J$;(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])?/}})(J$||(J$={}));var ez;(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]*/}})(ez||(ez={}));var tz;(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]*/}})(tz||(tz={}));var rz;(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]*/}})(rz||(rz={}));var nz;(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]*/}})(nz||(nz={}));var az;(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:/"[^"]*"|'[^']*'/}})(az||(az={}));var iz;(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:/"[^"]*"|'[^']*'/}})(iz||(iz={}));var sz;(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]*/}})(sz||(sz={}));({...Q$.Terminals,...Z$.Terminals,...J$.Terminals,...ez.Terminals,...tz.Terminals,...rz.Terminals,...nz.Terminals,...iz.Terminals,...az.Terminals,...sz.Terminals});var N3={$type:"Accelerator",name:"name",x:"x",y:"y"},I3={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},cE={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},eM={$type:"Annotations",x:"x",y:"y"},Qu={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function b7t(t){return al.isInstance(t,Qu.$type)}k(b7t,"isArchitecture");var O3={$type:"Axis",label:"label",name:"name"},nC={$type:"Branch",name:"name",order:"order"};function E7t(t){return al.isInstance(t,nC.$type)}k(E7t,"isBranch");var Uoe={$type:"Checkout",branch:"branch"},D3={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},tM={$type:"ClassDefStatement",className:"className",styleText:"styleText"},Em={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function S7t(t){return al.isInstance(t,Em.$type)}k(S7t,"isCommit");var L3={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},_f={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},M3={$type:"Curve",entries:"entries",label:"label",name:"name"},P3={$type:"Deaccelerator",name:"name",x:"x",y:"y"},Goe={$type:"Decorator",strategy:"strategy"},tm={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},Ac={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},rm={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},bf={$type:"EmFrame"},uE={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},qoe={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},rM={$type:"EmModelEntity",name:"name"};function T7t(t){return t==="rmo"||t==="readmodel"||t==="ui"||t==="cmd"||t==="command"||t==="evt"||t==="event"||t==="pcr"||t==="processor"}k(T7t,"isEmModelEntityType");var B3={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},Zu={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function s7e(t){return al.isInstance(t,Zu.$type)}k(s7e,"isEmResetFrame");var xd={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},nM={$type:"Entry",axis:"axis",value:"value"},Hu={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},Yoe={$type:"Evolution",stages:"stages"},F3={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},aM={$type:"Evolve",component:"component",target:"target"},Ff={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function x7t(t){return al.isInstance(t,Ff.$type)}k(x7t,"isGitGraph");var dE={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},YE={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function C7t(t){return al.isInstance(t,YE.$type)}k(C7t,"isInfo");var hE={$type:"Item",classSelector:"classSelector",name:"name"},iM={$type:"Junction",id:"id",in:"in"},fE={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},$3={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},Ef={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},Sm={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function w7t(t){return al.isInstance(t,Sm.$type)}k(w7t,"isMerge");var z3={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},sM={$type:"Option",name:"name",value:"value"},Tm={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function k7t(t){return al.isInstance(t,Tm.$type)}k(k7t,"isPacket");var xm={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function A7t(t){return al.isInstance(t,xm.$type)}k(A7t,"isPacketBlock");var $f={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function R7t(t){return al.isInstance(t,$f.$type)}k(R7t,"isPie");var aC={$type:"PieSection",label:"label",value:"value"};function N7t(t){return al.isInstance(t,aC.$type)}k(N7t,"isPieSection");var oM={$type:"Pipeline",components:"components",parent:"parent"},U3={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},Sf={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},lM={$type:"Section",classSelector:"classSelector",name:"name"},nm={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},cM={$type:"Size",height:"height",width:"width"},am={$type:"Statement"},Cm={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function I7t(t){return al.isInstance(t,Cm.$type)}k(I7t,"isTreemap");var uM={$type:"TreemapRow",indent:"indent",item:"item"},dM={$type:"TreeNode",indent:"indent",name:"name"},pE={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Vi={$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 O7t(t){return al.isInstance(t,Vi.$type)}k(O7t,"isWardley");var r_,o7e=(r_=class extends YY{constructor(){super(...arguments),this.types={Accelerator:{name:N3.$type,properties:{name:{name:N3.name},x:{name:N3.x},y:{name:N3.y}},superTypes:[]},Anchor:{name:I3.$type,properties:{evolution:{name:I3.evolution},name:{name:I3.name},visibility:{name:I3.visibility}},superTypes:[]},Annotation:{name:cE.$type,properties:{number:{name:cE.number},text:{name:cE.text},x:{name:cE.x},y:{name:cE.y}},superTypes:[]},Annotations:{name:eM.$type,properties:{x:{name:eM.x},y:{name:eM.y}},superTypes:[]},Architecture:{name:Qu.$type,properties:{accDescr:{name:Qu.accDescr},accTitle:{name:Qu.accTitle},edges:{name:Qu.edges,defaultValue:[]},groups:{name:Qu.groups,defaultValue:[]},junctions:{name:Qu.junctions,defaultValue:[]},services:{name:Qu.services,defaultValue:[]},title:{name:Qu.title}},superTypes:[]},Axis:{name:O3.$type,properties:{label:{name:O3.label},name:{name:O3.name}},superTypes:[]},Branch:{name:nC.$type,properties:{name:{name:nC.name},order:{name:nC.order}},superTypes:[am.$type]},Checkout:{name:Uoe.$type,properties:{branch:{name:Uoe.branch}},superTypes:[am.$type]},CherryPicking:{name:D3.$type,properties:{id:{name:D3.id},parent:{name:D3.parent},tags:{name:D3.tags,defaultValue:[]}},superTypes:[am.$type]},ClassDefStatement:{name:tM.$type,properties:{className:{name:tM.className},styleText:{name:tM.styleText}},superTypes:[]},Commit:{name:Em.$type,properties:{id:{name:Em.id},message:{name:Em.message},tags:{name:Em.tags,defaultValue:[]},type:{name:Em.type}},superTypes:[am.$type]},Common:{name:L3.$type,properties:{accDescr:{name:L3.accDescr},accTitle:{name:L3.accTitle},title:{name:L3.title}},superTypes:[]},Component:{name:_f.$type,properties:{decorator:{name:_f.decorator},evolution:{name:_f.evolution},inertia:{name:_f.inertia,defaultValue:!1},label:{name:_f.label},name:{name:_f.name},visibility:{name:_f.visibility}},superTypes:[]},Curve:{name:M3.$type,properties:{entries:{name:M3.entries,defaultValue:[]},label:{name:M3.label},name:{name:M3.name}},superTypes:[]},Deaccelerator:{name:P3.$type,properties:{name:{name:P3.name},x:{name:P3.x},y:{name:P3.y}},superTypes:[]},Decorator:{name:Goe.$type,properties:{strategy:{name:Goe.strategy}},superTypes:[]},Direction:{name:tm.$type,properties:{accDescr:{name:tm.accDescr},accTitle:{name:tm.accTitle},dir:{name:tm.dir},statements:{name:tm.statements,defaultValue:[]},title:{name:tm.title}},superTypes:[Ff.$type]},Edge:{name:Ac.$type,properties:{lhsDir:{name:Ac.lhsDir},lhsGroup:{name:Ac.lhsGroup,defaultValue:!1},lhsId:{name:Ac.lhsId},lhsInto:{name:Ac.lhsInto,defaultValue:!1},rhsDir:{name:Ac.rhsDir},rhsGroup:{name:Ac.rhsGroup,defaultValue:!1},rhsId:{name:Ac.rhsId},rhsInto:{name:Ac.rhsInto,defaultValue:!1},title:{name:Ac.title}},superTypes:[]},EmDataEntity:{name:rm.$type,properties:{dataBlockValue:{name:rm.dataBlockValue},dataType:{name:rm.dataType},name:{name:rm.name}},superTypes:[]},EmFrame:{name:bf.$type,properties:{},superTypes:[]},EmGwt:{name:uE.$type,properties:{givenStatements:{name:uE.givenStatements,defaultValue:[]},sourceFrame:{name:uE.sourceFrame,referenceType:bf.$type},thenStatements:{name:uE.thenStatements,defaultValue:[]},whenStatements:{name:uE.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:qoe.$type,properties:{entityIdentifier:{name:qoe.entityIdentifier,referenceType:rM.$type}},superTypes:[]},EmModelEntity:{name:rM.$type,properties:{name:{name:rM.name}},superTypes:[]},EmNoteEntity:{name:B3.$type,properties:{dataBlockValue:{name:B3.dataBlockValue},dataType:{name:B3.dataType},sourceFrame:{name:B3.sourceFrame,referenceType:bf.$type}},superTypes:[]},EmResetFrame:{name:Zu.$type,properties:{dataInlineValue:{name:Zu.dataInlineValue},dataReference:{name:Zu.dataReference,referenceType:rm.$type},dataType:{name:Zu.dataType},entityIdentifier:{name:Zu.entityIdentifier},modelEntityType:{name:Zu.modelEntityType},name:{name:Zu.name},sourceFrames:{name:Zu.sourceFrames,defaultValue:[],referenceType:bf.$type}},superTypes:[bf.$type]},EmTimeFrame:{name:xd.$type,properties:{dataInlineValue:{name:xd.dataInlineValue},dataReference:{name:xd.dataReference,referenceType:rm.$type},dataType:{name:xd.dataType},entityIdentifier:{name:xd.entityIdentifier},modelEntityType:{name:xd.modelEntityType},name:{name:xd.name},sourceFrames:{name:xd.sourceFrames,defaultValue:[],referenceType:bf.$type}},superTypes:[bf.$type]},Entry:{name:nM.$type,properties:{axis:{name:nM.axis,referenceType:O3.$type},value:{name:nM.value}},superTypes:[]},EventModel:{name:Hu.$type,properties:{accDescr:{name:Hu.accDescr},accTitle:{name:Hu.accTitle},dataEntities:{name:Hu.dataEntities,defaultValue:[]},frames:{name:Hu.frames,defaultValue:[]},gwtEntities:{name:Hu.gwtEntities,defaultValue:[]},modelEntities:{name:Hu.modelEntities,defaultValue:[]},noteEntities:{name:Hu.noteEntities,defaultValue:[]},title:{name:Hu.title}},superTypes:[]},Evolution:{name:Yoe.$type,properties:{stages:{name:Yoe.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:F3.$type,properties:{boundary:{name:F3.boundary},name:{name:F3.name},secondName:{name:F3.secondName}},superTypes:[]},Evolve:{name:aM.$type,properties:{component:{name:aM.component},target:{name:aM.target}},superTypes:[]},GitGraph:{name:Ff.$type,properties:{accDescr:{name:Ff.accDescr},accTitle:{name:Ff.accTitle},statements:{name:Ff.statements,defaultValue:[]},title:{name:Ff.title}},superTypes:[]},Group:{name:dE.$type,properties:{icon:{name:dE.icon},id:{name:dE.id},in:{name:dE.in},title:{name:dE.title}},superTypes:[]},Info:{name:YE.$type,properties:{accDescr:{name:YE.accDescr},accTitle:{name:YE.accTitle},title:{name:YE.title}},superTypes:[]},Item:{name:hE.$type,properties:{classSelector:{name:hE.classSelector},name:{name:hE.name}},superTypes:[]},Junction:{name:iM.$type,properties:{id:{name:iM.id},in:{name:iM.in}},superTypes:[]},Label:{name:fE.$type,properties:{negX:{name:fE.negX,defaultValue:!1},negY:{name:fE.negY,defaultValue:!1},offsetX:{name:fE.offsetX},offsetY:{name:fE.offsetY}},superTypes:[]},Leaf:{name:$3.$type,properties:{classSelector:{name:$3.classSelector},name:{name:$3.name},value:{name:$3.value}},superTypes:[hE.$type]},Link:{name:Ef.$type,properties:{arrow:{name:Ef.arrow},from:{name:Ef.from},fromPort:{name:Ef.fromPort},linkLabel:{name:Ef.linkLabel},to:{name:Ef.to},toPort:{name:Ef.toPort}},superTypes:[]},Merge:{name:Sm.$type,properties:{branch:{name:Sm.branch},id:{name:Sm.id},tags:{name:Sm.tags,defaultValue:[]},type:{name:Sm.type}},superTypes:[am.$type]},Note:{name:z3.$type,properties:{evolution:{name:z3.evolution},text:{name:z3.text},visibility:{name:z3.visibility}},superTypes:[]},Option:{name:sM.$type,properties:{name:{name:sM.name},value:{name:sM.value,defaultValue:!1}},superTypes:[]},Packet:{name:Tm.$type,properties:{accDescr:{name:Tm.accDescr},accTitle:{name:Tm.accTitle},blocks:{name:Tm.blocks,defaultValue:[]},title:{name:Tm.title}},superTypes:[]},PacketBlock:{name:xm.$type,properties:{bits:{name:xm.bits},end:{name:xm.end},label:{name:xm.label},start:{name:xm.start}},superTypes:[]},Pie:{name:$f.$type,properties:{accDescr:{name:$f.accDescr},accTitle:{name:$f.accTitle},sections:{name:$f.sections,defaultValue:[]},showData:{name:$f.showData,defaultValue:!1},title:{name:$f.title}},superTypes:[]},PieSection:{name:aC.$type,properties:{label:{name:aC.label},value:{name:aC.value}},superTypes:[]},Pipeline:{name:oM.$type,properties:{components:{name:oM.components,defaultValue:[]},parent:{name:oM.parent}},superTypes:[]},PipelineComponent:{name:U3.$type,properties:{evolution:{name:U3.evolution},label:{name:U3.label},name:{name:U3.name}},superTypes:[]},Radar:{name:Sf.$type,properties:{accDescr:{name:Sf.accDescr},accTitle:{name:Sf.accTitle},axes:{name:Sf.axes,defaultValue:[]},curves:{name:Sf.curves,defaultValue:[]},options:{name:Sf.options,defaultValue:[]},title:{name:Sf.title}},superTypes:[]},Section:{name:lM.$type,properties:{classSelector:{name:lM.classSelector},name:{name:lM.name}},superTypes:[hE.$type]},Service:{name:nm.$type,properties:{icon:{name:nm.icon},iconText:{name:nm.iconText},id:{name:nm.id},in:{name:nm.in},title:{name:nm.title}},superTypes:[]},Size:{name:cM.$type,properties:{height:{name:cM.height},width:{name:cM.width}},superTypes:[]},Statement:{name:am.$type,properties:{},superTypes:[]},TreeNode:{name:dM.$type,properties:{indent:{name:dM.indent},name:{name:dM.name}},superTypes:[]},TreeView:{name:pE.$type,properties:{accDescr:{name:pE.accDescr},accTitle:{name:pE.accTitle},nodes:{name:pE.nodes,defaultValue:[]},title:{name:pE.title}},superTypes:[]},Treemap:{name:Cm.$type,properties:{accDescr:{name:Cm.accDescr},accTitle:{name:Cm.accTitle},title:{name:Cm.title},TreemapRows:{name:Cm.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:uM.$type,properties:{indent:{name:uM.indent},item:{name:uM.item}},superTypes:[]},Wardley:{name:Vi.$type,properties:{accDescr:{name:Vi.accDescr},accelerators:{name:Vi.accelerators,defaultValue:[]},accTitle:{name:Vi.accTitle},anchors:{name:Vi.anchors,defaultValue:[]},annotation:{name:Vi.annotation,defaultValue:[]},annotations:{name:Vi.annotations,defaultValue:[]},components:{name:Vi.components,defaultValue:[]},deaccelerators:{name:Vi.deaccelerators,defaultValue:[]},evolution:{name:Vi.evolution},evolves:{name:Vi.evolves,defaultValue:[]},links:{name:Vi.links,defaultValue:[]},notes:{name:Vi.notes,defaultValue:[]},pipelines:{name:Vi.pipelines,defaultValue:[]},size:{name:Vi.size},title:{name:Vi.title}},superTypes:[]}}}},k(r_,"MermaidAstReflection"),r_),al=new o7e,Hoe,D7t=k(()=>Hoe??(Hoe=nl(`{"$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"),Voe,L7t=k(()=>Voe??(Voe=nl('{"$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"),Woe,M7t=k(()=>Woe??(Woe=nl(`{"$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"),Koe,P7t=k(()=>Koe??(Koe=nl(`{"$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"),Xoe,B7t=k(()=>Xoe??(Xoe=nl(`{"$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"),joe,F7t=k(()=>joe??(joe=nl(`{"$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"),Qoe,$7t=k(()=>Qoe??(Qoe=nl(`{"$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"),Zoe,z7t=k(()=>Zoe??(Zoe=nl(`{"$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"),Joe,U7t=k(()=>Joe??(Joe=nl(`{"$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"),ele,G7t=k(()=>ele??(ele=nl(`{"$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"),q7t={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Y7t={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},H7t={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},V7t={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},W7t={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},K7t={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},X7t={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},j7t={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Q7t={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Z7t={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Mu={AstReflection:k(()=>new o7e,"AstReflection")},J7t={Grammar:k(()=>D7t(),"Grammar"),LanguageMetaData:k(()=>q7t,"LanguageMetaData"),parser:{}},eAt={Grammar:k(()=>L7t(),"Grammar"),LanguageMetaData:k(()=>Y7t,"LanguageMetaData"),parser:{}},tAt={Grammar:k(()=>M7t(),"Grammar"),LanguageMetaData:k(()=>H7t,"LanguageMetaData"),parser:{}},rAt={Grammar:k(()=>P7t(),"Grammar"),LanguageMetaData:k(()=>V7t,"LanguageMetaData"),parser:{}},nAt={Grammar:k(()=>B7t(),"Grammar"),LanguageMetaData:k(()=>W7t,"LanguageMetaData"),parser:{}},aAt={Grammar:k(()=>F7t(),"Grammar"),LanguageMetaData:k(()=>K7t,"LanguageMetaData"),parser:{}},iAt={Grammar:k(()=>$7t(),"Grammar"),LanguageMetaData:k(()=>X7t,"LanguageMetaData"),parser:{}},sAt={Grammar:k(()=>z7t(),"Grammar"),LanguageMetaData:k(()=>j7t,"LanguageMetaData"),parser:{}},oAt={Grammar:k(()=>U7t(),"Grammar"),LanguageMetaData:k(()=>Q7t,"LanguageMetaData"),parser:{}},lAt={Grammar:k(()=>G7t(),"Grammar"),LanguageMetaData:k(()=>Z7t,"LanguageMetaData"),parser:{}},cAt=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,uAt=/accTitle[\t ]*:([^\n\r]*)/,dAt=/title([\t ][^\n\r]*|)/,hAt={ACC_DESCR:cAt,ACC_TITLE:uAt,TITLE:dAt},n_,I2=(n_=class extends tW{runConverter(e,r,n){let a=this.runCommonConverter(e,r,n);return a===void 0&&(a=this.runCustomConverter(e,r,n)),a===void 0?super.runConverter(e,r,n):a}runCommonConverter(e,r,n){const a=hAt[e.name];if(a===void 0)return;const i=a.exec(r);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm," ");if(i[2]!==void 0)return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` +`)}}},k(n_,"AbstractMermaidValueConverter"),n_),a_,hx=(a_=class extends I2{runCustomConverter(e,r,n){}},k(a_,"CommonValueConverter"),a_),i_,Pu=(i_=class extends l8{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,r,n){const a=super.buildKeywordTokens(e,r,n);return a.forEach(i=>{this.keywords.has(i.name)&&i.PATTERN!==void 0&&(i.PATTERN=new RegExp(i.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),a}},k(i_,"AbstractMermaidTokenBuilder"),i_),s_;s_=class extends Pu{},k(s_,"CommonTokenBuilder");var o_,fAt=(o_=class extends Pu{constructor(){super(["radar-beta"])}},k(o_,"RadarTokenBuilder"),o_),l7e={parser:{TokenBuilder:k(()=>new fAt,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")}};function c7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),iAt,l7e);return e.ServiceRegistry.register(r),{shared:e,Radar:r}}k(c7e,"createRadarServices");var l_,pAt=(l_=class extends Pu{constructor(){super(["treemap"])}},k(l_,"TreemapTokenBuilder"),l_),gAt=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,c_,mAt=(c_=class extends I2{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 a=gAt.exec(r);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}},k(c_,"TreemapValueConverter"),c_);function u7e(t){const e=t.validation.TreemapValidator,r=t.validation.ValidationRegistry;if(r){const n={Treemap:e.checkSingleRoot.bind(e)};r.register(n,e)}}k(u7e,"registerValidationChecks");var u_,vAt=(u_=class{checkSingleRoot(e,r){let n;for(const a of e.TreemapRows)a.item&&(n===void 0&&a.indent===void 0?n=0:a.indent===void 0?r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):n!==void 0&&n>=parseInt(a.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},k(u_,"TreemapValidator"),u_),d7e={parser:{TokenBuilder:k(()=>new pAt,"TokenBuilder"),ValueConverter:k(()=>new mAt,"ValueConverter")},validation:{TreemapValidator:k(()=>new vAt,"TreemapValidator")}};function h7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),sAt,d7e);return e.ServiceRegistry.register(r),u7e(r),{shared:e,Treemap:r}}k(h7e,"createTreemapServices");var d_,yAt=(d_=class extends I2{runCustomConverter(e,r,n){if(e.name.toUpperCase()==="LINK_LABEL")return r.substring(1).trim()}},k(d_,"WardleyValueConverter"),d_),f7e={parser:{ValueConverter:k(()=>new yAt,"ValueConverter")}};function p7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),lAt,f7e);return e.ServiceRegistry.register(r),{shared:e,Wardley:r}}k(p7e,"createWardleyServices");var h_,_At=(h_=class extends Pu{constructor(){super(["gitGraph"])}},k(h_,"GitGraphTokenBuilder"),h_),g7e={parser:{TokenBuilder:k(()=>new _At,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")}};function m7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),tAt,g7e);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}k(m7e,"createGitGraphServices");var f_,bAt=(f_=class extends Pu{constructor(){super(["info","showInfo"])}},k(f_,"InfoTokenBuilder"),f_),v7e={parser:{TokenBuilder:k(()=>new bAt,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")}};function y7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),rAt,v7e);return e.ServiceRegistry.register(r),{shared:e,Info:r}}k(y7e,"createInfoServices");var p_,EAt=(p_=class extends Pu{constructor(){super(["packet"])}},k(p_,"PacketTokenBuilder"),p_),_7e={parser:{TokenBuilder:k(()=>new EAt,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")}};function b7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),nAt,_7e);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}k(b7e,"createPacketServices");var g_,SAt=(g_=class extends Pu{constructor(){super(["pie","showData"])}},k(g_,"PieTokenBuilder"),g_),m_,TAt=(m_=class extends I2{runCustomConverter(e,r,n){if(e.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},k(m_,"PieValueConverter"),m_),E7e={parser:{TokenBuilder:k(()=>new SAt,"TokenBuilder"),ValueConverter:k(()=>new TAt,"ValueConverter")}};function S7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),aAt,E7e);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}k(S7e,"createPieServices");var v_,xAt=(v_=class extends I2{runCustomConverter(e,r,n){if(e.name==="INDENTATION")return r?.length||0;if(e.name==="STRING2")return r.substring(1,r.length-1)}},k(v_,"TreeViewValueConverter"),v_),y_,CAt=(y_=class extends Pu{constructor(){super(["treeView-beta"])}},k(y_,"TreeViewTokenBuilder"),y_),T7e={parser:{TokenBuilder:k(()=>new CAt,"TokenBuilder"),ValueConverter:k(()=>new xAt,"ValueConverter")}};function x7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),oAt,T7e);return e.ServiceRegistry.register(r),{shared:e,TreeView:r}}k(x7e,"createTreeViewServices");var __,wAt=(__=class extends Pu{constructor(){super(["architecture"])}},k(__,"ArchitectureTokenBuilder"),__),b_,kAt=(b_=class extends I2{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 a=r.replace(/^\[|]$/g,"").trim();return(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))&&(a=a.slice(1,-1),a=a.replace(/\\"/g,'"').replace(/\\'/g,"'")),a.trim()}}},k(b_,"ArchitectureValueConverter"),b_),C7e={parser:{TokenBuilder:k(()=>new wAt,"TokenBuilder"),ValueConverter:k(()=>new kAt,"ValueConverter")}};function w7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),J7t,C7e);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}k(w7e,"createArchitectureServices");var E_,AAt=(E_=class extends Pu{constructor(){super(["eventmodeling"])}},k(E_,"EventModelingTokenBuilder"),E_),tle=new Set(["cmd","command"]),rle=new Set(["evt","event"]),hM=new Set(["rmo","readmodel"]),nle=new Set(["pcr","processor"]),ale=new Set(["ui"]);function k7e(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(k7e,"registerValidationChecks");var S_,RAt=(S_=class{checkSourceFrameTypes(e,r){e.sourceFrames.length!==0&&(tle.has(e.modelEntityType)?this.validateSources(e,new Set([...ale,...nle]),"command","ui or processor",r):rle.has(e.modelEntityType)?this.validateSources(e,tle,"event","command",r):hM.has(e.modelEntityType)?this.validateSources(e,rle,"read model","event",r):nle.has(e.modelEntityType)?this.validateSources(e,hM,"processor","read model",r):ale.has(e.modelEntityType)&&this.validateSources(e,hM,"ui","read model",r))}validateSources(e,r,n,a,i){for(const s of e.sourceFrames){const o=s.ref;o!==void 0&&!r.has(o.modelEntityType)&&i("error",`A ${n} can only receive input from a ${a}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},k(S_,"EventModelingValidator"),S_),A7e={parser:{TokenBuilder:k(()=>new AAt,"TokenBuilder"),ValueConverter:k(()=>new hx,"ValueConverter")},validation:{EventModelingValidator:k(()=>new RAt,"EventModelingValidator")}};function R7e(t=Ul){const e=ga(rl(t),Mu),r=ga(tl({shared:e}),eAt,A7e);return e.ServiceRegistry.register(r),k7e(r),{shared:e,EventModel:r}}k(R7e,"createEventModelingServices");var dl={},NAt={info:k(async()=>{const{createInfoServices:t}=await Promise.resolve().then(()=>YFt),e=t().Info.parser.LangiumParser;dl.info=e},"info"),packet:k(async()=>{const{createPacketServices:t}=await Promise.resolve().then(()=>HFt),e=t().Packet.parser.LangiumParser;dl.packet=e},"packet"),pie:k(async()=>{const{createPieServices:t}=await Promise.resolve().then(()=>VFt),e=t().Pie.parser.LangiumParser;dl.pie=e},"pie"),treeView:k(async()=>{const{createTreeViewServices:t}=await Promise.resolve().then(()=>WFt),e=t().TreeView.parser.LangiumParser;dl.treeView=e},"treeView"),architecture:k(async()=>{const{createArchitectureServices:t}=await Promise.resolve().then(()=>KFt),e=t().Architecture.parser.LangiumParser;dl.architecture=e},"architecture"),gitGraph:k(async()=>{const{createGitGraphServices:t}=await Promise.resolve().then(()=>XFt),e=t().GitGraph.parser.LangiumParser;dl.gitGraph=e},"gitGraph"),eventmodeling:k(async()=>{const{createEventModelingServices:t}=await Promise.resolve().then(()=>jFt),e=t().EventModel.parser.LangiumParser;dl.eventmodeling=e},"eventmodeling"),radar:k(async()=>{const{createRadarServices:t}=await Promise.resolve().then(()=>QFt),e=t().Radar.parser.LangiumParser;dl.radar=e},"radar"),treemap:k(async()=>{const{createTreemapServices:t}=await Promise.resolve().then(()=>ZFt),e=t().Treemap.parser.LangiumParser;dl.treemap=e},"treemap"),wardley:k(async()=>{const{createWardleyServices:t}=await Promise.resolve().then(()=>JFt),e=t().Wardley.parser.LangiumParser;dl.wardley=e},"wardley")};async function Sc(t,e){const r=NAt[t];if(!r)throw new Error(`Unknown diagram type: ${t}`);dl[t]||await r();const a=dl[t].parse(e);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new IAt(a);return a.value}k(Sc,"parse");var T_,IAt=(T_=class extends Error{constructor(e){const r=e.lexerErrors.map(a=>{const i=a.line!==void 0&&!isNaN(a.line)?a.line:"?",s=a.column!==void 0&&!isNaN(a.column)?a.column:"?";return`Lexer error on line ${i}, column ${s}: ${a.message}`}).join(` `),n=e.parserErrors.map(a=>{const i=a.token.startLine!==void 0&&!isNaN(a.token.startLine)?a.token.startLine:"?",s=a.token.startColumn!==void 0&&!isNaN(a.token.startColumn)?a.token.startColumn:"?";return`Parse error on line ${i}, column ${s}: ${a.message}`}).join(` -`);super(`Parsing failed: ${r} ${n}`),this.result=e}},k(T_,"MermaidParseError"),T_),Fn={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},IAt=ln.gitGraph,Bg=E(()=>$a({...IAt,...xr().gitGraph}),"getConfig"),ar=new PY(()=>{const t=Bg(),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 v8(){return kpe({length:7})}E(v8,"getID");function N7e(t,e){const r=Object.create(null);return t.reduce((n,a)=>{const i=e(a);return r[i]||(r[i]=!0,n.push(a)),n},[])}E(N7e,"uniqBy");var OAt=E(function(t){ar.records.direction=t},"setDirection"),DAt=E(function(t){oe.debug("options str",t),t=t?.trim(),t=t||"{}";try{ar.records.options=JSON.parse(t)}catch(e){oe.error("error while parsing gitGraph options",e.message)}},"setOptions"),LAt=E(function(){return ar.records.options},"getOptions"),MAt=E(function(t){let e=t.msg,r=t.id;const n=t.type;let a=t.tags;oe.info("commit",e,r,n,a),oe.debug("Entering commit:",e,r,n,a);const i=Bg();r=qt.sanitizeText(r,i),e=qt.sanitizeText(e,i),a=a?.map(o=>qt.sanitizeText(o,i));const s={id:r||ar.records.seq+"-"+v8(),message:e,seq:ar.records.seq++,type:n??Fn.NORMAL,tags:a??[],parents:ar.records.head==null?[]:[ar.records.head.id],branch:ar.records.currBranch};ar.records.head=s,oe.info("main branch",i.mainBranchName),ar.records.commits.has(s.id)&&oe.warn(`Commit ID ${s.id} already exists`),ar.records.commits.set(s.id,s),ar.records.branches.set(ar.records.currBranch,s.id),oe.debug("in pushCommit "+s.id)},"commit"),PAt=E(function(t){let e=t.name;const r=t.order;if(e=qt.sanitizeText(e,Bg()),ar.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}")`);ar.records.branches.set(e,ar.records.head!=null?ar.records.head.id:null),ar.records.branchConfig.set(e,{name:e,order:r}),I7e(e),oe.debug("in createBranch")},"branch"),BAt=E(t=>{let e=t.branch,r=t.id;const n=t.type,a=t.tags,i=Bg();e=qt.sanitizeText(e,i),r&&(r=qt.sanitizeText(r,i));const s=ar.records.branches.get(ar.records.currBranch),o=ar.records.branches.get(e),l=s?ar.records.commits.get(s):void 0,u=o?ar.records.commits.get(o):void 0;if(l&&u&&l.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(ar.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 (${ar.records.currBranch})has no commits`);throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},f}if(!ar.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&&ar.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} ${a?.join(" ")}`,token:`merge ${e} ${r} ${n} ${a?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${n} ${a?.join(" ")}`]},f}const d=o||"",h={id:r||`${ar.records.seq}-${v8()}`,message:`merged branch ${e} into ${ar.records.currBranch}`,seq:ar.records.seq++,parents:ar.records.head==null?[]:[ar.records.head.id,d],branch:ar.records.currBranch,type:Fn.MERGE,customType:n,customId:!!r,tags:a??[]};ar.records.head=h,ar.records.commits.set(h.id,h),ar.records.branches.set(ar.records.currBranch,h.id),oe.debug(ar.records.branches),oe.debug("in mergeBranch")},"merge"),FAt=E(function(t){let e=t.id,r=t.targetId,n=t.tags,a=t.parent;oe.debug("Entering cherryPick:",e,r,n);const i=Bg();if(e=qt.sanitizeText(e,i),r=qt.sanitizeText(r,i),n=n?.map(l=>qt.sanitizeText(l,i)),a=qt.sanitizeText(a,i),!e||!ar.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=ar.records.commits.get(e);if(s===void 0||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))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===Fn.MERGE&&!a)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||!ar.records.commits.has(r)){if(o===ar.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=ar.records.branches.get(ar.records.currBranch);if(l===void 0||!l){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${ar.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const u=ar.records.commits.get(l);if(u===void 0||!u){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${ar.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const d={id:ar.records.seq+"-"+v8(),message:`cherry-picked ${s?.message} into ${ar.records.currBranch}`,seq:ar.records.seq++,parents:ar.records.head==null?[]:[ar.records.head.id,s.id],branch:ar.records.currBranch,type:Fn.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===Fn.MERGE?`|parent:${a}`:""}`]};ar.records.head=d,ar.records.commits.set(d.id,d),ar.records.branches.set(ar.records.currBranch,d.id),oe.debug(ar.records.branches),oe.debug("in cherryPick")}},"cherryPick"),I7e=E(function(t){if(t=qt.sanitizeText(t,Bg()),ar.records.branches.has(t)){ar.records.currBranch=t;const e=ar.records.branches.get(ar.records.currBranch);e===void 0||!e?ar.records.head=null:ar.records.head=ar.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 oz(t,e,r){const n=t.indexOf(e);n===-1?t.push(r):t.splice(n,1,r)}E(oz,"upsert");function TW(t){const e=t.reduce((a,i)=>a.seq>i.seq?a:i,t[0]);let r="";t.forEach(function(a){a===e?r+=" *":r+=" |"});const n=[r,e.id,e.seq];for(const a in ar.records.branches)ar.records.branches.get(a)===e.id&&n.push(a);if(oe.debug(n.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const a=ar.records.commits.get(e.parents[0]);oz(t,e,a),e.parents[1]&&t.push(ar.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const a=ar.records.commits.get(e.parents[0]);oz(t,e,a)}}t=N7e(t,a=>a.id),TW(t)}E(TW,"prettyPrintCommitHistory");var $At=E(function(){oe.debug(ar.records.commits);const t=O7e()[0];TW([t])},"prettyPrint"),zAt=E(function(){ar.reset(),oa()},"clear"),UAt=E(function(){return[...ar.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"),GAt=E(function(){return ar.records.branches},"getBranches"),qAt=E(function(){return ar.records.commits},"getCommits"),O7e=E(function(){const t=[...ar.records.commits.values()];return t.forEach(function(e){oe.debug(e.id)}),t.sort((e,r)=>e.seq-r.seq),t},"getCommitsArray"),YAt=E(function(){return ar.records.currBranch},"getCurrentBranch"),HAt=E(function(){return ar.records.direction},"getDirection"),VAt=E(function(){return ar.records.head},"getHead"),D7e={commitType:Fn,getConfig:Bg,setDirection:OAt,setOptions:DAt,getOptions:LAt,commit:MAt,branch:PAt,merge:BAt,cherryPick:FAt,checkout:I7e,prettyPrint:$At,clear:zAt,getBranchesAsObjArray:UAt,getBranches:GAt,getCommits:qAt,getCommitsArray:O7e,getCurrentBranch:YAt,getDirection:HAt,getHead:VAt,setAccTitle:sa,getAccTitle:va,getAccDescription:_a,setAccDescription:ya,setDiagramTitle:pa,getDiagramTitle:la},WAt=E((t,e)=>{Nu(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)KAt(r,e)},"populate"),KAt=E((t,e)=>{const n={Commit:E(a=>e.commit(XAt(a)),"Commit"),Branch:E(a=>e.branch(jAt(a)),"Branch"),Merge:E(a=>e.merge(QAt(a)),"Merge"),Checkout:E(a=>e.checkout(ZAt(a)),"Checkout"),CherryPicking:E(a=>e.cherryPick(JAt(a)),"CherryPicking")}[t.$type];n?n(t):oe.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),XAt=E(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?Fn[t.type]:Fn.NORMAL,tags:t.tags??void 0}),"parseCommit"),jAt=E(t=>({name:t.name,order:t.order??0}),"parseBranch"),QAt=E(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?Fn[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ZAt=E(t=>t.branch,"parseCheckout"),JAt=E(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),e8t={parse:E(async t=>{const e=await Sc("gitGraph",t);oe.debug(e),WAt(e,D7e)},"parse")},Xd=10,jd=40,Mc=4,n0=2,np=8,y8=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),lz=12,xW=new Set(["redux-color","redux-dark-color"]),t8t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ap=E((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),vo=new Map,Eo=new Map,Hw=30,HE=new Map,Vw=[],a0=0,cn="LR",r8t=E(()=>{vo.clear(),Eo.clear(),HE.clear(),a0=0,Vw=[],cn="LR"},"clear"),L7e=E(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 a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),a.setAttribute("class","row"),a.textContent=n.trim(),e.appendChild(a)}),e},"drawText"),M7e=E(t=>{let e,r,n;return cn==="BT"?(r=E((a,i)=>a<=i,"comparisonFunc"),n=1/0):(r=E((a,i)=>a>=i,"comparisonFunc"),n=0),t.forEach(a=>{const i=cn==="TB"||cn=="BT"?Eo.get(a)?.y:Eo.get(a)?.x;i!==void 0&&r(i,n)&&(e=a,n=i)}),e},"findClosestParent"),n8t=E(t=>{let e="",r=1/0;return t.forEach(n=>{const a=Eo.get(n).y;a<=r&&(e=n,r=a)}),e||void 0},"findClosestParentBT"),a8t=E((t,e,r)=>{let n=r,a=r;const i=[];t.forEach(s=>{const o=e.get(s);if(!o)throw new Error(`Commit not found for key ${s}`);o.parents.length?(n=s8t(o),a=Math.max(n,a)):i.push(o),o8t(o,n)}),n=a,i.forEach(s=>{l8t(s,n,r)}),t.forEach(s=>{const o=e.get(s);if(o?.parents.length){const l=n8t(o.parents);n=Eo.get(l).y-jd,n<=a&&(a=n);const u=vo.get(o.branch).pos,d=n-Xd;Eo.set(o.id,{x:u,y:d})}})},"setParallelBTPos"),i8t=E(t=>{const e=M7e(t.parents.filter(n=>n!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const r=Eo.get(e)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),s8t=E(t=>i8t(t)+jd,"calculateCommitPosition"),o8t=E((t,e)=>{const r=vo.get(t.branch);if(!r)throw new Error(`Branch not found for commit ${t.id}`);const n=r.pos,a=e+Xd;return Eo.set(t.id,{x:n,y:a}),{x:n,y:a}},"setCommitPosition"),l8t=E((t,e,r)=>{const n=vo.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const a=e+r,i=n.pos;Eo.set(t.id,{x:i,y:a})},"setRootPosition"),c8t=E((t,e,r,n,a,i)=>{const{theme:s}=Ye(),o=y8.has(s??""),l=xW.has(s??""),u=t8t.has(s??"");if(i===Fn.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${ap(a,np,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${ap(a,np,l)} ${n}-inner`);else if(i===Fn.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${ap(a,np,l)}`),i===Fn.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${ap(a,np,l)}`)}if(i===Fn.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${ap(a,np,l)}`)}}},"drawCommitBullet"),u8t=E((t,e,r,n,a)=>{if(e.type!==Fn.CHERRY_PICK&&(e.customId&&e.type===Fn.MERGE||e.type!==Fn.MERGE)&&a.showCommitLabel){const i=t.append("g"),s=i.insert("rect").attr("class","commit-label-bkg"),o=i.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-n0).attr("y",r.y+13.5).attr("width",l.width+2*n0).attr("height",l.height+2*n0),cn==="TB"||cn==="BT"?(s.attr("x",r.x-(l.width+4*Mc+5)).attr("y",r.y-12),o.attr("x",r.x-(l.width+4*Mc)).attr("y",r.y+l.height-12)):o.attr("x",r.posWithOffset-l.width/2),a.rotateCommitLabel))if(cn==="TB"||cn==="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;i.attr("transform","translate("+u+", "+d+") rotate(-45, "+n+", "+r.y+")")}}},"drawCommitLabel"),d8t=E((t,e,r,n)=>{if(e.tags.length>0){let a=0,i=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-a).attr("class","tag-label").text(l),f=h.node()?.getBBox();if(!f)throw new Error("Tag bbox not found");i=Math.max(i,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:a}),a+=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(T_,"MermaidParseError"),T_),Fn={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},OAt=ln.gitGraph,Bg=E(()=>$a({...OAt,...xr().gitGraph}),"getConfig"),ar=new PY(()=>{const t=Bg(),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 v8(){return kpe({length:7})}E(v8,"getID");function N7e(t,e){const r=Object.create(null);return t.reduce((n,a)=>{const i=e(a);return r[i]||(r[i]=!0,n.push(a)),n},[])}E(N7e,"uniqBy");var DAt=E(function(t){ar.records.direction=t},"setDirection"),LAt=E(function(t){oe.debug("options str",t),t=t?.trim(),t=t||"{}";try{ar.records.options=JSON.parse(t)}catch(e){oe.error("error while parsing gitGraph options",e.message)}},"setOptions"),MAt=E(function(){return ar.records.options},"getOptions"),PAt=E(function(t){let e=t.msg,r=t.id;const n=t.type;let a=t.tags;oe.info("commit",e,r,n,a),oe.debug("Entering commit:",e,r,n,a);const i=Bg();r=qt.sanitizeText(r,i),e=qt.sanitizeText(e,i),a=a?.map(o=>qt.sanitizeText(o,i));const s={id:r||ar.records.seq+"-"+v8(),message:e,seq:ar.records.seq++,type:n??Fn.NORMAL,tags:a??[],parents:ar.records.head==null?[]:[ar.records.head.id],branch:ar.records.currBranch};ar.records.head=s,oe.info("main branch",i.mainBranchName),ar.records.commits.has(s.id)&&oe.warn(`Commit ID ${s.id} already exists`),ar.records.commits.set(s.id,s),ar.records.branches.set(ar.records.currBranch,s.id),oe.debug("in pushCommit "+s.id)},"commit"),BAt=E(function(t){let e=t.name;const r=t.order;if(e=qt.sanitizeText(e,Bg()),ar.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}")`);ar.records.branches.set(e,ar.records.head!=null?ar.records.head.id:null),ar.records.branchConfig.set(e,{name:e,order:r}),I7e(e),oe.debug("in createBranch")},"branch"),FAt=E(t=>{let e=t.branch,r=t.id;const n=t.type,a=t.tags,i=Bg();e=qt.sanitizeText(e,i),r&&(r=qt.sanitizeText(r,i));const s=ar.records.branches.get(ar.records.currBranch),o=ar.records.branches.get(e),l=s?ar.records.commits.get(s):void 0,u=o?ar.records.commits.get(o):void 0;if(l&&u&&l.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(ar.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 (${ar.records.currBranch})has no commits`);throw f.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},f}if(!ar.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&&ar.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} ${a?.join(" ")}`,token:`merge ${e} ${r} ${n} ${a?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${n} ${a?.join(" ")}`]},f}const d=o||"",h={id:r||`${ar.records.seq}-${v8()}`,message:`merged branch ${e} into ${ar.records.currBranch}`,seq:ar.records.seq++,parents:ar.records.head==null?[]:[ar.records.head.id,d],branch:ar.records.currBranch,type:Fn.MERGE,customType:n,customId:!!r,tags:a??[]};ar.records.head=h,ar.records.commits.set(h.id,h),ar.records.branches.set(ar.records.currBranch,h.id),oe.debug(ar.records.branches),oe.debug("in mergeBranch")},"merge"),$At=E(function(t){let e=t.id,r=t.targetId,n=t.tags,a=t.parent;oe.debug("Entering cherryPick:",e,r,n);const i=Bg();if(e=qt.sanitizeText(e,i),r=qt.sanitizeText(r,i),n=n?.map(l=>qt.sanitizeText(l,i)),a=qt.sanitizeText(a,i),!e||!ar.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=ar.records.commits.get(e);if(s===void 0||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))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===Fn.MERGE&&!a)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||!ar.records.commits.has(r)){if(o===ar.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=ar.records.branches.get(ar.records.currBranch);if(l===void 0||!l){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${ar.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const u=ar.records.commits.get(l);if(u===void 0||!u){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${ar.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},h}const d={id:ar.records.seq+"-"+v8(),message:`cherry-picked ${s?.message} into ${ar.records.currBranch}`,seq:ar.records.seq++,parents:ar.records.head==null?[]:[ar.records.head.id,s.id],branch:ar.records.currBranch,type:Fn.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===Fn.MERGE?`|parent:${a}`:""}`]};ar.records.head=d,ar.records.commits.set(d.id,d),ar.records.branches.set(ar.records.currBranch,d.id),oe.debug(ar.records.branches),oe.debug("in cherryPick")}},"cherryPick"),I7e=E(function(t){if(t=qt.sanitizeText(t,Bg()),ar.records.branches.has(t)){ar.records.currBranch=t;const e=ar.records.branches.get(ar.records.currBranch);e===void 0||!e?ar.records.head=null:ar.records.head=ar.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 oz(t,e,r){const n=t.indexOf(e);n===-1?t.push(r):t.splice(n,1,r)}E(oz,"upsert");function TW(t){const e=t.reduce((a,i)=>a.seq>i.seq?a:i,t[0]);let r="";t.forEach(function(a){a===e?r+=" *":r+=" |"});const n=[r,e.id,e.seq];for(const a in ar.records.branches)ar.records.branches.get(a)===e.id&&n.push(a);if(oe.debug(n.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const a=ar.records.commits.get(e.parents[0]);oz(t,e,a),e.parents[1]&&t.push(ar.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const a=ar.records.commits.get(e.parents[0]);oz(t,e,a)}}t=N7e(t,a=>a.id),TW(t)}E(TW,"prettyPrintCommitHistory");var zAt=E(function(){oe.debug(ar.records.commits);const t=O7e()[0];TW([t])},"prettyPrint"),UAt=E(function(){ar.reset(),oa()},"clear"),GAt=E(function(){return[...ar.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"),qAt=E(function(){return ar.records.branches},"getBranches"),YAt=E(function(){return ar.records.commits},"getCommits"),O7e=E(function(){const t=[...ar.records.commits.values()];return t.forEach(function(e){oe.debug(e.id)}),t.sort((e,r)=>e.seq-r.seq),t},"getCommitsArray"),HAt=E(function(){return ar.records.currBranch},"getCurrentBranch"),VAt=E(function(){return ar.records.direction},"getDirection"),WAt=E(function(){return ar.records.head},"getHead"),D7e={commitType:Fn,getConfig:Bg,setDirection:DAt,setOptions:LAt,getOptions:MAt,commit:PAt,branch:BAt,merge:FAt,cherryPick:$At,checkout:I7e,prettyPrint:zAt,clear:UAt,getBranchesAsObjArray:GAt,getBranches:qAt,getCommits:YAt,getCommitsArray:O7e,getCurrentBranch:HAt,getDirection:VAt,getHead:WAt,setAccTitle:sa,getAccTitle:va,getAccDescription:_a,setAccDescription:ya,setDiagramTitle:pa,getDiagramTitle:la},KAt=E((t,e)=>{Nu(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)XAt(r,e)},"populate"),XAt=E((t,e)=>{const n={Commit:E(a=>e.commit(jAt(a)),"Commit"),Branch:E(a=>e.branch(QAt(a)),"Branch"),Merge:E(a=>e.merge(ZAt(a)),"Merge"),Checkout:E(a=>e.checkout(JAt(a)),"Checkout"),CherryPicking:E(a=>e.cherryPick(e8t(a)),"CherryPicking")}[t.$type];n?n(t):oe.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),jAt=E(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?Fn[t.type]:Fn.NORMAL,tags:t.tags??void 0}),"parseCommit"),QAt=E(t=>({name:t.name,order:t.order??0}),"parseBranch"),ZAt=E(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?Fn[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),JAt=E(t=>t.branch,"parseCheckout"),e8t=E(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),t8t={parse:E(async t=>{const e=await Sc("gitGraph",t);oe.debug(e),KAt(e,D7e)},"parse")},Xd=10,jd=40,Mc=4,n0=2,np=8,y8=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),lz=12,xW=new Set(["redux-color","redux-dark-color"]),r8t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ap=E((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),vo=new Map,Eo=new Map,Hw=30,HE=new Map,Vw=[],a0=0,cn="LR",n8t=E(()=>{vo.clear(),Eo.clear(),HE.clear(),a0=0,Vw=[],cn="LR"},"clear"),L7e=E(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 a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),a.setAttribute("class","row"),a.textContent=n.trim(),e.appendChild(a)}),e},"drawText"),M7e=E(t=>{let e,r,n;return cn==="BT"?(r=E((a,i)=>a<=i,"comparisonFunc"),n=1/0):(r=E((a,i)=>a>=i,"comparisonFunc"),n=0),t.forEach(a=>{const i=cn==="TB"||cn=="BT"?Eo.get(a)?.y:Eo.get(a)?.x;i!==void 0&&r(i,n)&&(e=a,n=i)}),e},"findClosestParent"),a8t=E(t=>{let e="",r=1/0;return t.forEach(n=>{const a=Eo.get(n).y;a<=r&&(e=n,r=a)}),e||void 0},"findClosestParentBT"),i8t=E((t,e,r)=>{let n=r,a=r;const i=[];t.forEach(s=>{const o=e.get(s);if(!o)throw new Error(`Commit not found for key ${s}`);o.parents.length?(n=o8t(o),a=Math.max(n,a)):i.push(o),l8t(o,n)}),n=a,i.forEach(s=>{c8t(s,n,r)}),t.forEach(s=>{const o=e.get(s);if(o?.parents.length){const l=a8t(o.parents);n=Eo.get(l).y-jd,n<=a&&(a=n);const u=vo.get(o.branch).pos,d=n-Xd;Eo.set(o.id,{x:u,y:d})}})},"setParallelBTPos"),s8t=E(t=>{const e=M7e(t.parents.filter(n=>n!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const r=Eo.get(e)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),o8t=E(t=>s8t(t)+jd,"calculateCommitPosition"),l8t=E((t,e)=>{const r=vo.get(t.branch);if(!r)throw new Error(`Branch not found for commit ${t.id}`);const n=r.pos,a=e+Xd;return Eo.set(t.id,{x:n,y:a}),{x:n,y:a}},"setCommitPosition"),c8t=E((t,e,r)=>{const n=vo.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const a=e+r,i=n.pos;Eo.set(t.id,{x:i,y:a})},"setRootPosition"),u8t=E((t,e,r,n,a,i)=>{const{theme:s}=Ye(),o=y8.has(s??""),l=xW.has(s??""),u=r8t.has(s??"");if(i===Fn.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${ap(a,np,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${ap(a,np,l)} ${n}-inner`);else if(i===Fn.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${ap(a,np,l)}`),i===Fn.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${ap(a,np,l)}`)}if(i===Fn.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${ap(a,np,l)}`)}}},"drawCommitBullet"),d8t=E((t,e,r,n,a)=>{if(e.type!==Fn.CHERRY_PICK&&(e.customId&&e.type===Fn.MERGE||e.type!==Fn.MERGE)&&a.showCommitLabel){const i=t.append("g"),s=i.insert("rect").attr("class","commit-label-bkg"),o=i.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-n0).attr("y",r.y+13.5).attr("width",l.width+2*n0).attr("height",l.height+2*n0),cn==="TB"||cn==="BT"?(s.attr("x",r.x-(l.width+4*Mc+5)).attr("y",r.y-12),o.attr("x",r.x-(l.width+4*Mc)).attr("y",r.y+l.height-12)):o.attr("x",r.posWithOffset-l.width/2),a.rotateCommitLabel))if(cn==="TB"||cn==="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;i.attr("transform","translate("+u+", "+d+") rotate(-45, "+n+", "+r.y+")")}}},"drawCommitLabel"),h8t=E((t,e,r,n)=>{if(e.tags.length>0){let a=0,i=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-a).attr("class","tag-label").text(l),f=h.node()?.getBBox();if(!f)throw new Error("Tag bbox not found");i=Math.max(i,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:a}),a+=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-i/2-Mc/2},${p+n0} ${n-i/2-Mc/2},${p-n0} ${r.posWithOffset-i/2-Mc},${p-f-n0} @@ -5400,22 +5405,22 @@ ${r}`),this.inline?`{${a}}`:a}},k(Uy,"JSDocTagImpl"),Uy);function Wke(t,e,r){if( ${r.x+Xd},${g-f-2} ${r.x+Xd+i+4},${g-f-2} ${r.x+Xd+i+4},${g+f+2} - ${r.x+Xd},${g+f+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),u.attr("cx",r.x+Mc/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"),h8t=E(t=>{switch(t.customType??t.type){case Fn.NORMAL:return"commit-normal";case Fn.REVERSE:return"commit-reverse";case Fn.HIGHLIGHT:return"commit-highlight";case Fn.MERGE:return"commit-merge";case Fn.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),f8t=E((t,e,r,n)=>{const a={x:0,y:0};if(t.parents.length>0){const i=M7e(t.parents);if(i){const s=n.get(i)??a;return e==="TB"?s.y+jd:e==="BT"?(n.get(t.id)??a).y-jd:s.x+jd}}else return e==="TB"?Hw:e==="BT"?(n.get(t.id)??a).y-jd:0;return 0},"calculatePosition"),p8t=E((t,e,r)=>{const n=cn==="BT"&&r?e:e+Xd,a=vo.get(t.branch)?.pos,i=cn==="TB"||cn==="BT"?vo.get(t.branch)?.pos:n;if(i===void 0||a===void 0)throw new Error(`Position were undefined for commit ${t.id}`);const s=y8.has(Ye().theme??""),o=cn==="TB"||cn==="BT"?n:a+(s?lz/2+1:-2);return{x:i,y:o,posWithOffset:n}},"getCommitPosition"),ile=E((t,e,r,n)=>{const a=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels");let s=cn==="TB"||cn==="BT"?Hw:0;const o=[...e.keys()],l=n.parallelCommits??!1,u=E((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);cn==="BT"&&(l&&a8t(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=f8t(f,cn,s,Eo));const p=p8t(f,s,l);if(r){const g=h8t(f),m=f.customType??f.type,v=vo.get(f.branch)?.index??0;c8t(a,f,p,g,v,m),u8t(i,f,p,s,n),d8t(i,f,p,s)}cn==="TB"||cn==="BT"?Eo.set(f.id,{x:p.x,y:p.posWithOffset}):Eo.set(f.id,{x:p.posWithOffset,y:p.y}),s=cn==="BT"&&l?s+jd:s+jd+Xd,s>a0&&(a0=s)})},"drawCommits"),g8t=E((t,e,r,n,a)=>{const s=(cn==="TB"||cn==="BT"?r.xu.branch===s,"isOnBranchToGetCurve"),l=E(u=>u.seq>t.seq&&u.seql(u)&&o(u))},"shouldRerouteArrow"),VE=E((t,e,r=0)=>{const n=t+Math.abs(t-e)/2;if(r>5)return n;if(Vw.every(s=>Math.abs(s-n)>=10))return Vw.push(n),n;const i=Math.abs(t-e);return VE(t,e-i/5,r+1)},"findLane"),m8t=E((t,e,r,n)=>{const{theme:a}=Ye(),i=xW.has(a??""),s=Eo.get(e.id),o=Eo.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=g8t(e,r,s,o,n);let u="",d="",h=0,f=0,p=vo.get(r.branch)?.index;r.type===Fn.MERGE&&e.id!==r.parents[0]&&(p=vo.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===Fn.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}`)):cn==="BT"?(s.xo.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Fn.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===Fn.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"+ap(p,np,i))},"drawArrow"),v8t=E((t,e)=>{const r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(n=>{const a=e.get(n);a.parents&&a.parents.length>0&&a.parents.forEach(i=>{m8t(r,e.get(i),a,e)})})},"drawArrows"),y8t=E((t,e,r,n)=>{const{look:a,theme:i,themeVariables:s}=Ye(),{dropShadow:o,THEME_COLOR_LIMIT:l}=s,u=y8.has(i??""),d=xW.has(i??""),h=t.append("g");e.forEach((f,p)=>{const g=ap(p,u?l:np,d),m=vo.get(f.name)?.pos;if(m===void 0)throw new Error(`Position not found for branch ${f.name}`);const v=cn==="TB"||cn==="BT"?m:u?m+lz/2+1:m-2,y=h.append("line");y.attr("x1",0),y.attr("y1",v),y.attr("x2",a0),y.attr("y2",v),y.attr("class","branch branch"+g),cn==="TB"?(y.attr("y1",Hw),y.attr("x1",m),y.attr("y2",a0),y.attr("x2",m)):cn==="BT"&&(y.attr("y1",a0),y.attr("x1",m),y.attr("y2",Hw),y.attr("x2",m)),Vw.push(v);const b=f.name,_=L7e(b),S=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,R=u?16:0,O=u?lz:0;a==="neo"&&S.attr("data-look","neo"),S.attr("class","branchLabelBkg label"+g).attr("style",a==="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+R).attr("height",T.height+4+O),C.attr("transform","translate("+(-T.width-14-(r.rotateCommitLabel===!0?30:0)+R/2)+", "+(v-T.height/2-2)+")"),cn==="TB"?(S.attr("x",m-T.width/2-10).attr("y",0),C.attr("transform","translate("+(m-T.width/2-5)+", 0)"),u&&(S.attr("transform",`translate(${-R/2-3}, ${-O-10})`),C.attr("transform","translate("+(m-T.width/2-5)+", "+(-O*2+7)+")"))):cn==="BT"?(S.attr("x",m-T.width/2-10).attr("y",a0),C.attr("transform","translate("+(m-T.width/2-5)+", "+a0+")"),u&&(S.attr("transform",`translate(${-R/2-3}, ${O+10})`),C.attr("transform","translate("+(m-T.width/2-5)+", "+(a0+O*2+4)+")"))):S.attr("transform","translate(-19, "+(v-12-O/2)+")")})},"drawBranches"),_8t=E(function(t,e,r,n,a){return vo.set(t,{pos:e,index:r}),e+=50+(a?40:0)+(cn==="TB"||cn==="BT"?n.width/2:0),e},"setBranchPosition"),b8t=E(function(t,e,r,n){r8t(),oe.debug("in gitgraph renderer",t+` -`,"id:",e,r);const a=n.db;if(!a.getConfig){oe.error("getConfig method is not available on db");return}const i=a.getConfig(),s=i.rotateCommitLabel??!1;HE=a.getCommits();const o=a.getBranchesAsObjArray();cn=a.getDirection();const l=At(`[id="${e}"]`),{look:u,theme:d,themeVariables:h}=Ye(),{useGradient:f,gradientStart:p,gradientStop:g,filterColor:m}=h;if(f){const y=l.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");y.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),y.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}u==="neo"&&y8.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 v=0;o.forEach((y,b)=>{const _=L7e(y.name),S=l.append("g"),x=S.insert("g").attr("class","branchLabel"),C=x.insert("g").attr("class","label branch-label");C.node()?.appendChild(_);const T=_.getBBox();v=_8t(y.name,v,b,T,s),C.remove(),x.remove(),S.remove()}),ile(l,HE,!1,i),i.showBranches&&y8t(l,o,i,e),v8t(l,HE),ile(l,HE,!0,i),Kr.insertTitle(l,"gitTitleText",i.titleTopMargin??0,a.getDiagramTitle()),WU(void 0,l,i.diagramPadding,i.useMaxWidth)},"draw"),E8t={draw:b8t},P7e=8,B7e=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),S8t=new Set(["redux-color","redux-dark-color"]),T8t=new Set(["neo","neo-dark"]),x8t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),C8t=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),w8t=E(t=>{const{svgId:e}=t;let r="";if(t.useGradient&&e)for(let n=0;n{switch(t.customType??t.type){case Fn.NORMAL:return"commit-normal";case Fn.REVERSE:return"commit-reverse";case Fn.HIGHLIGHT:return"commit-highlight";case Fn.MERGE:return"commit-merge";case Fn.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),p8t=E((t,e,r,n)=>{const a={x:0,y:0};if(t.parents.length>0){const i=M7e(t.parents);if(i){const s=n.get(i)??a;return e==="TB"?s.y+jd:e==="BT"?(n.get(t.id)??a).y-jd:s.x+jd}}else return e==="TB"?Hw:e==="BT"?(n.get(t.id)??a).y-jd:0;return 0},"calculatePosition"),g8t=E((t,e,r)=>{const n=cn==="BT"&&r?e:e+Xd,a=vo.get(t.branch)?.pos,i=cn==="TB"||cn==="BT"?vo.get(t.branch)?.pos:n;if(i===void 0||a===void 0)throw new Error(`Position were undefined for commit ${t.id}`);const s=y8.has(Ye().theme??""),o=cn==="TB"||cn==="BT"?n:a+(s?lz/2+1:-2);return{x:i,y:o,posWithOffset:n}},"getCommitPosition"),ile=E((t,e,r,n)=>{const a=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels");let s=cn==="TB"||cn==="BT"?Hw:0;const o=[...e.keys()],l=n.parallelCommits??!1,u=E((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);cn==="BT"&&(l&&i8t(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=p8t(f,cn,s,Eo));const p=g8t(f,s,l);if(r){const g=f8t(f),m=f.customType??f.type,v=vo.get(f.branch)?.index??0;u8t(a,f,p,g,v,m),d8t(i,f,p,s,n),h8t(i,f,p,s)}cn==="TB"||cn==="BT"?Eo.set(f.id,{x:p.x,y:p.posWithOffset}):Eo.set(f.id,{x:p.posWithOffset,y:p.y}),s=cn==="BT"&&l?s+jd:s+jd+Xd,s>a0&&(a0=s)})},"drawCommits"),m8t=E((t,e,r,n,a)=>{const s=(cn==="TB"||cn==="BT"?r.xu.branch===s,"isOnBranchToGetCurve"),l=E(u=>u.seq>t.seq&&u.seql(u)&&o(u))},"shouldRerouteArrow"),VE=E((t,e,r=0)=>{const n=t+Math.abs(t-e)/2;if(r>5)return n;if(Vw.every(s=>Math.abs(s-n)>=10))return Vw.push(n),n;const i=Math.abs(t-e);return VE(t,e-i/5,r+1)},"findLane"),v8t=E((t,e,r,n)=>{const{theme:a}=Ye(),i=xW.has(a??""),s=Eo.get(e.id),o=Eo.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=m8t(e,r,s,o,n);let u="",d="",h=0,f=0,p=vo.get(r.branch)?.index;r.type===Fn.MERGE&&e.id!==r.parents[0]&&(p=vo.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===Fn.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}`)):cn==="BT"?(s.xo.x&&(u="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",h=20,f=20,r.type===Fn.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===Fn.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"+ap(p,np,i))},"drawArrow"),y8t=E((t,e)=>{const r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(n=>{const a=e.get(n);a.parents&&a.parents.length>0&&a.parents.forEach(i=>{v8t(r,e.get(i),a,e)})})},"drawArrows"),_8t=E((t,e,r,n)=>{const{look:a,theme:i,themeVariables:s}=Ye(),{dropShadow:o,THEME_COLOR_LIMIT:l}=s,u=y8.has(i??""),d=xW.has(i??""),h=t.append("g");e.forEach((f,p)=>{const g=ap(p,u?l:np,d),m=vo.get(f.name)?.pos;if(m===void 0)throw new Error(`Position not found for branch ${f.name}`);const v=cn==="TB"||cn==="BT"?m:u?m+lz/2+1:m-2,y=h.append("line");y.attr("x1",0),y.attr("y1",v),y.attr("x2",a0),y.attr("y2",v),y.attr("class","branch branch"+g),cn==="TB"?(y.attr("y1",Hw),y.attr("x1",m),y.attr("y2",a0),y.attr("x2",m)):cn==="BT"&&(y.attr("y1",a0),y.attr("x1",m),y.attr("y2",Hw),y.attr("x2",m)),Vw.push(v);const b=f.name,_=L7e(b),S=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,R=u?16:0,O=u?lz:0;a==="neo"&&S.attr("data-look","neo"),S.attr("class","branchLabelBkg label"+g).attr("style",a==="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+R).attr("height",T.height+4+O),C.attr("transform","translate("+(-T.width-14-(r.rotateCommitLabel===!0?30:0)+R/2)+", "+(v-T.height/2-2)+")"),cn==="TB"?(S.attr("x",m-T.width/2-10).attr("y",0),C.attr("transform","translate("+(m-T.width/2-5)+", 0)"),u&&(S.attr("transform",`translate(${-R/2-3}, ${-O-10})`),C.attr("transform","translate("+(m-T.width/2-5)+", "+(-O*2+7)+")"))):cn==="BT"?(S.attr("x",m-T.width/2-10).attr("y",a0),C.attr("transform","translate("+(m-T.width/2-5)+", "+a0+")"),u&&(S.attr("transform",`translate(${-R/2-3}, ${O+10})`),C.attr("transform","translate("+(m-T.width/2-5)+", "+(a0+O*2+4)+")"))):S.attr("transform","translate(-19, "+(v-12-O/2)+")")})},"drawBranches"),b8t=E(function(t,e,r,n,a){return vo.set(t,{pos:e,index:r}),e+=50+(a?40:0)+(cn==="TB"||cn==="BT"?n.width/2:0),e},"setBranchPosition"),E8t=E(function(t,e,r,n){n8t(),oe.debug("in gitgraph renderer",t+` +`,"id:",e,r);const a=n.db;if(!a.getConfig){oe.error("getConfig method is not available on db");return}const i=a.getConfig(),s=i.rotateCommitLabel??!1;HE=a.getCommits();const o=a.getBranchesAsObjArray();cn=a.getDirection();const l=At(`[id="${e}"]`),{look:u,theme:d,themeVariables:h}=Ye(),{useGradient:f,gradientStart:p,gradientStop:g,filterColor:m}=h;if(f){const y=l.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");y.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),y.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}u==="neo"&&y8.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 v=0;o.forEach((y,b)=>{const _=L7e(y.name),S=l.append("g"),x=S.insert("g").attr("class","branchLabel"),C=x.insert("g").attr("class","label branch-label");C.node()?.appendChild(_);const T=_.getBBox();v=b8t(y.name,v,b,T,s),C.remove(),x.remove(),S.remove()}),ile(l,HE,!1,i),i.showBranches&&_8t(l,o,i,e),y8t(l,HE),ile(l,HE,!0,i),Kr.insertTitle(l,"gitTitleText",i.titleTopMargin??0,a.getDiagramTitle()),WU(void 0,l,i.diagramPadding,i.useMaxWidth)},"draw"),S8t={draw:E8t},P7e=8,B7e=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),T8t=new Set(["redux-color","redux-dark-color"]),x8t=new Set(["neo","neo-dark"]),C8t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),w8t=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),k8t=E(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:a}=n,i=B7e.has(r);if(T8t.has(r)){let s="";for(let o=0;o{const e=xr(),{theme:r,themeVariables:n}=e,{borderColorArray:a}=n,i=B7e.has(r);if(x8t.has(r)){let s="";for(let o=0;o`${Array.from({length:t.THEME_COLOR_LIMIT},(e,r)=>r).map(e=>{const r=e%P7e;return` + `;return s}},"genColor"),R8t=E(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(e,r)=>r).map(e=>{const r=e%P7e;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"),R8t=E(t=>{const e=xr(),{theme:r}=e,n=C8t.has(r);return` +`)}`,"normalTheme"),N8t=E(t=>{const e=xr(),{theme:r}=e,n=w8t.has(r);return` .commit-id, .commit-msg, .branch-label { @@ -5453,7 +5458,7 @@ ${r}`),this.inline?`{${a}}`:a}},k(Uy,"JSDocTagImpl"),Uy);function Wke(t,e,r){if( font-family: var(--mermaid-font-family); } - ${n?k8t(t):A8t(t)} + ${n?A8t(t):R8t(t)} .branch { stroke-width: ${t.strokeWidth}; @@ -5493,12 +5498,12 @@ ${r}`),this.inline?`{${a}}`:a}},k(Uy,"JSDocTagImpl"),Uy);function Wke(t,e,r){if( font-size: 18px; fill: ${t.textColor}; } -`},"getStyles"),N8t=R8t,I8t={parser:e8t,db:D7e,renderer:E8t,styles:N8t};const O8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:I8t},Symbol.toStringTag,{value:"Module"}));var iC={exports:{}},D8t=iC.exports,sle;function L8t(){return sle||(sle=1,(function(t,e){(function(r,n){t.exports=n()})(D8t,(function(){var r="day";return function(n,a,i){var s=function(u){return u.add(4-u.isoWeekday(),r)},o=a.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?i.utc:i)().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)}}}))})(iC)),iC.exports}var M8t=L8t();const P8t=Fl(M8t);var sC={exports:{}},B8t=sC.exports,ole;function F8t(){return ole||(ole=1,(function(t,e){(function(r,n){t.exports=n()})(B8t,(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,a=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(y){this[v]=+y}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),_=60*b[1]+(+b[2]||0);return _===0?0:b[0]==="+"?-_:_})(v)}],f=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(v,y){var b,_=l.meridiem;if(_){for(var S=1;S<=24;S+=1)if(v.indexOf(_(S,0,y))>-1){b=S>12;break}}else b=v===(y?"pm":"PM");return b},g={A:[o,function(v){this.afternoon=p(v,!1)}],a:[o,function(v){this.afternoon=p(v,!0)}],Q:[a,function(v){this.month=3*(v-1)+1}],S:[a,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],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:[i,d("day")],Do:[o,function(v){var y=l.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var _=1;_<=31;_+=1)y(_).replace(/\[|\]/g,"")===v&&(this.day=_)}],w:[s,d("week")],ww:[i,d("week")],M:[s,d("month")],MM:[i,d("month")],MMM:[o,function(v){var y=f("months"),b=(f("monthsShort")||y.map((function(_){return _.slice(0,3)}))).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[o,function(v){var y=f("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function m(v){var y,b;y=v,b=l&&l.formats;for(var _=(v=y.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),S=_.length,x=0;x-1)return new Date((N==="X"?1e3:1)*L);var B=m(N)(L),U=B.year,G=B.month,K=B.day,Y=B.hours,ee=B.minutes,X=B.seconds,le=B.milliseconds,te=B.zone,ne=B.week,ae=new Date,re=K||(U||G?1:ae.getDate()),ge=U||ae.getFullYear(),pe=0;U&&!G||(pe=G>0?G-1:ae.getMonth());var Be,Le=Y||0,He=ee||0,Re=X||0,xe=le||0;return te?new Date(Date.UTC(ge,pe,re,Le,He,Re,xe+60*te.offset*1e3)):P?new Date(Date.UTC(ge,pe,re,Le,He,Re,xe)):(Be=new Date(ge,pe,re,Le,He,Re,xe),ne&&(Be=z(Be).week(ne).toDate()),Be)}catch{return new Date("")}})(C,R,T,b),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),$&&C!=this.format(R)&&(this.$d=new Date("")),l={}}else if(R instanceof Array)for(var A=R.length,I=1;I<=A;I+=1){w[1]=R[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 S.call(this,x)}}}))})(sC)),sC.exports}var $8t=F8t();const z8t=Fl($8t);var oC={exports:{}},U8t=oC.exports,lle;function G8t(){return lle||(lle=1,(function(t,e){(function(r,n){t.exports=n()})(U8t,(function(){return function(r,n){var a=n.prototype,i=a.format;a.format=function(s){var o=this,l=this.$locale();if(!this.isValid())return i.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 i.bind(this)(d)}}}))})(oC)),oC.exports}var q8t=G8t();const Y8t=Fl(q8t);var lC={exports:{}},H8t=lC.exports,cle;function V8t(){return cle||(cle=1,(function(t,e){(function(r,n){t.exports=n()})(H8t,(function(){var r,n,a=1e3,i=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:i,seconds:a,milliseconds:1,weeks:6048e5},p=function(C){return C instanceof S},g=function(C,T,w){return new S(C,w,T.$l)},m=function(C){return n.p(C)+"s"},v=function(C){return C<0},y=function(C){return v(C)?Math.ceil(C):Math.floor(C)},b=function(C){return Math.abs(C)},_=function(C,T){return C?v(C)?{negative:!0,format:""+b(C)+T}:{negative:!1,format:""+C+T}:{negative:!1,format:""}},S=(function(){function C(w,R,O){var M=this;if(this.$d={},this.$l=O,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),R)return g(w*f[m(R)],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(R,O){return R+(w.$d[O]||0)*f[O]}),0)},T.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=y(w/u),w%=u,this.$d.months=y(w/d),w%=d,this.$d.days=y(w/o),w%=o,this.$d.hours=y(w/s),w%=s,this.$d.minutes=y(w/i),w%=i,this.$d.seconds=y(w/a),w%=a,this.$d.milliseconds=w},T.toISOString=function(){var w=_(this.$d.years,"Y"),R=_(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||R.negative||M.negative||$.negative||F.negative||I.negative,L=$.format||F.format||I.format?"T":"",N=(D?"-":"")+"P"+w.format+R.format+M.format+L+$.format+F.format+I.format;return N==="P"||N==="-P"?"P0D":N},T.toJSON=function(){return this.toISOString()},T.format=function(w){var R=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 R.replace(l,(function(M,$){return $||String(O[M])}))},T.as=function(w){return this.$ms/f[m(w)]},T.get=function(w){var R=this.$ms,O=m(w);return O==="milliseconds"?R%=1e3:R=O==="weeks"?y(R/f[O]):this.$d[O],R||0},T.add=function(w,R,O){var M;return M=R?w*f[m(R)]:p(w)?w.$ms:g(w,this).$ms,g(this.$ms+M*(O?-1:1),this)},T.subtract=function(w,R){return this.add(w,R,!0)},T.locale=function(w){var R=this.clone();return R.$l=w,R},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 R=T.prototype.add,O=T.prototype.subtract;T.prototype.add=function(M,$){return p(M)?x(this,M,1):R.bind(this)(M,$)},T.prototype.subtract=function(M,$){return p(M)?x(this,M,-1):O.bind(this)(M,$)}}}))})(lC)),lC.exports}var W8t=V8t();const K8t=Fl(W8t);var cz=(function(){var t=E(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],a=[1,28],i=[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],v=[1,14],y=[1,15],b=[1,16],_=[1,19],S=[1,20],x=[1,21],C=[1,22],T=[1,23],w=[1,25],R=[1,35],O={trace:E(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:E(function(A,I,D,L,N,P,z){var B=P.length-1;switch(N){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:a,15:i,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:v,28:y,29:b,30:_,31:S,33:x,35:C,36:T,37:24,38:w,40:R},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:a,15:i,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:v,28:y,29:b,30:_,31:S,33:x,35:C,36:T,37:24,38:w,40:R},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:E(function(A,I){if(I.recoverable)this.trace(A);else{var D=new Error(A);throw D.hash=I,D}},"parseError"),parse:E(function(A){var I=this,D=[0],L=[],N=[null],P=[],z=this.table,B="",U=0,G=0,K=2,Y=1,ee=P.slice.call(arguments,1),X=Object.create(this.lexer),le={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(le.yy[te]=this.yy[te]);X.setInput(A,le.yy),le.yy.lexer=X,le.yy.parser=this,typeof X.yylloc>"u"&&(X.yylloc={});var ne=X.yylloc;P.push(ne);var ae=X.options&&X.options.ranges;typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(je){D.length=D.length-2*je,N.length=N.length-je,P.length=P.length-je}E(re,"popStack");function ge(){var je;return je=L.pop()||X.lex()||Y,typeof je!="number"&&(je instanceof Array&&(L=je,je=L.pop()),je=I.symbols_[je]||je),je}E(ge,"lex");for(var pe,Be,Le,He,Re={},xe,$e,Ce,ut;;){if(Be=D[D.length-1],this.defaultActions[Be]?Le=this.defaultActions[Be]:((pe===null||typeof pe>"u")&&(pe=ge()),Le=z[Be]&&z[Be][pe]),typeof Le>"u"||!Le.length||!Le[0]){var Ae="";ut=[];for(xe in z[Be])this.terminals_[xe]&&xe>K&&ut.push("'"+this.terminals_[xe]+"'");X.showPosition?Ae="Parse error on line "+(U+1)+`: +`},"getStyles"),I8t=N8t,O8t={parser:t8t,db:D7e,renderer:S8t,styles:I8t};const D8t=Object.freeze(Object.defineProperty({__proto__:null,diagram:O8t},Symbol.toStringTag,{value:"Module"}));var iC={exports:{}},L8t=iC.exports,sle;function M8t(){return sle||(sle=1,(function(t,e){(function(r,n){t.exports=n()})(L8t,(function(){var r="day";return function(n,a,i){var s=function(u){return u.add(4-u.isoWeekday(),r)},o=a.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?i.utc:i)().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)}}}))})(iC)),iC.exports}var P8t=M8t();const B8t=Fl(P8t);var sC={exports:{}},F8t=sC.exports,ole;function $8t(){return ole||(ole=1,(function(t,e){(function(r,n){t.exports=n()})(F8t,(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,a=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(y){this[v]=+y}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),_=60*b[1]+(+b[2]||0);return _===0?0:b[0]==="+"?-_:_})(v)}],f=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(v,y){var b,_=l.meridiem;if(_){for(var S=1;S<=24;S+=1)if(v.indexOf(_(S,0,y))>-1){b=S>12;break}}else b=v===(y?"pm":"PM");return b},g={A:[o,function(v){this.afternoon=p(v,!1)}],a:[o,function(v){this.afternoon=p(v,!0)}],Q:[a,function(v){this.month=3*(v-1)+1}],S:[a,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],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:[i,d("day")],Do:[o,function(v){var y=l.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var _=1;_<=31;_+=1)y(_).replace(/\[|\]/g,"")===v&&(this.day=_)}],w:[s,d("week")],ww:[i,d("week")],M:[s,d("month")],MM:[i,d("month")],MMM:[o,function(v){var y=f("months"),b=(f("monthsShort")||y.map((function(_){return _.slice(0,3)}))).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[o,function(v){var y=f("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function m(v){var y,b;y=v,b=l&&l.formats;for(var _=(v=y.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),S=_.length,x=0;x-1)return new Date((N==="X"?1e3:1)*L);var B=m(N)(L),U=B.year,G=B.month,K=B.day,Y=B.hours,ee=B.minutes,X=B.seconds,le=B.milliseconds,te=B.zone,ne=B.week,ae=new Date,re=K||(U||G?1:ae.getDate()),ge=U||ae.getFullYear(),pe=0;U&&!G||(pe=G>0?G-1:ae.getMonth());var Be,Le=Y||0,He=ee||0,Re=X||0,xe=le||0;return te?new Date(Date.UTC(ge,pe,re,Le,He,Re,xe+60*te.offset*1e3)):P?new Date(Date.UTC(ge,pe,re,Le,He,Re,xe)):(Be=new Date(ge,pe,re,Le,He,Re,xe),ne&&(Be=z(Be).week(ne).toDate()),Be)}catch{return new Date("")}})(C,R,T,b),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),$&&C!=this.format(R)&&(this.$d=new Date("")),l={}}else if(R instanceof Array)for(var A=R.length,I=1;I<=A;I+=1){w[1]=R[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 S.call(this,x)}}}))})(sC)),sC.exports}var z8t=$8t();const U8t=Fl(z8t);var oC={exports:{}},G8t=oC.exports,lle;function q8t(){return lle||(lle=1,(function(t,e){(function(r,n){t.exports=n()})(G8t,(function(){return function(r,n){var a=n.prototype,i=a.format;a.format=function(s){var o=this,l=this.$locale();if(!this.isValid())return i.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 i.bind(this)(d)}}}))})(oC)),oC.exports}var Y8t=q8t();const H8t=Fl(Y8t);var lC={exports:{}},V8t=lC.exports,cle;function W8t(){return cle||(cle=1,(function(t,e){(function(r,n){t.exports=n()})(V8t,(function(){var r,n,a=1e3,i=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:i,seconds:a,milliseconds:1,weeks:6048e5},p=function(C){return C instanceof S},g=function(C,T,w){return new S(C,w,T.$l)},m=function(C){return n.p(C)+"s"},v=function(C){return C<0},y=function(C){return v(C)?Math.ceil(C):Math.floor(C)},b=function(C){return Math.abs(C)},_=function(C,T){return C?v(C)?{negative:!0,format:""+b(C)+T}:{negative:!1,format:""+C+T}:{negative:!1,format:""}},S=(function(){function C(w,R,O){var M=this;if(this.$d={},this.$l=O,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),R)return g(w*f[m(R)],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(R,O){return R+(w.$d[O]||0)*f[O]}),0)},T.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=y(w/u),w%=u,this.$d.months=y(w/d),w%=d,this.$d.days=y(w/o),w%=o,this.$d.hours=y(w/s),w%=s,this.$d.minutes=y(w/i),w%=i,this.$d.seconds=y(w/a),w%=a,this.$d.milliseconds=w},T.toISOString=function(){var w=_(this.$d.years,"Y"),R=_(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||R.negative||M.negative||$.negative||F.negative||I.negative,L=$.format||F.format||I.format?"T":"",N=(D?"-":"")+"P"+w.format+R.format+M.format+L+$.format+F.format+I.format;return N==="P"||N==="-P"?"P0D":N},T.toJSON=function(){return this.toISOString()},T.format=function(w){var R=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 R.replace(l,(function(M,$){return $||String(O[M])}))},T.as=function(w){return this.$ms/f[m(w)]},T.get=function(w){var R=this.$ms,O=m(w);return O==="milliseconds"?R%=1e3:R=O==="weeks"?y(R/f[O]):this.$d[O],R||0},T.add=function(w,R,O){var M;return M=R?w*f[m(R)]:p(w)?w.$ms:g(w,this).$ms,g(this.$ms+M*(O?-1:1),this)},T.subtract=function(w,R){return this.add(w,R,!0)},T.locale=function(w){var R=this.clone();return R.$l=w,R},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 R=T.prototype.add,O=T.prototype.subtract;T.prototype.add=function(M,$){return p(M)?x(this,M,1):R.bind(this)(M,$)},T.prototype.subtract=function(M,$){return p(M)?x(this,M,-1):O.bind(this)(M,$)}}}))})(lC)),lC.exports}var K8t=W8t();const X8t=Fl(K8t);var cz=(function(){var t=E(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],a=[1,28],i=[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],v=[1,14],y=[1,15],b=[1,16],_=[1,19],S=[1,20],x=[1,21],C=[1,22],T=[1,23],w=[1,25],R=[1,35],O={trace:E(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:E(function(A,I,D,L,N,P,z){var B=P.length-1;switch(N){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:a,15:i,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:v,28:y,29:b,30:_,31:S,33:x,35:C,36:T,37:24,38:w,40:R},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:a,15:i,16:s,17:o,18:l,19:18,20:u,21:d,22:h,23:f,24:p,25:g,26:m,27:v,28:y,29:b,30:_,31:S,33:x,35:C,36:T,37:24,38:w,40:R},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:E(function(A,I){if(I.recoverable)this.trace(A);else{var D=new Error(A);throw D.hash=I,D}},"parseError"),parse:E(function(A){var I=this,D=[0],L=[],N=[null],P=[],z=this.table,B="",U=0,G=0,K=2,Y=1,ee=P.slice.call(arguments,1),X=Object.create(this.lexer),le={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(le.yy[te]=this.yy[te]);X.setInput(A,le.yy),le.yy.lexer=X,le.yy.parser=this,typeof X.yylloc>"u"&&(X.yylloc={});var ne=X.yylloc;P.push(ne);var ae=X.options&&X.options.ranges;typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(je){D.length=D.length-2*je,N.length=N.length-je,P.length=P.length-je}E(re,"popStack");function ge(){var je;return je=L.pop()||X.lex()||Y,typeof je!="number"&&(je instanceof Array&&(L=je,je=L.pop()),je=I.symbols_[je]||je),je}E(ge,"lex");for(var pe,Be,Le,He,Re={},xe,$e,Ce,ut;;){if(Be=D[D.length-1],this.defaultActions[Be]?Le=this.defaultActions[Be]:((pe===null||typeof pe>"u")&&(pe=ge()),Le=z[Be]&&z[Be][pe]),typeof Le>"u"||!Le.length||!Le[0]){var Ae="";ut=[];for(xe in z[Be])this.terminals_[xe]&&xe>K&&ut.push("'"+this.terminals_[xe]+"'");X.showPosition?Ae="Parse error on line "+(U+1)+`: `+X.showPosition()+` Expecting `+ut.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":Ae="Parse error on line "+(U+1)+": Unexpected "+(pe==Y?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(Ae,{text:X.match,token:this.terminals_[pe]||pe,line:X.yylineno,loc:ne,expected:ut})}if(Le[0]instanceof Array&&Le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Be+", token: "+pe);switch(Le[0]){case 1:D.push(pe),N.push(X.yytext),P.push(X.yylloc),D.push(Le[1]),pe=null,G=X.yyleng,B=X.yytext,U=X.yylineno,ne=X.yylloc;break;case 2:if($e=this.productions_[Le[1]][1],Re.$=N[N.length-$e],Re._$={first_line:P[P.length-($e||1)].first_line,last_line:P[P.length-1].last_line,first_column:P[P.length-($e||1)].first_column,last_column:P[P.length-1].last_column},ae&&(Re._$.range=[P[P.length-($e||1)].range[0],P[P.length-1].range[1]]),He=this.performAction.apply(Re,[B,G,U,le.yy,Le[1],N,P].concat(ee)),typeof He<"u")return He;$e&&(D=D.slice(0,-1*$e*2),N=N.slice(0,-1*$e),P=P.slice(0,-1*$e)),D.push(this.productions_[Le[1]][0]),N.push(Re.$),P.push(Re._$),Ce=z[D[D.length-2]][D[D.length-1]],D.push(Ce);break;case 3:return!0}}return!0},"parse")},M=(function(){var F={EOF:1,parseError:E(function(I,D){if(this.yy.parser)this.yy.parser.parseError(I,D);else throw new Error(I)},"parseError"),setInput:E(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:E(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:E(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 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: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=[N[0],N[0]+this.yyleng-I]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(A){this.unput(this.match.slice(A))},"less"),pastInput:E(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:E(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:E(function(){var A=this.pastInput(),I=new Array(A.length+1).join("-");return A+this.upcomingInput()+` `+I+"^"},"showPosition"),test_match:E(function(A,I){var D,L,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))),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 N)this[P]=N[P];return!1}return!1},"test_match"),next:E(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 N=this._currentRules(),P=0;PI[0].length)){if(I=D,L=P,this.options.backtrack_lexer){if(A=this.test_match(D,N[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,N[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:E(function(){var I=this.next();return I||this.lex()},"lex"),begin:E(function(I){this.conditionStack.push(I)},"begin"),popState:E(function(){var I=this.conditionStack.length-1;return I>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(I){return I=this.conditionStack.length-1-Math.abs(I||0),I>=0?this.conditionStack[I]:"INITIAL"},"topState"),pushState:E(function(I){this.begin(I)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(I,D,L,N){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 E($,"Parser"),$.prototype=O,O.Parser=$,new $})();cz.parser=cz;var X8t=cz;Bi.extend(P8t);Bi.extend(z8t);Bi.extend(Y8t);var ule={friday:5,saturday:6},tu="",CW="",wW=void 0,kW="",fx=[],px=[],AW=new Map,RW=[],Ww=[],$b="",NW="",F7e=["active","done","crit","milestone","vert"],IW=[],Xm="",gx=!1,OW=!1,DW="sunday",Kw="saturday",uz=0,j8t=E(function(){RW=[],Ww=[],$b="",IW=[],cC=0,hz=void 0,uC=void 0,vi=[],tu="",CW="",NW="",wW=void 0,kW="",fx=[],px=[],gx=!1,OW=!1,uz=0,AW=new Map,Xm="",oa(),DW="sunday",Kw="saturday"},"clear"),Q8t=E(function(t){Xm=t},"setDiagramId"),Z8t=E(function(t){CW=t},"setAxisFormat"),J8t=E(function(){return CW},"getAxisFormat"),eRt=E(function(t){wW=t},"setTickInterval"),tRt=E(function(){return wW},"getTickInterval"),rRt=E(function(t){kW=t},"setTodayMarker"),nRt=E(function(){return kW},"getTodayMarker"),aRt=E(function(t){tu=t},"setDateFormat"),iRt=E(function(){gx=!0},"enableInclusiveEndDates"),sRt=E(function(){return gx},"endDatesAreInclusive"),oRt=E(function(){OW=!0},"enableTopAxis"),lRt=E(function(){return OW},"topAxisEnabled"),cRt=E(function(t){NW=t},"setDisplayMode"),uRt=E(function(){return NW},"getDisplayMode"),dRt=E(function(){return tu},"getDateFormat"),hRt=E(function(t){fx=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),fRt=E(function(){return fx},"getIncludes"),pRt=E(function(t){px=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),gRt=E(function(){return px},"getExcludes"),mRt=E(function(){return AW},"getLinks"),vRt=E(function(t){$b=t,RW.push(t)},"addSection"),yRt=E(function(){return RW},"getSections"),_Rt=E(function(){let t=dle();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"),dz=E(function(t,e,r){if(r=r.trim(),E(o=>{const l=o.trim();return l==="x"||l==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));const i=/^after\s+(?[\d\w- ]+)/.exec(r);if(i!==null){let o=null;for(const u of i.groups.ids.split(" ")){let d=Fg(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=Bi(r,e.trim(),!0);if(s.isValid())return s.toDate();{oe.debug("Invalid date:"+r),oe.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"),U7e=E(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),G7e=E(function(t,e,r,n=!1){r=r.trim();const i=/^until\s+(?[\d\w- ]+)/.exec(r);if(i!==null){let d=null;for(const f of i.groups.ids.split(" ")){let p=Fg(f);p!==void 0&&(!d||p.startTime{window.open(r,"_self")}),AW.set(n,r))}),Y7e(t,"clickable")},"setLink"),Y7e=E(function(t,e){t.split(",").forEach(function(r){let n=Fg(r);n!==void 0&&n.classes.push(e)})},"setClass"),RRt=E(function(t,e,r){if(Ye().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i{Kr.runFunc(e,...n)})},"setClickFun"),H7e=E(function(t,e){IW.push(function(){const r=Xm?`${Xm}-${t}`:t,n=document.querySelector(`[id="${r}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const r=Xm?`${Xm}-${t}`:t,n=document.querySelector(`[id="${r}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),NRt=E(function(t,e,r){t.split(",").forEach(function(n){RRt(n,e,r)}),Y7e(t,"clickable")},"setClickEvent"),IRt=E(function(t){IW.forEach(function(e){e(t)})},"bindFunctions"),ORt={getConfig:E(()=>Ye().gantt,"getConfig"),clear:j8t,setDateFormat:aRt,getDateFormat:dRt,enableInclusiveEndDates:iRt,endDatesAreInclusive:sRt,enableTopAxis:oRt,topAxisEnabled:lRt,setAxisFormat:Z8t,getAxisFormat:J8t,setTickInterval:eRt,getTickInterval:tRt,setTodayMarker:rRt,getTodayMarker:nRt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,setDiagramId:Q8t,setDisplayMode:cRt,getDisplayMode:uRt,setAccDescription:ya,getAccDescription:_a,addSection:vRt,getSections:yRt,getTasks:_Rt,addTask:wRt,findTaskById:Fg,addTaskOrg:kRt,setIncludes:hRt,getIncludes:fRt,setExcludes:pRt,getExcludes:gRt,setClickEvent:NRt,setLink:ARt,getLinks:mRt,bindFunctions:IRt,parseDuration:U7e,isInvalidDate:$7e,setWeekday:bRt,getWeekday:ERt,setWeekend:SRt};function LW(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(a){const i="^\\s*"+a+"\\s*$",s=new RegExp(i);t[0].match(s)&&(e[a]=!0,t.shift(1),n=!0)})}E(LW,"getTaskTags");Bi.extend(K8t);var DRt=E(function(){oe.debug("Something is calling, setConf, remove the call")},"setConf"),hle={monday:XS,tuesday:Hde,wednesday:Vde,thursday:Dp,friday:Wde,saturday:Kde,sunday:gT},LRt=E((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((i,s)=>i.startTime-s.startTime||i.order-s.order),a=0;for(const i of n)for(let s=0;s=r[s]){r[s]=i.endTime,i.order=s+e,s>a&&(a=s);break}return a},"getMaxIntersections"),Vu,fM=1e4,MRt=E(function(t,e,r,n){const a=Ye().gantt;n.db.setDiagramId(e);const i=Ye().securityLevel;let s;i==="sandbox"&&(s=At("#i"+e));const o=At(i==="sandbox"?s.nodes()[0].contentDocument.body:"body"),l=i==="sandbox"?s.nodes()[0].contentDocument:document,u=l.getElementById(e);Vu=u.parentElement.offsetWidth,Vu===void 0&&(Vu=1200),a.useWidth!==void 0&&(Vu=a.useWidth);const d=n.db.getTasks();let h=[];for(const R of d)h.push(R.type);h=w(h);const f={};let p=2*a.topPadding;if(n.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const R={};for(const M of d)R[M.section]===void 0?R[M.section]=[M]:R[M.section].push(M);let O=0;for(const M of Object.keys(R)){const $=LRt(R[M],O)+1;O+=$,p+=$*(a.barHeight+a.barGap),f[M]=$}}else{p+=d.length*(a.barHeight+a.barGap);for(const R of h)f[R]=d.filter(O=>O.type===R).length}u.setAttribute("viewBox","0 0 "+Vu+" "+p);const g=o.select(`[id="${e}"]`),m=jHe().domain([nze(d,function(R){return R.startTime}),rze(d,function(R){return R.endTime})]).rangeRound([0,Vu-a.leftPadding-a.rightPadding]);function v(R,O){const M=R.startTime,$=O.startTime;let F=0;return M>$?F=1:M<$&&(F=-1),F}E(v,"taskCompare"),d.sort(v),y(d,Vu,p),di(g,p,Vu,a.useMaxWidth),g.append("text").text(n.db.getDiagramTitle()).attr("x",Vu/2).attr("y",a.titleTopMargin).attr("class","titleText");function y(R,O,M){const $=a.barHeight,F=$+a.barGap,A=a.topPadding,I=a.leftPadding,D=sb().domain([0,h.length]).range(["#00B9FA","#F95002"]).interpolate(wGe);_(F,A,I,O,M,R,n.db.getExcludes(),n.db.getIncludes()),x(I,A,O,M),b(R,F,A,I,$,D,O),C(F,A),T(I,A,O,M)}E(y,"makeGantt");function b(R,O,M,$,F,A,I){R.sort((B,U)=>B.vert===U.vert?0:B.vert?1:-1);const L=[...new Set(R.map(B=>B.order))].map(B=>R.find(U=>U.order===B));g.append("g").selectAll("rect").data(L).enter().append("rect").attr("x",0).attr("y",function(B,U){return U=B.order,U*O+M-2}).attr("width",function(){return I-a.rightPadding/2}).attr("height",O).attr("class",function(B){for(const[U,G]of h.entries())if(B.type===G)return"section section"+U%a.numberSectionStyles;return"section section0"}).enter();const N=g.append("g").selectAll("rect").data(R).enter(),P=n.db.getLinks();if(N.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,U){return U=B.order,B.vert?a.gridLineStartPadding:U*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*(a.barHeight+a.barGap)+a.barHeight*2:F}).attr("transform-origin",function(B,U){return U=B.order,(m(B.startTime)+$+.5*(m(B.endTime)-m(B.startTime))).toString()+"px "+(U*O+M+.5*F).toString()+"px"}).attr("class",function(B){const U="task";let G="";B.classes.length>0&&(G=B.classes.join(" "));let K=0;for(const[ee,X]of h.entries())B.type===X&&(K=ee%a.numberSectionStyles);let Y="";return B.active?B.crit?Y+=" activeCrit":Y=" active":B.done?B.crit?Y=" doneCrit":Y=" done":B.crit&&(Y+=" crit"),Y.length===0&&(Y=" task"),B.milestone&&(Y=" milestone "+Y),B.vert&&(Y=" vert "+Y),Y+=K,Y+=" "+G,U+Y}),N.append("text").attr("id",function(B){return e+"-"+B.id+"-text"}).text(function(B){return B.task}).attr("font-size",a.fontSize).attr("x",function(B){let U=m(B.startTime),G=m(B.renderEndTime||B.endTime);if(B.milestone&&(U+=.5*(m(B.endTime)-m(B.startTime))-.5*F,G=U+F),B.vert)return m(B.startTime)+$;const K=this.getBBox().width;return K>G-U?G+K+1.5*a.leftPadding>I?U+$-5:G+$+5:(G-U)/2+U+$}).attr("y",function(B,U){return B.vert?a.gridLineStartPadding+d.length*(a.barHeight+a.barGap)+60:(U=B.order,U*O+a.barHeight/2+(a.fontSize/2-2)+M)}).attr("text-height",F).attr("class",function(B){const U=m(B.startTime);let G=m(B.endTime);B.milestone&&(G=U+F);const K=this.getBBox().width;let Y="";B.classes.length>0&&(Y=B.classes.join(" "));let ee=0;for(const[le,te]of h.entries())B.type===te&&(ee=le%a.numberSectionStyles);let X="";return B.active&&(B.crit?X="activeCritText"+ee:X="activeText"+ee),B.done?B.crit?X=X+" doneCritText"+ee:X=X+" doneText"+ee:B.crit&&(X=X+" critText"+ee),B.milestone&&(X+=" milestoneText"),B.vert&&(X+=" vertText"),K>G-U?G+K+1.5*a.leftPadding>I?Y+" taskTextOutsideLeft taskTextOutside"+ee+" "+X:Y+" taskTextOutsideRight taskTextOutside"+ee+" "+X+" width-"+K:Y+" taskText taskText"+ee+" "+X+" width-"+K}),Ye().securityLevel==="sandbox"){let B;B=At("#i"+e);const U=B.nodes()[0].contentDocument;N.filter(function(G){return P.has(G.id)}).each(function(G){var K=U.querySelector("#"+CSS.escape(e+"-"+G.id)),Y=U.querySelector("#"+CSS.escape(e+"-"+G.id+"-text"));const ee=K.parentNode;var X=U.createElement("a");X.setAttribute("xlink:href",P.get(G.id)),X.setAttribute("target","_top"),ee.appendChild(X),X.appendChild(K),X.appendChild(Y)})}}E(b,"drawRects");function _(R,O,M,$,F,A,I,D){if(I.length===0&&D.length===0)return;let L,N;for(const{startTime:K,endTime:Y}of A)(L===void 0||KN)&&(N=Y);if(!L||!N)return;if(Bi(N).diff(Bi(L),"year")>5){oe.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,U=Bi(L);for(;U.valueOf()<=N;)n.db.isInvalidDate(U,P,I,D)?B?B.end=U:B={start:U,end:U}:B&&(z.push(B),B=null),U=U.add(1,"d");g.append("g").selectAll("rect").data(z).enter().append("rect").attr("id",K=>e+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",K=>m(K.start.startOf("day"))+M).attr("y",a.gridLineStartPadding).attr("width",K=>m(K.end.endOf("day"))-m(K.start.startOf("day"))).attr("height",F-O-a.gridLineStartPadding).attr("transform-origin",function(K,Y){return(m(K.start)+M+.5*(m(K.end)-m(K.start))).toString()+"px "+(Y*R+.5*F).toString()+"px"}).attr("class","exclude-range")}E(_,"drawExcludeDays");function S(R,O,M,$){if(M<=0||R>O)return 1/0;const F=O-R,A=Bi.duration({[$??"day"]:M}).asMilliseconds();return A<=0?1/0:Math.ceil(F/A)}E(S,"getEstimatedTickCount");function x(R,O,M,$){const F=n.db.getDateFormat(),A=n.db.getAxisFormat();let I;A?I=A:F==="D"?I="%d":I=a.axisFormat??"%Y-%m-%d";let D=hze(m).tickSize(-$+O+a.gridLineStartPadding).tickFormat(e6(I));const N=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||a.tickInterval);if(N!==null){const P=parseInt(N[1],10);if(isNaN(P)||P<=0)oe.warn(`Invalid tick interval value: "${N[1]}". Skipping custom tick interval.`);else{const z=N[2],B=n.db.getWeekday()||a.weekday,U=m.domain(),G=U[0],K=U[1],Y=S(G,K,P,z);if(Y>fM)oe.warn(`The tick interval "${P}${z}" would generate ${Y} ticks, which exceeds the maximum allowed (${fM}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(z){case"millisecond":D.ticks(ob.every(P));break;case"second":D.ticks(Ud.every(P));break;case"minute":D.ticks(WS.every(P));break;case"hour":D.ticks(KS.every(P));break;case"day":D.ticks(Op.every(P));break;case"week":D.ticks(hle[B].every(P));break;case"month":D.ticks(jS.every(P));break}}}if(g.append("g").attr("class","grid").attr("transform","translate("+R+", "+($-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()||a.topAxis){let P=dze(m).tickSize(-$+O+a.gridLineStartPadding).tickFormat(e6(I));if(N!==null){const z=parseInt(N[1],10);if(isNaN(z)||z<=0)oe.warn(`Invalid tick interval value: "${N[1]}". Skipping custom tick interval.`);else{const B=N[2],U=n.db.getWeekday()||a.weekday,G=m.domain(),K=G[0],Y=G[1];if(S(K,Y,z,B)<=fM)switch(B){case"millisecond":P.ticks(ob.every(z));break;case"second":P.ticks(Ud.every(z));break;case"minute":P.ticks(WS.every(z));break;case"hour":P.ticks(KS.every(z));break;case"day":P.ticks(Op.every(z));break;case"week":P.ticks(hle[U].every(z));break;case"month":P.ticks(jS.every(z));break}}}g.append("g").attr("class","grid").attr("transform","translate("+R+", "+O+")").call(P).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}E(x,"makeGrid");function C(R,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,N]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=N,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:E(function(){var I=this.next();return I||this.lex()},"lex"),begin:E(function(I){this.conditionStack.push(I)},"begin"),popState:E(function(){var I=this.conditionStack.length-1;return I>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(I){return I=this.conditionStack.length-1-Math.abs(I||0),I>=0?this.conditionStack[I]:"INITIAL"},"topState"),pushState:E(function(I){this.begin(I)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(I,D,L,N){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 E($,"Parser"),$.prototype=O,O.Parser=$,new $})();cz.parser=cz;var j8t=cz;Bi.extend(B8t);Bi.extend(U8t);Bi.extend(H8t);var ule={friday:5,saturday:6},tu="",CW="",wW=void 0,kW="",fx=[],px=[],AW=new Map,RW=[],Ww=[],$b="",NW="",F7e=["active","done","crit","milestone","vert"],IW=[],Xm="",gx=!1,OW=!1,DW="sunday",Kw="saturday",uz=0,Q8t=E(function(){RW=[],Ww=[],$b="",IW=[],cC=0,hz=void 0,uC=void 0,vi=[],tu="",CW="",NW="",wW=void 0,kW="",fx=[],px=[],gx=!1,OW=!1,uz=0,AW=new Map,Xm="",oa(),DW="sunday",Kw="saturday"},"clear"),Z8t=E(function(t){Xm=t},"setDiagramId"),J8t=E(function(t){CW=t},"setAxisFormat"),eRt=E(function(){return CW},"getAxisFormat"),tRt=E(function(t){wW=t},"setTickInterval"),rRt=E(function(){return wW},"getTickInterval"),nRt=E(function(t){kW=t},"setTodayMarker"),aRt=E(function(){return kW},"getTodayMarker"),iRt=E(function(t){tu=t},"setDateFormat"),sRt=E(function(){gx=!0},"enableInclusiveEndDates"),oRt=E(function(){return gx},"endDatesAreInclusive"),lRt=E(function(){OW=!0},"enableTopAxis"),cRt=E(function(){return OW},"topAxisEnabled"),uRt=E(function(t){NW=t},"setDisplayMode"),dRt=E(function(){return NW},"getDisplayMode"),hRt=E(function(){return tu},"getDateFormat"),fRt=E(function(t){fx=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),pRt=E(function(){return fx},"getIncludes"),gRt=E(function(t){px=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),mRt=E(function(){return px},"getExcludes"),vRt=E(function(){return AW},"getLinks"),yRt=E(function(t){$b=t,RW.push(t)},"addSection"),_Rt=E(function(){return RW},"getSections"),bRt=E(function(){let t=dle();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"),dz=E(function(t,e,r){if(r=r.trim(),E(o=>{const l=o.trim();return l==="x"||l==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));const i=/^after\s+(?[\d\w- ]+)/.exec(r);if(i!==null){let o=null;for(const u of i.groups.ids.split(" ")){let d=Fg(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=Bi(r,e.trim(),!0);if(s.isValid())return s.toDate();{oe.debug("Invalid date:"+r),oe.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"),U7e=E(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),G7e=E(function(t,e,r,n=!1){r=r.trim();const i=/^until\s+(?[\d\w- ]+)/.exec(r);if(i!==null){let d=null;for(const f of i.groups.ids.split(" ")){let p=Fg(f);p!==void 0&&(!d||p.startTime{window.open(r,"_self")}),AW.set(n,r))}),Y7e(t,"clickable")},"setLink"),Y7e=E(function(t,e){t.split(",").forEach(function(r){let n=Fg(r);n!==void 0&&n.classes.push(e)})},"setClass"),NRt=E(function(t,e,r){if(Ye().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i{Kr.runFunc(e,...n)})},"setClickFun"),H7e=E(function(t,e){IW.push(function(){const r=Xm?`${Xm}-${t}`:t,n=document.querySelector(`[id="${r}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const r=Xm?`${Xm}-${t}`:t,n=document.querySelector(`[id="${r}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),IRt=E(function(t,e,r){t.split(",").forEach(function(n){NRt(n,e,r)}),Y7e(t,"clickable")},"setClickEvent"),ORt=E(function(t){IW.forEach(function(e){e(t)})},"bindFunctions"),DRt={getConfig:E(()=>Ye().gantt,"getConfig"),clear:Q8t,setDateFormat:iRt,getDateFormat:hRt,enableInclusiveEndDates:sRt,endDatesAreInclusive:oRt,enableTopAxis:lRt,topAxisEnabled:cRt,setAxisFormat:J8t,getAxisFormat:eRt,setTickInterval:tRt,getTickInterval:rRt,setTodayMarker:nRt,getTodayMarker:aRt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,setDiagramId:Z8t,setDisplayMode:uRt,getDisplayMode:dRt,setAccDescription:ya,getAccDescription:_a,addSection:yRt,getSections:_Rt,getTasks:bRt,addTask:kRt,findTaskById:Fg,addTaskOrg:ARt,setIncludes:fRt,getIncludes:pRt,setExcludes:gRt,getExcludes:mRt,setClickEvent:IRt,setLink:RRt,getLinks:vRt,bindFunctions:ORt,parseDuration:U7e,isInvalidDate:$7e,setWeekday:ERt,getWeekday:SRt,setWeekend:TRt};function LW(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(a){const i="^\\s*"+a+"\\s*$",s=new RegExp(i);t[0].match(s)&&(e[a]=!0,t.shift(1),n=!0)})}E(LW,"getTaskTags");Bi.extend(X8t);var LRt=E(function(){oe.debug("Something is calling, setConf, remove the call")},"setConf"),hle={monday:XS,tuesday:Hde,wednesday:Vde,thursday:Dp,friday:Wde,saturday:Kde,sunday:gT},MRt=E((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((i,s)=>i.startTime-s.startTime||i.order-s.order),a=0;for(const i of n)for(let s=0;s=r[s]){r[s]=i.endTime,i.order=s+e,s>a&&(a=s);break}return a},"getMaxIntersections"),Vu,fM=1e4,PRt=E(function(t,e,r,n){const a=Ye().gantt;n.db.setDiagramId(e);const i=Ye().securityLevel;let s;i==="sandbox"&&(s=At("#i"+e));const o=At(i==="sandbox"?s.nodes()[0].contentDocument.body:"body"),l=i==="sandbox"?s.nodes()[0].contentDocument:document,u=l.getElementById(e);Vu=u.parentElement.offsetWidth,Vu===void 0&&(Vu=1200),a.useWidth!==void 0&&(Vu=a.useWidth);const d=n.db.getTasks();let h=[];for(const R of d)h.push(R.type);h=w(h);const f={};let p=2*a.topPadding;if(n.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const R={};for(const M of d)R[M.section]===void 0?R[M.section]=[M]:R[M.section].push(M);let O=0;for(const M of Object.keys(R)){const $=MRt(R[M],O)+1;O+=$,p+=$*(a.barHeight+a.barGap),f[M]=$}}else{p+=d.length*(a.barHeight+a.barGap);for(const R of h)f[R]=d.filter(O=>O.type===R).length}u.setAttribute("viewBox","0 0 "+Vu+" "+p);const g=o.select(`[id="${e}"]`),m=QHe().domain([aze(d,function(R){return R.startTime}),nze(d,function(R){return R.endTime})]).rangeRound([0,Vu-a.leftPadding-a.rightPadding]);function v(R,O){const M=R.startTime,$=O.startTime;let F=0;return M>$?F=1:M<$&&(F=-1),F}E(v,"taskCompare"),d.sort(v),y(d,Vu,p),di(g,p,Vu,a.useMaxWidth),g.append("text").text(n.db.getDiagramTitle()).attr("x",Vu/2).attr("y",a.titleTopMargin).attr("class","titleText");function y(R,O,M){const $=a.barHeight,F=$+a.barGap,A=a.topPadding,I=a.leftPadding,D=sb().domain([0,h.length]).range(["#00B9FA","#F95002"]).interpolate(kGe);_(F,A,I,O,M,R,n.db.getExcludes(),n.db.getIncludes()),x(I,A,O,M),b(R,F,A,I,$,D,O),C(F,A),T(I,A,O,M)}E(y,"makeGantt");function b(R,O,M,$,F,A,I){R.sort((B,U)=>B.vert===U.vert?0:B.vert?1:-1);const L=[...new Set(R.map(B=>B.order))].map(B=>R.find(U=>U.order===B));g.append("g").selectAll("rect").data(L).enter().append("rect").attr("x",0).attr("y",function(B,U){return U=B.order,U*O+M-2}).attr("width",function(){return I-a.rightPadding/2}).attr("height",O).attr("class",function(B){for(const[U,G]of h.entries())if(B.type===G)return"section section"+U%a.numberSectionStyles;return"section section0"}).enter();const N=g.append("g").selectAll("rect").data(R).enter(),P=n.db.getLinks();if(N.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,U){return U=B.order,B.vert?a.gridLineStartPadding:U*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*(a.barHeight+a.barGap)+a.barHeight*2:F}).attr("transform-origin",function(B,U){return U=B.order,(m(B.startTime)+$+.5*(m(B.endTime)-m(B.startTime))).toString()+"px "+(U*O+M+.5*F).toString()+"px"}).attr("class",function(B){const U="task";let G="";B.classes.length>0&&(G=B.classes.join(" "));let K=0;for(const[ee,X]of h.entries())B.type===X&&(K=ee%a.numberSectionStyles);let Y="";return B.active?B.crit?Y+=" activeCrit":Y=" active":B.done?B.crit?Y=" doneCrit":Y=" done":B.crit&&(Y+=" crit"),Y.length===0&&(Y=" task"),B.milestone&&(Y=" milestone "+Y),B.vert&&(Y=" vert "+Y),Y+=K,Y+=" "+G,U+Y}),N.append("text").attr("id",function(B){return e+"-"+B.id+"-text"}).text(function(B){return B.task}).attr("font-size",a.fontSize).attr("x",function(B){let U=m(B.startTime),G=m(B.renderEndTime||B.endTime);if(B.milestone&&(U+=.5*(m(B.endTime)-m(B.startTime))-.5*F,G=U+F),B.vert)return m(B.startTime)+$;const K=this.getBBox().width;return K>G-U?G+K+1.5*a.leftPadding>I?U+$-5:G+$+5:(G-U)/2+U+$}).attr("y",function(B,U){return B.vert?a.gridLineStartPadding+d.length*(a.barHeight+a.barGap)+60:(U=B.order,U*O+a.barHeight/2+(a.fontSize/2-2)+M)}).attr("text-height",F).attr("class",function(B){const U=m(B.startTime);let G=m(B.endTime);B.milestone&&(G=U+F);const K=this.getBBox().width;let Y="";B.classes.length>0&&(Y=B.classes.join(" "));let ee=0;for(const[le,te]of h.entries())B.type===te&&(ee=le%a.numberSectionStyles);let X="";return B.active&&(B.crit?X="activeCritText"+ee:X="activeText"+ee),B.done?B.crit?X=X+" doneCritText"+ee:X=X+" doneText"+ee:B.crit&&(X=X+" critText"+ee),B.milestone&&(X+=" milestoneText"),B.vert&&(X+=" vertText"),K>G-U?G+K+1.5*a.leftPadding>I?Y+" taskTextOutsideLeft taskTextOutside"+ee+" "+X:Y+" taskTextOutsideRight taskTextOutside"+ee+" "+X+" width-"+K:Y+" taskText taskText"+ee+" "+X+" width-"+K}),Ye().securityLevel==="sandbox"){let B;B=At("#i"+e);const U=B.nodes()[0].contentDocument;N.filter(function(G){return P.has(G.id)}).each(function(G){var K=U.querySelector("#"+CSS.escape(e+"-"+G.id)),Y=U.querySelector("#"+CSS.escape(e+"-"+G.id+"-text"));const ee=K.parentNode;var X=U.createElement("a");X.setAttribute("xlink:href",P.get(G.id)),X.setAttribute("target","_top"),ee.appendChild(X),X.appendChild(K),X.appendChild(Y)})}}E(b,"drawRects");function _(R,O,M,$,F,A,I,D){if(I.length===0&&D.length===0)return;let L,N;for(const{startTime:K,endTime:Y}of A)(L===void 0||KN)&&(N=Y);if(!L||!N)return;if(Bi(N).diff(Bi(L),"year")>5){oe.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,U=Bi(L);for(;U.valueOf()<=N;)n.db.isInvalidDate(U,P,I,D)?B?B.end=U:B={start:U,end:U}:B&&(z.push(B),B=null),U=U.add(1,"d");g.append("g").selectAll("rect").data(z).enter().append("rect").attr("id",K=>e+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",K=>m(K.start.startOf("day"))+M).attr("y",a.gridLineStartPadding).attr("width",K=>m(K.end.endOf("day"))-m(K.start.startOf("day"))).attr("height",F-O-a.gridLineStartPadding).attr("transform-origin",function(K,Y){return(m(K.start)+M+.5*(m(K.end)-m(K.start))).toString()+"px "+(Y*R+.5*F).toString()+"px"}).attr("class","exclude-range")}E(_,"drawExcludeDays");function S(R,O,M,$){if(M<=0||R>O)return 1/0;const F=O-R,A=Bi.duration({[$??"day"]:M}).asMilliseconds();return A<=0?1/0:Math.ceil(F/A)}E(S,"getEstimatedTickCount");function x(R,O,M,$){const F=n.db.getDateFormat(),A=n.db.getAxisFormat();let I;A?I=A:F==="D"?I="%d":I=a.axisFormat??"%Y-%m-%d";let D=fze(m).tickSize(-$+O+a.gridLineStartPadding).tickFormat(e6(I));const N=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||a.tickInterval);if(N!==null){const P=parseInt(N[1],10);if(isNaN(P)||P<=0)oe.warn(`Invalid tick interval value: "${N[1]}". Skipping custom tick interval.`);else{const z=N[2],B=n.db.getWeekday()||a.weekday,U=m.domain(),G=U[0],K=U[1],Y=S(G,K,P,z);if(Y>fM)oe.warn(`The tick interval "${P}${z}" would generate ${Y} ticks, which exceeds the maximum allowed (${fM}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(z){case"millisecond":D.ticks(ob.every(P));break;case"second":D.ticks(Ud.every(P));break;case"minute":D.ticks(WS.every(P));break;case"hour":D.ticks(KS.every(P));break;case"day":D.ticks(Op.every(P));break;case"week":D.ticks(hle[B].every(P));break;case"month":D.ticks(jS.every(P));break}}}if(g.append("g").attr("class","grid").attr("transform","translate("+R+", "+($-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()||a.topAxis){let P=hze(m).tickSize(-$+O+a.gridLineStartPadding).tickFormat(e6(I));if(N!==null){const z=parseInt(N[1],10);if(isNaN(z)||z<=0)oe.warn(`Invalid tick interval value: "${N[1]}". Skipping custom tick interval.`);else{const B=N[2],U=n.db.getWeekday()||a.weekday,G=m.domain(),K=G[0],Y=G[1];if(S(K,Y,z,B)<=fM)switch(B){case"millisecond":P.ticks(ob.every(z));break;case"second":P.ticks(Ud.every(z));break;case"minute":P.ticks(WS.every(z));break;case"hour":P.ticks(KS.every(z));break;case"day":P.ticks(Op.every(z));break;case"week":P.ticks(hle[U].every(z));break;case"month":P.ticks(jS.every(z));break}}}g.append("g").attr("class","grid").attr("transform","translate("+R+", "+O+")").call(P).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}E(x,"makeGrid");function C(R,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,N]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=N,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}; } @@ -5784,8 +5789,8 @@ Expecting `+ut.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":Ae="Parse erro fill: ${t.titleColor||t.textColor}; font-family: ${t.fontFamily}; } -`,"getStyles"),FRt=BRt,$Rt={parser:X8t,db:ORt,renderer:PRt,styles:FRt};const zRt=Object.freeze(Object.defineProperty({__proto__:null,diagram:$Rt},Symbol.toStringTag,{value:"Module"}));var URt={parse:E(async t=>{const e=await Sc("info",t);oe.debug(e)},"parse")},GRt={version:"11.15.0"},qRt=E(()=>GRt.version,"getVersion"),YRt={getVersion:qRt},HRt=E((t,e,r)=>{oe.debug(`rendering info diagram -`+t);const n=wo(e);di(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"),VRt={draw:HRt},WRt={parser:URt,db:YRt,renderer:VRt};const KRt=Object.freeze(Object.defineProperty({__proto__:null,diagram:WRt},Symbol.toStringTag,{value:"Module"}));var XRt=ln.pie,MW={sections:new Map,showData:!1},Xw=MW.sections,PW=MW.showData,jRt=structuredClone(XRt),QRt=E(()=>structuredClone(jRt),"getConfig"),ZRt=E(()=>{Xw=new Map,PW=MW.showData,oa()},"clear"),JRt=E(({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.`);Xw.has(t)||(Xw.set(t,e),oe.debug(`added new section: ${t}, with value: ${e}`))},"addSection"),eNt=E(()=>Xw,"getSections"),tNt=E(t=>{PW=t},"setShowData"),rNt=E(()=>PW,"getShowData"),V7e={getConfig:QRt,clear:ZRt,setDiagramTitle:pa,getDiagramTitle:la,setAccTitle:sa,getAccTitle:va,setAccDescription:ya,getAccDescription:_a,addSection:JRt,getSections:eNt,setShowData:tNt,getShowData:rNt},nNt=E((t,e)=>{Nu(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),aNt={parse:E(async t=>{const e=await Sc("pie",t);oe.debug(e),nNt(e,V7e)},"parse")},iNt=E(t=>` +`,"getStyles"),$Rt=FRt,zRt={parser:j8t,db:DRt,renderer:BRt,styles:$Rt};const URt=Object.freeze(Object.defineProperty({__proto__:null,diagram:zRt},Symbol.toStringTag,{value:"Module"}));var GRt={parse:E(async t=>{const e=await Sc("info",t);oe.debug(e)},"parse")},qRt={version:"11.15.0"},YRt=E(()=>qRt.version,"getVersion"),HRt={getVersion:YRt},VRt=E((t,e,r)=>{oe.debug(`rendering info diagram +`+t);const n=wo(e);di(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"),WRt={draw:VRt},KRt={parser:GRt,db:HRt,renderer:WRt};const XRt=Object.freeze(Object.defineProperty({__proto__:null,diagram:KRt},Symbol.toStringTag,{value:"Module"}));var jRt=ln.pie,MW={sections:new Map,showData:!1},Xw=MW.sections,PW=MW.showData,QRt=structuredClone(jRt),ZRt=E(()=>structuredClone(QRt),"getConfig"),JRt=E(()=>{Xw=new Map,PW=MW.showData,oa()},"clear"),eNt=E(({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.`);Xw.has(t)||(Xw.set(t,e),oe.debug(`added new section: ${t}, with value: ${e}`))},"addSection"),tNt=E(()=>Xw,"getSections"),rNt=E(t=>{PW=t},"setShowData"),nNt=E(()=>PW,"getShowData"),V7e={getConfig:ZRt,clear:JRt,setDiagramTitle:pa,getDiagramTitle:la,setAccTitle:sa,getAccTitle:va,setAccDescription:ya,getAccDescription:_a,addSection:eNt,getSections:tNt,setShowData:rNt,getShowData:nNt},aNt=E((t,e)=>{Nu(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),iNt={parse:E(async t=>{const e=await Sc("pie",t);oe.debug(e),aNt(e,V7e)},"parse")},sNt=E(t=>` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -5813,25 +5818,25 @@ Expecting `+ut.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":Ae="Parse erro font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`,"getStyles"),sNt=iNt,oNt=E(t=>{const e=[...t.values()].reduce((a,i)=>a+i,0),r=[...t.entries()].map(([a,i])=>({label:a,value:i})).filter(a=>a.value/e*100>=1);return dVe().value(a=>a.value).sort(null)(r)},"createPieArcs"),lNt=E((t,e,r,n)=>{oe.debug(`rendering pie chart -`+t);const a=n.db,i=Ye(),s=$a(a.getConfig(),i.pie),o=40,l=18,u=4,d=450,h=d,f=wo(e),p=f.append("g");p.attr("transform","translate("+h/2+","+d/2+")");const{themeVariables:g}=i;let[m]=X0(g.pieOuterStrokeWidth);m??=2;const v=s.textPosition,y=Math.min(h,d)/2-o,b=cb().innerRadius(0).outerRadius(y),_=cb().innerRadius(y*v).outerRadius(y*v);p.append("circle").attr("cx",0).attr("cy",0).attr("r",y+m/2).attr("class","pieOuterCircle");const S=a.getSections(),x=oNt(S),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;S.forEach(B=>{T+=B});const w=x.filter(B=>(B.data.value/T*100).toFixed(0)!=="0"),R=Ep(C).domain([...S.keys()]);p.selectAll("mySlices").data(w).enter().append("path").attr("d",b).attr("fill",B=>R(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(a.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),M=[...S.entries()].map(([B,U])=>({label:B,value:U})),$=p.selectAll(".legend").data(M).enter().append("g").attr("class","legend").attr("transform",(B,U)=>{const G=l+u,K=G*M.length/2,Y=12*l,ee=U*G-K;return"translate("+Y+","+ee+")"});$.append("rect").attr("width",l).attr("height",l).style("fill",B=>R(B.label)).style("stroke",B=>R(B.label)),$.append("text").attr("x",l+u).attr("y",l-u).text(B=>a.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,N=Math.min(0,D),z=Math.max(A,L)-N;f.attr("viewBox",`${N} 0 ${z} ${d}`),di(f,d,z,s.useMaxWidth)},"draw"),cNt={draw:lNt},uNt={parser:aNt,db:V7e,renderer:cNt,styles:sNt};const dNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:uNt},Symbol.toStringTag,{value:"Module"}));var fz=(function(){var t=E(function(q,fe,j,we){for(j=j||{},we=q.length;we--;j[q[we]]=fe);return j},"o"),e=[1,3],r=[1,4],n=[1,5],a=[1,6],i=[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],v=[1,45],y=[1,14],b=[1,23],_=[1,18],S=[1,19],x=[1,20],C=[1,21],T=[1,22],w=[1,24],R=[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],N=[1,40],P=[1,42],z=[1,44],B=[1,63],U=[1,62],G=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],K=[1,66],Y=[1,67],ee=[1,68],X=[1,69],le=[1,70],te=[1,71],ne=[1,72],ae=[1,73],re=[1,74],ge=[1,75],pe=[1,76],Be=[1,77],Le=[4,5,6,7,8,9,10,11,12,13,14,15,18],He=[1,91],Re=[1,92],xe=[1,93],$e=[1,100],Ce=[1,94],ut=[1,97],Ae=[1,95],je=[1,96],ot=[1,98],lt=[1,99],ct=[1,103],it=[10,55,56,57],ke=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Qe={trace:E(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:E(function(fe,j,we,Te,rt,Oe,Pe){var Ie=Oe.length-1;switch(rt){case 23:this.$=Oe[Ie];break;case 24:this.$=Oe[Ie-1]+""+Oe[Ie];break;case 26:this.$=Oe[Ie-1]+Oe[Ie];break;case 27:this.$=[Oe[Ie].trim()];break;case 28:Oe[Ie-2].push(Oe[Ie].trim()),this.$=Oe[Ie-2];break;case 29:this.$=Oe[Ie-4],Te.addClass(Oe[Ie-2],Oe[Ie]);break;case 37:this.$=[];break;case 42:this.$=Oe[Ie].trim(),Te.setDiagramTitle(this.$);break;case 43:this.$=Oe[Ie].trim(),Te.setAccTitle(this.$);break;case 44:case 45:this.$=Oe[Ie].trim(),Te.setAccDescription(this.$);break;case 46:Te.addSection(Oe[Ie].substr(8)),this.$=Oe[Ie].substr(8);break;case 47:Te.addPoint(Oe[Ie-3],"",Oe[Ie-1],Oe[Ie],[]);break;case 48:Te.addPoint(Oe[Ie-4],Oe[Ie-3],Oe[Ie-1],Oe[Ie],[]);break;case 49:Te.addPoint(Oe[Ie-4],"",Oe[Ie-2],Oe[Ie-1],Oe[Ie]);break;case 50:Te.addPoint(Oe[Ie-5],Oe[Ie-4],Oe[Ie-2],Oe[Ie-1],Oe[Ie]);break;case 51:Te.setXAxisLeftText(Oe[Ie-2]),Te.setXAxisRightText(Oe[Ie]);break;case 52:Oe[Ie-1].text+=" ⟶ ",Te.setXAxisLeftText(Oe[Ie-1]);break;case 53:Te.setXAxisLeftText(Oe[Ie]);break;case 54:Te.setYAxisBottomText(Oe[Ie-2]),Te.setYAxisTopText(Oe[Ie]);break;case 55:Oe[Ie-1].text+=" ⟶ ",Te.setYAxisBottomText(Oe[Ie-1]);break;case 56:Te.setYAxisBottomText(Oe[Ie]);break;case 57:Te.setQuadrant1Text(Oe[Ie]);break;case 58:Te.setQuadrant2Text(Oe[Ie]);break;case 59:Te.setQuadrant3Text(Oe[Ie]);break;case 60:Te.setQuadrant4Text(Oe[Ie]);break;case 64:this.$={text:Oe[Ie],type:"text"};break;case 65:this.$={text:Oe[Ie-1].text+""+Oe[Ie],type:Oe[Ie-1].type};break;case 66:this.$={text:Oe[Ie],type:"text"};break;case 67:this.$={text:Oe[Ie],type:"markdown"};break;case 68:this.$=Oe[Ie];break;case 69:this.$=Oe[Ie-1]+""+Oe[Ie];break}},"anonymous"),table:[{18:e,26:1,27:2,28:r,55:n,56:a,57:i},{1:[3]},{18:e,26:8,27:2,28:r,55:n,56:a,57:i},{18:e,26:9,27:2,28:r,55:n,56:a,57:i},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:v,18:y,25:b,35:_,37:S,39:x,41:C,42:T,48:w,50:R,51:O,52:M,53:$,54:F,60:A,61:I,63:D,64:L,65:N,66:P,67:z}),t(s,[2,34]),{27:46,55:n,56:a,57:i},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:v,18:y,25:b,35:_,37:S,39:x,41:C,42:T,48:w,50:R,51:O,52:M,53:$,54:F,60:A,61:I,63:D,64:L,65:N,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:v,43:52,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:53,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:54,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:55,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:56,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:57,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:v,18:U,44:[1,58],47:[1,59],58:61,59:60,63:D,64:L,65:N,66:P,67:z},t(G,[2,64]),t(G,[2,66]),t(G,[2,67]),t(G,[2,70]),t(G,[2,71]),t(G,[2,72]),t(G,[2,73]),t(G,[2,74]),t(G,[2,75]),t(G,[2,76]),t(G,[2,77]),t(G,[2,78]),t(G,[2,79]),t(G,[2,80]),t(G,[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:K,5:Y,6:ee,7:X,8:le,9:te,10:ne,11:ae,12:re,13:ge,14:pe,15:Be,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:v,18:U,49:[1,78],63:D,64:L,65:N,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:v,18:U,49:[1,79],63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,66:P,67:z}),{45:[1,80]},{44:[1,81]},t(G,[2,65]),t(G,[2,82]),t(G,[2,83]),t(G,[2,84]),{3:83,4:K,5:Y,6:ee,7:X,8:le,9:te,10:ne,11:ae,12:re,13:ge,14:pe,15:Be,18:[1,82]},t(Le,[2,23]),t(Le,[2,1]),t(Le,[2,2]),t(Le,[2,3]),t(Le,[2,4]),t(Le,[2,5]),t(Le,[2,6]),t(Le,[2,7]),t(Le,[2,8]),t(Le,[2,9]),t(Le,[2,10]),t(Le,[2,11]),t(Le,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:h,10:f,12:p,13:g,14:m,15:v,60:A,61:I,63:D,64:L,65:N,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:v,60:A,61:I,63:D,64:L,65:N,66:P,67:z}),{46:[1,86]},{45:[1,87]},{4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,16:90,17:Ae,18:je,19:ot,20:lt,22:89,23:88},t(Le,[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:v,18:U,63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,66:P,67:z}),t(l,[2,47],{22:89,16:90,23:101,4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,17:Ae,18:je,19:ot,20:lt}),{46:[1,102]},t(l,[2,29],{10:ct}),t(it,[2,27],{16:104,4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,17:Ae,18:je,19:ot,20:lt}),t(ke,[2,25]),t(ke,[2,13]),t(ke,[2,14]),t(ke,[2,15]),t(ke,[2,16]),t(ke,[2,17]),t(ke,[2,18]),t(ke,[2,19]),t(ke,[2,20]),t(ke,[2,21]),t(ke,[2,22]),t(l,[2,49],{10:ct}),t(l,[2,48],{22:89,16:90,23:105,4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,17:Ae,18:je,19:ot,20:lt}),{4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,16:90,17:Ae,18:je,19:ot,20:lt,22:106},t(ke,[2,26]),t(l,[2,50],{10:ct}),t(it,[2,28],{16:104,4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,17:Ae,18:je,19:ot,20:lt})],defaultActions:{8:[2,30],9:[2,31]},parseError:E(function(fe,j){if(j.recoverable)this.trace(fe);else{var we=new Error(fe);throw we.hash=j,we}},"parseError"),parse:E(function(fe){var j=this,we=[0],Te=[],rt=[null],Oe=[],Pe=this.table,Ie="",Ze=0,ze=0,me=2,ie=1,Ve=Oe.slice.call(arguments,1),ve=Object.create(this.lexer),Tt={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(Tt.yy[St]=this.yy[St]);ve.setInput(fe,Tt.yy),Tt.yy.lexer=ve,Tt.yy.parser=this,typeof ve.yylloc>"u"&&(ve.yylloc={});var nt=ve.yylloc;Oe.push(nt);var dt=ve.options&&ve.options.ranges;typeof Tt.yy.parseError=="function"?this.parseError=Tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Qt){we.length=we.length-2*Qt,rt.length=rt.length-Qt,Oe.length=Oe.length-Qt}E(ft,"popStack");function gt(){var Qt;return Qt=Te.pop()||ve.lex()||ie,typeof Qt!="number"&&(Qt instanceof Array&&(Te=Qt,Qt=Te.pop()),Qt=j.symbols_[Qt]||Qt),Qt}E(gt,"lex");for(var se,It,bt,Et,Nt={},Vr,Ne,mt,_t;;){if(It=we[we.length-1],this.defaultActions[It]?bt=this.defaultActions[It]:((se===null||typeof se>"u")&&(se=gt()),bt=Pe[It]&&Pe[It][se]),typeof bt>"u"||!bt.length||!bt[0]){var Ot="";_t=[];for(Vr in Pe[It])this.terminals_[Vr]&&Vr>me&&_t.push("'"+this.terminals_[Vr]+"'");ve.showPosition?Ot="Parse error on line "+(Ze+1)+`: +`,"getStyles"),oNt=sNt,lNt=E(t=>{const e=[...t.values()].reduce((a,i)=>a+i,0),r=[...t.entries()].map(([a,i])=>({label:a,value:i})).filter(a=>a.value/e*100>=1);return hVe().value(a=>a.value).sort(null)(r)},"createPieArcs"),cNt=E((t,e,r,n)=>{oe.debug(`rendering pie chart +`+t);const a=n.db,i=Ye(),s=$a(a.getConfig(),i.pie),o=40,l=18,u=4,d=450,h=d,f=wo(e),p=f.append("g");p.attr("transform","translate("+h/2+","+d/2+")");const{themeVariables:g}=i;let[m]=X0(g.pieOuterStrokeWidth);m??=2;const v=s.textPosition,y=Math.min(h,d)/2-o,b=cb().innerRadius(0).outerRadius(y),_=cb().innerRadius(y*v).outerRadius(y*v);p.append("circle").attr("cx",0).attr("cy",0).attr("r",y+m/2).attr("class","pieOuterCircle");const S=a.getSections(),x=lNt(S),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;S.forEach(B=>{T+=B});const w=x.filter(B=>(B.data.value/T*100).toFixed(0)!=="0"),R=Ep(C).domain([...S.keys()]);p.selectAll("mySlices").data(w).enter().append("path").attr("d",b).attr("fill",B=>R(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(a.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),M=[...S.entries()].map(([B,U])=>({label:B,value:U})),$=p.selectAll(".legend").data(M).enter().append("g").attr("class","legend").attr("transform",(B,U)=>{const G=l+u,K=G*M.length/2,Y=12*l,ee=U*G-K;return"translate("+Y+","+ee+")"});$.append("rect").attr("width",l).attr("height",l).style("fill",B=>R(B.label)).style("stroke",B=>R(B.label)),$.append("text").attr("x",l+u).attr("y",l-u).text(B=>a.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,N=Math.min(0,D),z=Math.max(A,L)-N;f.attr("viewBox",`${N} 0 ${z} ${d}`),di(f,d,z,s.useMaxWidth)},"draw"),uNt={draw:cNt},dNt={parser:iNt,db:V7e,renderer:uNt,styles:oNt};const hNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:dNt},Symbol.toStringTag,{value:"Module"}));var fz=(function(){var t=E(function(q,fe,j,we){for(j=j||{},we=q.length;we--;j[q[we]]=fe);return j},"o"),e=[1,3],r=[1,4],n=[1,5],a=[1,6],i=[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],v=[1,45],y=[1,14],b=[1,23],_=[1,18],S=[1,19],x=[1,20],C=[1,21],T=[1,22],w=[1,24],R=[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],N=[1,40],P=[1,42],z=[1,44],B=[1,63],U=[1,62],G=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],K=[1,66],Y=[1,67],ee=[1,68],X=[1,69],le=[1,70],te=[1,71],ne=[1,72],ae=[1,73],re=[1,74],ge=[1,75],pe=[1,76],Be=[1,77],Le=[4,5,6,7,8,9,10,11,12,13,14,15,18],He=[1,91],Re=[1,92],xe=[1,93],$e=[1,100],Ce=[1,94],ut=[1,97],Ae=[1,95],je=[1,96],ot=[1,98],lt=[1,99],ct=[1,103],it=[10,55,56,57],ke=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Qe={trace:E(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:E(function(fe,j,we,Te,rt,Oe,Pe){var Ie=Oe.length-1;switch(rt){case 23:this.$=Oe[Ie];break;case 24:this.$=Oe[Ie-1]+""+Oe[Ie];break;case 26:this.$=Oe[Ie-1]+Oe[Ie];break;case 27:this.$=[Oe[Ie].trim()];break;case 28:Oe[Ie-2].push(Oe[Ie].trim()),this.$=Oe[Ie-2];break;case 29:this.$=Oe[Ie-4],Te.addClass(Oe[Ie-2],Oe[Ie]);break;case 37:this.$=[];break;case 42:this.$=Oe[Ie].trim(),Te.setDiagramTitle(this.$);break;case 43:this.$=Oe[Ie].trim(),Te.setAccTitle(this.$);break;case 44:case 45:this.$=Oe[Ie].trim(),Te.setAccDescription(this.$);break;case 46:Te.addSection(Oe[Ie].substr(8)),this.$=Oe[Ie].substr(8);break;case 47:Te.addPoint(Oe[Ie-3],"",Oe[Ie-1],Oe[Ie],[]);break;case 48:Te.addPoint(Oe[Ie-4],Oe[Ie-3],Oe[Ie-1],Oe[Ie],[]);break;case 49:Te.addPoint(Oe[Ie-4],"",Oe[Ie-2],Oe[Ie-1],Oe[Ie]);break;case 50:Te.addPoint(Oe[Ie-5],Oe[Ie-4],Oe[Ie-2],Oe[Ie-1],Oe[Ie]);break;case 51:Te.setXAxisLeftText(Oe[Ie-2]),Te.setXAxisRightText(Oe[Ie]);break;case 52:Oe[Ie-1].text+=" ⟶ ",Te.setXAxisLeftText(Oe[Ie-1]);break;case 53:Te.setXAxisLeftText(Oe[Ie]);break;case 54:Te.setYAxisBottomText(Oe[Ie-2]),Te.setYAxisTopText(Oe[Ie]);break;case 55:Oe[Ie-1].text+=" ⟶ ",Te.setYAxisBottomText(Oe[Ie-1]);break;case 56:Te.setYAxisBottomText(Oe[Ie]);break;case 57:Te.setQuadrant1Text(Oe[Ie]);break;case 58:Te.setQuadrant2Text(Oe[Ie]);break;case 59:Te.setQuadrant3Text(Oe[Ie]);break;case 60:Te.setQuadrant4Text(Oe[Ie]);break;case 64:this.$={text:Oe[Ie],type:"text"};break;case 65:this.$={text:Oe[Ie-1].text+""+Oe[Ie],type:Oe[Ie-1].type};break;case 66:this.$={text:Oe[Ie],type:"text"};break;case 67:this.$={text:Oe[Ie],type:"markdown"};break;case 68:this.$=Oe[Ie];break;case 69:this.$=Oe[Ie-1]+""+Oe[Ie];break}},"anonymous"),table:[{18:e,26:1,27:2,28:r,55:n,56:a,57:i},{1:[3]},{18:e,26:8,27:2,28:r,55:n,56:a,57:i},{18:e,26:9,27:2,28:r,55:n,56:a,57:i},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:v,18:y,25:b,35:_,37:S,39:x,41:C,42:T,48:w,50:R,51:O,52:M,53:$,54:F,60:A,61:I,63:D,64:L,65:N,66:P,67:z}),t(s,[2,34]),{27:46,55:n,56:a,57:i},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:v,18:y,25:b,35:_,37:S,39:x,41:C,42:T,48:w,50:R,51:O,52:M,53:$,54:F,60:A,61:I,63:D,64:L,65:N,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:v,43:52,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:53,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:54,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:55,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:56,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,10:f,12:p,13:g,14:m,15:v,43:57,58:31,60:A,61:I,63:D,64:L,65:N,66:P,67:z},{4:d,5:h,8:B,10:f,12:p,13:g,14:m,15:v,18:U,44:[1,58],47:[1,59],58:61,59:60,63:D,64:L,65:N,66:P,67:z},t(G,[2,64]),t(G,[2,66]),t(G,[2,67]),t(G,[2,70]),t(G,[2,71]),t(G,[2,72]),t(G,[2,73]),t(G,[2,74]),t(G,[2,75]),t(G,[2,76]),t(G,[2,77]),t(G,[2,78]),t(G,[2,79]),t(G,[2,80]),t(G,[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:K,5:Y,6:ee,7:X,8:le,9:te,10:ne,11:ae,12:re,13:ge,14:pe,15:Be,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:v,18:U,49:[1,78],63:D,64:L,65:N,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:v,18:U,49:[1,79],63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,66:P,67:z}),{45:[1,80]},{44:[1,81]},t(G,[2,65]),t(G,[2,82]),t(G,[2,83]),t(G,[2,84]),{3:83,4:K,5:Y,6:ee,7:X,8:le,9:te,10:ne,11:ae,12:re,13:ge,14:pe,15:Be,18:[1,82]},t(Le,[2,23]),t(Le,[2,1]),t(Le,[2,2]),t(Le,[2,3]),t(Le,[2,4]),t(Le,[2,5]),t(Le,[2,6]),t(Le,[2,7]),t(Le,[2,8]),t(Le,[2,9]),t(Le,[2,10]),t(Le,[2,11]),t(Le,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:h,10:f,12:p,13:g,14:m,15:v,60:A,61:I,63:D,64:L,65:N,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:v,60:A,61:I,63:D,64:L,65:N,66:P,67:z}),{46:[1,86]},{45:[1,87]},{4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,16:90,17:Ae,18:je,19:ot,20:lt,22:89,23:88},t(Le,[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:v,18:U,63:D,64:L,65:N,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:v,18:U,63:D,64:L,65:N,66:P,67:z}),t(l,[2,47],{22:89,16:90,23:101,4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,17:Ae,18:je,19:ot,20:lt}),{46:[1,102]},t(l,[2,29],{10:ct}),t(it,[2,27],{16:104,4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,17:Ae,18:je,19:ot,20:lt}),t(ke,[2,25]),t(ke,[2,13]),t(ke,[2,14]),t(ke,[2,15]),t(ke,[2,16]),t(ke,[2,17]),t(ke,[2,18]),t(ke,[2,19]),t(ke,[2,20]),t(ke,[2,21]),t(ke,[2,22]),t(l,[2,49],{10:ct}),t(l,[2,48],{22:89,16:90,23:105,4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,17:Ae,18:je,19:ot,20:lt}),{4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,16:90,17:Ae,18:je,19:ot,20:lt,22:106},t(ke,[2,26]),t(l,[2,50],{10:ct}),t(it,[2,28],{16:104,4:He,5:Re,6:xe,8:$e,11:Ce,13:ut,17:Ae,18:je,19:ot,20:lt})],defaultActions:{8:[2,30],9:[2,31]},parseError:E(function(fe,j){if(j.recoverable)this.trace(fe);else{var we=new Error(fe);throw we.hash=j,we}},"parseError"),parse:E(function(fe){var j=this,we=[0],Te=[],rt=[null],Oe=[],Pe=this.table,Ie="",Ze=0,ze=0,me=2,ie=1,Ve=Oe.slice.call(arguments,1),ve=Object.create(this.lexer),Tt={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(Tt.yy[St]=this.yy[St]);ve.setInput(fe,Tt.yy),Tt.yy.lexer=ve,Tt.yy.parser=this,typeof ve.yylloc>"u"&&(ve.yylloc={});var nt=ve.yylloc;Oe.push(nt);var dt=ve.options&&ve.options.ranges;typeof Tt.yy.parseError=="function"?this.parseError=Tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Qt){we.length=we.length-2*Qt,rt.length=rt.length-Qt,Oe.length=Oe.length-Qt}E(ft,"popStack");function gt(){var Qt;return Qt=Te.pop()||ve.lex()||ie,typeof Qt!="number"&&(Qt instanceof Array&&(Te=Qt,Qt=Te.pop()),Qt=j.symbols_[Qt]||Qt),Qt}E(gt,"lex");for(var se,It,bt,Et,Nt={},Vr,Ne,mt,_t;;){if(It=we[we.length-1],this.defaultActions[It]?bt=this.defaultActions[It]:((se===null||typeof se>"u")&&(se=gt()),bt=Pe[It]&&Pe[It][se]),typeof bt>"u"||!bt.length||!bt[0]){var Ot="";_t=[];for(Vr in Pe[It])this.terminals_[Vr]&&Vr>me&&_t.push("'"+this.terminals_[Vr]+"'");ve.showPosition?Ot="Parse error on line "+(Ze+1)+`: `+ve.showPosition()+` Expecting `+_t.join(", ")+", got '"+(this.terminals_[se]||se)+"'":Ot="Parse error on line "+(Ze+1)+": Unexpected "+(se==ie?"end of input":"'"+(this.terminals_[se]||se)+"'"),this.parseError(Ot,{text:ve.match,token:this.terminals_[se]||se,line:ve.yylineno,loc:nt,expected:_t})}if(bt[0]instanceof Array&&bt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+It+", token: "+se);switch(bt[0]){case 1:we.push(se),rt.push(ve.yytext),Oe.push(ve.yylloc),we.push(bt[1]),se=null,ze=ve.yyleng,Ie=ve.yytext,Ze=ve.yylineno,nt=ve.yylloc;break;case 2:if(Ne=this.productions_[bt[1]][1],Nt.$=rt[rt.length-Ne],Nt._$={first_line:Oe[Oe.length-(Ne||1)].first_line,last_line:Oe[Oe.length-1].last_line,first_column:Oe[Oe.length-(Ne||1)].first_column,last_column:Oe[Oe.length-1].last_column},dt&&(Nt._$.range=[Oe[Oe.length-(Ne||1)].range[0],Oe[Oe.length-1].range[1]]),Et=this.performAction.apply(Nt,[Ie,ze,Ze,Tt.yy,bt[1],rt,Oe].concat(Ve)),typeof Et<"u")return Et;Ne&&(we=we.slice(0,-1*Ne*2),rt=rt.slice(0,-1*Ne),Oe=Oe.slice(0,-1*Ne)),we.push(this.productions_[bt[1]][0]),rt.push(Nt.$),Oe.push(Nt._$),mt=Pe[we[we.length-2]][we[we.length-1]],we.push(mt);break;case 3:return!0}}return!0},"parse")},_e=(function(){var q={EOF:1,parseError:E(function(j,we){if(this.yy.parser)this.yy.parser.parseError(j,we);else throw new Error(j)},"parseError"),setInput:E(function(fe,j){return this.yy=j||this.yy||{},this._input=fe,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:E(function(){var fe=this._input[0];this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe;var j=fe.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),fe},"input"),unput:E(function(fe){var j=fe.length,we=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-j),this.offset-=j;var Te=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),we.length-1&&(this.yylineno-=we.length-1);var rt=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:we?(we.length===Te.length?this.yylloc.first_column:0)+Te[Te.length-we.length].length-we[0].length:this.yylloc.first_column-j},this.options.ranges&&(this.yylloc.range=[rt[0],rt[0]+this.yyleng-j]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(fe){this.unput(this.match.slice(fe))},"less"),pastInput:E(function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:E(function(){var fe=this.match;return fe.length<20&&(fe+=this._input.substr(0,20-fe.length)),(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:E(function(){var fe=this.pastInput(),j=new Array(fe.length+1).join("-");return fe+this.upcomingInput()+` `+j+"^"},"showPosition"),test_match:E(function(fe,j){var we,Te,rt;if(this.options.backtrack_lexer&&(rt={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&&(rt.yylloc.range=this.yylloc.range.slice(0))),Te=fe[0].match(/(?:\r\n?|\n).*/g),Te&&(this.yylineno+=Te.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Te?Te[Te.length-1].length-Te[Te.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,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(fe[0].length),this.matched+=fe[0],we=this.performAction.call(this,this.yy,this,j,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),we)return we;if(this._backtrack){for(var Oe in rt)this[Oe]=rt[Oe];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var fe,j,we,Te;this._more||(this.yytext="",this.match="");for(var rt=this._currentRules(),Oe=0;Oej[0].length)){if(j=we,Te=Oe,this.options.backtrack_lexer){if(fe=this.test_match(we,rt[Oe]),fe!==!1)return fe;if(this._backtrack){j=!1;continue}else return!1}else if(!this.options.flex)break}return j?(fe=this.test_match(j,rt[Te]),fe!==!1?fe:!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:E(function(){var j=this.next();return j||this.lex()},"lex"),begin:E(function(j){this.conditionStack.push(j)},"begin"),popState:E(function(){var j=this.conditionStack.length-1;return j>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(j){return j=this.conditionStack.length-1-Math.abs(j||0),j>=0?this.conditionStack[j]:"INITIAL"},"topState"),pushState:E(function(j){this.begin(j)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(j,we,Te,rt){switch(Te){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 q})();Qe.lexer=_e;function ye(){this.yy={}}return E(ye,"Parser"),ye.prototype=Qe,Qe.Parser=ye,new ye})();fz.parser=fz;var hNt=fz,ws=Qb(),x_,fNt=(x_=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:ln.quadrantChart?.chartWidth||500,chartWidth:ln.quadrantChart?.chartHeight||500,titlePadding:ln.quadrantChart?.titlePadding||10,titleFontSize:ln.quadrantChart?.titleFontSize||20,quadrantPadding:ln.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:ln.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:ln.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:ln.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:ln.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:ln.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:ln.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:ln.quadrantChart?.pointTextPadding||5,pointLabelFontSize:ln.quadrantChart?.pointLabelFontSize||12,pointRadius:ln.quadrantChart?.pointRadius||5,xAxisPosition:ln.quadrantChart?.xAxisPosition||"top",yAxisPosition:ln.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:ln.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:ln.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:ws.quadrant1Fill,quadrant2Fill:ws.quadrant2Fill,quadrant3Fill:ws.quadrant3Fill,quadrant4Fill:ws.quadrant4Fill,quadrant1TextFill:ws.quadrant1TextFill,quadrant2TextFill:ws.quadrant2TextFill,quadrant3TextFill:ws.quadrant3TextFill,quadrant4TextFill:ws.quadrant4TextFill,quadrantPointFill:ws.quadrantPointFill,quadrantPointTextFill:ws.quadrantPointTextFill,quadrantXAxisTextFill:ws.quadrantXAxisTextFill,quadrantYAxisTextFill:ws.quadrantYAxisTextFill,quadrantTitleFill:ws.quadrantTitleFill,quadrantInternalBorderStrokeFill:ws.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:ws.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,oe.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){oe.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){oe.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,n,a){const i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,s={top:e==="top"&&r?i:0,bottom:e==="bottom"&&r?i: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:a?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,v=g/2;return{xAxisSpace:s,yAxisSpace:l,titleSpace:d,quadrantSpace:{quadrantLeft:h,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:m,quadrantHeight:g,quadrantHalfHeight:v}}}getAxisLabels(e,r,n,a){const{quadrantSpace:i,titleSpace:s}=a,{quadrantHalfHeight:o,quadrantHeight:l,quadrantLeft:u,quadrantHalfWidth:d,quadrantTop:h,quadrantWidth:f}=i,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:a,quadrantHalfWidth:i,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:a+i,y:s,width:i,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:a,y:s,width:i,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:a,y:s+n,width:i,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:a+i,y:s+n,width:i,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:a,quadrantTop:i,quadrantWidth:s}=r,o=sb().domain([0,1]).range([a,s+a]),l=sb().domain([0,1]).range([n+i,i]);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:a,quadrantHeight:i,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+i-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:l+i,x2:s+u+r,y2:l+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:l+r,x2:s,y2:l+i-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+o,y1:l+r,x2:s+o,y2:l+i-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:l+a,x2:s+u-r,y2:l+a}]}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,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,i=this.calculateSpace(a,e,r,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(a,e,r,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},E(x_,"QuadrantBuilder"),x_),C_,G3=(C_=class extends Error{constructor(e,r,n){super(`value for ${e} ${r} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}},E(C_,"InvalidStyleError"),C_);function pz(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}E(pz,"validateHexCode");function W7e(t){return!/^\d+$/.test(t)}E(W7e,"validateNumber");function K7e(t){return!/^\d+px$/.test(t)}E(K7e,"validateSizeInPixels");var pNt=Ye();function Bu(t){return dn(t.trim(),pNt)}E(Bu,"textSanitizer");var ji=new fNt;function X7e(t){ji.setData({quadrant1Text:Bu(t.text)})}E(X7e,"setQuadrant1Text");function j7e(t){ji.setData({quadrant2Text:Bu(t.text)})}E(j7e,"setQuadrant2Text");function Q7e(t){ji.setData({quadrant3Text:Bu(t.text)})}E(Q7e,"setQuadrant3Text");function Z7e(t){ji.setData({quadrant4Text:Bu(t.text)})}E(Z7e,"setQuadrant4Text");function J7e(t){ji.setData({xAxisLeftText:Bu(t.text)})}E(J7e,"setXAxisLeftText");function eAe(t){ji.setData({xAxisRightText:Bu(t.text)})}E(eAe,"setXAxisRightText");function tAe(t){ji.setData({yAxisTopText:Bu(t.text)})}E(tAe,"setYAxisTopText");function rAe(t){ji.setData({yAxisBottomText:Bu(t.text)})}E(rAe,"setYAxisBottomText");function _8(t){const e={};for(const r of t){const[n,a]=r.trim().split(/\s*:\s*/);if(n==="radius"){if(W7e(a))throw new G3(n,a,"number");e.radius=parseInt(a)}else if(n==="color"){if(pz(a))throw new G3(n,a,"hex code");e.color=a}else if(n==="stroke-color"){if(pz(a))throw new G3(n,a,"hex code");e.strokeColor=a}else if(n==="stroke-width"){if(K7e(a))throw new G3(n,a,"number of pixels (eg. 10px)");e.strokeWidth=a}else throw new Error(`style named ${n} is not supported.`)}return e}E(_8,"parseStyles");function nAe(t,e,r,n,a){const i=_8(a);ji.addPoints([{x:r,y:n,text:Bu(t.text),className:e,...i}])}E(nAe,"addPoint");function aAe(t,e){ji.addClass(t,_8(e))}E(aAe,"addClass");function iAe(t){ji.setConfig({chartWidth:t})}E(iAe,"setWidth");function sAe(t){ji.setConfig({chartHeight:t})}E(sAe,"setHeight");function oAe(){const t=Ye(),{themeVariables:e,quadrantChart:r}=t;return r&&ji.setConfig(r),ji.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}),ji.setData({titleText:la()}),ji.build()}E(oAe,"getQuadrantData");var gNt=E(function(){ji.clear(),oa()},"clear"),mNt={setWidth:iAe,setHeight:sAe,setQuadrant1Text:X7e,setQuadrant2Text:j7e,setQuadrant3Text:Q7e,setQuadrant4Text:Z7e,setXAxisLeftText:J7e,setXAxisRightText:eAe,setYAxisTopText:tAe,setYAxisBottomText:rAe,parseStyles:_8,addPoint:nAe,addClass:aAe,getQuadrantData:oAe,clear:gNt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya},vNt=E((t,e,r,n)=>{function a(w){return w==="top"?"hanging":"middle"}E(a,"getDominantBaseLine");function i(w){return w==="left"?"start":"middle"}E(i,"getTextAnchor");function s(w){return`translate(${w.x}, ${w.y}) rotate(${w.rotation||0})`}E(s,"getTransformation");const o=Ye();oe.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;di(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(),v=f.append("g").attr("class","quadrants"),y=f.append("g").attr("class","border"),b=f.append("g").attr("class","data-points"),_=f.append("g").attr("class","labels"),S=f.append("g").attr("class","title");m.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",m.title.fill).attr("font-size",m.title.fontSize).attr("dominant-baseline",a(m.title.horizontalPos)).attr("text-anchor",i(m.title.verticalPos)).attr("transform",s(m.title)).text(m.title.text),m.borderLines&&y.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=v.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=>a(w.text.horizontalPos)).attr("text-anchor",w=>i(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=>a(w.horizontalPos)).attr("text-anchor",w=>i(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=>a(w.text.horizontalPos)).attr("text-anchor",w=>i(w.text.verticalPos)).attr("transform",w=>s(w.text))},"draw"),yNt={draw:vNt},_Nt={parser:hNt,db:mNt,renderer:yNt,styles:E(()=>"","styles")};const bNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:_Nt},Symbol.toStringTag,{value:"Module"}));var gz=(function(){var t=E(function(I,D,L,N){for(L=L||{},N=I.length;N--;L[I[N]]=D);return L},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],a=[1,5],i=[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],v=[1,34],y=[1,35],b=[1,36],_=[1,37],S=[1,43],x=[1,42],C=[1,47],T=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],R=[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:E(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:E(function(D,L,N,P,z,B,U){var G=B.length-1;switch(z){case 5:P.setOrientation(B[G]);break;case 9:P.setDiagramTitle(B[G].text.trim());break;case 12:P.setLineData({text:"",type:"text"},B[G]);break;case 13:P.setLineData(B[G-1],B[G]);break;case 14:P.setBarData({text:"",type:"text"},B[G]);break;case 15:P.setBarData(B[G-1],B[G]);break;case 16:this.$=B[G].trim(),P.setAccTitle(this.$);break;case 17:case 18:this.$=B[G].trim(),P.setAccDescription(this.$);break;case 19:this.$=B[G-1];break;case 20:this.$=[Number(B[G-2]),...B[G]];break;case 21:this.$=[Number(B[G])];break;case 22:P.setXAxisTitle(B[G]);break;case 23:P.setXAxisTitle(B[G-1]);break;case 24:P.setXAxisTitle({type:"text",text:""});break;case 25:P.setXAxisBand(B[G]);break;case 26:P.setXAxisRangeData(Number(B[G-2]),Number(B[G]));break;case 27:this.$=B[G-1];break;case 28:this.$=[B[G-2],...B[G]];break;case 29:this.$=[B[G]];break;case 30:P.setYAxisTitle(B[G]);break;case 31:P.setYAxisTitle(B[G-1]);break;case 32:P.setYAxisTitle({type:"text",text:""});break;case 33:P.setYAxisRangeData(Number(B[G-2]),Number(B[G]));break;case 37:this.$={text:B[G],type:"text"};break;case 38:this.$={text:B[G],type:"text"};break;case 39:this.$={text:B[G],type:"markdown"};break;case 40:this.$=B[G];break;case 41:this.$=B[G-1]+""+B[G];break}},"anonymous"),table:[t(e,r,{3:1,4:2,7:4,5:n,34:a,35:i,36:s}),{1:[3]},t(e,r,{4:2,7:4,3:8,5:n,34:a,35:i,36:s}),t(e,r,{4:2,7:4,6:9,3:10,5:n,8:[1,11],34:a,35:i,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:a,35:i,36:s}),{1:[2,3]},t(o,[2,5]),t(e,[2,7],{4:22,34:a,35:i,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:v,48:y,49:b,50:_},{11:39,13:38,24:S,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:v,48:y,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:v,48:y,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:v,48:y,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:v,48:y,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(R,[2,37],{40:55,41:d,42:h,43:f,44:p,45:g,46:m,47:v,48:y,49:b,50:_}),t(R,[2,38]),t(R,[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:S,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:v,48:y,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:v,48:y,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:E(function(D,L){if(L.recoverable)this.trace(D);else{var N=new Error(D);throw N.hash=L,N}},"parseError"),parse:E(function(D){var L=this,N=[0],P=[],z=[null],B=[],U=this.table,G="",K=0,Y=0,ee=2,X=1,le=B.slice.call(arguments,1),te=Object.create(this.lexer),ne={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(ne.yy[ae]=this.yy[ae]);te.setInput(D,ne.yy),ne.yy.lexer=te,ne.yy.parser=this,typeof te.yylloc>"u"&&(te.yylloc={});var re=te.yylloc;B.push(re);var ge=te.options&&te.options.ranges;typeof ne.yy.parseError=="function"?this.parseError=ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(lt){N.length=N.length-2*lt,z.length=z.length-lt,B.length=B.length-lt}E(pe,"popStack");function Be(){var lt;return lt=P.pop()||te.lex()||X,typeof lt!="number"&&(lt instanceof Array&&(P=lt,lt=P.pop()),lt=L.symbols_[lt]||lt),lt}E(Be,"lex");for(var Le,He,Re,xe,$e={},Ce,ut,Ae,je;;){if(He=N[N.length-1],this.defaultActions[He]?Re=this.defaultActions[He]:((Le===null||typeof Le>"u")&&(Le=Be()),Re=U[He]&&U[He][Le]),typeof Re>"u"||!Re.length||!Re[0]){var ot="";je=[];for(Ce in U[He])this.terminals_[Ce]&&Ce>ee&&je.push("'"+this.terminals_[Ce]+"'");te.showPosition?ot="Parse error on line "+(K+1)+`: +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var j=this.next();return j||this.lex()},"lex"),begin:E(function(j){this.conditionStack.push(j)},"begin"),popState:E(function(){var j=this.conditionStack.length-1;return j>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(j){return j=this.conditionStack.length-1-Math.abs(j||0),j>=0?this.conditionStack[j]:"INITIAL"},"topState"),pushState:E(function(j){this.begin(j)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(j,we,Te,rt){switch(Te){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 q})();Qe.lexer=_e;function ye(){this.yy={}}return E(ye,"Parser"),ye.prototype=Qe,Qe.Parser=ye,new ye})();fz.parser=fz;var fNt=fz,ws=Qb(),x_,pNt=(x_=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:ln.quadrantChart?.chartWidth||500,chartWidth:ln.quadrantChart?.chartHeight||500,titlePadding:ln.quadrantChart?.titlePadding||10,titleFontSize:ln.quadrantChart?.titleFontSize||20,quadrantPadding:ln.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:ln.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:ln.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:ln.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:ln.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:ln.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:ln.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:ln.quadrantChart?.pointTextPadding||5,pointLabelFontSize:ln.quadrantChart?.pointLabelFontSize||12,pointRadius:ln.quadrantChart?.pointRadius||5,xAxisPosition:ln.quadrantChart?.xAxisPosition||"top",yAxisPosition:ln.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:ln.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:ln.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:ws.quadrant1Fill,quadrant2Fill:ws.quadrant2Fill,quadrant3Fill:ws.quadrant3Fill,quadrant4Fill:ws.quadrant4Fill,quadrant1TextFill:ws.quadrant1TextFill,quadrant2TextFill:ws.quadrant2TextFill,quadrant3TextFill:ws.quadrant3TextFill,quadrant4TextFill:ws.quadrant4TextFill,quadrantPointFill:ws.quadrantPointFill,quadrantPointTextFill:ws.quadrantPointTextFill,quadrantXAxisTextFill:ws.quadrantXAxisTextFill,quadrantYAxisTextFill:ws.quadrantYAxisTextFill,quadrantTitleFill:ws.quadrantTitleFill,quadrantInternalBorderStrokeFill:ws.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:ws.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,oe.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){oe.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){oe.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,n,a){const i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,s={top:e==="top"&&r?i:0,bottom:e==="bottom"&&r?i: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:a?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,v=g/2;return{xAxisSpace:s,yAxisSpace:l,titleSpace:d,quadrantSpace:{quadrantLeft:h,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:m,quadrantHeight:g,quadrantHalfHeight:v}}}getAxisLabels(e,r,n,a){const{quadrantSpace:i,titleSpace:s}=a,{quadrantHalfHeight:o,quadrantHeight:l,quadrantLeft:u,quadrantHalfWidth:d,quadrantTop:h,quadrantWidth:f}=i,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:a,quadrantHalfWidth:i,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:a+i,y:s,width:i,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:a,y:s,width:i,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:a,y:s+n,width:i,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:a+i,y:s+n,width:i,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:a,quadrantTop:i,quadrantWidth:s}=r,o=sb().domain([0,1]).range([a,s+a]),l=sb().domain([0,1]).range([n+i,i]);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:a,quadrantHeight:i,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+i-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:l+i,x2:s+u+r,y2:l+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:l+r,x2:s,y2:l+i-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+o,y1:l+r,x2:s+o,y2:l+i-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:l+a,x2:s+u-r,y2:l+a}]}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,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,i=this.calculateSpace(a,e,r,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(a,e,r,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},E(x_,"QuadrantBuilder"),x_),C_,G3=(C_=class extends Error{constructor(e,r,n){super(`value for ${e} ${r} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}},E(C_,"InvalidStyleError"),C_);function pz(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}E(pz,"validateHexCode");function W7e(t){return!/^\d+$/.test(t)}E(W7e,"validateNumber");function K7e(t){return!/^\d+px$/.test(t)}E(K7e,"validateSizeInPixels");var gNt=Ye();function Bu(t){return dn(t.trim(),gNt)}E(Bu,"textSanitizer");var ji=new pNt;function X7e(t){ji.setData({quadrant1Text:Bu(t.text)})}E(X7e,"setQuadrant1Text");function j7e(t){ji.setData({quadrant2Text:Bu(t.text)})}E(j7e,"setQuadrant2Text");function Q7e(t){ji.setData({quadrant3Text:Bu(t.text)})}E(Q7e,"setQuadrant3Text");function Z7e(t){ji.setData({quadrant4Text:Bu(t.text)})}E(Z7e,"setQuadrant4Text");function J7e(t){ji.setData({xAxisLeftText:Bu(t.text)})}E(J7e,"setXAxisLeftText");function eAe(t){ji.setData({xAxisRightText:Bu(t.text)})}E(eAe,"setXAxisRightText");function tAe(t){ji.setData({yAxisTopText:Bu(t.text)})}E(tAe,"setYAxisTopText");function rAe(t){ji.setData({yAxisBottomText:Bu(t.text)})}E(rAe,"setYAxisBottomText");function _8(t){const e={};for(const r of t){const[n,a]=r.trim().split(/\s*:\s*/);if(n==="radius"){if(W7e(a))throw new G3(n,a,"number");e.radius=parseInt(a)}else if(n==="color"){if(pz(a))throw new G3(n,a,"hex code");e.color=a}else if(n==="stroke-color"){if(pz(a))throw new G3(n,a,"hex code");e.strokeColor=a}else if(n==="stroke-width"){if(K7e(a))throw new G3(n,a,"number of pixels (eg. 10px)");e.strokeWidth=a}else throw new Error(`style named ${n} is not supported.`)}return e}E(_8,"parseStyles");function nAe(t,e,r,n,a){const i=_8(a);ji.addPoints([{x:r,y:n,text:Bu(t.text),className:e,...i}])}E(nAe,"addPoint");function aAe(t,e){ji.addClass(t,_8(e))}E(aAe,"addClass");function iAe(t){ji.setConfig({chartWidth:t})}E(iAe,"setWidth");function sAe(t){ji.setConfig({chartHeight:t})}E(sAe,"setHeight");function oAe(){const t=Ye(),{themeVariables:e,quadrantChart:r}=t;return r&&ji.setConfig(r),ji.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}),ji.setData({titleText:la()}),ji.build()}E(oAe,"getQuadrantData");var mNt=E(function(){ji.clear(),oa()},"clear"),vNt={setWidth:iAe,setHeight:sAe,setQuadrant1Text:X7e,setQuadrant2Text:j7e,setQuadrant3Text:Q7e,setQuadrant4Text:Z7e,setXAxisLeftText:J7e,setXAxisRightText:eAe,setYAxisTopText:tAe,setYAxisBottomText:rAe,parseStyles:_8,addPoint:nAe,addClass:aAe,getQuadrantData:oAe,clear:mNt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya},yNt=E((t,e,r,n)=>{function a(w){return w==="top"?"hanging":"middle"}E(a,"getDominantBaseLine");function i(w){return w==="left"?"start":"middle"}E(i,"getTextAnchor");function s(w){return`translate(${w.x}, ${w.y}) rotate(${w.rotation||0})`}E(s,"getTransformation");const o=Ye();oe.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;di(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(),v=f.append("g").attr("class","quadrants"),y=f.append("g").attr("class","border"),b=f.append("g").attr("class","data-points"),_=f.append("g").attr("class","labels"),S=f.append("g").attr("class","title");m.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",m.title.fill).attr("font-size",m.title.fontSize).attr("dominant-baseline",a(m.title.horizontalPos)).attr("text-anchor",i(m.title.verticalPos)).attr("transform",s(m.title)).text(m.title.text),m.borderLines&&y.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=v.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=>a(w.text.horizontalPos)).attr("text-anchor",w=>i(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=>a(w.horizontalPos)).attr("text-anchor",w=>i(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=>a(w.text.horizontalPos)).attr("text-anchor",w=>i(w.text.verticalPos)).attr("transform",w=>s(w.text))},"draw"),_Nt={draw:yNt},bNt={parser:fNt,db:vNt,renderer:_Nt,styles:E(()=>"","styles")};const ENt=Object.freeze(Object.defineProperty({__proto__:null,diagram:bNt},Symbol.toStringTag,{value:"Module"}));var gz=(function(){var t=E(function(I,D,L,N){for(L=L||{},N=I.length;N--;L[I[N]]=D);return L},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],a=[1,5],i=[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],v=[1,34],y=[1,35],b=[1,36],_=[1,37],S=[1,43],x=[1,42],C=[1,47],T=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],R=[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:E(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:E(function(D,L,N,P,z,B,U){var G=B.length-1;switch(z){case 5:P.setOrientation(B[G]);break;case 9:P.setDiagramTitle(B[G].text.trim());break;case 12:P.setLineData({text:"",type:"text"},B[G]);break;case 13:P.setLineData(B[G-1],B[G]);break;case 14:P.setBarData({text:"",type:"text"},B[G]);break;case 15:P.setBarData(B[G-1],B[G]);break;case 16:this.$=B[G].trim(),P.setAccTitle(this.$);break;case 17:case 18:this.$=B[G].trim(),P.setAccDescription(this.$);break;case 19:this.$=B[G-1];break;case 20:this.$=[Number(B[G-2]),...B[G]];break;case 21:this.$=[Number(B[G])];break;case 22:P.setXAxisTitle(B[G]);break;case 23:P.setXAxisTitle(B[G-1]);break;case 24:P.setXAxisTitle({type:"text",text:""});break;case 25:P.setXAxisBand(B[G]);break;case 26:P.setXAxisRangeData(Number(B[G-2]),Number(B[G]));break;case 27:this.$=B[G-1];break;case 28:this.$=[B[G-2],...B[G]];break;case 29:this.$=[B[G]];break;case 30:P.setYAxisTitle(B[G]);break;case 31:P.setYAxisTitle(B[G-1]);break;case 32:P.setYAxisTitle({type:"text",text:""});break;case 33:P.setYAxisRangeData(Number(B[G-2]),Number(B[G]));break;case 37:this.$={text:B[G],type:"text"};break;case 38:this.$={text:B[G],type:"text"};break;case 39:this.$={text:B[G],type:"markdown"};break;case 40:this.$=B[G];break;case 41:this.$=B[G-1]+""+B[G];break}},"anonymous"),table:[t(e,r,{3:1,4:2,7:4,5:n,34:a,35:i,36:s}),{1:[3]},t(e,r,{4:2,7:4,3:8,5:n,34:a,35:i,36:s}),t(e,r,{4:2,7:4,6:9,3:10,5:n,8:[1,11],34:a,35:i,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:a,35:i,36:s}),{1:[2,3]},t(o,[2,5]),t(e,[2,7],{4:22,34:a,35:i,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:v,48:y,49:b,50:_},{11:39,13:38,24:S,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:v,48:y,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:v,48:y,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:v,48:y,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:v,48:y,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(R,[2,37],{40:55,41:d,42:h,43:f,44:p,45:g,46:m,47:v,48:y,49:b,50:_}),t(R,[2,38]),t(R,[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:S,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:v,48:y,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:v,48:y,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:E(function(D,L){if(L.recoverable)this.trace(D);else{var N=new Error(D);throw N.hash=L,N}},"parseError"),parse:E(function(D){var L=this,N=[0],P=[],z=[null],B=[],U=this.table,G="",K=0,Y=0,ee=2,X=1,le=B.slice.call(arguments,1),te=Object.create(this.lexer),ne={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(ne.yy[ae]=this.yy[ae]);te.setInput(D,ne.yy),ne.yy.lexer=te,ne.yy.parser=this,typeof te.yylloc>"u"&&(te.yylloc={});var re=te.yylloc;B.push(re);var ge=te.options&&te.options.ranges;typeof ne.yy.parseError=="function"?this.parseError=ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(lt){N.length=N.length-2*lt,z.length=z.length-lt,B.length=B.length-lt}E(pe,"popStack");function Be(){var lt;return lt=P.pop()||te.lex()||X,typeof lt!="number"&&(lt instanceof Array&&(P=lt,lt=P.pop()),lt=L.symbols_[lt]||lt),lt}E(Be,"lex");for(var Le,He,Re,xe,$e={},Ce,ut,Ae,je;;){if(He=N[N.length-1],this.defaultActions[He]?Re=this.defaultActions[He]:((Le===null||typeof Le>"u")&&(Le=Be()),Re=U[He]&&U[He][Le]),typeof Re>"u"||!Re.length||!Re[0]){var ot="";je=[];for(Ce in U[He])this.terminals_[Ce]&&Ce>ee&&je.push("'"+this.terminals_[Ce]+"'");te.showPosition?ot="Parse error on line "+(K+1)+`: `+te.showPosition()+` Expecting `+je.join(", ")+", got '"+(this.terminals_[Le]||Le)+"'":ot="Parse error on line "+(K+1)+": Unexpected "+(Le==X?"end of input":"'"+(this.terminals_[Le]||Le)+"'"),this.parseError(ot,{text:te.match,token:this.terminals_[Le]||Le,line:te.yylineno,loc:re,expected:je})}if(Re[0]instanceof Array&&Re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+He+", token: "+Le);switch(Re[0]){case 1:N.push(Le),z.push(te.yytext),B.push(te.yylloc),N.push(Re[1]),Le=null,Y=te.yyleng,G=te.yytext,K=te.yylineno,re=te.yylloc;break;case 2:if(ut=this.productions_[Re[1]][1],$e.$=z[z.length-ut],$e._$={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},ge&&($e._$.range=[B[B.length-(ut||1)].range[0],B[B.length-1].range[1]]),xe=this.performAction.apply($e,[G,Y,K,ne.yy,Re[1],z,B].concat(le)),typeof xe<"u")return xe;ut&&(N=N.slice(0,-1*ut*2),z=z.slice(0,-1*ut),B=B.slice(0,-1*ut)),N.push(this.productions_[Re[1]][0]),z.push($e.$),B.push($e._$),Ae=U[N[N.length-2]][N[N.length-1]],N.push(Ae);break;case 3:return!0}}return!0},"parse")},F=(function(){var I={EOF:1,parseError:E(function(L,N){if(this.yy.parser)this.yy.parser.parseError(L,N);else throw new Error(L)},"parseError"),setInput:E(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:E(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:E(function(D){var L=D.length,N=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),N.length-1&&(this.yylineno-=N.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:N?(N.length===P.length?this.yylloc.first_column:0)+P[P.length-N.length].length-N[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:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(D){this.unput(this.match.slice(D))},"less"),pastInput:E(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:E(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:E(function(){var D=this.pastInput(),L=new Array(D.length+1).join("-");return D+this.upcomingInput()+` `+L+"^"},"showPosition"),test_match:E(function(D,L){var N,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],N=this.performAction.call(this,this.yy,this,L,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var B in z)this[B]=z[B];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var D,L,N,P;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),B=0;BL[0].length)){if(L=N,P=B,this.options.backtrack_lexer){if(D=this.test_match(N,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:E(function(){var L=this.next();return L||this.lex()},"lex"),begin:E(function(L){this.conditionStack.push(L)},"begin"),popState:E(function(){var L=this.conditionStack.length-1;return L>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(L){return L=this.conditionStack.length-1-Math.abs(L||0),L>=0?this.conditionStack[L]:"INITIAL"},"topState"),pushState:E(function(L){this.begin(L)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(L,N,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 E(A,"Parser"),A.prototype=$,$.Parser=A,new A})();gz.parser=gz;var ENt=gz;function mz(t){return t.type==="bar"}E(mz,"isBarPlot");function BW(t){return t.type==="band"}E(BW,"isBandAxisData");function y1(t){return t.type==="linear"}E(y1,"isLinearAxisData");var w_,lAe=(w_=class{constructor(e){this.parentGroup=e}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((i,s)=>Math.max(s.length,i),0)*r,height:r};const n={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const i of e){const s=rge(a,1,i),o=s?s.width:i.length*r,l=s?s.height:r;n.width=Math.max(n.width,o),n.height=Math.max(n.height,l)}return a.remove(),n}},E(w_,"TextDimensionCalculatorWithFont"),w_),fle=.7,ple=.2,k_,cAe=(k_=class{constructor(e,r,n,a){this.axisConfig=e,this.title=r,this.textDimensionCalculator=n,this.axisThemeConfig=a,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(){fle*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(fle*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(),a=ple*e.width;this.outerPadding=Math.min(n.width/2,a);const i=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,i<=r&&(r-=i,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),a=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,a<=r&&(r-=a,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(),a=ple*e.height;this.outerPadding=Math.min(n.height/2,a);const i=n.width+this.axisConfig.labelPadding*2;i<=r&&(r-=i,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),a=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,a<=r&&(r-=a,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():[]}},E(k_,"BaseAxis"),k_),A_,SNt=(A_=class extends cAe{constructor(e,r,n,a,i){super(e,a,i,r),this.categories=n,this.scale=TP().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=TP().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),oe.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},E(A_,"BandAxis"),A_),R_,TNt=(R_=class extends cAe{constructor(e,r,n,a,i){super(e,a,i,r),this.domain=n,this.scale=sb().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const e=[...this.domain];this.axisPosition==="left"&&e.reverse(),this.scale=sb().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},E(R_,"LinearAxis"),R_);function vz(t,e,r,n){const a=new lAe(n);return BW(t)?new SNt(e,r,t.categories,t.title,a):new TNt(e,r,[t.min,t.max],t.title,a)}E(vz,"getAxis");var N_,xNt=(N_=class{constructor(e,r,n,a){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=n,this.chartThemeConfig=a,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),a=r.height+2*this.chartConfig.titlePadding;return r.width<=n&&r.height<=a&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=a,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}},E(N_,"ChartTitle"),N_);function uAe(t,e,r,n){const a=new lAe(n);return new xNt(a,t,e,r)}E(uAe,"getChartTitleComponent");var I_,CNt=(I_=class{constructor(e,r,n,a,i){this.plotData=e,this.xAxis=r,this.yAxis=n,this.orientation=a,this.plotIndex=i}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}]}]:[]}},E(I_,"LinePlot"),I_),O_,wNt=(O_=class{constructor(e,r,n,a,i,s){this.barData=e,this.boundingRect=r,this.xAxis=n,this.yAxis=a,this.orientation=i,this.plotIndex=s}getDrawableElement(){const e=this.barData.data.map(i=>[this.xAxis.getScaleValue(i[0]),this.yAxis.getScaleValue(i[1])]),n=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),a=n/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(i=>({x:this.boundingRect.x,y:i[0]-a,height:n,width:i[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(i=>({x:i[0]-a,y:i[1],width:n,height:this.boundingRect.y+this.boundingRect.height-i[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},E(O_,"BarPlot"),O_),D_,kNt=(D_=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 a=new CNt(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...a.getDrawableElement())}break;case"bar":{const a=new wNt(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...a.getDrawableElement())}break}return e}},E(D_,"BasePlot"),D_);function dAe(t,e,r){return new kNt(t,e,r)}E(dAe,"getPlotComponent");var L_,ANt=(L_=class{constructor(e,r,n,a){this.chartConfig=e,this.chartData=r,this.componentStore={title:uAe(e,r,n,a),plot:dAe(e,r,n),xAxis:vz(r.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},a),yAxis:vz(r.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},a)}}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,a=0,i=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:i,height:s});e-=o.width,r-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),a=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&&(i+=e,e=0),r>0&&(s+=r,r=0),this.componentStore.plot.calculateSpace({width:i,height:s}),this.componentStore.plot.setBoundingBoxXY({x:n,y:a}),this.componentStore.xAxis.setRange([n,n+i]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:a+s}),this.componentStore.yAxis.setRange([a,a+s]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(l=>mz(l))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,a=0,i=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,a=l.width,this.componentStore.yAxis.setAxisPosition("top"),l=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=l.height,i=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:a,y:i}),this.componentStore.yAxis.setRange([a,a+s]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:n}),this.componentStore.xAxis.setRange([i,i+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(u=>mz(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}},E(L_,"Orchestrator"),L_),M_,RNt=(M_=class{static build(e,r,n,a){return new ANt(e,r,n,a).getDrawableElement()}},E(M_,"XYChartBuilder"),M_),K4=0,hAe,X4=zW(),j4=$W(),In=UW(),yz=j4.plotColorPalette.split(",").map(t=>t.trim()),b8=!1,FW=!1;function $W(){const t=Qb(),e=xr();return $a(t.xyChart,e.themeVariables.xyChart)}E($W,"getChartDefaultThemeConfig");function zW(){const t=xr();return $a(ln.xyChart,t.xyChart)}E(zW,"getChartDefaultConfig");function UW(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}E(UW,"getChartDefaultData");function E8(t){const e=xr();return dn(t.trim(),e)}E(E8,"textSanitizer");function fAe(t){hAe=t}E(fAe,"setTmpSVGG");function pAe(t){t==="horizontal"?X4.chartOrientation="horizontal":X4.chartOrientation="vertical"}E(pAe,"setOrientation");function gAe(t){In.xAxis.title=E8(t.text)}E(gAe,"setXAxisTitle");function GW(t,e){In.xAxis={type:"linear",title:In.xAxis.title,min:t,max:e},b8=!0}E(GW,"setXAxisRangeData");function mAe(t){In.xAxis={type:"band",title:In.xAxis.title,categories:t.map(e=>E8(e.text))},b8=!0}E(mAe,"setXAxisBand");function vAe(t){In.yAxis.title=E8(t.text)}E(vAe,"setYAxisTitle");function yAe(t,e){In.yAxis={type:"linear",title:In.yAxis.title,min:t,max:e},FW=!0}E(yAe,"setYAxisRangeData");function _Ae(t){const e=Math.min(...t),r=Math.max(...t),n=y1(In.yAxis)?In.yAxis.min:1/0,a=y1(In.yAxis)?In.yAxis.max:-1/0;In.yAxis={type:"linear",title:In.yAxis.title,min:Math.min(n,e),max:Math.max(a,r)}}E(_Ae,"setYAxisRangeFromPlotData");function qW(t){let e=[];if(t.length===0)return e;if(!b8){const r=y1(In.xAxis)?In.xAxis.min:1/0,n=y1(In.xAxis)?In.xAxis.max:-1/0;GW(Math.min(r,1),Math.max(n,t.length))}if(FW||_Ae(t),BW(In.xAxis)&&(e=In.xAxis.categories.map((r,n)=>[r,t[n]])),y1(In.xAxis)){const r=In.xAxis.min,n=In.xAxis.max,a=(n-r)/(t.length-1),i=[];for(let s=r;s<=n;s+=a)i.push(`${s}`);e=i.map((s,o)=>[s,t[o]])}return e}E(qW,"transformDataWithoutCategory");function YW(t){return yz[t===0?0:t%yz.length]}E(YW,"getPlotColorFromPalette");function bAe(t,e){const r=qW(e);In.plots.push({type:"line",strokeFill:YW(K4),strokeWidth:2,data:r}),K4++}E(bAe,"setLineData");function EAe(t,e){const r=qW(e);In.plots.push({type:"bar",fill:YW(K4),data:r}),K4++}E(EAe,"setBarData");function SAe(){if(In.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return In.title=la(),RNt.build(X4,In,j4,hAe)}E(SAe,"getDrawableElem");function TAe(){return j4}E(TAe,"getChartThemeConfig");function xAe(){return X4}E(xAe,"getChartConfig");function CAe(){return In}E(CAe,"getXYChartData");var NNt=E(function(){oa(),K4=0,X4=zW(),In=UW(),j4=$W(),yz=j4.plotColorPalette.split(",").map(t=>t.trim()),b8=!1,FW=!1},"clear"),INt={getDrawableElem:SAe,clear:NNt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya,setOrientation:pAe,setXAxisTitle:gAe,setXAxisRangeData:GW,setXAxisBand:mAe,setYAxisTitle:vAe,setYAxisRangeData:yAe,setLineData:bAe,setBarData:EAe,setTmpSVGG:fAe,getChartThemeConfig:TAe,getChartConfig:xAe,getXYChartData:CAe},ONt=E((t,e,r,n)=>{const a=n.db,i=a.getChartThemeConfig(),s=a.getChartConfig(),o=a.getXYChartData().plots[0].data.map(y=>y[1]);function l(y){return y==="top"?"text-before-edge":"middle"}E(l,"getDominantBaseLine");function u(y){return y==="left"?"start":y==="right"?"end":"middle"}E(u,"getTextAnchor");function d(y){return`translate(${y.x}, ${y.y}) rotate(${y.rotation||0})`}E(d,"getTextTransformation"),oe.debug(`Rendering xychart chart -`+t);const h=wo(e),f=h.append("g").attr("class","main"),p=f.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");di(h,s.height,s.width,!0),h.attr("viewBox",`0 0 ${s.width} ${s.height}`),p.attr("fill",i.backgroundColor),a.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group"));const g=a.getDrawableElem(),m={};function v(y){let b=f,_="";for(const[S]of y.entries()){let x=f;S>0&&m[_]&&(x=m[_]),_+=y[S],b=m[_],b||(b=m[_]=x.append("g").attr("class",y[S]))}return b}E(v,"getGroup");for(const y of g){if(y.data.length===0)continue;const b=v(y.groupTexts);switch(y.type){case"rect":if(b.selectAll("rect").data(y.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 S=function(M,$){const{data:F,label:A}=M;return $*A.length*x<=F.width-C};E(S,"fitsHorizontally");const x=.7,C=10,T=y.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(;!S(M,F)&&F>0;)F-=1;return F}),R=Math.floor(Math.min(...w)),O=E(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",i.dataLabelColor).attr("font-size",`${R}px`).text(M=>M.label)}else{let S=function(O,M,$){const{data:F,label:A}=O,D=M*A.length*.7,L=F.x+F.width/2,N=L-D/2,P=L+D/2,z=N>=F.x&&P<=F.x+F.width,B=F.y+$+M<=F.y+F.height;return z&&B};E(S,"fitsInBar");const x=10,C=y.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(;!S(O,F,x)&&F>0;)F-=1;return F}),w=Math.floor(Math.min(...T)),R=E(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",R).attr("text-anchor","middle").attr("dominant-baseline",_?"auto":"hanging").attr("fill",i.dataLabelColor).attr("font-size",`${w}px`).text(O=>O.label)}}break;case"text":b.selectAll("text").data(y.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(y.data).enter().append("path").attr("d",_=>_.path).attr("fill",_=>_.fill?_.fill:"none").attr("stroke",_=>_.strokeFill).attr("stroke-width",_=>_.strokeWidth);break}}},"draw"),DNt={draw:ONt},LNt={parser:ENt,db:INt,renderer:DNt};const MNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:LNt},Symbol.toStringTag,{value:"Module"}));var _z=(function(){var t=E(function(ke,Qe,_e,ye){for(_e=_e||{},ye=ke.length;ye--;_e[ke[ye]]=Qe);return _e},"o"),e=[1,3],r=[1,4],n=[1,5],a=[1,6],i=[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],v=[1,37],y=[1,38],b=[1,24],_=[1,31],S=[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],R=[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],N=[1,75],P=[1,76],z=[1,83],B=[1,80],U=[1,84],G=[1,85],K=[1,86],Y=[1,87],ee=[1,88],X=[1,89],le=[1,90],te=[1,91],ne=[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],re=[63,64],ge=[1,101],pe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Be=[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],Le=[1,110],He=[1,106],Re=[1,107],xe=[1,108],$e=[1,109],Ce=[1,111],ut=[1,116],Ae=[1,117],je=[1,114],ot=[1,115],lt={trace:E(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:E(function(Qe,_e,ye,q,fe,j,we){var Te=j.length-1;switch(fe){case 4:this.$=j[Te].trim(),q.setAccTitle(this.$);break;case 5:case 6:this.$=j[Te].trim(),q.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:q.setDirection("TB");break;case 18:q.setDirection("BT");break;case 19:q.setDirection("RL");break;case 20:q.setDirection("LR");break;case 21:q.addRequirement(j[Te-3],j[Te-4]);break;case 22:q.addRequirement(j[Te-5],j[Te-6]),q.setClass([j[Te-5]],j[Te-3]);break;case 23:q.setNewReqId(j[Te-2]);break;case 24:q.setNewReqText(j[Te-2]);break;case 25:q.setNewReqRisk(j[Te-2]);break;case 26:q.setNewReqVerifyMethod(j[Te-2]);break;case 29:this.$=q.RequirementType.REQUIREMENT;break;case 30:this.$=q.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=q.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=q.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=q.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=q.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=q.RiskLevel.LOW_RISK;break;case 36:this.$=q.RiskLevel.MED_RISK;break;case 37:this.$=q.RiskLevel.HIGH_RISK;break;case 38:this.$=q.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=q.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=q.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=q.VerifyType.VERIFY_TEST;break;case 42:q.addElement(j[Te-3]);break;case 43:q.addElement(j[Te-5]),q.setClass([j[Te-5]],j[Te-3]);break;case 44:q.setNewElementType(j[Te-2]);break;case 45:q.setNewElementDocRef(j[Te-2]);break;case 48:q.addRelationship(j[Te-2],j[Te],j[Te-4]);break;case 49:q.addRelationship(j[Te-2],j[Te-4],j[Te]);break;case 50:this.$=q.Relationships.CONTAINS;break;case 51:this.$=q.Relationships.COPIES;break;case 52:this.$=q.Relationships.DERIVES;break;case 53:this.$=q.Relationships.SATISFIES;break;case 54:this.$=q.Relationships.VERIFIES;break;case 55:this.$=q.Relationships.REFINES;break;case 56:this.$=q.Relationships.TRACES;break;case 57:this.$=j[Te-2],q.defineClass(j[Te-1],j[Te]);break;case 58:q.setClass(j[Te-1],j[Te]);break;case 59:q.setClass([j[Te-2]],j[Te]);break;case 60:case 62:this.$=[j[Te]];break;case 61:case 63:this.$=j[Te-2].concat([j[Te]]);break;case 64:this.$=j[Te-2],q.setCssStyle(j[Te-1],j[Te]);break;case 65:this.$=[j[Te]];break;case 66:j[Te-2].push(j[Te]),this.$=j[Te-2];break;case 68:this.$=j[Te-1]+j[Te];break}},"anonymous"),table:[{3:1,4:2,6:e,9:r,11:n,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:r,11:n,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(i,[2,6]),{3:12,4:2,6:e,9:r,11:n,13:a},{1:[2,2]},{4:17,5:s,7:13,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},t(i,[2,4]),t(i,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:43,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:44,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:45,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:46,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:47,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:48,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:49,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:50,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,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:R,89:C,90:T},{30:63,33:62,75:R,89:C,90:T},{30:64,33:62,75:R,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:N,71:P},{62:77,65:F,66:A,67:I,68:D,69:L,70:N,71:P},{30:78,33:62,75:R,89:C,90:T},{73:79,75:z,76:B,78:81,79:82,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne},t(ae,[2,60]),t(ae,[2,62]),{73:93,75:z,76:B,78:81,79:82,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne},{30:94,33:62,75:R,76:B,89:C,90:T},{5:[1,95]},{30:96,33:62,75:R,89:C,90:T},{5:[1,97]},{30:98,33:62,75:R,89:C,90:T},{63:[1,99]},t(re,[2,50]),t(re,[2,51]),t(re,[2,52]),t(re,[2,53]),t(re,[2,54]),t(re,[2,55]),t(re,[2,56]),{64:[1,100]},t(w,[2,59],{76:B}),t(w,[2,64],{76:ge}),{33:103,75:[1,102],89:C,90:T},t(pe,[2,65],{79:104,75:z,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne}),t(Be,[2,67]),t(Be,[2,69]),t(Be,[2,70]),t(Be,[2,71]),t(Be,[2,72]),t(Be,[2,73]),t(Be,[2,74]),t(Be,[2,75]),t(Be,[2,76]),t(Be,[2,77]),t(Be,[2,78]),t(w,[2,57],{76:ge}),t(w,[2,58],{76:B}),{5:Le,28:105,31:He,34:Re,36:xe,38:$e,40:Ce},{27:[1,112],76:B},{5:ut,40:Ae,56:113,57:je,59:ot},{27:[1,118],76:B},{33:119,89:C,90:T},{33:120,89:C,90:T},{75:z,78:121,79:82,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne},t(ae,[2,61]),t(ae,[2,63]),t(Be,[2,68]),t(w,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Le,28:126,31:He,34:Re,36:xe,38:$e,40:Ce},t(w,[2,28]),{5:[1,127]},t(w,[2,42]),{32:[1,128]},{32:[1,129]},{5:ut,40:Ae,56:130,57:je,59:ot},t(w,[2,47]),{5:[1,131]},t(w,[2,48]),t(w,[2,49]),t(pe,[2,66],{79:104,75:z,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne}),{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:Le,28:145,31:He,34:Re,36:xe,38:$e,40:Ce},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(w,[2,46]),{5:ut,40:Ae,56:152,57:je,59:ot},{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:Le,28:159,31:He,34:Re,36:xe,38:$e,40:Ce},{5:Le,28:160,31:He,34:Re,36:xe,38:$e,40:Ce},{5:Le,28:161,31:He,34:Re,36:xe,38:$e,40:Ce},{5:Le,28:162,31:He,34:Re,36:xe,38:$e,40:Ce},{5:ut,40:Ae,56:163,57:je,59:ot},{5:ut,40:Ae,56:164,57:je,59:ot},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:E(function(Qe,_e){if(_e.recoverable)this.trace(Qe);else{var ye=new Error(Qe);throw ye.hash=_e,ye}},"parseError"),parse:E(function(Qe){var _e=this,ye=[0],q=[],fe=[null],j=[],we=this.table,Te="",rt=0,Oe=0,Pe=2,Ie=1,Ze=j.slice.call(arguments,1),ze=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]);ze.setInput(Qe,me.yy),me.yy.lexer=ze,me.yy.parser=this,typeof ze.yylloc>"u"&&(ze.yylloc={});var Ve=ze.yylloc;j.push(Ve);var ve=ze.options&&ze.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tt(Ne){ye.length=ye.length-2*Ne,fe.length=fe.length-Ne,j.length=j.length-Ne}E(Tt,"popStack");function St(){var Ne;return Ne=q.pop()||ze.lex()||Ie,typeof Ne!="number"&&(Ne instanceof Array&&(q=Ne,Ne=q.pop()),Ne=_e.symbols_[Ne]||Ne),Ne}E(St,"lex");for(var nt,dt,ft,gt,se={},It,bt,Et,Nt;;){if(dt=ye[ye.length-1],this.defaultActions[dt]?ft=this.defaultActions[dt]:((nt===null||typeof nt>"u")&&(nt=St()),ft=we[dt]&&we[dt][nt]),typeof ft>"u"||!ft.length||!ft[0]){var Vr="";Nt=[];for(It in we[dt])this.terminals_[It]&&It>Pe&&Nt.push("'"+this.terminals_[It]+"'");ze.showPosition?Vr="Parse error on line "+(rt+1)+`: +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var L=this.next();return L||this.lex()},"lex"),begin:E(function(L){this.conditionStack.push(L)},"begin"),popState:E(function(){var L=this.conditionStack.length-1;return L>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(L){return L=this.conditionStack.length-1-Math.abs(L||0),L>=0?this.conditionStack[L]:"INITIAL"},"topState"),pushState:E(function(L){this.begin(L)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(L,N,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 E(A,"Parser"),A.prototype=$,$.Parser=A,new A})();gz.parser=gz;var SNt=gz;function mz(t){return t.type==="bar"}E(mz,"isBarPlot");function BW(t){return t.type==="band"}E(BW,"isBandAxisData");function y1(t){return t.type==="linear"}E(y1,"isLinearAxisData");var w_,lAe=(w_=class{constructor(e){this.parentGroup=e}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((i,s)=>Math.max(s.length,i),0)*r,height:r};const n={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(const i of e){const s=rge(a,1,i),o=s?s.width:i.length*r,l=s?s.height:r;n.width=Math.max(n.width,o),n.height=Math.max(n.height,l)}return a.remove(),n}},E(w_,"TextDimensionCalculatorWithFont"),w_),fle=.7,ple=.2,k_,cAe=(k_=class{constructor(e,r,n,a){this.axisConfig=e,this.title=r,this.textDimensionCalculator=n,this.axisThemeConfig=a,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(){fle*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(fle*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(),a=ple*e.width;this.outerPadding=Math.min(n.width/2,a);const i=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,i<=r&&(r-=i,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),a=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,a<=r&&(r-=a,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(),a=ple*e.height;this.outerPadding=Math.min(n.height/2,a);const i=n.width+this.axisConfig.labelPadding*2;i<=r&&(r-=i,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),a=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,a<=r&&(r-=a,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():[]}},E(k_,"BaseAxis"),k_),A_,TNt=(A_=class extends cAe{constructor(e,r,n,a,i){super(e,a,i,r),this.categories=n,this.scale=TP().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=TP().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),oe.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},E(A_,"BandAxis"),A_),R_,xNt=(R_=class extends cAe{constructor(e,r,n,a,i){super(e,a,i,r),this.domain=n,this.scale=sb().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const e=[...this.domain];this.axisPosition==="left"&&e.reverse(),this.scale=sb().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},E(R_,"LinearAxis"),R_);function vz(t,e,r,n){const a=new lAe(n);return BW(t)?new TNt(e,r,t.categories,t.title,a):new xNt(e,r,[t.min,t.max],t.title,a)}E(vz,"getAxis");var N_,CNt=(N_=class{constructor(e,r,n,a){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=n,this.chartThemeConfig=a,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),a=r.height+2*this.chartConfig.titlePadding;return r.width<=n&&r.height<=a&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=a,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}},E(N_,"ChartTitle"),N_);function uAe(t,e,r,n){const a=new lAe(n);return new CNt(a,t,e,r)}E(uAe,"getChartTitleComponent");var I_,wNt=(I_=class{constructor(e,r,n,a,i){this.plotData=e,this.xAxis=r,this.yAxis=n,this.orientation=a,this.plotIndex=i}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}]}]:[]}},E(I_,"LinePlot"),I_),O_,kNt=(O_=class{constructor(e,r,n,a,i,s){this.barData=e,this.boundingRect=r,this.xAxis=n,this.yAxis=a,this.orientation=i,this.plotIndex=s}getDrawableElement(){const e=this.barData.data.map(i=>[this.xAxis.getScaleValue(i[0]),this.yAxis.getScaleValue(i[1])]),n=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),a=n/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(i=>({x:this.boundingRect.x,y:i[0]-a,height:n,width:i[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(i=>({x:i[0]-a,y:i[1],width:n,height:this.boundingRect.y+this.boundingRect.height-i[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},E(O_,"BarPlot"),O_),D_,ANt=(D_=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 a=new wNt(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...a.getDrawableElement())}break;case"bar":{const a=new kNt(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...a.getDrawableElement())}break}return e}},E(D_,"BasePlot"),D_);function dAe(t,e,r){return new ANt(t,e,r)}E(dAe,"getPlotComponent");var L_,RNt=(L_=class{constructor(e,r,n,a){this.chartConfig=e,this.chartData=r,this.componentStore={title:uAe(e,r,n,a),plot:dAe(e,r,n),xAxis:vz(r.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},a),yAxis:vz(r.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},a)}}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,a=0,i=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:i,height:s});e-=o.width,r-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),a=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&&(i+=e,e=0),r>0&&(s+=r,r=0),this.componentStore.plot.calculateSpace({width:i,height:s}),this.componentStore.plot.setBoundingBoxXY({x:n,y:a}),this.componentStore.xAxis.setRange([n,n+i]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:a+s}),this.componentStore.yAxis.setRange([a,a+s]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(l=>mz(l))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,a=0,i=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,a=l.width,this.componentStore.yAxis.setAxisPosition("top"),l=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=l.height,i=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:a,y:i}),this.componentStore.yAxis.setRange([a,a+s]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:n}),this.componentStore.xAxis.setRange([i,i+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(u=>mz(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}},E(L_,"Orchestrator"),L_),M_,NNt=(M_=class{static build(e,r,n,a){return new RNt(e,r,n,a).getDrawableElement()}},E(M_,"XYChartBuilder"),M_),K4=0,hAe,X4=zW(),j4=$W(),In=UW(),yz=j4.plotColorPalette.split(",").map(t=>t.trim()),b8=!1,FW=!1;function $W(){const t=Qb(),e=xr();return $a(t.xyChart,e.themeVariables.xyChart)}E($W,"getChartDefaultThemeConfig");function zW(){const t=xr();return $a(ln.xyChart,t.xyChart)}E(zW,"getChartDefaultConfig");function UW(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}E(UW,"getChartDefaultData");function E8(t){const e=xr();return dn(t.trim(),e)}E(E8,"textSanitizer");function fAe(t){hAe=t}E(fAe,"setTmpSVGG");function pAe(t){t==="horizontal"?X4.chartOrientation="horizontal":X4.chartOrientation="vertical"}E(pAe,"setOrientation");function gAe(t){In.xAxis.title=E8(t.text)}E(gAe,"setXAxisTitle");function GW(t,e){In.xAxis={type:"linear",title:In.xAxis.title,min:t,max:e},b8=!0}E(GW,"setXAxisRangeData");function mAe(t){In.xAxis={type:"band",title:In.xAxis.title,categories:t.map(e=>E8(e.text))},b8=!0}E(mAe,"setXAxisBand");function vAe(t){In.yAxis.title=E8(t.text)}E(vAe,"setYAxisTitle");function yAe(t,e){In.yAxis={type:"linear",title:In.yAxis.title,min:t,max:e},FW=!0}E(yAe,"setYAxisRangeData");function _Ae(t){const e=Math.min(...t),r=Math.max(...t),n=y1(In.yAxis)?In.yAxis.min:1/0,a=y1(In.yAxis)?In.yAxis.max:-1/0;In.yAxis={type:"linear",title:In.yAxis.title,min:Math.min(n,e),max:Math.max(a,r)}}E(_Ae,"setYAxisRangeFromPlotData");function qW(t){let e=[];if(t.length===0)return e;if(!b8){const r=y1(In.xAxis)?In.xAxis.min:1/0,n=y1(In.xAxis)?In.xAxis.max:-1/0;GW(Math.min(r,1),Math.max(n,t.length))}if(FW||_Ae(t),BW(In.xAxis)&&(e=In.xAxis.categories.map((r,n)=>[r,t[n]])),y1(In.xAxis)){const r=In.xAxis.min,n=In.xAxis.max,a=(n-r)/(t.length-1),i=[];for(let s=r;s<=n;s+=a)i.push(`${s}`);e=i.map((s,o)=>[s,t[o]])}return e}E(qW,"transformDataWithoutCategory");function YW(t){return yz[t===0?0:t%yz.length]}E(YW,"getPlotColorFromPalette");function bAe(t,e){const r=qW(e);In.plots.push({type:"line",strokeFill:YW(K4),strokeWidth:2,data:r}),K4++}E(bAe,"setLineData");function EAe(t,e){const r=qW(e);In.plots.push({type:"bar",fill:YW(K4),data:r}),K4++}E(EAe,"setBarData");function SAe(){if(In.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return In.title=la(),NNt.build(X4,In,j4,hAe)}E(SAe,"getDrawableElem");function TAe(){return j4}E(TAe,"getChartThemeConfig");function xAe(){return X4}E(xAe,"getChartConfig");function CAe(){return In}E(CAe,"getXYChartData");var INt=E(function(){oa(),K4=0,X4=zW(),In=UW(),j4=$W(),yz=j4.plotColorPalette.split(",").map(t=>t.trim()),b8=!1,FW=!1},"clear"),ONt={getDrawableElem:SAe,clear:INt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya,setOrientation:pAe,setXAxisTitle:gAe,setXAxisRangeData:GW,setXAxisBand:mAe,setYAxisTitle:vAe,setYAxisRangeData:yAe,setLineData:bAe,setBarData:EAe,setTmpSVGG:fAe,getChartThemeConfig:TAe,getChartConfig:xAe,getXYChartData:CAe},DNt=E((t,e,r,n)=>{const a=n.db,i=a.getChartThemeConfig(),s=a.getChartConfig(),o=a.getXYChartData().plots[0].data.map(y=>y[1]);function l(y){return y==="top"?"text-before-edge":"middle"}E(l,"getDominantBaseLine");function u(y){return y==="left"?"start":y==="right"?"end":"middle"}E(u,"getTextAnchor");function d(y){return`translate(${y.x}, ${y.y}) rotate(${y.rotation||0})`}E(d,"getTextTransformation"),oe.debug(`Rendering xychart chart +`+t);const h=wo(e),f=h.append("g").attr("class","main"),p=f.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");di(h,s.height,s.width,!0),h.attr("viewBox",`0 0 ${s.width} ${s.height}`),p.attr("fill",i.backgroundColor),a.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group"));const g=a.getDrawableElem(),m={};function v(y){let b=f,_="";for(const[S]of y.entries()){let x=f;S>0&&m[_]&&(x=m[_]),_+=y[S],b=m[_],b||(b=m[_]=x.append("g").attr("class",y[S]))}return b}E(v,"getGroup");for(const y of g){if(y.data.length===0)continue;const b=v(y.groupTexts);switch(y.type){case"rect":if(b.selectAll("rect").data(y.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 S=function(M,$){const{data:F,label:A}=M;return $*A.length*x<=F.width-C};E(S,"fitsHorizontally");const x=.7,C=10,T=y.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(;!S(M,F)&&F>0;)F-=1;return F}),R=Math.floor(Math.min(...w)),O=E(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",i.dataLabelColor).attr("font-size",`${R}px`).text(M=>M.label)}else{let S=function(O,M,$){const{data:F,label:A}=O,D=M*A.length*.7,L=F.x+F.width/2,N=L-D/2,P=L+D/2,z=N>=F.x&&P<=F.x+F.width,B=F.y+$+M<=F.y+F.height;return z&&B};E(S,"fitsInBar");const x=10,C=y.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(;!S(O,F,x)&&F>0;)F-=1;return F}),w=Math.floor(Math.min(...T)),R=E(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",R).attr("text-anchor","middle").attr("dominant-baseline",_?"auto":"hanging").attr("fill",i.dataLabelColor).attr("font-size",`${w}px`).text(O=>O.label)}}break;case"text":b.selectAll("text").data(y.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(y.data).enter().append("path").attr("d",_=>_.path).attr("fill",_=>_.fill?_.fill:"none").attr("stroke",_=>_.strokeFill).attr("stroke-width",_=>_.strokeWidth);break}}},"draw"),LNt={draw:DNt},MNt={parser:SNt,db:ONt,renderer:LNt};const PNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:MNt},Symbol.toStringTag,{value:"Module"}));var _z=(function(){var t=E(function(ke,Qe,_e,ye){for(_e=_e||{},ye=ke.length;ye--;_e[ke[ye]]=Qe);return _e},"o"),e=[1,3],r=[1,4],n=[1,5],a=[1,6],i=[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],v=[1,37],y=[1,38],b=[1,24],_=[1,31],S=[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],R=[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],N=[1,75],P=[1,76],z=[1,83],B=[1,80],U=[1,84],G=[1,85],K=[1,86],Y=[1,87],ee=[1,88],X=[1,89],le=[1,90],te=[1,91],ne=[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],re=[63,64],ge=[1,101],pe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Be=[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],Le=[1,110],He=[1,106],Re=[1,107],xe=[1,108],$e=[1,109],Ce=[1,111],ut=[1,116],Ae=[1,117],je=[1,114],ot=[1,115],lt={trace:E(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:E(function(Qe,_e,ye,q,fe,j,we){var Te=j.length-1;switch(fe){case 4:this.$=j[Te].trim(),q.setAccTitle(this.$);break;case 5:case 6:this.$=j[Te].trim(),q.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:q.setDirection("TB");break;case 18:q.setDirection("BT");break;case 19:q.setDirection("RL");break;case 20:q.setDirection("LR");break;case 21:q.addRequirement(j[Te-3],j[Te-4]);break;case 22:q.addRequirement(j[Te-5],j[Te-6]),q.setClass([j[Te-5]],j[Te-3]);break;case 23:q.setNewReqId(j[Te-2]);break;case 24:q.setNewReqText(j[Te-2]);break;case 25:q.setNewReqRisk(j[Te-2]);break;case 26:q.setNewReqVerifyMethod(j[Te-2]);break;case 29:this.$=q.RequirementType.REQUIREMENT;break;case 30:this.$=q.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=q.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=q.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=q.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=q.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=q.RiskLevel.LOW_RISK;break;case 36:this.$=q.RiskLevel.MED_RISK;break;case 37:this.$=q.RiskLevel.HIGH_RISK;break;case 38:this.$=q.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=q.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=q.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=q.VerifyType.VERIFY_TEST;break;case 42:q.addElement(j[Te-3]);break;case 43:q.addElement(j[Te-5]),q.setClass([j[Te-5]],j[Te-3]);break;case 44:q.setNewElementType(j[Te-2]);break;case 45:q.setNewElementDocRef(j[Te-2]);break;case 48:q.addRelationship(j[Te-2],j[Te],j[Te-4]);break;case 49:q.addRelationship(j[Te-2],j[Te-4],j[Te]);break;case 50:this.$=q.Relationships.CONTAINS;break;case 51:this.$=q.Relationships.COPIES;break;case 52:this.$=q.Relationships.DERIVES;break;case 53:this.$=q.Relationships.SATISFIES;break;case 54:this.$=q.Relationships.VERIFIES;break;case 55:this.$=q.Relationships.REFINES;break;case 56:this.$=q.Relationships.TRACES;break;case 57:this.$=j[Te-2],q.defineClass(j[Te-1],j[Te]);break;case 58:q.setClass(j[Te-1],j[Te]);break;case 59:q.setClass([j[Te-2]],j[Te]);break;case 60:case 62:this.$=[j[Te]];break;case 61:case 63:this.$=j[Te-2].concat([j[Te]]);break;case 64:this.$=j[Te-2],q.setCssStyle(j[Te-1],j[Te]);break;case 65:this.$=[j[Te]];break;case 66:j[Te-2].push(j[Te]),this.$=j[Te-2];break;case 68:this.$=j[Te-1]+j[Te];break}},"anonymous"),table:[{3:1,4:2,6:e,9:r,11:n,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:r,11:n,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(i,[2,6]),{3:12,4:2,6:e,9:r,11:n,13:a},{1:[2,2]},{4:17,5:s,7:13,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},t(i,[2,4]),t(i,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:43,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:44,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:45,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:46,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:47,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:48,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:49,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,77:x,89:C,90:T},{4:17,5:s,7:50,8:o,9:r,11:n,13:a,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:v,46:y,54:b,72:_,74:S,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:R,89:C,90:T},{30:63,33:62,75:R,89:C,90:T},{30:64,33:62,75:R,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:N,71:P},{62:77,65:F,66:A,67:I,68:D,69:L,70:N,71:P},{30:78,33:62,75:R,89:C,90:T},{73:79,75:z,76:B,78:81,79:82,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne},t(ae,[2,60]),t(ae,[2,62]),{73:93,75:z,76:B,78:81,79:82,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne},{30:94,33:62,75:R,76:B,89:C,90:T},{5:[1,95]},{30:96,33:62,75:R,89:C,90:T},{5:[1,97]},{30:98,33:62,75:R,89:C,90:T},{63:[1,99]},t(re,[2,50]),t(re,[2,51]),t(re,[2,52]),t(re,[2,53]),t(re,[2,54]),t(re,[2,55]),t(re,[2,56]),{64:[1,100]},t(w,[2,59],{76:B}),t(w,[2,64],{76:ge}),{33:103,75:[1,102],89:C,90:T},t(pe,[2,65],{79:104,75:z,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne}),t(Be,[2,67]),t(Be,[2,69]),t(Be,[2,70]),t(Be,[2,71]),t(Be,[2,72]),t(Be,[2,73]),t(Be,[2,74]),t(Be,[2,75]),t(Be,[2,76]),t(Be,[2,77]),t(Be,[2,78]),t(w,[2,57],{76:ge}),t(w,[2,58],{76:B}),{5:Le,28:105,31:He,34:Re,36:xe,38:$e,40:Ce},{27:[1,112],76:B},{5:ut,40:Ae,56:113,57:je,59:ot},{27:[1,118],76:B},{33:119,89:C,90:T},{33:120,89:C,90:T},{75:z,78:121,79:82,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne},t(ae,[2,61]),t(ae,[2,63]),t(Be,[2,68]),t(w,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Le,28:126,31:He,34:Re,36:xe,38:$e,40:Ce},t(w,[2,28]),{5:[1,127]},t(w,[2,42]),{32:[1,128]},{32:[1,129]},{5:ut,40:Ae,56:130,57:je,59:ot},t(w,[2,47]),{5:[1,131]},t(w,[2,48]),t(w,[2,49]),t(pe,[2,66],{79:104,75:z,80:U,81:G,82:K,83:Y,84:ee,85:X,86:le,87:te,88:ne}),{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:Le,28:145,31:He,34:Re,36:xe,38:$e,40:Ce},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(w,[2,46]),{5:ut,40:Ae,56:152,57:je,59:ot},{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:Le,28:159,31:He,34:Re,36:xe,38:$e,40:Ce},{5:Le,28:160,31:He,34:Re,36:xe,38:$e,40:Ce},{5:Le,28:161,31:He,34:Re,36:xe,38:$e,40:Ce},{5:Le,28:162,31:He,34:Re,36:xe,38:$e,40:Ce},{5:ut,40:Ae,56:163,57:je,59:ot},{5:ut,40:Ae,56:164,57:je,59:ot},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:E(function(Qe,_e){if(_e.recoverable)this.trace(Qe);else{var ye=new Error(Qe);throw ye.hash=_e,ye}},"parseError"),parse:E(function(Qe){var _e=this,ye=[0],q=[],fe=[null],j=[],we=this.table,Te="",rt=0,Oe=0,Pe=2,Ie=1,Ze=j.slice.call(arguments,1),ze=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]);ze.setInput(Qe,me.yy),me.yy.lexer=ze,me.yy.parser=this,typeof ze.yylloc>"u"&&(ze.yylloc={});var Ve=ze.yylloc;j.push(Ve);var ve=ze.options&&ze.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tt(Ne){ye.length=ye.length-2*Ne,fe.length=fe.length-Ne,j.length=j.length-Ne}E(Tt,"popStack");function St(){var Ne;return Ne=q.pop()||ze.lex()||Ie,typeof Ne!="number"&&(Ne instanceof Array&&(q=Ne,Ne=q.pop()),Ne=_e.symbols_[Ne]||Ne),Ne}E(St,"lex");for(var nt,dt,ft,gt,se={},It,bt,Et,Nt;;){if(dt=ye[ye.length-1],this.defaultActions[dt]?ft=this.defaultActions[dt]:((nt===null||typeof nt>"u")&&(nt=St()),ft=we[dt]&&we[dt][nt]),typeof ft>"u"||!ft.length||!ft[0]){var Vr="";Nt=[];for(It in we[dt])this.terminals_[It]&&It>Pe&&Nt.push("'"+this.terminals_[It]+"'");ze.showPosition?Vr="Parse error on line "+(rt+1)+`: `+ze.showPosition()+` Expecting `+Nt.join(", ")+", got '"+(this.terminals_[nt]||nt)+"'":Vr="Parse error on line "+(rt+1)+": Unexpected "+(nt==Ie?"end of input":"'"+(this.terminals_[nt]||nt)+"'"),this.parseError(Vr,{text:ze.match,token:this.terminals_[nt]||nt,line:ze.yylineno,loc:Ve,expected:Nt})}if(ft[0]instanceof Array&&ft.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dt+", token: "+nt);switch(ft[0]){case 1:ye.push(nt),fe.push(ze.yytext),j.push(ze.yylloc),ye.push(ft[1]),nt=null,Oe=ze.yyleng,Te=ze.yytext,rt=ze.yylineno,Ve=ze.yylloc;break;case 2:if(bt=this.productions_[ft[1]][1],se.$=fe[fe.length-bt],se._$={first_line:j[j.length-(bt||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(bt||1)].first_column,last_column:j[j.length-1].last_column},ve&&(se._$.range=[j[j.length-(bt||1)].range[0],j[j.length-1].range[1]]),gt=this.performAction.apply(se,[Te,Oe,rt,me.yy,ft[1],fe,j].concat(Ze)),typeof gt<"u")return gt;bt&&(ye=ye.slice(0,-1*bt*2),fe=fe.slice(0,-1*bt),j=j.slice(0,-1*bt)),ye.push(this.productions_[ft[1]][0]),fe.push(se.$),j.push(se._$),Et=we[ye[ye.length-2]][ye[ye.length-1]],ye.push(Et);break;case 3:return!0}}return!0},"parse")},ct=(function(){var ke={EOF:1,parseError:E(function(_e,ye){if(this.yy.parser)this.yy.parser.parseError(_e,ye);else throw new Error(_e)},"parseError"),setInput:E(function(Qe,_e){return this.yy=_e||this.yy||{},this._input=Qe,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:E(function(){var Qe=this._input[0];this.yytext+=Qe,this.yyleng++,this.offset++,this.match+=Qe,this.matched+=Qe;var _e=Qe.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),Qe},"input"),unput:E(function(Qe){var _e=Qe.length,ye=Qe.split(/(?:\r\n?|\n)/g);this._input=Qe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_e),this.offset-=_e;var q=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),ye.length-1&&(this.yylineno-=ye.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:ye?(ye.length===q.length?this.yylloc.first_column:0)+q[q.length-ye.length].length-ye[0].length:this.yylloc.first_column-_e},this.options.ranges&&(this.yylloc.range=[fe[0],fe[0]+this.yyleng-_e]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(Qe){this.unput(this.match.slice(Qe))},"less"),pastInput:E(function(){var Qe=this.matched.substr(0,this.matched.length-this.match.length);return(Qe.length>20?"...":"")+Qe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:E(function(){var Qe=this.match;return Qe.length<20&&(Qe+=this._input.substr(0,20-Qe.length)),(Qe.substr(0,20)+(Qe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:E(function(){var Qe=this.pastInput(),_e=new Array(Qe.length+1).join("-");return Qe+this.upcomingInput()+` `+_e+"^"},"showPosition"),test_match:E(function(Qe,_e){var ye,q,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))),q=Qe[0].match(/(?:\r\n?|\n).*/g),q&&(this.yylineno+=q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:q?q[q.length-1].length-q[q.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Qe[0].length},this.yytext+=Qe[0],this.match+=Qe[0],this.matches=Qe,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(Qe[0].length),this.matched+=Qe[0],ye=this.performAction.call(this,this.yy,this,_e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ye)return ye;if(this._backtrack){for(var j in fe)this[j]=fe[j];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Qe,_e,ye,q;this._more||(this.yytext="",this.match="");for(var fe=this._currentRules(),j=0;j_e[0].length)){if(_e=ye,q=j,this.options.backtrack_lexer){if(Qe=this.test_match(ye,fe[j]),Qe!==!1)return Qe;if(this._backtrack){_e=!1;continue}else return!1}else if(!this.options.flex)break}return _e?(Qe=this.test_match(_e,fe[q]),Qe!==!1?Qe:!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:E(function(){var _e=this.next();return _e||this.lex()},"lex"),begin:E(function(_e){this.conditionStack.push(_e)},"begin"),popState:E(function(){var _e=this.conditionStack.length-1;return _e>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(_e){return _e=this.conditionStack.length-1-Math.abs(_e||0),_e>=0?this.conditionStack[_e]:"INITIAL"},"topState"),pushState:E(function(_e){this.begin(_e)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(_e,ye,q,fe){switch(q){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 ye.yytext=ye.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 ke})();lt.lexer=ct;function it(){this.yy={}}return E(it,"Parser"),it.prototype=lt,lt.Parser=it,new it})();_z.parser=_z;var PNt=_z,P_,BNt=(P_=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=sa,this.getAccTitle=va,this.setAccDescription=ya,this.getAccDescription=_a,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getConfig=E(()=>Ye().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"]}),oe.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,oa()}setCssStyle(e,r){for(const n of e){const a=this.requirements.get(n)??this.elements.get(n);if(!r||!a)return;for(const i of r)i.includes(",")?a.cssStyles.push(...i.split(",")):a.cssStyles.push(i)}}setClass(e,r){for(const n of e){const a=this.requirements.get(n)??this.elements.get(n);if(a)for(const i of r){a.classes.push(i);const s=this.classes.get(i)?.styles;s&&a.cssStyles.push(...s)}}}defineClass(e,r){for(const n of e){let a=this.classes.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.classes.set(n,a)),r&&r.forEach(function(i){if(/color/.exec(i)){const s=i.replace("fill","bgFill");a.textStyles.push(s)}a.styles.push(i)}),this.requirements.forEach(i=>{i.classes.includes(n)&&i.cssStyles.push(...r.flatMap(s=>s.split(",")))}),this.elements.forEach(i=>{i.classes.includes(n)&&i.cssStyles.push(...r.flatMap(s=>s.split(",")))})}}getClasses(){return this.classes}getData(){const e=Ye(),r=[],n=[];for(const a of this.requirements.values()){const i=a;i.id=a.name,i.cssStyles=a.cssStyles,i.cssClasses=a.classes.join(" "),i.shape="requirementBox",i.look=e.look,i.colorIndex=r.length,r.push(i)}for(const a of this.elements.values()){const i=a;i.shape="requirementBox",i.look=e.look,i.id=a.name,i.cssStyles=a.cssStyles,i.cssClasses=a.classes.join(" "),i.colorIndex=r.length,r.push(i)}for(const a of this.relations){let i=0;const s=a.type===this.Relationships.CONTAINS,o={id:`${a.src}-${a.dst}-${i}`,start:this.requirements.get(a.src)?.name??this.elements.get(a.src)?.name,end:this.requirements.get(a.dst)?.name??this.elements.get(a.dst)?.name,label:`<<${a.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),i++}return{nodes:r,edges:n,other:{},config:e,direction:this.getDirection()}}},E(P_,"RequirementDB"),P_),FNt=E(t=>{const e=xr(),{themeVariables:r,look:n}=e,{bkgColorArray:a,borderColorArray:i}=r;if(!i?.length)return"";let s="";for(let o=0;o0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(_e){return _e=this.conditionStack.length-1-Math.abs(_e||0),_e>=0?this.conditionStack[_e]:"INITIAL"},"topState"),pushState:E(function(_e){this.begin(_e)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(_e,ye,q,fe){switch(q){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 ye.yytext=ye.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 ke})();lt.lexer=ct;function it(){this.yy={}}return E(it,"Parser"),it.prototype=lt,lt.Parser=it,new it})();_z.parser=_z;var BNt=_z,P_,FNt=(P_=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=sa,this.getAccTitle=va,this.setAccDescription=ya,this.getAccDescription=_a,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getConfig=E(()=>Ye().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"]}),oe.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,oa()}setCssStyle(e,r){for(const n of e){const a=this.requirements.get(n)??this.elements.get(n);if(!r||!a)return;for(const i of r)i.includes(",")?a.cssStyles.push(...i.split(",")):a.cssStyles.push(i)}}setClass(e,r){for(const n of e){const a=this.requirements.get(n)??this.elements.get(n);if(a)for(const i of r){a.classes.push(i);const s=this.classes.get(i)?.styles;s&&a.cssStyles.push(...s)}}}defineClass(e,r){for(const n of e){let a=this.classes.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.classes.set(n,a)),r&&r.forEach(function(i){if(/color/.exec(i)){const s=i.replace("fill","bgFill");a.textStyles.push(s)}a.styles.push(i)}),this.requirements.forEach(i=>{i.classes.includes(n)&&i.cssStyles.push(...r.flatMap(s=>s.split(",")))}),this.elements.forEach(i=>{i.classes.includes(n)&&i.cssStyles.push(...r.flatMap(s=>s.split(",")))})}}getClasses(){return this.classes}getData(){const e=Ye(),r=[],n=[];for(const a of this.requirements.values()){const i=a;i.id=a.name,i.cssStyles=a.cssStyles,i.cssClasses=a.classes.join(" "),i.shape="requirementBox",i.look=e.look,i.colorIndex=r.length,r.push(i)}for(const a of this.elements.values()){const i=a;i.shape="requirementBox",i.look=e.look,i.id=a.name,i.cssStyles=a.cssStyles,i.cssClasses=a.classes.join(" "),i.colorIndex=r.length,r.push(i)}for(const a of this.relations){let i=0;const s=a.type===this.Relationships.CONTAINS,o={id:`${a.src}-${a.dst}-${i}`,start:this.requirements.get(a.src)?.name??this.elements.get(a.src)?.name,end:this.requirements.get(a.dst)?.name??this.elements.get(a.dst)?.name,label:`<<${a.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),i++}return{nodes:r,edges:n,other:{},config:e,direction:this.getDirection()}}},E(P_,"RequirementDB"),P_),$Nt=E(t=>{const e=xr(),{themeVariables:r,look:n}=e,{bkgColorArray:a,borderColorArray:i}=r;if(!i?.length)return"";let s="";for(let o=0;o{const e=xr(),{look:r,themeVariables:n}=e,{requirementEdgeLabelBackground:a}=n;return` - ${FNt(t)} + `;return s},"genColor"),zNt=E(t=>{const e=xr(),{look:r,themeVariables:n}=e,{requirementEdgeLabelBackground:a}=n;return` + ${$Nt(t)} marker { fill: ${t.relationColor}; stroke: ${t.relationColor}; @@ -5909,16 +5914,16 @@ Expecting `+Nt.join(", ")+", got '"+(this.terminals_[nt]||nt)+"'":Vr="Parse erro background-color: ${a??t.edgeLabelBackground}; } -`},"getStyles"),zNt=$Nt,wAe={};Rk(wAe,{draw:()=>UNt});var UNt=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing requirement diagram (unified)",e);const{securityLevel:a,state:i,layout:s,look:o}=Ye(),l=n.db.getData(),u=b2(e,a);l.type=n.type,l.layoutAlgorithm=ST(s),l.nodeSpacing=i?.nodeSpacing??50,l.rankSpacing=i?.rankSpacing??50,l.markers=o==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],l.diagramId=e,await n2(l,u);const d=8;Kr.insertTitle(u,"requirementDiagramTitleText",i?.titleTopMargin??25,n.db.getDiagramTitle()),gg(u,d,"requirementDiagram",i?.useMaxWidth??!0)},"draw"),GNt={parser:PNt,get db(){return new BNt},renderer:wAe,styles:zNt};const qNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:GNt},Symbol.toStringTag,{value:"Module"}));var bz=(function(){var t=E(function(Oe,Pe,Ie,Ze){for(Ie=Ie||{},Ze=Oe.length;Ze--;Ie[Oe[Ze]]=Pe);return Ie},"o"),e=[1,2],r=[1,3],n=[1,4],a=[2,4],i=[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],v=[1,28],y=[1,29],b=[1,30],_=[1,31],S=[1,32],x=[1,33],C=[1,34],T=[1,35],w=[1,36],R=[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],N=[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],U=[1,81],G=[1,82],K=[1,83],Y=[1,84],ee=[1,85],X=[1,86],le=[1,87],te=[1,88],ne=[1,89],ae=[1,90],re=[1,91],ge=[1,92],pe=[1,93],Be=[1,94],Le=[1,95],He=[1,96],Re=[1,97],xe=[1,98],$e=[1,99],Ce=[1,100],ut=[1,101],Ae=[1,102],je=[1,103],ot=[1,104],lt=[1,105],ct=[2,78],it=[4,5,17,51,53,54],ke=[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],Qe=[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],_e=[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],ye=[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],q=[5,52],fe=[70,71,72,73],j=[1,151],we={trace:E(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:E(function(Pe,Ie,Ze,ze,me,ie,Ve){var ve=ie.length-1;switch(me){case 3:return ze.apply(ie[ve]),ie[ve];case 4:case 10:this.$=[];break;case 5:case 11:ie[ve-1].push(ie[ve]),this.$=ie[ve-1];break;case 6:case 7:case 12:case 13:this.$=ie[ve];break;case 8:case 9:case 14:this.$=[];break;case 16:ie[ve].type="createParticipant",this.$=ie[ve];break;case 17:ie[ve-1].unshift({type:"boxStart",boxData:ze.parseBoxData(ie[ve-2])}),ie[ve-1].push({type:"boxEnd",boxText:ie[ve-2]}),this.$=ie[ve-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(ie[ve-2]),sequenceIndexStep:Number(ie[ve-1]),sequenceVisible:!0,signalType:ze.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(ie[ve-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:ze.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:ze.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:ze.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:ze.LINETYPE.ACTIVE_START,actor:ie[ve-1].actor};break;case 24:this.$={type:"activeEnd",signalType:ze.LINETYPE.ACTIVE_END,actor:ie[ve-1].actor};break;case 30:ze.setDiagramTitle(ie[ve].substring(6)),this.$=ie[ve].substring(6);break;case 31:ze.setDiagramTitle(ie[ve].substring(7)),this.$=ie[ve].substring(7);break;case 32:this.$=ie[ve].trim(),ze.setAccTitle(this.$);break;case 33:case 34:this.$=ie[ve].trim(),ze.setAccDescription(this.$);break;case 35:ie[ve-1].unshift({type:"loopStart",loopText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.LOOP_START}),ie[ve-1].push({type:"loopEnd",loopText:ie[ve-2],signalType:ze.LINETYPE.LOOP_END}),this.$=ie[ve-1];break;case 36:ie[ve-1].unshift({type:"rectStart",color:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.RECT_START}),ie[ve-1].push({type:"rectEnd",color:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.RECT_END}),this.$=ie[ve-1];break;case 37:ie[ve-1].unshift({type:"optStart",optText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.OPT_START}),ie[ve-1].push({type:"optEnd",optText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.OPT_END}),this.$=ie[ve-1];break;case 38:ie[ve-1].unshift({type:"altStart",altText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.ALT_START}),ie[ve-1].push({type:"altEnd",signalType:ze.LINETYPE.ALT_END}),this.$=ie[ve-1];break;case 39:ie[ve-1].unshift({type:"parStart",parText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.PAR_START}),ie[ve-1].push({type:"parEnd",signalType:ze.LINETYPE.PAR_END}),this.$=ie[ve-1];break;case 40:ie[ve-1].unshift({type:"parStart",parText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.PAR_OVER_START}),ie[ve-1].push({type:"parEnd",signalType:ze.LINETYPE.PAR_END}),this.$=ie[ve-1];break;case 41:ie[ve-1].unshift({type:"criticalStart",criticalText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.CRITICAL_START}),ie[ve-1].push({type:"criticalEnd",signalType:ze.LINETYPE.CRITICAL_END}),this.$=ie[ve-1];break;case 42:ie[ve-1].unshift({type:"breakStart",breakText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.BREAK_START}),ie[ve-1].push({type:"breakEnd",optText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.BREAK_END}),this.$=ie[ve-1];break;case 44:this.$=ie[ve-3].concat([{type:"option",optionText:ze.parseMessage(ie[ve-1]),signalType:ze.LINETYPE.CRITICAL_OPTION},ie[ve]]);break;case 46:this.$=ie[ve-3].concat([{type:"and",parText:ze.parseMessage(ie[ve-1]),signalType:ze.LINETYPE.PAR_AND},ie[ve]]);break;case 48:this.$=ie[ve-3].concat([{type:"else",altText:ze.parseMessage(ie[ve-1]),signalType:ze.LINETYPE.ALT_ELSE},ie[ve]]);break;case 49:ie[ve-3].draw="participant",ie[ve-3].type="addParticipant",ie[ve-3].description=ze.parseMessage(ie[ve-1]),this.$=ie[ve-3];break;case 50:ie[ve-1].draw="participant",ie[ve-1].type="addParticipant",this.$=ie[ve-1];break;case 51:ie[ve-3].draw="actor",ie[ve-3].type="addParticipant",ie[ve-3].description=ze.parseMessage(ie[ve-1]),this.$=ie[ve-3];break;case 52:case 57:ie[ve-1].draw="actor",ie[ve-1].type="addParticipant",this.$=ie[ve-1];break;case 53:ie[ve-1].type="destroyParticipant",this.$=ie[ve-1];break;case 54:ie[ve-3].draw="participant",ie[ve-3].type="addParticipant",ie[ve-3].description=ze.parseMessage(ie[ve-1]),this.$=ie[ve-3];break;case 55:ie[ve-1].draw="participant",ie[ve-1].type="addParticipant",this.$=ie[ve-1];break;case 56:ie[ve-3].draw="actor",ie[ve-3].type="addParticipant",ie[ve-3].description=ze.parseMessage(ie[ve-1]),this.$=ie[ve-3];break;case 58:this.$=[ie[ve-1],{type:"addNote",placement:ie[ve-2],actor:ie[ve-1].actor,text:ie[ve]}];break;case 59:ie[ve-2]=[].concat(ie[ve-1],ie[ve-1]).slice(0,2),ie[ve-2][0]=ie[ve-2][0].actor,ie[ve-2][1]=ie[ve-2][1].actor,this.$=[ie[ve-1],{type:"addNote",placement:ze.PLACEMENT.OVER,actor:ie[ve-2].slice(0,2),text:ie[ve]}];break;case 60:this.$=[ie[ve-1],{type:"addLinks",actor:ie[ve-1].actor,text:ie[ve]}];break;case 61:this.$=[ie[ve-1],{type:"addALink",actor:ie[ve-1].actor,text:ie[ve]}];break;case 62:this.$=[ie[ve-1],{type:"addProperties",actor:ie[ve-1].actor,text:ie[ve]}];break;case 63:this.$=[ie[ve-1],{type:"addDetails",actor:ie[ve-1].actor,text:ie[ve]}];break;case 66:this.$=[ie[ve-2],ie[ve]];break;case 67:this.$=ie[ve];break;case 68:this.$=ze.PLACEMENT.LEFTOF;break;case 69:this.$=ze.PLACEMENT.RIGHTOF;break;case 70:this.$=[ie[ve-4],ie[ve-1],{type:"addMessage",from:ie[ve-4].actor,to:ie[ve-1].actor,signalType:ie[ve-3],msg:ie[ve],activate:!0},{type:"activeStart",signalType:ze.LINETYPE.ACTIVE_START,actor:ie[ve-1].actor}];break;case 71:this.$=[ie[ve-4],ie[ve-1],{type:"addMessage",from:ie[ve-4].actor,to:ie[ve-1].actor,signalType:ie[ve-3],msg:ie[ve]},{type:"activeEnd",signalType:ze.LINETYPE.ACTIVE_END,actor:ie[ve-4].actor}];break;case 72:this.$=[ie[ve-4],ie[ve-1],{type:"addMessage",from:ie[ve-4].actor,to:ie[ve-1].actor,signalType:ie[ve-3],msg:ie[ve],activate:!0,centralConnection:ze.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:ze.LINETYPE.CENTRAL_CONNECTION,actor:ie[ve-1].actor}];break;case 73:this.$=[ie[ve-4],ie[ve-1],{type:"addMessage",from:ie[ve-4].actor,to:ie[ve-1].actor,signalType:ie[ve-2],msg:ie[ve],activate:!1,centralConnection:ze.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:ze.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:ie[ve-4].actor}];break;case 74:this.$=[ie[ve-5],ie[ve-1],{type:"addMessage",from:ie[ve-5].actor,to:ie[ve-1].actor,signalType:ie[ve-3],msg:ie[ve],activate:!0,centralConnection:ze.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:ze.LINETYPE.CENTRAL_CONNECTION,actor:ie[ve-1].actor},{type:"centralConnectionReverse",signalType:ze.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:ie[ve-5].actor}];break;case 75:this.$=[ie[ve-3],ie[ve-1],{type:"addMessage",from:ie[ve-3].actor,to:ie[ve-1].actor,signalType:ie[ve-2],msg:ie[ve]}];break;case 76:this.$={type:"addParticipant",actor:ie[ve-1],config:ie[ve]};break;case 77:this.$=ie[ve-1].trim();break;case 78:this.$={type:"addParticipant",actor:ie[ve]};break;case 79:this.$=ze.LINETYPE.SOLID_OPEN;break;case 80:this.$=ze.LINETYPE.DOTTED_OPEN;break;case 81:this.$=ze.LINETYPE.SOLID;break;case 82:this.$=ze.LINETYPE.SOLID_TOP;break;case 83:this.$=ze.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=ze.LINETYPE.STICK_TOP;break;case 85:this.$=ze.LINETYPE.STICK_BOTTOM;break;case 86:this.$=ze.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=ze.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=ze.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=ze.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=ze.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=ze.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=ze.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=ze.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=ze.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=ze.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=ze.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=ze.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=ze.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=ze.LINETYPE.DOTTED;break;case 100:this.$=ze.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=ze.LINETYPE.SOLID_CROSS;break;case 102:this.$=ze.LINETYPE.DOTTED_CROSS;break;case 103:this.$=ze.LINETYPE.SOLID_POINT;break;case 104:this.$=ze.LINETYPE.DOTTED_POINT;break;case 105:this.$=ze.parseMessage(ie[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],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},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:N},{23:56,73:N},{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:N},{69:78,72:[1,79],78:B,79:U,80:G,81:K,82:Y,83:ee,84:X,85:le,86:te,87:ne,88:ae,89:re,90:ge,91:pe,92:Be,93:Le,94:He,95:Re,96:xe,97:$e,98:Ce,99:ut,100:Ae,101:je,102:ot,103:lt},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:N},{23:111,73:N},{23:112,73:N},{23:113,73:N},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],ct),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(ke,a,{7:120}),t(ke,a,{7:121}),t(ke,a,{7:122}),t(Qe,a,{41:123,7:124}),t(_e,a,{43:125,7:126}),t(_e,a,{7:126,43:127}),t(ye,a,{46:128,7:129}),t(ke,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(q,ct,{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:N},{69:146,78:B,79:U,80:G,81:K,82:Y,83:ee,84:X,85:le,86:te,87:ne,88:ae,89:re,90:ge,91:pe,92:Be,93:Le,94:He,95:Re,96:xe,97:$e,98:Ce,99:ut,100:Ae,101:je,102:ot,103:lt},t(fe,[2,79]),t(fe,[2,80]),t(fe,[2,81]),t(fe,[2,82]),t(fe,[2,83]),t(fe,[2,84]),t(fe,[2,85]),t(fe,[2,86]),t(fe,[2,87]),t(fe,[2,88]),t(fe,[2,89]),t(fe,[2,90]),t(fe,[2,91]),t(fe,[2,92]),t(fe,[2,93]),t(fe,[2,94]),t(fe,[2,95]),t(fe,[2,96]),t(fe,[2,97]),t(fe,[2,98]),t(fe,[2,99]),t(fe,[2,100]),t(fe,[2,101]),t(fe,[2,102]),t(fe,[2,103]),t(fe,[2,104]),{23:147,73:N},{23:149,60:148,73:N},{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:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{17:[1,164]},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,50:[1,165],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{17:[1,166]},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,49:[1,167],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{17:[1,168]},{17:[1,169]},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,48:[1,170],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{16:[1,172]},t(P,[2,50]),{16:[1,173]},t(P,[2,55]),t(q,[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:N},{23:178,73:N},{23:179,73:N},{58:180,104:j},{23:181,72:[1,182],73:N},{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:N},{5:[2,58]},{5:[2,59]},{23:200,73:N},t(it,[2,12]),t(Qe,a,{7:124,41:201}),t(_e,a,{7:126,43:202}),t(ye,a,{7:129,46:203}),t(P,[2,49]),t(P,[2,54]),t(q,[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:E(function(Pe,Ie){if(Ie.recoverable)this.trace(Pe);else{var Ze=new Error(Pe);throw Ze.hash=Ie,Ze}},"parseError"),parse:E(function(Pe){var Ie=this,Ze=[0],ze=[],me=[null],ie=[],Ve=this.table,ve="",Tt=0,St=0,nt=2,dt=1,ft=ie.slice.call(arguments,1),gt=Object.create(this.lexer),se={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(se.yy[It]=this.yy[It]);gt.setInput(Pe,se.yy),se.yy.lexer=gt,se.yy.parser=this,typeof gt.yylloc>"u"&&(gt.yylloc={});var bt=gt.yylloc;ie.push(bt);var Et=gt.options&>.options.ranges;typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Nt(Zt){Ze.length=Ze.length-2*Zt,me.length=me.length-Zt,ie.length=ie.length-Zt}E(Nt,"popStack");function Vr(){var Zt;return Zt=ze.pop()||gt.lex()||dt,typeof Zt!="number"&&(Zt instanceof Array&&(ze=Zt,Zt=ze.pop()),Zt=Ie.symbols_[Zt]||Zt),Zt}E(Vr,"lex");for(var Ne,mt,_t,Ot,Qt={},br,Ct,Fe,pt;;){if(mt=Ze[Ze.length-1],this.defaultActions[mt]?_t=this.defaultActions[mt]:((Ne===null||typeof Ne>"u")&&(Ne=Vr()),_t=Ve[mt]&&Ve[mt][Ne]),typeof _t>"u"||!_t.length||!_t[0]){var Dt="";pt=[];for(br in Ve[mt])this.terminals_[br]&&br>nt&&pt.push("'"+this.terminals_[br]+"'");gt.showPosition?Dt="Parse error on line "+(Tt+1)+`: +`},"getStyles"),UNt=zNt,wAe={};Rk(wAe,{draw:()=>GNt});var GNt=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing requirement diagram (unified)",e);const{securityLevel:a,state:i,layout:s,look:o}=Ye(),l=n.db.getData(),u=b2(e,a);l.type=n.type,l.layoutAlgorithm=ST(s),l.nodeSpacing=i?.nodeSpacing??50,l.rankSpacing=i?.rankSpacing??50,l.markers=o==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],l.diagramId=e,await n2(l,u);const d=8;Kr.insertTitle(u,"requirementDiagramTitleText",i?.titleTopMargin??25,n.db.getDiagramTitle()),gg(u,d,"requirementDiagram",i?.useMaxWidth??!0)},"draw"),qNt={parser:BNt,get db(){return new FNt},renderer:wAe,styles:UNt};const YNt=Object.freeze(Object.defineProperty({__proto__:null,diagram:qNt},Symbol.toStringTag,{value:"Module"}));var bz=(function(){var t=E(function(Oe,Pe,Ie,Ze){for(Ie=Ie||{},Ze=Oe.length;Ze--;Ie[Oe[Ze]]=Pe);return Ie},"o"),e=[1,2],r=[1,3],n=[1,4],a=[2,4],i=[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],v=[1,28],y=[1,29],b=[1,30],_=[1,31],S=[1,32],x=[1,33],C=[1,34],T=[1,35],w=[1,36],R=[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],N=[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],U=[1,81],G=[1,82],K=[1,83],Y=[1,84],ee=[1,85],X=[1,86],le=[1,87],te=[1,88],ne=[1,89],ae=[1,90],re=[1,91],ge=[1,92],pe=[1,93],Be=[1,94],Le=[1,95],He=[1,96],Re=[1,97],xe=[1,98],$e=[1,99],Ce=[1,100],ut=[1,101],Ae=[1,102],je=[1,103],ot=[1,104],lt=[1,105],ct=[2,78],it=[4,5,17,51,53,54],ke=[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],Qe=[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],_e=[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],ye=[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],q=[5,52],fe=[70,71,72,73],j=[1,151],we={trace:E(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:E(function(Pe,Ie,Ze,ze,me,ie,Ve){var ve=ie.length-1;switch(me){case 3:return ze.apply(ie[ve]),ie[ve];case 4:case 10:this.$=[];break;case 5:case 11:ie[ve-1].push(ie[ve]),this.$=ie[ve-1];break;case 6:case 7:case 12:case 13:this.$=ie[ve];break;case 8:case 9:case 14:this.$=[];break;case 16:ie[ve].type="createParticipant",this.$=ie[ve];break;case 17:ie[ve-1].unshift({type:"boxStart",boxData:ze.parseBoxData(ie[ve-2])}),ie[ve-1].push({type:"boxEnd",boxText:ie[ve-2]}),this.$=ie[ve-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(ie[ve-2]),sequenceIndexStep:Number(ie[ve-1]),sequenceVisible:!0,signalType:ze.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(ie[ve-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:ze.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:ze.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:ze.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:ze.LINETYPE.ACTIVE_START,actor:ie[ve-1].actor};break;case 24:this.$={type:"activeEnd",signalType:ze.LINETYPE.ACTIVE_END,actor:ie[ve-1].actor};break;case 30:ze.setDiagramTitle(ie[ve].substring(6)),this.$=ie[ve].substring(6);break;case 31:ze.setDiagramTitle(ie[ve].substring(7)),this.$=ie[ve].substring(7);break;case 32:this.$=ie[ve].trim(),ze.setAccTitle(this.$);break;case 33:case 34:this.$=ie[ve].trim(),ze.setAccDescription(this.$);break;case 35:ie[ve-1].unshift({type:"loopStart",loopText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.LOOP_START}),ie[ve-1].push({type:"loopEnd",loopText:ie[ve-2],signalType:ze.LINETYPE.LOOP_END}),this.$=ie[ve-1];break;case 36:ie[ve-1].unshift({type:"rectStart",color:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.RECT_START}),ie[ve-1].push({type:"rectEnd",color:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.RECT_END}),this.$=ie[ve-1];break;case 37:ie[ve-1].unshift({type:"optStart",optText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.OPT_START}),ie[ve-1].push({type:"optEnd",optText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.OPT_END}),this.$=ie[ve-1];break;case 38:ie[ve-1].unshift({type:"altStart",altText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.ALT_START}),ie[ve-1].push({type:"altEnd",signalType:ze.LINETYPE.ALT_END}),this.$=ie[ve-1];break;case 39:ie[ve-1].unshift({type:"parStart",parText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.PAR_START}),ie[ve-1].push({type:"parEnd",signalType:ze.LINETYPE.PAR_END}),this.$=ie[ve-1];break;case 40:ie[ve-1].unshift({type:"parStart",parText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.PAR_OVER_START}),ie[ve-1].push({type:"parEnd",signalType:ze.LINETYPE.PAR_END}),this.$=ie[ve-1];break;case 41:ie[ve-1].unshift({type:"criticalStart",criticalText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.CRITICAL_START}),ie[ve-1].push({type:"criticalEnd",signalType:ze.LINETYPE.CRITICAL_END}),this.$=ie[ve-1];break;case 42:ie[ve-1].unshift({type:"breakStart",breakText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.BREAK_START}),ie[ve-1].push({type:"breakEnd",optText:ze.parseMessage(ie[ve-2]),signalType:ze.LINETYPE.BREAK_END}),this.$=ie[ve-1];break;case 44:this.$=ie[ve-3].concat([{type:"option",optionText:ze.parseMessage(ie[ve-1]),signalType:ze.LINETYPE.CRITICAL_OPTION},ie[ve]]);break;case 46:this.$=ie[ve-3].concat([{type:"and",parText:ze.parseMessage(ie[ve-1]),signalType:ze.LINETYPE.PAR_AND},ie[ve]]);break;case 48:this.$=ie[ve-3].concat([{type:"else",altText:ze.parseMessage(ie[ve-1]),signalType:ze.LINETYPE.ALT_ELSE},ie[ve]]);break;case 49:ie[ve-3].draw="participant",ie[ve-3].type="addParticipant",ie[ve-3].description=ze.parseMessage(ie[ve-1]),this.$=ie[ve-3];break;case 50:ie[ve-1].draw="participant",ie[ve-1].type="addParticipant",this.$=ie[ve-1];break;case 51:ie[ve-3].draw="actor",ie[ve-3].type="addParticipant",ie[ve-3].description=ze.parseMessage(ie[ve-1]),this.$=ie[ve-3];break;case 52:case 57:ie[ve-1].draw="actor",ie[ve-1].type="addParticipant",this.$=ie[ve-1];break;case 53:ie[ve-1].type="destroyParticipant",this.$=ie[ve-1];break;case 54:ie[ve-3].draw="participant",ie[ve-3].type="addParticipant",ie[ve-3].description=ze.parseMessage(ie[ve-1]),this.$=ie[ve-3];break;case 55:ie[ve-1].draw="participant",ie[ve-1].type="addParticipant",this.$=ie[ve-1];break;case 56:ie[ve-3].draw="actor",ie[ve-3].type="addParticipant",ie[ve-3].description=ze.parseMessage(ie[ve-1]),this.$=ie[ve-3];break;case 58:this.$=[ie[ve-1],{type:"addNote",placement:ie[ve-2],actor:ie[ve-1].actor,text:ie[ve]}];break;case 59:ie[ve-2]=[].concat(ie[ve-1],ie[ve-1]).slice(0,2),ie[ve-2][0]=ie[ve-2][0].actor,ie[ve-2][1]=ie[ve-2][1].actor,this.$=[ie[ve-1],{type:"addNote",placement:ze.PLACEMENT.OVER,actor:ie[ve-2].slice(0,2),text:ie[ve]}];break;case 60:this.$=[ie[ve-1],{type:"addLinks",actor:ie[ve-1].actor,text:ie[ve]}];break;case 61:this.$=[ie[ve-1],{type:"addALink",actor:ie[ve-1].actor,text:ie[ve]}];break;case 62:this.$=[ie[ve-1],{type:"addProperties",actor:ie[ve-1].actor,text:ie[ve]}];break;case 63:this.$=[ie[ve-1],{type:"addDetails",actor:ie[ve-1].actor,text:ie[ve]}];break;case 66:this.$=[ie[ve-2],ie[ve]];break;case 67:this.$=ie[ve];break;case 68:this.$=ze.PLACEMENT.LEFTOF;break;case 69:this.$=ze.PLACEMENT.RIGHTOF;break;case 70:this.$=[ie[ve-4],ie[ve-1],{type:"addMessage",from:ie[ve-4].actor,to:ie[ve-1].actor,signalType:ie[ve-3],msg:ie[ve],activate:!0},{type:"activeStart",signalType:ze.LINETYPE.ACTIVE_START,actor:ie[ve-1].actor}];break;case 71:this.$=[ie[ve-4],ie[ve-1],{type:"addMessage",from:ie[ve-4].actor,to:ie[ve-1].actor,signalType:ie[ve-3],msg:ie[ve]},{type:"activeEnd",signalType:ze.LINETYPE.ACTIVE_END,actor:ie[ve-4].actor}];break;case 72:this.$=[ie[ve-4],ie[ve-1],{type:"addMessage",from:ie[ve-4].actor,to:ie[ve-1].actor,signalType:ie[ve-3],msg:ie[ve],activate:!0,centralConnection:ze.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:ze.LINETYPE.CENTRAL_CONNECTION,actor:ie[ve-1].actor}];break;case 73:this.$=[ie[ve-4],ie[ve-1],{type:"addMessage",from:ie[ve-4].actor,to:ie[ve-1].actor,signalType:ie[ve-2],msg:ie[ve],activate:!1,centralConnection:ze.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:ze.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:ie[ve-4].actor}];break;case 74:this.$=[ie[ve-5],ie[ve-1],{type:"addMessage",from:ie[ve-5].actor,to:ie[ve-1].actor,signalType:ie[ve-3],msg:ie[ve],activate:!0,centralConnection:ze.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:ze.LINETYPE.CENTRAL_CONNECTION,actor:ie[ve-1].actor},{type:"centralConnectionReverse",signalType:ze.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:ie[ve-5].actor}];break;case 75:this.$=[ie[ve-3],ie[ve-1],{type:"addMessage",from:ie[ve-3].actor,to:ie[ve-1].actor,signalType:ie[ve-2],msg:ie[ve]}];break;case 76:this.$={type:"addParticipant",actor:ie[ve-1],config:ie[ve]};break;case 77:this.$=ie[ve-1].trim();break;case 78:this.$={type:"addParticipant",actor:ie[ve]};break;case 79:this.$=ze.LINETYPE.SOLID_OPEN;break;case 80:this.$=ze.LINETYPE.DOTTED_OPEN;break;case 81:this.$=ze.LINETYPE.SOLID;break;case 82:this.$=ze.LINETYPE.SOLID_TOP;break;case 83:this.$=ze.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=ze.LINETYPE.STICK_TOP;break;case 85:this.$=ze.LINETYPE.STICK_BOTTOM;break;case 86:this.$=ze.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=ze.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=ze.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=ze.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=ze.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=ze.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=ze.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=ze.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=ze.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=ze.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=ze.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=ze.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=ze.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=ze.LINETYPE.DOTTED;break;case 100:this.$=ze.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=ze.LINETYPE.SOLID_CROSS;break;case 102:this.$=ze.LINETYPE.DOTTED_CROSS;break;case 103:this.$=ze.LINETYPE.SOLID_POINT;break;case 104:this.$=ze.LINETYPE.DOTTED_POINT;break;case 105:this.$=ze.parseMessage(ie[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],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},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:N},{23:56,73:N},{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:N},{69:78,72:[1,79],78:B,79:U,80:G,81:K,82:Y,83:ee,84:X,85:le,86:te,87:ne,88:ae,89:re,90:ge,91:pe,92:Be,93:Le,94:He,95:Re,96:xe,97:$e,98:Ce,99:ut,100:Ae,101:je,102:ot,103:lt},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:N},{23:111,73:N},{23:112,73:N},{23:113,73:N},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],ct),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(ke,a,{7:120}),t(ke,a,{7:121}),t(ke,a,{7:122}),t(Qe,a,{41:123,7:124}),t(_e,a,{43:125,7:126}),t(_e,a,{7:126,43:127}),t(ye,a,{46:128,7:129}),t(ke,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(q,ct,{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:N},{69:146,78:B,79:U,80:G,81:K,82:Y,83:ee,84:X,85:le,86:te,87:ne,88:ae,89:re,90:ge,91:pe,92:Be,93:Le,94:He,95:Re,96:xe,97:$e,98:Ce,99:ut,100:Ae,101:je,102:ot,103:lt},t(fe,[2,79]),t(fe,[2,80]),t(fe,[2,81]),t(fe,[2,82]),t(fe,[2,83]),t(fe,[2,84]),t(fe,[2,85]),t(fe,[2,86]),t(fe,[2,87]),t(fe,[2,88]),t(fe,[2,89]),t(fe,[2,90]),t(fe,[2,91]),t(fe,[2,92]),t(fe,[2,93]),t(fe,[2,94]),t(fe,[2,95]),t(fe,[2,96]),t(fe,[2,97]),t(fe,[2,98]),t(fe,[2,99]),t(fe,[2,100]),t(fe,[2,101]),t(fe,[2,102]),t(fe,[2,103]),t(fe,[2,104]),{23:147,73:N},{23:149,60:148,73:N},{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:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{17:[1,164]},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,50:[1,165],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{17:[1,166]},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,49:[1,167],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{17:[1,168]},{17:[1,169]},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,48:[1,170],51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{4:i,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:v,36:y,37:b,38:_,39:S,40:x,42:C,44:T,45:w,47:R,51:O,53:M,54:$,56:F,61:A,62:I,63:D,64:L,73:N},{16:[1,172]},t(P,[2,50]),{16:[1,173]},t(P,[2,55]),t(q,[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:N},{23:178,73:N},{23:179,73:N},{58:180,104:j},{23:181,72:[1,182],73:N},{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:N},{5:[2,58]},{5:[2,59]},{23:200,73:N},t(it,[2,12]),t(Qe,a,{7:124,41:201}),t(_e,a,{7:126,43:202}),t(ye,a,{7:129,46:203}),t(P,[2,49]),t(P,[2,54]),t(q,[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:E(function(Pe,Ie){if(Ie.recoverable)this.trace(Pe);else{var Ze=new Error(Pe);throw Ze.hash=Ie,Ze}},"parseError"),parse:E(function(Pe){var Ie=this,Ze=[0],ze=[],me=[null],ie=[],Ve=this.table,ve="",Tt=0,St=0,nt=2,dt=1,ft=ie.slice.call(arguments,1),gt=Object.create(this.lexer),se={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(se.yy[It]=this.yy[It]);gt.setInput(Pe,se.yy),se.yy.lexer=gt,se.yy.parser=this,typeof gt.yylloc>"u"&&(gt.yylloc={});var bt=gt.yylloc;ie.push(bt);var Et=gt.options&>.options.ranges;typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Nt(Zt){Ze.length=Ze.length-2*Zt,me.length=me.length-Zt,ie.length=ie.length-Zt}E(Nt,"popStack");function Vr(){var Zt;return Zt=ze.pop()||gt.lex()||dt,typeof Zt!="number"&&(Zt instanceof Array&&(ze=Zt,Zt=ze.pop()),Zt=Ie.symbols_[Zt]||Zt),Zt}E(Vr,"lex");for(var Ne,mt,_t,Ot,Qt={},br,Ct,Fe,pt;;){if(mt=Ze[Ze.length-1],this.defaultActions[mt]?_t=this.defaultActions[mt]:((Ne===null||typeof Ne>"u")&&(Ne=Vr()),_t=Ve[mt]&&Ve[mt][Ne]),typeof _t>"u"||!_t.length||!_t[0]){var Dt="";pt=[];for(br in Ve[mt])this.terminals_[br]&&br>nt&&pt.push("'"+this.terminals_[br]+"'");gt.showPosition?Dt="Parse error on line "+(Tt+1)+`: `+gt.showPosition()+` Expecting `+pt.join(", ")+", got '"+(this.terminals_[Ne]||Ne)+"'":Dt="Parse error on line "+(Tt+1)+": Unexpected "+(Ne==dt?"end of input":"'"+(this.terminals_[Ne]||Ne)+"'"),this.parseError(Dt,{text:gt.match,token:this.terminals_[Ne]||Ne,line:gt.yylineno,loc:bt,expected:pt})}if(_t[0]instanceof Array&&_t.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+Ne);switch(_t[0]){case 1:Ze.push(Ne),me.push(gt.yytext),ie.push(gt.yylloc),Ze.push(_t[1]),Ne=null,St=gt.yyleng,ve=gt.yytext,Tt=gt.yylineno,bt=gt.yylloc;break;case 2:if(Ct=this.productions_[_t[1]][1],Qt.$=me[me.length-Ct],Qt._$={first_line:ie[ie.length-(Ct||1)].first_line,last_line:ie[ie.length-1].last_line,first_column:ie[ie.length-(Ct||1)].first_column,last_column:ie[ie.length-1].last_column},Et&&(Qt._$.range=[ie[ie.length-(Ct||1)].range[0],ie[ie.length-1].range[1]]),Ot=this.performAction.apply(Qt,[ve,St,Tt,se.yy,_t[1],me,ie].concat(ft)),typeof Ot<"u")return Ot;Ct&&(Ze=Ze.slice(0,-1*Ct*2),me=me.slice(0,-1*Ct),ie=ie.slice(0,-1*Ct)),Ze.push(this.productions_[_t[1]][0]),me.push(Qt.$),ie.push(Qt._$),Fe=Ve[Ze[Ze.length-2]][Ze[Ze.length-1]],Ze.push(Fe);break;case 3:return!0}}return!0},"parse")},Te=(function(){var Oe={EOF:1,parseError:E(function(Ie,Ze){if(this.yy.parser)this.yy.parser.parseError(Ie,Ze);else throw new Error(Ie)},"parseError"),setInput:E(function(Pe,Ie){return this.yy=Ie||this.yy||{},this._input=Pe,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:E(function(){var Pe=this._input[0];this.yytext+=Pe,this.yyleng++,this.offset++,this.match+=Pe,this.matched+=Pe;var Ie=Pe.match(/(?:\r\n?|\n).*/g);return Ie?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Pe},"input"),unput:E(function(Pe){var Ie=Pe.length,Ze=Pe.split(/(?:\r\n?|\n)/g);this._input=Pe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ie),this.offset-=Ie;var ze=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),Ze.length-1&&(this.yylineno-=Ze.length-1);var me=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:Ze?(Ze.length===ze.length?this.yylloc.first_column:0)+ze[ze.length-Ze.length].length-Ze[0].length:this.yylloc.first_column-Ie},this.options.ranges&&(this.yylloc.range=[me[0],me[0]+this.yyleng-Ie]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(Pe){this.unput(this.match.slice(Pe))},"less"),pastInput:E(function(){var Pe=this.matched.substr(0,this.matched.length-this.match.length);return(Pe.length>20?"...":"")+Pe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:E(function(){var Pe=this.match;return Pe.length<20&&(Pe+=this._input.substr(0,20-Pe.length)),(Pe.substr(0,20)+(Pe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:E(function(){var Pe=this.pastInput(),Ie=new Array(Pe.length+1).join("-");return Pe+this.upcomingInput()+` `+Ie+"^"},"showPosition"),test_match:E(function(Pe,Ie){var Ze,ze,me;if(this.options.backtrack_lexer&&(me={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&&(me.yylloc.range=this.yylloc.range.slice(0))),ze=Pe[0].match(/(?:\r\n?|\n).*/g),ze&&(this.yylineno+=ze.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ze?ze[ze.length-1].length-ze[ze.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Pe[0].length},this.yytext+=Pe[0],this.match+=Pe[0],this.matches=Pe,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(Pe[0].length),this.matched+=Pe[0],Ze=this.performAction.call(this,this.yy,this,Ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ze)return Ze;if(this._backtrack){for(var ie in me)this[ie]=me[ie];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Pe,Ie,Ze,ze;this._more||(this.yytext="",this.match="");for(var me=this._currentRules(),ie=0;ieIe[0].length)){if(Ie=Ze,ze=ie,this.options.backtrack_lexer){if(Pe=this.test_match(Ze,me[ie]),Pe!==!1)return Pe;if(this._backtrack){Ie=!1;continue}else return!1}else if(!this.options.flex)break}return Ie?(Pe=this.test_match(Ie,me[ze]),Pe!==!1?Pe:!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:E(function(){var Ie=this.next();return Ie||this.lex()},"lex"),begin:E(function(Ie){this.conditionStack.push(Ie)},"begin"),popState:E(function(){var Ie=this.conditionStack.length-1;return Ie>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},"topState"),pushState:E(function(Ie){this.begin(Ie)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(Ie,Ze,ze,me){switch(ze){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 Ze.yytext=Ze.yytext.trim(),73;case 12:return Ze.yytext=Ze.yytext.trim(),this.begin("ALIAS"),73;case 13:return Ze.yytext=Ze.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return Ze.yytext=Ze.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 Ze.yytext=Ze.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 Oe})();we.lexer=Te;function rt(){this.yy={}}return E(rt,"Parser"),rt.prototype=we,we.Parser=rt,new rt})();bz.parser=bz;var YNt=bz,HNt={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},VNt={FILLED:0,OPEN:1},WNt={LEFTOF:0,RIGHTOF:1,OVER:2},q3={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},B_,KNt=(B_=class{constructor(){this.state=new PY(()=>({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=sa,this.setAccDescription=ya,this.setDiagramTitle=pa,this.getAccTitle=va,this.getAccDescription=_a,this.getDiagramTitle=la,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(Ye().wrap),this.LINETYPE=HNt,this.ARROWTYPE=VNt,this.PLACEMENT=WNt}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,a,i){let s=this.state.records.currentBox,o;if(i!==void 0){let u;i.includes(` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var Ie=this.next();return Ie||this.lex()},"lex"),begin:E(function(Ie){this.conditionStack.push(Ie)},"begin"),popState:E(function(){var Ie=this.conditionStack.length-1;return Ie>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},"topState"),pushState:E(function(Ie){this.begin(Ie)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(Ie,Ze,ze,me){switch(ze){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 Ze.yytext=Ze.yytext.trim(),73;case 12:return Ze.yytext=Ze.yytext.trim(),this.begin("ALIAS"),73;case 13:return Ze.yytext=Ze.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return Ze.yytext=Ze.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 Ze.yytext=Ze.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 Oe})();we.lexer=Te;function rt(){this.yy={}}return E(rt,"Parser"),rt.prototype=we,we.Parser=rt,new rt})();bz.parser=bz;var HNt=bz,VNt={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},WNt={FILLED:0,OPEN:1},KNt={LEFTOF:0,RIGHTOF:1,OVER:2},q3={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},B_,XNt=(B_=class{constructor(){this.state=new PY(()=>({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=sa,this.setAccDescription=ya,this.setDiagramTitle=pa,this.getAccTitle=va,this.getAccDescription=_a,this.getDiagramTitle=la,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(Ye().wrap),this.LINETYPE=VNt,this.ARROWTYPE=WNt,this.PLACEMENT=KNt}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,a,i){let s=this.state.records.currentBox,o;if(i!==void 0){let u;i.includes(` `)?u=i+` `:u=`{ `+i+` -}`,o=Hk(u,{schema:Yk})}a=o?.type??a,o?.alias&&(!n||n.text===r)&&(n={text:o.alias,wrap:n?.wrap,type:a});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:a}),(a==null||n.text==null)&&(n={text:r,type:a}),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:a??"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:a,activate:i,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:Ye().sequence?.wrap??!1}clear(){this.state.reset(),oa()}parseMessage(e){const r=e.trim(),{wrap:n,cleanedText:a}=this.extractWrap(r),i={text:a,wrap:n};return oe.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){const r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e);let n=r?.[1]?r[1].trim():"transparent",a=r?.[2]?r[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",n)||(n="transparent",a=e.trim());else{const o=new Option().style;o.color=n,o.color!==n&&(n="transparent",a=e.trim())}const{wrap:i,cleanedText:s}=this.extractWrap(a);return{text:s?dn(s,Ye()):void 0,color:n,wrap:i}}addNote(e,r,n){const a={actor:e,placement:r,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[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 a=dn(r.text,Ye());a=a.replace(/=/g,"="),a=a.replace(/&/g,"&");const i=JSON.parse(a);this.insertLinks(n,i)}catch(a){oe.error("error while parsing actor link text",a)}}addALink(e,r){const n=this.getActor(e);try{const a={};let i=dn(r.text,Ye());const s=i.indexOf("@");i=i.replace(/=/g,"="),i=i.replace(/&/g,"&");const o=i.slice(0,s-1).trim(),l=i.slice(s+1).trim();a[o]=l,this.insertLinks(n,a)}catch(a){oe.error("error while parsing actor link text",a)}}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 a=dn(r.text,Ye()),i=JSON.parse(a);this.insertProperties(n,i)}catch(a){oe.error("error while parsing actor properties text",a)}}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),a=document.getElementById(r.text);try{const i=a.innerHTML,s=JSON.parse(i);s.properties&&this.insertProperties(n,s.properties),s.links&&this.insertLinks(n,s.links)}catch(i){oe.error("error while parsing actor details text",i)}}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":sa(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 Ye().sequence}},E(B_,"SequenceDB"),B_),XNt=E(t=>{const e=t.dropShadow??"none",{look:r}=Ye();return`.actor { +}`,o=Hk(u,{schema:Yk})}a=o?.type??a,o?.alias&&(!n||n.text===r)&&(n={text:o.alias,wrap:n?.wrap,type:a});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:a}),(a==null||n.text==null)&&(n={text:r,type:a}),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:a??"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:a,activate:i,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:Ye().sequence?.wrap??!1}clear(){this.state.reset(),oa()}parseMessage(e){const r=e.trim(),{wrap:n,cleanedText:a}=this.extractWrap(r),i={text:a,wrap:n};return oe.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){const r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e);let n=r?.[1]?r[1].trim():"transparent",a=r?.[2]?r[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",n)||(n="transparent",a=e.trim());else{const o=new Option().style;o.color=n,o.color!==n&&(n="transparent",a=e.trim())}const{wrap:i,cleanedText:s}=this.extractWrap(a);return{text:s?dn(s,Ye()):void 0,color:n,wrap:i}}addNote(e,r,n){const a={actor:e,placement:r,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[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 a=dn(r.text,Ye());a=a.replace(/=/g,"="),a=a.replace(/&/g,"&");const i=JSON.parse(a);this.insertLinks(n,i)}catch(a){oe.error("error while parsing actor link text",a)}}addALink(e,r){const n=this.getActor(e);try{const a={};let i=dn(r.text,Ye());const s=i.indexOf("@");i=i.replace(/=/g,"="),i=i.replace(/&/g,"&");const o=i.slice(0,s-1).trim(),l=i.slice(s+1).trim();a[o]=l,this.insertLinks(n,a)}catch(a){oe.error("error while parsing actor link text",a)}}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 a=dn(r.text,Ye()),i=JSON.parse(a);this.insertProperties(n,i)}catch(a){oe.error("error while parsing actor properties text",a)}}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),a=document.getElementById(r.text);try{const i=a.innerHTML,s=JSON.parse(i);s.properties&&this.insertProperties(n,s.properties),s.links&&this.insertLinks(n,s.links)}catch(i){oe.error("error while parsing actor details text",i)}}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":sa(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 Ye().sequence}},E(B_,"SequenceDB"),B_),jNt=E(t=>{const e=t.dropShadow??"none",{look:r}=Ye();return`.actor { stroke: ${t.actorBorder}; fill: ${t.actorBkg}; stroke-width: ${t.strokeWidth??1}; @@ -6057,25 +6062,25 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[Ne]||Ne)+"'":Dt="Parse erro filter: ${e}; stroke: ${t.nodeBorder}; } -`},"getStyles"),jNt=XNt,mp=36,Jh="actor-top",ef="actor-bottom",S8="actor-box",jp="actor-man",dd=new Set(["redux-color","redux-dark-color"]),Q4=E(function(t,e){const r=sA(t,e);return xr().look==="neo"&&r.attr("data-look","neo"),r},"drawRect"),QNt=E(function(t,e,r,n,a){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const i=e.links,s=e.actorCnt,o=e.rectData;var l="none";a&&(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),i!=null){var p=20;for(let v in i){var g=u.append("a"),m=ng.sanitizeUrl(i[v]);g.attr("xlink:href",m),g.attr("target","_blank"),bIt(n)(v,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"),T8=E(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),jw=E(async function(t,e,r=null){let n=t.append("foreignObject");const a=await Dk(e.text,xr()),s=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(a).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"),zb=E(function(t,e){let r=0,n=0;const a=e.text.split(qt.lineBreakRegex),[i,s]=X0(e.fontSize);let o=[],l=0,u=E(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":u=E(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":u=E(()=>Math.round(e.y+(r+n+e.textMargin)/2),"yfunc");break;case"bottom":case"end":u=E(()=>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 a.entries()){e.textMargin!==void 0&&e.textMargin===0&&i!==void 0&&(l=d*i);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||_pe;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"),kAe=E(function(t,e){function r(a,i,s,o,l){return a+","+i+" "+(a+s)+","+i+" "+(a+s)+","+(i+o-l)+" "+(a+s-l*1.2)+","+(i+o)+" "+a+","+(i+o)}E(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,zb(t,e),n},"drawLabel"),un=-1,AAe=E((t,e,r,n)=>{t.select&&r.forEach(a=>{const i=e.get(a),s=t.select("#actor"+i.actorCnt);!n.mirrorActors&&i.stopy?s.attr("y2",i.stopy+i.height/2):n.mirrorActors&&s.attr("y2",i.stopy)})},"fixLifeLineHeights"),ZNt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(un++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",T8(`actor${un}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+un).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=un,e.links!=null&&g.attr("id","root-"+un),l==="neo"&&g.attr("data-look","neo"));const m=Zo();var v="actor";e.properties?.class?v=e.properties.class:m.fill="#eaeaea",n?v+=` ${ef}`:v+=` ${Jh}`,m.x=e.x,m.y=i,m.width=e.width,m.height=e.height,m.class=v,m.rx=3,m.ry=3,m.name=e.name,l==="neo"&&(m.rx=6,m.ry=6);const y=Q4(g,m),b=a.get(e.name)??0;if(dd.has(u)&&(y.style("stroke",f[b%f.length]),y.style("fill",h[b%f.length])),l==="neo"&&y.attr("filter","url(#drop-shadow)"),e.rectData=m,e.properties?.icon){const S=e.properties.icon.trim();S.charAt(0)==="@"?RY(g,m.x+m.width-20,m.y+10,S.substr(1)):AY(g,m.x+m.width-20,m.y+10,S)}n||(g.attr("data-et","participant"),g.attr("data-type","participant"),g.attr("data-id",e.name)),hd(r,Xa(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${S8}`},r);let _=e.height;if(y.node){const S=y.node().getBBox();e.height=S.height,_=S.height}return _},"drawActorTypeParticipant"),JNt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(un++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",T8(`actor${un}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+un).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=un,e.links!=null&&g.attr("id","root-"+un),l==="neo"&&g.attr("data-look","neo"));const m=Zo();var v="actor";e.properties?.class?v=e.properties.class:m.fill="#eaeaea",n?v+=` ${ef}`:v+=` ${Jh}`,m.x=e.x,m.y=i,m.width=e.width,m.height=e.height,m.class=v,m.name=e.name;const y=6,b={...m,x:m.x+-y,y:m.y+ +y,class:"actor"},_=Q4(g,m),S=Q4(g,b);e.rectData=m,l==="neo"&&g.attr("filter","url(#drop-shadow)");const x=a.get(e.name)??0;if(dd.has(u)&&(_.style("stroke",f[x%f.length]),_.style("fill",h[x%f.length]),S.style("stroke",f[x%f.length]),S.style("fill",h[x%f.length])),e.properties?.icon){const T=e.properties.icon.trim();T.charAt(0)==="@"?RY(g,m.x+m.width-20,m.y+10,T.substr(1)):AY(g,m.x+m.width-20,m.y+10,T)}hd(r,Xa(e.description))(e.description,g,m.x-y,m.y+y,m.width,m.height,{class:`actor ${S8}`},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"),eIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();let g=p;n||(un++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",T8(`actor${un}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+un).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=un,e.links!=null&&g.attr("id","root-"+un),l==="neo"&&g.attr("data-look","neo"));const m=Zo();let v="actor";e.properties?.class?v=e.properties.class:m.fill="#eaeaea",n?v+=` ${ef}`:v+=` ${Jh}`,g.attr("class",v),m.x=e.x,m.y=i,m.width=e.width,m.height=e.height,m.name=e.name;const y=m.height/2,b=y/(2.5+m.height/50),_=g.append("g"),S=g.append("g"),x=`M ${m.x},${m.y+y} +`},"getStyles"),QNt=jNt,mp=36,Jh="actor-top",ef="actor-bottom",S8="actor-box",jp="actor-man",dd=new Set(["redux-color","redux-dark-color"]),Q4=E(function(t,e){const r=sA(t,e);return xr().look==="neo"&&r.attr("data-look","neo"),r},"drawRect"),ZNt=E(function(t,e,r,n,a){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const i=e.links,s=e.actorCnt,o=e.rectData;var l="none";a&&(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),i!=null){var p=20;for(let v in i){var g=u.append("a"),m=ng.sanitizeUrl(i[v]);g.attr("xlink:href",m),g.attr("target","_blank"),EIt(n)(v,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"),T8=E(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),jw=E(async function(t,e,r=null){let n=t.append("foreignObject");const a=await Dk(e.text,xr()),s=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(a).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"),zb=E(function(t,e){let r=0,n=0;const a=e.text.split(qt.lineBreakRegex),[i,s]=X0(e.fontSize);let o=[],l=0,u=E(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":u=E(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":u=E(()=>Math.round(e.y+(r+n+e.textMargin)/2),"yfunc");break;case"bottom":case"end":u=E(()=>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 a.entries()){e.textMargin!==void 0&&e.textMargin===0&&i!==void 0&&(l=d*i);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||_pe;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"),kAe=E(function(t,e){function r(a,i,s,o,l){return a+","+i+" "+(a+s)+","+i+" "+(a+s)+","+(i+o-l)+" "+(a+s-l*1.2)+","+(i+o)+" "+a+","+(i+o)}E(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,zb(t,e),n},"drawLabel"),un=-1,AAe=E((t,e,r,n)=>{t.select&&r.forEach(a=>{const i=e.get(a),s=t.select("#actor"+i.actorCnt);!n.mirrorActors&&i.stopy?s.attr("y2",i.stopy+i.height/2):n.mirrorActors&&s.attr("y2",i.stopy)})},"fixLifeLineHeights"),JNt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(un++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",T8(`actor${un}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+un).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=un,e.links!=null&&g.attr("id","root-"+un),l==="neo"&&g.attr("data-look","neo"));const m=Zo();var v="actor";e.properties?.class?v=e.properties.class:m.fill="#eaeaea",n?v+=` ${ef}`:v+=` ${Jh}`,m.x=e.x,m.y=i,m.width=e.width,m.height=e.height,m.class=v,m.rx=3,m.ry=3,m.name=e.name,l==="neo"&&(m.rx=6,m.ry=6);const y=Q4(g,m),b=a.get(e.name)??0;if(dd.has(u)&&(y.style("stroke",f[b%f.length]),y.style("fill",h[b%f.length])),l==="neo"&&y.attr("filter","url(#drop-shadow)"),e.rectData=m,e.properties?.icon){const S=e.properties.icon.trim();S.charAt(0)==="@"?RY(g,m.x+m.width-20,m.y+10,S.substr(1)):AY(g,m.x+m.width-20,m.y+10,S)}n||(g.attr("data-et","participant"),g.attr("data-type","participant"),g.attr("data-id",e.name)),hd(r,Xa(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${S8}`},r);let _=e.height;if(y.node){const S=y.node().getBBox();e.height=S.height,_=S.height}return _},"drawActorTypeParticipant"),eIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();var g=p;n||(un++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",T8(`actor${un}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+un).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=un,e.links!=null&&g.attr("id","root-"+un),l==="neo"&&g.attr("data-look","neo"));const m=Zo();var v="actor";e.properties?.class?v=e.properties.class:m.fill="#eaeaea",n?v+=` ${ef}`:v+=` ${Jh}`,m.x=e.x,m.y=i,m.width=e.width,m.height=e.height,m.class=v,m.name=e.name;const y=6,b={...m,x:m.x+-y,y:m.y+ +y,class:"actor"},_=Q4(g,m),S=Q4(g,b);e.rectData=m,l==="neo"&&g.attr("filter","url(#drop-shadow)");const x=a.get(e.name)??0;if(dd.has(u)&&(_.style("stroke",f[x%f.length]),_.style("fill",h[x%f.length]),S.style("stroke",f[x%f.length]),S.style("fill",h[x%f.length])),e.properties?.icon){const T=e.properties.icon.trim();T.charAt(0)==="@"?RY(g,m.x+m.width-20,m.y+10,T.substr(1)):AY(g,m.x+m.width-20,m.y+10,T)}hd(r,Xa(e.description))(e.description,g,m.x-y,m.y+y,m.width,m.height,{class:`actor ${S8}`},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"),tIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+e.height,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f}=d,p=t.append("g").lower();let g=p;n||(un++,Object.keys(e.links||{}).length&&!r.forceMenus&&g.attr("onclick",T8(`actor${un}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+un).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=un,e.links!=null&&g.attr("id","root-"+un),l==="neo"&&g.attr("data-look","neo"));const m=Zo();let v="actor";e.properties?.class?v=e.properties.class:m.fill="#eaeaea",n?v+=` ${ef}`:v+=` ${Jh}`,g.attr("class",v),m.x=e.x,m.y=i,m.width=e.width,m.height=e.height,m.name=e.name;const y=m.height/2,b=y/(2.5+m.height/50),_=g.append("g"),S=g.append("g"),x=`M ${m.x},${m.y+y} a ${b},${y} 0 0 0 0,${m.height} h ${m.width-2*b} a ${b},${y} 0 0 0 0,-${m.height} Z `;_.append("path").attr("d",x),S.append("path").attr("d",`M ${m.x},${m.y+y} - a ${b},${y} 0 0 0 0,${m.height}`),_.attr("transform",`translate(${b}, ${-(m.height/2)})`),S.attr("transform",`translate(${m.width-b}, ${-m.height/2})`),e.rectData=m,l==="neo"&&_.attr("filter","url(#drop-shadow)");const C=a.get(e.name)??0;if(dd.has(u)&&(_.style("stroke",f[C%f.length]),_.style("fill",h[C%f.length]),S.style("stroke",f[C%f.length]),S.style("fill",h[C%f.length])),e.properties?.icon){const R=e.properties.icon.trim(),O=m.x+m.width-20,M=m.y+10;R.charAt(0)==="@"?RY(g,O,M,R.substr(1)):AY(g,O,M,R)}hd(r,Xa(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${S8}`},r);let T=e.height;const w=_.select("path:last-child");if(w.node()){const R=w.node().getBBox();e.height=R.height,T=R.height}return n||(g.attr("data-et","participant"),g.attr("data-type","queue"),g.attr("data-id",e.name)),T},"drawActorTypeQueue"),tIt=E(function(t,e,r,n,a,i){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,v=t.append("g").lower();n||(un++,v.append("line").attr("id","actor"+un).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=un);const y=t.append("g");let b=jp;n?b+=` ${ef}`:b+=` ${Jh}`,y.attr("class",b),y.attr("name",e.name);const _=Zo();_.x=e.x,_.y=s,_.fill="#eaeaea",_.width=e.width,_.height=e.height,_.class="actor";const S=e.x+e.width/2,x=s+32,C=22;y.append("defs").append("marker").attr("id",a+"-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"),y.append("circle").attr("cx",S).attr("cy",x).attr("r",C).attr("filter",`${u==="neo"?"url(#drop-shadow)":""}`),y.append("line").attr("marker-end","url(#"+a+"-filled-head-control)").attr("transform",`translate(${S}, ${x-C})`);const T=i.get(e.name)??0;dd.has(d)?(y.style("stroke",p[T%p.length]),y.style("fill",f[T%p.length])):(y.style("stroke",g),y.style("fill",m));const w=y.node().getBBox();return e.height=w.height+2*(r?.sequence?.labelBoxHeight??0),hd(r,Xa(e.description))(e.description,y,_.x,_.y+C+(n?5:12),_.width,_.height,{class:`actor ${jp}`},r),n||(y.attr("data-et","participant"),y.attr("data-type","control"),y.attr("data-id",e.name)),e.height},"drawActorTypeControl"),rIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+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+=` ${ef}`:m+=` ${Jh}`,g.attr("class",m),g.attr("name",e.name);const v=Zo();v.x=e.x,v.y=i,v.fill="#eaeaea",v.width=e.width,v.height=e.height,v.class="actor";const y=e.x+e.width/2,b=i+(n?10:25),_=22;g.append("circle").attr("cx",y).attr("cy",b).attr("r",_).attr("width",e.width).attr("height",e.height),g.append("line").attr("x1",y-_).attr("x2",y+_).attr("y1",b+_).attr("y2",b+_).attr("stroke-width",2),l==="neo"&&g.attr("filter","url(#drop-shadow)");const S=a.get(e.name)??0;dd.has(u)&&(g.style("stroke",f[S%f.length]),g.style("fill",h[S%f.length]));const x=g.node().getBBox();return e.height=x.height+(r?.sequence?.labelBoxHeight??0),n||(un++,p.append("line").attr("id","actor"+un).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=un),hd(r,Xa(e.description))(e.description,g,v.x,v.y+(n?15:30),v.width,v.height,{class:`actor ${jp}`},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"),nIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+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||(un++,Object.keys(e.links||{}).length&&!r.forceMenus&&m.attr("onclick",T8(`actor${un}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+un).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=un,e.links!=null&&m.attr("id","root-"+un),d==="neo"&&m.attr("data-look","neo"));const v=Zo();let y="actor";e.properties?.class?y=e.properties.class:v.fill="#eaeaea",n?y+=` ${ef}`:y+=` ${Jh}`,v.x=e.x,v.y=i,v.width=e.width,v.height=e.height,v.class=y,v.name=e.name,v.x=e.x,v.y=i;const b=v.width/3,_=v.width/3,S=b/2,x=S/(2.5+b/50),C=m.append("g");C.attr("class",y);const T=` + a ${b},${y} 0 0 0 0,${m.height}`),_.attr("transform",`translate(${b}, ${-(m.height/2)})`),S.attr("transform",`translate(${m.width-b}, ${-m.height/2})`),e.rectData=m,l==="neo"&&_.attr("filter","url(#drop-shadow)");const C=a.get(e.name)??0;if(dd.has(u)&&(_.style("stroke",f[C%f.length]),_.style("fill",h[C%f.length]),S.style("stroke",f[C%f.length]),S.style("fill",h[C%f.length])),e.properties?.icon){const R=e.properties.icon.trim(),O=m.x+m.width-20,M=m.y+10;R.charAt(0)==="@"?RY(g,O,M,R.substr(1)):AY(g,O,M,R)}hd(r,Xa(e.description))(e.description,g,m.x,m.y,m.width,m.height,{class:`actor ${S8}`},r);let T=e.height;const w=_.select("path:last-child");if(w.node()){const R=w.node().getBBox();e.height=R.height,T=R.height}return n||(g.attr("data-et","participant"),g.attr("data-type","queue"),g.attr("data-id",e.name)),T},"drawActorTypeQueue"),rIt=E(function(t,e,r,n,a,i){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,v=t.append("g").lower();n||(un++,v.append("line").attr("id","actor"+un).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=un);const y=t.append("g");let b=jp;n?b+=` ${ef}`:b+=` ${Jh}`,y.attr("class",b),y.attr("name",e.name);const _=Zo();_.x=e.x,_.y=s,_.fill="#eaeaea",_.width=e.width,_.height=e.height,_.class="actor";const S=e.x+e.width/2,x=s+32,C=22;y.append("defs").append("marker").attr("id",a+"-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"),y.append("circle").attr("cx",S).attr("cy",x).attr("r",C).attr("filter",`${u==="neo"?"url(#drop-shadow)":""}`),y.append("line").attr("marker-end","url(#"+a+"-filled-head-control)").attr("transform",`translate(${S}, ${x-C})`);const T=i.get(e.name)??0;dd.has(d)?(y.style("stroke",p[T%p.length]),y.style("fill",f[T%p.length])):(y.style("stroke",g),y.style("fill",m));const w=y.node().getBBox();return e.height=w.height+2*(r?.sequence?.labelBoxHeight??0),hd(r,Xa(e.description))(e.description,y,_.x,_.y+C+(n?5:12),_.width,_.height,{class:`actor ${jp}`},r),n||(y.attr("data-et","participant"),y.attr("data-type","control"),y.attr("data-id",e.name)),e.height},"drawActorTypeControl"),nIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+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+=` ${ef}`:m+=` ${Jh}`,g.attr("class",m),g.attr("name",e.name);const v=Zo();v.x=e.x,v.y=i,v.fill="#eaeaea",v.width=e.width,v.height=e.height,v.class="actor";const y=e.x+e.width/2,b=i+(n?10:25),_=22;g.append("circle").attr("cx",y).attr("cy",b).attr("r",_).attr("width",e.width).attr("height",e.height),g.append("line").attr("x1",y-_).attr("x2",y+_).attr("y1",b+_).attr("y2",b+_).attr("stroke-width",2),l==="neo"&&g.attr("filter","url(#drop-shadow)");const S=a.get(e.name)??0;dd.has(u)&&(g.style("stroke",f[S%f.length]),g.style("fill",h[S%f.length]));const x=g.node().getBBox();return e.height=x.height+(r?.sequence?.labelBoxHeight??0),n||(un++,p.append("line").attr("id","actor"+un).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=un),hd(r,Xa(e.description))(e.description,g,v.x,v.y+(n?15:30),v.width,v.height,{class:`actor ${jp}`},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"),aIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+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||(un++,Object.keys(e.links||{}).length&&!r.forceMenus&&m.attr("onclick",T8(`actor${un}_popup`)).attr("cursor","pointer"),m.append("line").attr("id","actor"+un).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=un,e.links!=null&&m.attr("id","root-"+un),d==="neo"&&m.attr("data-look","neo"));const v=Zo();let y="actor";e.properties?.class?y=e.properties.class:v.fill="#eaeaea",n?y+=` ${ef}`:y+=` ${Jh}`,v.x=e.x,v.y=i,v.width=e.width,v.height=e.height,v.class=y,v.name=e.name,v.x=e.x,v.y=i;const b=v.width/3,_=v.width/3,S=b/2,x=S/(2.5+b/50),C=m.append("g");C.attr("class",y);const T=` M ${v.x},${v.y+x} a ${S},${x} 0 0 0 ${b},0 a ${S},${x} 0 0 0 -${b},0 l 0,${_-2*x} a ${S},${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=a.get(e.name)??0;dd.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=v,hd(r,Xa(e.description))(e.description,m,v.x,v.y+35,v.width,v.height,{class:`actor ${S8}`},r);const R=C.select("path:last-child");if(R.node()){const O=R.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"),aIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+80,l=22,u=t.append("g").lower(),{look:d,theme:h,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:g,actorBorder:m}=f;n||(un++,u.append("line").attr("id","actor"+un).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=un);const v=t.append("g");let y=jp;n?y+=` ${ef}`:y+=` ${Jh}`,v.attr("class",y),v.attr("name",e.name);const b=Zo();b.x=e.x,b.y=i,b.fill="#eaeaea",b.width=e.width,b.height=e.height,b.class="actor",v.append("line").attr("id","actor-man-torso"+un).attr("x1",e.x+e.width/2-l*2.5).attr("y1",i+12).attr("x2",e.x+e.width/2-15).attr("y2",i+12),v.append("line").attr("id","actor-man-arms"+un).attr("x1",e.x+e.width/2-l*2.5).attr("y1",i+2).attr("x2",e.x+e.width/2-l*2.5).attr("y2",i+22),v.append("circle").attr("cx",e.x+e.width/2).attr("cy",i+12).attr("r",l),d==="neo"&&v.attr("filter","url(#drop-shadow)");const _=a.get(e.name)??0;dd.has(h)?(v.style("stroke",g[_%g.length]),v.style("fill",p[_%g.length])):v.style("stroke",m);const S=v.node().getBBox();return e.height=S.height+(r.sequence.labelBoxHeight??0),hd(r,Xa(e.description))(e.description,v,b.x,b.y+15,b.width,b.height,{class:`actor ${jp}`},r),v.attr("transform",`translate(0,${l/2+10})`),n||(v.attr("data-et","participant"),v.attr("data-type","boundary"),v.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),iIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+80,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f,actorBorder:p}=d,g=t.append("g").lower();n||(un++,g.append("line").attr("id","actor"+un).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=un);const m=t.append("g");let v=jp;n?v+=` ${ef}`:v+=` ${Jh}`,m.attr("class",v),m.attr("name",e.name),n||m.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);const y=l==="neo"?.5:1,b=l==="neo"?i+(1-y)*30:i;m.append("line").attr("id","actor-man-torso"+un).attr("x1",s).attr("y1",b+25*y).attr("x2",s).attr("y2",b+45*y),m.append("line").attr("id","actor-man-arms"+un).attr("x1",s-mp/2*y).attr("y1",b+33*y).attr("x2",s+mp/2*y).attr("y2",b+33*y),m.append("line").attr("x1",s-mp/2*y).attr("y1",b+60*y).attr("x2",s).attr("y2",b+45*y),m.append("line").attr("x1",s).attr("y1",b+45*y).attr("x2",s+(mp/2-2)*y).attr("y2",b+60*y);const _=m.append("circle");_.attr("cx",e.x+e.width/2),_.attr("cy",b+10*y),_.attr("r",15*y),_.attr("width",e.width*y),_.attr("height",e.height*y);const S=m.node().getBBox();e.height=S.height;const x=Zo();x.x=e.x,x.y=b,x.fill="#eaeaea",x.width=e.width,x.height=e.height/y,x.class="actor",x.rx=3,x.ry=3;const C=a.get(e.name)??0;return dd.has(u)?(m.style("stroke",f[C%f.length]),m.style("fill",h[C%f.length])):m.style("stroke",p),hd(r,Xa(e.description))(e.description,m,x.x,b+35*y-(l==="neo"?10:0),x.width,x.height,{class:`actor ${jp}`},r),e.height},"drawActorTypeActor"),sIt=E(async function(t,e,r,n,a,i,s){const o=s??new Map([...i.db.getActors().values()].map((l,u)=>[l.name,u]));switch(e.type){case"actor":return await iIt(t,e,r,n,o);case"participant":return await ZNt(t,e,r,n,o);case"boundary":return await aIt(t,e,r,n,o);case"control":return await tIt(t,e,r,n,a,o);case"entity":return await rIt(t,e,r,n,o);case"database":return await nIt(t,e,r,n,o);case"collections":return await JNt(t,e,r,n,o);case"queue":return await eIt(t,e,r,n,o)}},"drawActor"),oIt=E(function(t,e,r){const a=t.append("g");RAe(a,e),e.name&&hd(r)(e.name,a,e.x,e.y+r.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},r),a.lower()},"drawBox"),lIt=E(function(t){return t.append("g")},"anchorElement"),cIt=E(function(t,e,r,n,a,i,s){const{theme:o,themeVariables:l}=n,{bkgColorArray:u,borderColorArray:d,mainBkg:h}=l,f=Zo(),p=e.anchored,g=e.actor;f.x=e.startx,f.y=e.starty,f.class="activation"+a%3,f.width=e.stopx-e.startx,f.height=r-e.starty;const m=Q4(p,f),y=(s??new Map([...i.db.getActors().values()].map((b,_)=>[b.name,_]))).get(g)??0;dd.has(o)&&(m.style("stroke",d[y%d.length]),m.style("fill",u[y%d.length]??h))},"drawActivation"),uIt=E(async function(t,e,r,n,a){const{boxMargin:i,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"+a.id),p=E(function(v,y,b,_){return f.append("line").attr("x1",v).attr("y1",y).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(v){p(e.startx,v.y,e.stopx,v.y).style("stroke-dasharray","3, 3")});let g=NY();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",kAe(f,g),g=NAe(),g.text=e.title,g.x=e.startx+l/2+(e.stopx-e.startx)/2,g.y=e.starty+i+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=Xa(g.text)?await jw(f,g,e):zb(f,g);if(e.sectionTitles!==void 0){for(const[v,y]of Object.entries(e.sectionTitles))if(y.message){g.text=y.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[v].y+i+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,Xa(g.text)?(e.starty=e.sections[v].y,await jw(f,g,e)):zb(f,g);let b=Math.round(m.map(_=>(_._groups||_)[0][0].getBBox().height).reduce((_,S)=>_+S));e.sections[v].height+=b-(i+s)}}return e.height=Math.round(e.stopy-e.starty),f},"drawLoop"),RAe=E(function(t,e){j2e(t,e)},"drawBackgroundRect"),dIt=E(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"),hIt=E(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"),fIt=E(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"),pIt=E(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"),gIt=E(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"),mIt=E(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"),vIt=E(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"),yIt=E(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"),NAe=E(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"),_It=E(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),hd=(function(){function t(i,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(i);a(f,h)}E(t,"byText");function e(i,s,o,l,u,d,h,f){const{actorFontSize:p,actorFontFamily:g,actorFontWeight:m}=f,[v,y]=X0(p),b=i.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:E(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:E(function(t){this.boxes.push(t)},"addBox"),addActor:E(function(t){this.actors.push(t)},"addActor"),addLoop:E(function(t){this.loops.push(t)},"addLoop"),addMessage:E(function(t){this.messages.push(t)},"addMessage"),addNote:E(function(t){this.notes.push(t)},"addNote"),lastActor:E(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:E(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:E(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:E(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:E(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,DAe(Ye())},"init"),updateVal:E(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:E(function(t,e,r,n){const a=this;let i=0;function s(o){return E(function(u){i++;const d=a.sequenceItems.length-i+1;a.updateVal(u,"starty",e-d*at.boxMargin,Math.min),a.updateVal(u,"stopy",n+d*at.boxMargin,Math.max),a.updateVal(Lt.data,"startx",t-d*at.boxMargin,Math.min),a.updateVal(Lt.data,"stopx",r+d*at.boxMargin,Math.max),o!=="activation"&&(a.updateVal(u,"startx",t-d*at.boxMargin,Math.min),a.updateVal(u,"stopx",r+d*at.boxMargin,Math.max),a.updateVal(Lt.data,"starty",e-d*at.boxMargin,Math.min),a.updateVal(Lt.data,"stopy",n+d*at.boxMargin,Math.max))},"updateItemBounds")}E(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:E(function(t,e,r,n){const a=qt.getMin(t,r),i=qt.getMax(t,r),s=qt.getMin(e,n),o=qt.getMax(e,n);this.updateVal(Lt.data,"startx",a,Math.min),this.updateVal(Lt.data,"starty",s,Math.min),this.updateVal(Lt.data,"stopx",i,Math.max),this.updateVal(Lt.data,"stopy",o,Math.max),this.updateBounds(a,s,i,o)},"insert"),newActivation:E(function(t,e,r){const n=r.get(t.from),a=x8(t.from).length||0,i=n.x+n.width/2+(a-1)*at.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+at.activationWidth,stopy:void 0,actor:t.from,anchored:Xn.anchorElement(e)})},"newActivation"),endActivation:E(function(t){const e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:E(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:E(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:E(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:E(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:E(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:E(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:E(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:E(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=qt.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:E(function(){return this.verticalPos},"getVerticalPos"),getBounds:E(function(){return{bounds:this.data,models:this.models}},"getBounds")},CIt=E(async function(t,e,r){Lt.bumpVerticalPos(at.boxMargin),e.height=at.boxMargin,e.starty=Lt.getVerticalPos();const n=Zo();n.x=e.startx,n.y=e.starty,n.width=e.width||at.width,n.class="note";const a=t.append("g");a.attr("data-et","note"),a.attr("data-id","i"+r);const i=Xn.drawRect(a,n),s=NY();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=Xa(s.text)?await jw(a,s):zb(a,s),l=Math.round(o.map(u=>(u._groups||u)[0][0].getBBox().height).reduce((u,d)=>u+d));i.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"),gle=E(function(t,e,r,n,a,i,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=BAe(e,n),m=t.append("g"),v=16.5,y=E((C,T)=>{const w=C?v:-v;return T?-w:w},"getCircleOffset"),b=E(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:S,CENTRAL_CONNECTION_DUAL:x}=n.db.LINETYPE;if(d)switch(e.centralConnection){case _:g&&(f+=y(p,!0));break;case S:g||(h+=y(p,!1));break;case x:g?f+=y(p,!0):h+=y(p,!1);break}switch(e.centralConnection){case _:b(f);break;case S:b(h);break;case x:b(h),b(f);break}},"drawCentralConnection"),Qp=E(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),wm=E(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),Ez=E(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");async function IAe(t,e){Lt.bumpVerticalPos(10);const{startx:r,stopx:n,message:a}=e,i=qt.splitBreaks(a).length,s=Xa(a),o=s?await hT(a,Ye()):Kr.calculateTextDimensions(a,Qp(at));if(!s){const h=o.height/i;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}E(IAe,"boundMessage");var wIt=E(async function(t,e,r,n,a,i){const{startx:s,stopx:o,starty:l,message:u,type:d,sequenceIndex:h,sequenceVisible:f}=e,p=Kr.calculateTextDimensions(u,Qp(at)),g=NY();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,Xa(g.text)?await jw(t,g,{startx:s,stopx:o,starty:r}):zb(t,g);const m=p.width;let v;if(s===o){const b=f||at.showSequenceNumbers,_=BAe(a,n),S=DIt(a,n),x=s+(b&&(_||S)?10:0);at.rightAngles?v=t.append("path").attr("d",`M ${x},${r} H ${s+qt.getMax(at.width/2,m/2)} V ${r+25} H ${s}`):v=t.append("path").attr("d","M "+x+","+r+" C "+(x+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)),pM(a,n)&&gle(t,a,e,n,s,o,r)}else v=t.append("line"),v.attr("x1",s),v.attr("y1",r),v.attr("x2",o),v.attr("y2",r),pM(a,n)&&gle(t,a,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?(v.style("stroke-dasharray","3, 3"),v.attr("class","messageLine1")):v.attr("class","messageLine0"),v.attr("data-et","message"),v.attr("data-id","i"+e.id),v.attr("data-from",e.from),v.attr("data-to",e.to);let y="";if(at.arrowMarkerAbsolute&&(y=Ok(!0)),v.attr("stroke-width",2),v.attr("stroke","none"),v.style("fill","none"),(d===n.db.LINETYPE.SOLID_TOP||d===n.db.LINETYPE.SOLID_TOP_DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-solidTopArrowHead)"),(d===n.db.LINETYPE.SOLID_BOTTOM||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.STICK_TOP||d===n.db.LINETYPE.STICK_TOP_DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-stickTopArrowHead)"),(d===n.db.LINETYPE.STICK_BOTTOM||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&v.attr("marker-start","url("+y+"#"+i+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&v.attr("marker-start","url("+y+"#"+i+"-solidTopArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&v.attr("marker-start","url("+y+"#"+i+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&v.attr("marker-start","url("+y+"#"+i+"-stickTopArrowHead)"),(d===n.db.LINETYPE.SOLID||d===n.db.LINETYPE.DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-arrowhead)"),(d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(v.attr("marker-start","url("+y+"#"+i+"-arrowhead)"),v.attr("marker-end","url("+y+"#"+i+"-arrowhead)")),(d===n.db.LINETYPE.SOLID_POINT||d===n.db.LINETYPE.DOTTED_POINT)&&v.attr("marker-end","url("+y+"#"+i+"-filled-head)"),(d===n.db.LINETYPE.SOLID_CROSS||d===n.db.LINETYPE.DOTTED_CROSS)&&v.attr("marker-end","url("+y+"#"+i+"-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,S=6,x=pM(a,n);let C=s,T=o;b?(ss?T=o-2*S:(T=o-S,C+=a?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||a?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),T+=x?15:0,v.attr("x2",T),v.attr("x1",C)):v.attr("x1",s+S);let w=0;const R=s===o,O=s<=o;R?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("+y+"#"+i+"-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"),kIt=E(function(t,e,r,n,a,i,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=a),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,a,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"),Sz=E(async function(t,e,r,n,a,i,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 Xn.drawActor(t,u,at,!0,a,i,s);o=qt.getMax(o,d)}Lt.bumpVerticalPos(o+at.boxMargin)}else for(const o of r){const l=e.get(o);await Xn.drawActor(t,l,at,!1,a,i,s)}},"drawActors"),OAe=E(function(t,e,r,n){let a=0,i=0;for(const s of r){const o=e.get(s),l=RIt(o),u=Xn.drawPopup(t,o,l,at,at.forceMenus,n);u.height>a&&(a=u.height),u.width+o.x>i&&(i=u.width+o.x)}return{maxHeight:a,maxWidth:i}},"drawActorsPopup"),DAe=E(function(t){Va(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"),x8=E(function(t){return Lt.activations.filter(function(e){return e.actor===t})},"actorActivations"),mle=E(function(t,e){const r=e.get(t),n=x8(t),a=n.reduce(function(s,o){return qt.getMin(s,o.startx)},r.x+r.width/2-1),i=n.reduce(function(s,o){return qt.getMax(s,o.stopx)},r.x+r.width/2+1);return[a,i]},"activationBounds");function Gl(t,e,r,n,a){Lt.bumpVerticalPos(r);let i=n;if(e.id&&e.message&&t[e.id]){const s=t[e.id].width,o=Qp(at);e.message=Kr.wrapLabel(`[${e.message}]`,s-2*at.wrapPadding,o),e.width=s,e.wrap=!0;const l=Kr.calculateTextDimensions(e.message,o),u=qt.getMax(l.height,at.labelBoxHeight);i=n+u,oe.debug(`${u} - ${e.message}`)}a(e),Lt.bumpVerticalPos(i)}E(Gl,"adjustLoopHeightForWrap");function LAe(t,e,r,n,a,i,s){function o(d,h){d.x{B.add(U.from),B.add(U.to)}),m=m.filter(U=>B.has(U))}const x=new Map(m.map((B,U)=>[h.get(B)?.name??B,U]));kIt(d,h,f,m,0,v,!1);const C=await MIt(v,h,S,n);Xn.insertArrowHead(d,e),Xn.insertArrowCrossHead(d,e),Xn.insertArrowFilledHead(d,e),Xn.insertSequenceNumber(d,e),Xn.insertSolidTopArrowHead(d,e),Xn.insertSolidBottomArrowHead(d,e),Xn.insertStickTopArrowHead(d,e),Xn.insertStickBottomArrowHead(d,e),s==="neo"&&Xn.insertDropShadow(d,at);function T(B,U){const G=Lt.endActivation(B);G.starty+18>U&&(G.starty=U-6,U+=12),Xn.drawActivation(d,G,U,at,x8(B.from).length,n,x),Lt.insert(G.startx,U-10,G.stopx,U)}E(T,"activeEnd");let w=1,R=1;const O=[],M=[];let $=0;for(const B of v){let U,G,K;switch(B.type){case n.db.LINETYPE.NOTE:Lt.resetVerticalPos(),G=B.noteModel,await CIt(d,G,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:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.LOOP_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"loop",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.RECT_START:Gl(C,B,at.boxMargin,at.boxMargin,Y=>Lt.newLoop(void 0,Y.message));break;case n.db.LINETYPE.RECT_END:U=Lt.endLoop(),M.push(U),Lt.models.addLoop(U),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos());break;case n.db.LINETYPE.OPT_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.OPT_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"opt",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.ALT_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.ALT_ELSE:Gl(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,Y=>Lt.addSectionToLoop(Y));break;case n.db.LINETYPE.ALT_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"alt",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y)),Lt.saveVerticalPos();break;case n.db.LINETYPE.PAR_AND:Gl(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,Y=>Lt.addSectionToLoop(Y));break;case n.db.LINETYPE.PAR_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"par",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.AUTONUMBER:w=B.message.start||w,R=B.message.step||R,B.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.CRITICAL_OPTION:Gl(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,Y=>Lt.addSectionToLoop(Y));break;case n.db.LINETYPE.CRITICAL_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"critical",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.BREAK_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.BREAK_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"break",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;default:try{K=B.msgModel,K.starty=Lt.getVerticalPos(),K.sequenceIndex=w,K.sequenceVisible=n.db.showSequenceNumbers(),K.id=B.id,K.from=B.from,K.to=B.to;const Y=await IAe(d,K);LAe(B,K,Y,$,h,f,p),O.push({messageModel:K,lineStartY:Y,msg:B}),Lt.models.addMessage(K)}catch(Y){oe.error("error while drawing message",Y)}}[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+R)*100)/100),$++}oe.debug("createdActors",f),oe.debug("destroyedActors",p),await Sz(d,h,m,!1,e,n,x);for(const B of O)await wIt(d,B.messageModel,B.lineStartY,n,B.msg,e);at.mirrorActors&&await Sz(d,h,m,!0,e,n,x),M.forEach(B=>Xn.drawBackgroundRect(d,B)),AAe(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 U=at.boxMargin*2;B.startx=B.x-U,B.starty=B.y-U*.25,B.stopx=B.startx+B.width+2*U,B.stopy=B.starty+B.height+U*.75,B.stroke="rgb(0,0,0, 0.5)",Xn.drawBox(d,B,at)}b&&Lt.bumpVerticalPos(at.boxMargin);const F=OAe(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=Qp(at);let o=i.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,i.wrap&&(i.name=Kr.wrapLabel(i.name,o-2*at.wrapPadding,s));const u=Kr.calculateTextDimensions(i.name,s);a=qt.getMax(u.height,a);const d=qt.getMax(o,u.width+2*at.wrapPadding);if(i.margin=at.boxTextMargin,oi.textMaxHeight=a),qt.getMax(n,at.height)}E(PAe,"calculateActorMargins");var NIt=E(async function(t,e,r){const n=e.get(t.from),a=e.get(t.to),i=n.x,s=a.x,o=t.wrap&&t.message;let l=Xa(t.message)?await hT(t.message,Ye()):Kr.calculateTextDimensions(o?Kr.wrapLabel(t.message,at.width,wm(at)):t.message,wm(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+a.width/2,l.width+2*at.noteMargin),u.startx=i+(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+a.width/2,l.width+2*at.noteMargin),u.startx=i-u.width+(n.width-at.actorMargin)/2):t.to===t.from?(l=Kr.calculateTextDimensions(o?Kr.wrapLabel(t.message,qt.getMax(at.width,n.width),wm(at)):t.message,wm(at)),u.width=o?qt.getMax(at.width,n.width):qt.getMax(n.width,at.width,l.width+2*at.noteMargin),u.startx=i+(n.width-u.width)/2):(u.width=Math.abs(i+n.width/2-(s+a.width/2))+at.actorMargin,u.startx=i2,f=E(v=>l?-v:v,"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=[a,i,s,o],g=Math.abs(u-d);t.wrap&&t.message&&(t.message=Kr.wrapLabel(t.message,qt.getMax(g+2*at.wrapPadding,at.width),Qp(at)));const m=Kr.calculateTextDimensions(t.message,Qp(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"),MIt=E(async function(t,e,r,n){const a={},i=[];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:i.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=i.pop(),a[s.id]=s,a[u.id]=s,i.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=i.pop(),a[s.id]=s;break;case n.db.LINETYPE.ACTIVE_START:{const h=e.get(u.from?u.from:u.to.actor),f=x8(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 NIt(u,e,n),u.noteModel=o,i.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=LIt(u,e,n),u.msgModel=l,l.startx&&l.stopx&&i.length>0&&i.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=[],oe.debug("Loop type widths:",a),a},"calculateLoopBounds"),PIt={bounds:Lt,drawActors:Sz,drawActorsPopup:OAe,setConf:DAe,draw:AIt},BIt={parser:YNt,get db(){return new KNt},renderer:PIt,styles:jNt,init:E(t=>{t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,lP({sequence:{wrap:t.wrap}}))},"init")};const FIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:BIt},Symbol.toStringTag,{value:"Module"}));var Tz=(function(){var t=E(function(ct,it,ke,Qe){for(ke=ke||{},Qe=ct.length;Qe--;ke[ct[Qe]]=it);return ke},"o"),e=[1,18],r=[1,19],n=[1,20],a=[1,41],i=[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],v=[1,38],y=[1,27],b=[1,28],_=[1,29],S=[1,30],x=[1,31],C=[1,44],T=[1,46],w=[1,43],R=[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],N=[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],U=[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],G=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Y=[13,60,68,69,70,71,72,86,100,102,103],ee=[1,103],X=[1,121],le=[1,117],te=[1,113],ne=[1,119],ae=[1,114],re=[1,115],ge=[1,116],pe=[1,118],Be=[1,120],Le=[22,50,60,61,82,86,87,88,89,90],He=[1,128],Re=[12,39],xe=[1,8,9,39,41,44,46],$e=[1,8,9,22],Ce=[1,153],ut=[1,8,9,61],Ae=[1,8,9,22,50,60,61,82,86,87,88,89,90],je={trace:E(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:E(function(it,ke,Qe,_e,ye,q,fe){var j=q.length-1;switch(ye){case 8:this.$=q[j-1];break;case 9:case 10:case 13:case 15:this.$=q[j];break;case 11:case 14:this.$=q[j-2]+"."+q[j];break;case 12:case 16:this.$=q[j-1]+q[j];break;case 17:case 18:this.$=q[j-1]+"~"+q[j]+"~";break;case 19:_e.addRelation(q[j]);break;case 20:q[j-1].title=_e.cleanupLabel(q[j]),_e.addRelation(q[j-1]);break;case 31:this.$=q[j].trim(),_e.setAccTitle(this.$);break;case 32:case 33:this.$=q[j].trim(),_e.setAccDescription(this.$);break;case 34:_e.addClassesToNamespace(q[j-3],q[j-1][0],q[j-1][1]),_e.popNamespace();break;case 35:_e.addClassesToNamespace(q[j-4],q[j-1][0],q[j-1][1]),_e.popNamespace();break;case 36:this.$=_e.addNamespace(q[j]);break;case 37:this.$=_e.addNamespace(q[j-1],q[j]);break;case 38:this.$=[[q[j]],[]];break;case 39:this.$=[[q[j-1]],[]];break;case 40:q[j][0].unshift(q[j-2]),this.$=q[j];break;case 41:this.$=[[],[q[j]]];break;case 42:this.$=[[],[q[j-1]]];break;case 43:q[j][1].unshift(q[j-2]),this.$=q[j];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=q[j];break;case 48:_e.setCssClass(q[j-2],q[j]);break;case 49:_e.addMembers(q[j-3],q[j-1]);break;case 51:_e.setCssClass(q[j-5],q[j-3]),_e.addMembers(q[j-5],q[j-1]);break;case 52:_e.addAnnotation(q[j-3],q[j-1]);break;case 53:_e.addAnnotation(q[j-6],q[j-4]),_e.addMembers(q[j-6],q[j-1]);break;case 54:_e.addAnnotation(q[j-5],q[j-3]);break;case 55:this.$=q[j],_e.addClass(q[j]);break;case 56:this.$=q[j-1],_e.addClass(q[j-1]),_e.setClassLabel(q[j-1],q[j]);break;case 60:_e.addAnnotation(q[j],q[j-2]);break;case 61:case 74:this.$=[q[j]];break;case 62:q[j].push(q[j-1]),this.$=q[j];break;case 63:break;case 64:_e.addMember(q[j-1],_e.cleanupLabel(q[j]));break;case 65:break;case 66:break;case 67:this.$={id1:q[j-2],id2:q[j],relation:q[j-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:q[j-3],id2:q[j],relation:q[j-1],relationTitle1:q[j-2],relationTitle2:"none"};break;case 69:this.$={id1:q[j-3],id2:q[j],relation:q[j-2],relationTitle1:"none",relationTitle2:q[j-1]};break;case 70:this.$={id1:q[j-4],id2:q[j],relation:q[j-2],relationTitle1:q[j-3],relationTitle2:q[j-1]};break;case 71:this.$=_e.addNote(q[j],q[j-1]);break;case 72:this.$=_e.addNote(q[j]);break;case 73:this.$=q[j-2],_e.defineClass(q[j-1],q[j]);break;case 75:this.$=q[j-2].concat([q[j]]);break;case 76:_e.setDirection("TB");break;case 77:_e.setDirection("BT");break;case 78:_e.setDirection("RL");break;case 79:_e.setDirection("LR");break;case 80:this.$={type1:q[j-2],type2:q[j],lineType:q[j-1]};break;case 81:this.$={type1:"none",type2:q[j],lineType:q[j-1]};break;case 82:this.$={type1:q[j-1],type2:"none",lineType:q[j]};break;case 83:this.$={type1:"none",type2:"none",lineType:q[j]};break;case 84:this.$=_e.relationType.AGGREGATION;break;case 85:this.$=_e.relationType.EXTENSION;break;case 86:this.$=_e.relationType.COMPOSITION;break;case 87:this.$=_e.relationType.DEPENDENCY;break;case 88:this.$=_e.relationType.LOLLIPOP;break;case 89:this.$=_e.lineType.LINE;break;case 90:this.$=_e.lineType.DOTTED_LINE;break;case 91:case 97:this.$=q[j-2],_e.setClickEvent(q[j-1],q[j]);break;case 92:case 98:this.$=q[j-3],_e.setClickEvent(q[j-2],q[j-1]),_e.setTooltip(q[j-2],q[j]);break;case 93:this.$=q[j-2],_e.setLink(q[j-1],q[j]);break;case 94:this.$=q[j-3],_e.setLink(q[j-2],q[j-1],q[j]);break;case 95:this.$=q[j-3],_e.setLink(q[j-2],q[j-1]),_e.setTooltip(q[j-2],q[j]);break;case 96:this.$=q[j-4],_e.setLink(q[j-3],q[j-2],q[j]),_e.setTooltip(q[j-3],q[j-1]);break;case 99:this.$=q[j-3],_e.setClickEvent(q[j-2],q[j-1],q[j]);break;case 100:this.$=q[j-4],_e.setClickEvent(q[j-3],q[j-2],q[j-1]),_e.setTooltip(q[j-3],q[j]);break;case 101:this.$=q[j-3],_e.setLink(q[j-2],q[j]);break;case 102:this.$=q[j-4],_e.setLink(q[j-3],q[j-1],q[j]);break;case 103:this.$=q[j-4],_e.setLink(q[j-3],q[j-1]),_e.setTooltip(q[j-3],q[j]);break;case 104:this.$=q[j-5],_e.setLink(q[j-4],q[j-2],q[j]),_e.setTooltip(q[j-4],q[j-1]);break;case 105:this.$=q[j-2],_e.setCssStyle(q[j-1],q[j]);break;case 106:_e.setCssClass(q[j-1],q[j]);break;case 107:this.$=[q[j]];break;case 108:q[j-2].push(q[j]),this.$=q[j-2];break;case 110:this.$=q[j-1]+q[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:a,43:23,46:i,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:v,75:y,76:b,78:_,82:S,83:x,86:C,100:T,102:w,103:R},{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:N}),{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:R},{16:39,17:40,19:71,60:f,86:C,100:T,102:w,103:R},{16:39,17:40,19:72,60:f,86:C,100:T,102:w,103:R},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:C,100:T,102:w,103:R},{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:R}),t(B,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:C,100:T,102:w,103:R},{16:39,17:40,19:87,60:f,86:C,100:T,102:w,103:R},t(U,[2,133]),t(U,[2,134]),t(U,[2,135]),t(U,[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:a,46:i,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:v,75:y,76:b,78:_,82:S,83:x,86:C,100:T,102:w,103:R}),{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:a,43:23,46:i,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:v,75:y,76:b,78:_,82:S,83:x,86:C,100:T,102:w,103:R},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:R},{53:92,66:56,67:57,68:$,69:F,70:A,71:I,72:D,73:L,74:N},t(M,[2,64]),{67:93,73:L,74:N},t(G,[2,83],{66:94,68:$,69:F,70:A,71:I,72:D}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Y,[2,89]),t(Y,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:s,54:u,56:d},{16:100,60:f,86:C,100:T,102:w},{41:[1,102],45:101,51:ee},{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:X,50:le,59:110,60:te,82:ne,84:111,85:112,86:ae,87:re,88:ge,89:pe,90:Be},{60:[1,122]},{13:z,55:123},t(P,[2,72]),t(P,[2,138]),{22:X,50:le,59:124,60:te,61:[1,125],82:ne,84:111,85:112,86:ae,87:re,88:ge,89:pe,90:Be},t(Le,[2,74]),{16:39,17:40,19:126,60:f,86:C,100:T,102:w,103:R},t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),{11:127,12:He,39:[2,36]},t(Re,[2,9],{16:85,17:86,15:130,18:[1,129],60:f,86:C,100:T,102:w,103:R}),t(Re,[2,10]),t(xe,[2,55],{11:131,12:He}),t(O,[2,7]),{9:[1,132]},t($e,[2,67]),{16:39,17:40,19:133,60:f,86:C,100:T,102:w,103:R},{13:[1,135],16:39,17:40,19:134,60:f,86:C,100:T,102:w,103:R},t(G,[2,82],{66:136,68:$,69:F,70:A,71:I,72:D}),t(G,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,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:ee},{47:[1,145]},{16:39,17:40,19:146,60:f,86:C,100:T,102:w,103:R},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:Ce}),t(ut,[2,107],{85:154,22:X,50:le,60:te,82:ne,86:ae,87:re,88:ge,89:pe,90:Be}),t(Ae,[2,109]),t(Ae,[2,111]),t(Ae,[2,112]),t(Ae,[2,113]),t(Ae,[2,114]),t(Ae,[2,115]),t(Ae,[2,116]),t(Ae,[2,117]),t(Ae,[2,118]),t(Ae,[2,119]),t(M,[2,106]),t(P,[2,71]),t(M,[2,73],{61:Ce}),{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:R},t(Re,[2,12]),t(xe,[2,56]),{1:[2,4]},t($e,[2,69]),t($e,[2,68]),{16:39,17:40,19:158,60:f,86:C,100:T,102:w,103:R},t(G,[2,80]),t(P,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:s,54:u,56:d},{45:163,51:ee},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:X,50:le,60:te,82:ne,84:169,85:112,86:ae,87:re,88:ge,89:pe,90:Be},t(Ae,[2,110]),t(Le,[2,75]),{14:[1,170]},t(Re,[2,11]),t($e,[2,70]),t(P,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ee},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:X,50:le,60:te,82:ne,86:ae,87:re,88:ge,89:pe,90:Be}),t(xe,[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:E(function(it,ke){if(ke.recoverable)this.trace(it);else{var Qe=new Error(it);throw Qe.hash=ke,Qe}},"parseError"),parse:E(function(it){var ke=this,Qe=[0],_e=[],ye=[null],q=[],fe=this.table,j="",we=0,Te=0,rt=2,Oe=1,Pe=q.slice.call(arguments,1),Ie=Object.create(this.lexer),Ze={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(Ze.yy[ze]=this.yy[ze]);Ie.setInput(it,Ze.yy),Ze.yy.lexer=Ie,Ze.yy.parser=this,typeof Ie.yylloc>"u"&&(Ie.yylloc={});var me=Ie.yylloc;q.push(me);var ie=Ie.options&&Ie.options.ranges;typeof Ze.yy.parseError=="function"?this.parseError=Ze.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ve(Nt){Qe.length=Qe.length-2*Nt,ye.length=ye.length-Nt,q.length=q.length-Nt}E(Ve,"popStack");function ve(){var Nt;return Nt=_e.pop()||Ie.lex()||Oe,typeof Nt!="number"&&(Nt instanceof Array&&(_e=Nt,Nt=_e.pop()),Nt=ke.symbols_[Nt]||Nt),Nt}E(ve,"lex");for(var Tt,St,nt,dt,ft={},gt,se,It,bt;;){if(St=Qe[Qe.length-1],this.defaultActions[St]?nt=this.defaultActions[St]:((Tt===null||typeof Tt>"u")&&(Tt=ve()),nt=fe[St]&&fe[St][Tt]),typeof nt>"u"||!nt.length||!nt[0]){var Et="";bt=[];for(gt in fe[St])this.terminals_[gt]&>>rt&&bt.push("'"+this.terminals_[gt]+"'");Ie.showPosition?Et="Parse error on line "+(we+1)+`: +`;C.append("path").attr("d",T),d==="neo"&&C.attr("filter","url(#drop-shadow)");const w=a.get(e.name)??0;dd.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=v,hd(r,Xa(e.description))(e.description,m,v.x,v.y+35,v.width,v.height,{class:`actor ${S8}`},r);const R=C.select("path:last-child");if(R.node()){const O=R.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"),iIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+80,l=22,u=t.append("g").lower(),{look:d,theme:h,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:g,actorBorder:m}=f;n||(un++,u.append("line").attr("id","actor"+un).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=un);const v=t.append("g");let y=jp;n?y+=` ${ef}`:y+=` ${Jh}`,v.attr("class",y),v.attr("name",e.name);const b=Zo();b.x=e.x,b.y=i,b.fill="#eaeaea",b.width=e.width,b.height=e.height,b.class="actor",v.append("line").attr("id","actor-man-torso"+un).attr("x1",e.x+e.width/2-l*2.5).attr("y1",i+12).attr("x2",e.x+e.width/2-15).attr("y2",i+12),v.append("line").attr("id","actor-man-arms"+un).attr("x1",e.x+e.width/2-l*2.5).attr("y1",i+2).attr("x2",e.x+e.width/2-l*2.5).attr("y2",i+22),v.append("circle").attr("cx",e.x+e.width/2).attr("cy",i+12).attr("r",l),d==="neo"&&v.attr("filter","url(#drop-shadow)");const _=a.get(e.name)??0;dd.has(h)?(v.style("stroke",g[_%g.length]),v.style("fill",p[_%g.length])):v.style("stroke",m);const S=v.node().getBBox();return e.height=S.height+(r.sequence.labelBoxHeight??0),hd(r,Xa(e.description))(e.description,v,b.x,b.y+15,b.width,b.height,{class:`actor ${jp}`},r),v.attr("transform",`translate(0,${l/2+10})`),n||(v.attr("data-et","participant"),v.attr("data-type","boundary"),v.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),sIt=E(function(t,e,r,n,a){const i=n?e.stopy:e.starty,s=e.x+e.width/2,o=i+80,{look:l,theme:u,themeVariables:d}=r,{bkgColorArray:h,borderColorArray:f,actorBorder:p}=d,g=t.append("g").lower();n||(un++,g.append("line").attr("id","actor"+un).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=un);const m=t.append("g");let v=jp;n?v+=` ${ef}`:v+=` ${Jh}`,m.attr("class",v),m.attr("name",e.name),n||m.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);const y=l==="neo"?.5:1,b=l==="neo"?i+(1-y)*30:i;m.append("line").attr("id","actor-man-torso"+un).attr("x1",s).attr("y1",b+25*y).attr("x2",s).attr("y2",b+45*y),m.append("line").attr("id","actor-man-arms"+un).attr("x1",s-mp/2*y).attr("y1",b+33*y).attr("x2",s+mp/2*y).attr("y2",b+33*y),m.append("line").attr("x1",s-mp/2*y).attr("y1",b+60*y).attr("x2",s).attr("y2",b+45*y),m.append("line").attr("x1",s).attr("y1",b+45*y).attr("x2",s+(mp/2-2)*y).attr("y2",b+60*y);const _=m.append("circle");_.attr("cx",e.x+e.width/2),_.attr("cy",b+10*y),_.attr("r",15*y),_.attr("width",e.width*y),_.attr("height",e.height*y);const S=m.node().getBBox();e.height=S.height;const x=Zo();x.x=e.x,x.y=b,x.fill="#eaeaea",x.width=e.width,x.height=e.height/y,x.class="actor",x.rx=3,x.ry=3;const C=a.get(e.name)??0;return dd.has(u)?(m.style("stroke",f[C%f.length]),m.style("fill",h[C%f.length])):m.style("stroke",p),hd(r,Xa(e.description))(e.description,m,x.x,b+35*y-(l==="neo"?10:0),x.width,x.height,{class:`actor ${jp}`},r),e.height},"drawActorTypeActor"),oIt=E(async function(t,e,r,n,a,i,s){const o=s??new Map([...i.db.getActors().values()].map((l,u)=>[l.name,u]));switch(e.type){case"actor":return await sIt(t,e,r,n,o);case"participant":return await JNt(t,e,r,n,o);case"boundary":return await iIt(t,e,r,n,o);case"control":return await rIt(t,e,r,n,a,o);case"entity":return await nIt(t,e,r,n,o);case"database":return await aIt(t,e,r,n,o);case"collections":return await eIt(t,e,r,n,o);case"queue":return await tIt(t,e,r,n,o)}},"drawActor"),lIt=E(function(t,e,r){const a=t.append("g");RAe(a,e),e.name&&hd(r)(e.name,a,e.x,e.y+r.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},r),a.lower()},"drawBox"),cIt=E(function(t){return t.append("g")},"anchorElement"),uIt=E(function(t,e,r,n,a,i,s){const{theme:o,themeVariables:l}=n,{bkgColorArray:u,borderColorArray:d,mainBkg:h}=l,f=Zo(),p=e.anchored,g=e.actor;f.x=e.startx,f.y=e.starty,f.class="activation"+a%3,f.width=e.stopx-e.startx,f.height=r-e.starty;const m=Q4(p,f),y=(s??new Map([...i.db.getActors().values()].map((b,_)=>[b.name,_]))).get(g)??0;dd.has(o)&&(m.style("stroke",d[y%d.length]),m.style("fill",u[y%d.length]??h))},"drawActivation"),dIt=E(async function(t,e,r,n,a){const{boxMargin:i,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"+a.id),p=E(function(v,y,b,_){return f.append("line").attr("x1",v).attr("y1",y).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(v){p(e.startx,v.y,e.stopx,v.y).style("stroke-dasharray","3, 3")});let g=NY();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",kAe(f,g),g=NAe(),g.text=e.title,g.x=e.startx+l/2+(e.stopx-e.startx)/2,g.y=e.starty+i+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=Xa(g.text)?await jw(f,g,e):zb(f,g);if(e.sectionTitles!==void 0){for(const[v,y]of Object.entries(e.sectionTitles))if(y.message){g.text=y.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[v].y+i+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,Xa(g.text)?(e.starty=e.sections[v].y,await jw(f,g,e)):zb(f,g);let b=Math.round(m.map(_=>(_._groups||_)[0][0].getBBox().height).reduce((_,S)=>_+S));e.sections[v].height+=b-(i+s)}}return e.height=Math.round(e.stopy-e.starty),f},"drawLoop"),RAe=E(function(t,e){j2e(t,e)},"drawBackgroundRect"),hIt=E(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"),fIt=E(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"),pIt=E(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"),gIt=E(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"),mIt=E(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"),vIt=E(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"),yIt=E(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"),_It=E(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"),NAe=E(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"),bIt=E(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),hd=(function(){function t(i,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(i);a(f,h)}E(t,"byText");function e(i,s,o,l,u,d,h,f){const{actorFontSize:p,actorFontFamily:g,actorFontWeight:m}=f,[v,y]=X0(p),b=i.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:E(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:E(function(t){this.boxes.push(t)},"addBox"),addActor:E(function(t){this.actors.push(t)},"addActor"),addLoop:E(function(t){this.loops.push(t)},"addLoop"),addMessage:E(function(t){this.messages.push(t)},"addMessage"),addNote:E(function(t){this.notes.push(t)},"addNote"),lastActor:E(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:E(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:E(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:E(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:E(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,DAe(Ye())},"init"),updateVal:E(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:E(function(t,e,r,n){const a=this;let i=0;function s(o){return E(function(u){i++;const d=a.sequenceItems.length-i+1;a.updateVal(u,"starty",e-d*at.boxMargin,Math.min),a.updateVal(u,"stopy",n+d*at.boxMargin,Math.max),a.updateVal(Lt.data,"startx",t-d*at.boxMargin,Math.min),a.updateVal(Lt.data,"stopx",r+d*at.boxMargin,Math.max),o!=="activation"&&(a.updateVal(u,"startx",t-d*at.boxMargin,Math.min),a.updateVal(u,"stopx",r+d*at.boxMargin,Math.max),a.updateVal(Lt.data,"starty",e-d*at.boxMargin,Math.min),a.updateVal(Lt.data,"stopy",n+d*at.boxMargin,Math.max))},"updateItemBounds")}E(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:E(function(t,e,r,n){const a=qt.getMin(t,r),i=qt.getMax(t,r),s=qt.getMin(e,n),o=qt.getMax(e,n);this.updateVal(Lt.data,"startx",a,Math.min),this.updateVal(Lt.data,"starty",s,Math.min),this.updateVal(Lt.data,"stopx",i,Math.max),this.updateVal(Lt.data,"stopy",o,Math.max),this.updateBounds(a,s,i,o)},"insert"),newActivation:E(function(t,e,r){const n=r.get(t.from),a=x8(t.from).length||0,i=n.x+n.width/2+(a-1)*at.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+at.activationWidth,stopy:void 0,actor:t.from,anchored:Xn.anchorElement(e)})},"newActivation"),endActivation:E(function(t){const e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:E(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:E(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:E(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:E(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:E(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:E(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:E(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:E(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=qt.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:E(function(){return this.verticalPos},"getVerticalPos"),getBounds:E(function(){return{bounds:this.data,models:this.models}},"getBounds")},wIt=E(async function(t,e,r){Lt.bumpVerticalPos(at.boxMargin),e.height=at.boxMargin,e.starty=Lt.getVerticalPos();const n=Zo();n.x=e.startx,n.y=e.starty,n.width=e.width||at.width,n.class="note";const a=t.append("g");a.attr("data-et","note"),a.attr("data-id","i"+r);const i=Xn.drawRect(a,n),s=NY();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=Xa(s.text)?await jw(a,s):zb(a,s),l=Math.round(o.map(u=>(u._groups||u)[0][0].getBBox().height).reduce((u,d)=>u+d));i.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"),gle=E(function(t,e,r,n,a,i,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=BAe(e,n),m=t.append("g"),v=16.5,y=E((C,T)=>{const w=C?v:-v;return T?-w:w},"getCircleOffset"),b=E(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:S,CENTRAL_CONNECTION_DUAL:x}=n.db.LINETYPE;if(d)switch(e.centralConnection){case _:g&&(f+=y(p,!0));break;case S:g||(h+=y(p,!1));break;case x:g?f+=y(p,!0):h+=y(p,!1);break}switch(e.centralConnection){case _:b(f);break;case S:b(h);break;case x:b(h),b(f);break}},"drawCentralConnection"),Qp=E(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),wm=E(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),Ez=E(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");async function IAe(t,e){Lt.bumpVerticalPos(10);const{startx:r,stopx:n,message:a}=e,i=qt.splitBreaks(a).length,s=Xa(a),o=s?await hT(a,Ye()):Kr.calculateTextDimensions(a,Qp(at));if(!s){const h=o.height/i;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}E(IAe,"boundMessage");var kIt=E(async function(t,e,r,n,a,i){const{startx:s,stopx:o,starty:l,message:u,type:d,sequenceIndex:h,sequenceVisible:f}=e,p=Kr.calculateTextDimensions(u,Qp(at)),g=NY();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,Xa(g.text)?await jw(t,g,{startx:s,stopx:o,starty:r}):zb(t,g);const m=p.width;let v;if(s===o){const b=f||at.showSequenceNumbers,_=BAe(a,n),S=LIt(a,n),x=s+(b&&(_||S)?10:0);at.rightAngles?v=t.append("path").attr("d",`M ${x},${r} H ${s+qt.getMax(at.width/2,m/2)} V ${r+25} H ${s}`):v=t.append("path").attr("d","M "+x+","+r+" C "+(x+60)+","+(r-10)+" "+(s+60)+","+(r+30)+" "+s+","+(r+20)),pM(a,n)&&gle(t,a,e,n,s,o,r)}else v=t.append("line"),v.attr("x1",s),v.attr("y1",r),v.attr("x2",o),v.attr("y2",r),pM(a,n)&&gle(t,a,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?(v.style("stroke-dasharray","3, 3"),v.attr("class","messageLine1")):v.attr("class","messageLine0"),v.attr("data-et","message"),v.attr("data-id","i"+e.id),v.attr("data-from",e.from),v.attr("data-to",e.to);let y="";if(at.arrowMarkerAbsolute&&(y=Ok(!0)),v.attr("stroke-width",2),v.attr("stroke","none"),v.style("fill","none"),(d===n.db.LINETYPE.SOLID_TOP||d===n.db.LINETYPE.SOLID_TOP_DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-solidTopArrowHead)"),(d===n.db.LINETYPE.SOLID_BOTTOM||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.STICK_TOP||d===n.db.LINETYPE.STICK_TOP_DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-stickTopArrowHead)"),(d===n.db.LINETYPE.STICK_BOTTOM||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&v.attr("marker-start","url("+y+"#"+i+"-solidBottomArrowHead)"),(d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&v.attr("marker-start","url("+y+"#"+i+"-solidTopArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&v.attr("marker-start","url("+y+"#"+i+"-stickBottomArrowHead)"),(d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&v.attr("marker-start","url("+y+"#"+i+"-stickTopArrowHead)"),(d===n.db.LINETYPE.SOLID||d===n.db.LINETYPE.DOTTED)&&v.attr("marker-end","url("+y+"#"+i+"-arrowhead)"),(d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(v.attr("marker-start","url("+y+"#"+i+"-arrowhead)"),v.attr("marker-end","url("+y+"#"+i+"-arrowhead)")),(d===n.db.LINETYPE.SOLID_POINT||d===n.db.LINETYPE.DOTTED_POINT)&&v.attr("marker-end","url("+y+"#"+i+"-filled-head)"),(d===n.db.LINETYPE.SOLID_CROSS||d===n.db.LINETYPE.DOTTED_CROSS)&&v.attr("marker-end","url("+y+"#"+i+"-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,S=6,x=pM(a,n);let C=s,T=o;b?(ss?T=o-2*S:(T=o-S,C+=a?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||a?.centralConnection===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),T+=x?15:0,v.attr("x2",T),v.attr("x1",C)):v.attr("x1",s+S);let w=0;const R=s===o,O=s<=o;R?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("+y+"#"+i+"-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"),AIt=E(function(t,e,r,n,a,i,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=a),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,a,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"),Sz=E(async function(t,e,r,n,a,i,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 Xn.drawActor(t,u,at,!0,a,i,s);o=qt.getMax(o,d)}Lt.bumpVerticalPos(o+at.boxMargin)}else for(const o of r){const l=e.get(o);await Xn.drawActor(t,l,at,!1,a,i,s)}},"drawActors"),OAe=E(function(t,e,r,n){let a=0,i=0;for(const s of r){const o=e.get(s),l=NIt(o),u=Xn.drawPopup(t,o,l,at,at.forceMenus,n);u.height>a&&(a=u.height),u.width+o.x>i&&(i=u.width+o.x)}return{maxHeight:a,maxWidth:i}},"drawActorsPopup"),DAe=E(function(t){Va(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"),x8=E(function(t){return Lt.activations.filter(function(e){return e.actor===t})},"actorActivations"),mle=E(function(t,e){const r=e.get(t),n=x8(t),a=n.reduce(function(s,o){return qt.getMin(s,o.startx)},r.x+r.width/2-1),i=n.reduce(function(s,o){return qt.getMax(s,o.stopx)},r.x+r.width/2+1);return[a,i]},"activationBounds");function Gl(t,e,r,n,a){Lt.bumpVerticalPos(r);let i=n;if(e.id&&e.message&&t[e.id]){const s=t[e.id].width,o=Qp(at);e.message=Kr.wrapLabel(`[${e.message}]`,s-2*at.wrapPadding,o),e.width=s,e.wrap=!0;const l=Kr.calculateTextDimensions(e.message,o),u=qt.getMax(l.height,at.labelBoxHeight);i=n+u,oe.debug(`${u} - ${e.message}`)}a(e),Lt.bumpVerticalPos(i)}E(Gl,"adjustLoopHeightForWrap");function LAe(t,e,r,n,a,i,s){function o(d,h){d.x{B.add(U.from),B.add(U.to)}),m=m.filter(U=>B.has(U))}const x=new Map(m.map((B,U)=>[h.get(B)?.name??B,U]));AIt(d,h,f,m,0,v,!1);const C=await PIt(v,h,S,n);Xn.insertArrowHead(d,e),Xn.insertArrowCrossHead(d,e),Xn.insertArrowFilledHead(d,e),Xn.insertSequenceNumber(d,e),Xn.insertSolidTopArrowHead(d,e),Xn.insertSolidBottomArrowHead(d,e),Xn.insertStickTopArrowHead(d,e),Xn.insertStickBottomArrowHead(d,e),s==="neo"&&Xn.insertDropShadow(d,at);function T(B,U){const G=Lt.endActivation(B);G.starty+18>U&&(G.starty=U-6,U+=12),Xn.drawActivation(d,G,U,at,x8(B.from).length,n,x),Lt.insert(G.startx,U-10,G.stopx,U)}E(T,"activeEnd");let w=1,R=1;const O=[],M=[];let $=0;for(const B of v){let U,G,K;switch(B.type){case n.db.LINETYPE.NOTE:Lt.resetVerticalPos(),G=B.noteModel,await wIt(d,G,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:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.LOOP_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"loop",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.RECT_START:Gl(C,B,at.boxMargin,at.boxMargin,Y=>Lt.newLoop(void 0,Y.message));break;case n.db.LINETYPE.RECT_END:U=Lt.endLoop(),M.push(U),Lt.models.addLoop(U),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos());break;case n.db.LINETYPE.OPT_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.OPT_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"opt",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.ALT_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.ALT_ELSE:Gl(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,Y=>Lt.addSectionToLoop(Y));break;case n.db.LINETYPE.ALT_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"alt",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y)),Lt.saveVerticalPos();break;case n.db.LINETYPE.PAR_AND:Gl(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,Y=>Lt.addSectionToLoop(Y));break;case n.db.LINETYPE.PAR_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"par",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.AUTONUMBER:w=B.message.start||w,R=B.message.step||R,B.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.CRITICAL_OPTION:Gl(C,B,at.boxMargin+at.boxTextMargin,at.boxMargin,Y=>Lt.addSectionToLoop(Y));break;case n.db.LINETYPE.CRITICAL_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"critical",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;case n.db.LINETYPE.BREAK_START:Gl(C,B,at.boxMargin,at.boxMargin+at.boxTextMargin,Y=>Lt.newLoop(Y));break;case n.db.LINETYPE.BREAK_END:U=Lt.endLoop(),await Xn.drawLoop(d,U,"break",at,B),Lt.bumpVerticalPos(U.stopy-Lt.getVerticalPos()),Lt.models.addLoop(U);break;default:try{K=B.msgModel,K.starty=Lt.getVerticalPos(),K.sequenceIndex=w,K.sequenceVisible=n.db.showSequenceNumbers(),K.id=B.id,K.from=B.from,K.to=B.to;const Y=await IAe(d,K);LAe(B,K,Y,$,h,f,p),O.push({messageModel:K,lineStartY:Y,msg:B}),Lt.models.addMessage(K)}catch(Y){oe.error("error while drawing message",Y)}}[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+R)*100)/100),$++}oe.debug("createdActors",f),oe.debug("destroyedActors",p),await Sz(d,h,m,!1,e,n,x);for(const B of O)await kIt(d,B.messageModel,B.lineStartY,n,B.msg,e);at.mirrorActors&&await Sz(d,h,m,!0,e,n,x),M.forEach(B=>Xn.drawBackgroundRect(d,B)),AAe(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 U=at.boxMargin*2;B.startx=B.x-U,B.starty=B.y-U*.25,B.stopx=B.startx+B.width+2*U,B.stopy=B.starty+B.height+U*.75,B.stroke="rgb(0,0,0, 0.5)",Xn.drawBox(d,B,at)}b&&Lt.bumpVerticalPos(at.boxMargin);const F=OAe(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=Qp(at);let o=i.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,i.wrap&&(i.name=Kr.wrapLabel(i.name,o-2*at.wrapPadding,s));const u=Kr.calculateTextDimensions(i.name,s);a=qt.getMax(u.height,a);const d=qt.getMax(o,u.width+2*at.wrapPadding);if(i.margin=at.boxTextMargin,oi.textMaxHeight=a),qt.getMax(n,at.height)}E(PAe,"calculateActorMargins");var IIt=E(async function(t,e,r){const n=e.get(t.from),a=e.get(t.to),i=n.x,s=a.x,o=t.wrap&&t.message;let l=Xa(t.message)?await hT(t.message,Ye()):Kr.calculateTextDimensions(o?Kr.wrapLabel(t.message,at.width,wm(at)):t.message,wm(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+a.width/2,l.width+2*at.noteMargin),u.startx=i+(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+a.width/2,l.width+2*at.noteMargin),u.startx=i-u.width+(n.width-at.actorMargin)/2):t.to===t.from?(l=Kr.calculateTextDimensions(o?Kr.wrapLabel(t.message,qt.getMax(at.width,n.width),wm(at)):t.message,wm(at)),u.width=o?qt.getMax(at.width,n.width):qt.getMax(n.width,at.width,l.width+2*at.noteMargin),u.startx=i+(n.width-u.width)/2):(u.width=Math.abs(i+n.width/2-(s+a.width/2))+at.actorMargin,u.startx=i2,f=E(v=>l?-v:v,"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=[a,i,s,o],g=Math.abs(u-d);t.wrap&&t.message&&(t.message=Kr.wrapLabel(t.message,qt.getMax(g+2*at.wrapPadding,at.width),Qp(at)));const m=Kr.calculateTextDimensions(t.message,Qp(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"),PIt=E(async function(t,e,r,n){const a={},i=[];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:i.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=i.pop(),a[s.id]=s,a[u.id]=s,i.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=i.pop(),a[s.id]=s;break;case n.db.LINETYPE.ACTIVE_START:{const h=e.get(u.from?u.from:u.to.actor),f=x8(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 IIt(u,e,n),u.noteModel=o,i.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=MIt(u,e,n),u.msgModel=l,l.startx&&l.stopx&&i.length>0&&i.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=[],oe.debug("Loop type widths:",a),a},"calculateLoopBounds"),BIt={bounds:Lt,drawActors:Sz,drawActorsPopup:OAe,setConf:DAe,draw:RIt},FIt={parser:HNt,get db(){return new XNt},renderer:BIt,styles:QNt,init:E(t=>{t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,lP({sequence:{wrap:t.wrap}}))},"init")};const $It=Object.freeze(Object.defineProperty({__proto__:null,diagram:FIt},Symbol.toStringTag,{value:"Module"}));var Tz=(function(){var t=E(function(ct,it,ke,Qe){for(ke=ke||{},Qe=ct.length;Qe--;ke[ct[Qe]]=it);return ke},"o"),e=[1,18],r=[1,19],n=[1,20],a=[1,41],i=[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],v=[1,38],y=[1,27],b=[1,28],_=[1,29],S=[1,30],x=[1,31],C=[1,44],T=[1,46],w=[1,43],R=[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],N=[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],U=[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],G=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Y=[13,60,68,69,70,71,72,86,100,102,103],ee=[1,103],X=[1,121],le=[1,117],te=[1,113],ne=[1,119],ae=[1,114],re=[1,115],ge=[1,116],pe=[1,118],Be=[1,120],Le=[22,50,60,61,82,86,87,88,89,90],He=[1,128],Re=[12,39],xe=[1,8,9,39,41,44,46],$e=[1,8,9,22],Ce=[1,153],ut=[1,8,9,61],Ae=[1,8,9,22,50,60,61,82,86,87,88,89,90],je={trace:E(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:E(function(it,ke,Qe,_e,ye,q,fe){var j=q.length-1;switch(ye){case 8:this.$=q[j-1];break;case 9:case 10:case 13:case 15:this.$=q[j];break;case 11:case 14:this.$=q[j-2]+"."+q[j];break;case 12:case 16:this.$=q[j-1]+q[j];break;case 17:case 18:this.$=q[j-1]+"~"+q[j]+"~";break;case 19:_e.addRelation(q[j]);break;case 20:q[j-1].title=_e.cleanupLabel(q[j]),_e.addRelation(q[j-1]);break;case 31:this.$=q[j].trim(),_e.setAccTitle(this.$);break;case 32:case 33:this.$=q[j].trim(),_e.setAccDescription(this.$);break;case 34:_e.addClassesToNamespace(q[j-3],q[j-1][0],q[j-1][1]),_e.popNamespace();break;case 35:_e.addClassesToNamespace(q[j-4],q[j-1][0],q[j-1][1]),_e.popNamespace();break;case 36:this.$=_e.addNamespace(q[j]);break;case 37:this.$=_e.addNamespace(q[j-1],q[j]);break;case 38:this.$=[[q[j]],[]];break;case 39:this.$=[[q[j-1]],[]];break;case 40:q[j][0].unshift(q[j-2]),this.$=q[j];break;case 41:this.$=[[],[q[j]]];break;case 42:this.$=[[],[q[j-1]]];break;case 43:q[j][1].unshift(q[j-2]),this.$=q[j];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=q[j];break;case 48:_e.setCssClass(q[j-2],q[j]);break;case 49:_e.addMembers(q[j-3],q[j-1]);break;case 51:_e.setCssClass(q[j-5],q[j-3]),_e.addMembers(q[j-5],q[j-1]);break;case 52:_e.addAnnotation(q[j-3],q[j-1]);break;case 53:_e.addAnnotation(q[j-6],q[j-4]),_e.addMembers(q[j-6],q[j-1]);break;case 54:_e.addAnnotation(q[j-5],q[j-3]);break;case 55:this.$=q[j],_e.addClass(q[j]);break;case 56:this.$=q[j-1],_e.addClass(q[j-1]),_e.setClassLabel(q[j-1],q[j]);break;case 60:_e.addAnnotation(q[j],q[j-2]);break;case 61:case 74:this.$=[q[j]];break;case 62:q[j].push(q[j-1]),this.$=q[j];break;case 63:break;case 64:_e.addMember(q[j-1],_e.cleanupLabel(q[j]));break;case 65:break;case 66:break;case 67:this.$={id1:q[j-2],id2:q[j],relation:q[j-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:q[j-3],id2:q[j],relation:q[j-1],relationTitle1:q[j-2],relationTitle2:"none"};break;case 69:this.$={id1:q[j-3],id2:q[j],relation:q[j-2],relationTitle1:"none",relationTitle2:q[j-1]};break;case 70:this.$={id1:q[j-4],id2:q[j],relation:q[j-2],relationTitle1:q[j-3],relationTitle2:q[j-1]};break;case 71:this.$=_e.addNote(q[j],q[j-1]);break;case 72:this.$=_e.addNote(q[j]);break;case 73:this.$=q[j-2],_e.defineClass(q[j-1],q[j]);break;case 75:this.$=q[j-2].concat([q[j]]);break;case 76:_e.setDirection("TB");break;case 77:_e.setDirection("BT");break;case 78:_e.setDirection("RL");break;case 79:_e.setDirection("LR");break;case 80:this.$={type1:q[j-2],type2:q[j],lineType:q[j-1]};break;case 81:this.$={type1:"none",type2:q[j],lineType:q[j-1]};break;case 82:this.$={type1:q[j-1],type2:"none",lineType:q[j]};break;case 83:this.$={type1:"none",type2:"none",lineType:q[j]};break;case 84:this.$=_e.relationType.AGGREGATION;break;case 85:this.$=_e.relationType.EXTENSION;break;case 86:this.$=_e.relationType.COMPOSITION;break;case 87:this.$=_e.relationType.DEPENDENCY;break;case 88:this.$=_e.relationType.LOLLIPOP;break;case 89:this.$=_e.lineType.LINE;break;case 90:this.$=_e.lineType.DOTTED_LINE;break;case 91:case 97:this.$=q[j-2],_e.setClickEvent(q[j-1],q[j]);break;case 92:case 98:this.$=q[j-3],_e.setClickEvent(q[j-2],q[j-1]),_e.setTooltip(q[j-2],q[j]);break;case 93:this.$=q[j-2],_e.setLink(q[j-1],q[j]);break;case 94:this.$=q[j-3],_e.setLink(q[j-2],q[j-1],q[j]);break;case 95:this.$=q[j-3],_e.setLink(q[j-2],q[j-1]),_e.setTooltip(q[j-2],q[j]);break;case 96:this.$=q[j-4],_e.setLink(q[j-3],q[j-2],q[j]),_e.setTooltip(q[j-3],q[j-1]);break;case 99:this.$=q[j-3],_e.setClickEvent(q[j-2],q[j-1],q[j]);break;case 100:this.$=q[j-4],_e.setClickEvent(q[j-3],q[j-2],q[j-1]),_e.setTooltip(q[j-3],q[j]);break;case 101:this.$=q[j-3],_e.setLink(q[j-2],q[j]);break;case 102:this.$=q[j-4],_e.setLink(q[j-3],q[j-1],q[j]);break;case 103:this.$=q[j-4],_e.setLink(q[j-3],q[j-1]),_e.setTooltip(q[j-3],q[j]);break;case 104:this.$=q[j-5],_e.setLink(q[j-4],q[j-2],q[j]),_e.setTooltip(q[j-4],q[j-1]);break;case 105:this.$=q[j-2],_e.setCssStyle(q[j-1],q[j]);break;case 106:_e.setCssClass(q[j-1],q[j]);break;case 107:this.$=[q[j]];break;case 108:q[j-2].push(q[j]),this.$=q[j-2];break;case 110:this.$=q[j-1]+q[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:a,43:23,46:i,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:v,75:y,76:b,78:_,82:S,83:x,86:C,100:T,102:w,103:R},{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:N}),{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:R},{16:39,17:40,19:71,60:f,86:C,100:T,102:w,103:R},{16:39,17:40,19:72,60:f,86:C,100:T,102:w,103:R},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:C,100:T,102:w,103:R},{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:R}),t(B,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:C,100:T,102:w,103:R},{16:39,17:40,19:87,60:f,86:C,100:T,102:w,103:R},t(U,[2,133]),t(U,[2,134]),t(U,[2,135]),t(U,[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:a,46:i,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:v,75:y,76:b,78:_,82:S,83:x,86:C,100:T,102:w,103:R}),{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:a,43:23,46:i,48:s,51:o,52:l,54:u,56:d,57:h,60:f,62:p,63:g,64:m,65:v,75:y,76:b,78:_,82:S,83:x,86:C,100:T,102:w,103:R},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:R},{53:92,66:56,67:57,68:$,69:F,70:A,71:I,72:D,73:L,74:N},t(M,[2,64]),{67:93,73:L,74:N},t(G,[2,83],{66:94,68:$,69:F,70:A,71:I,72:D}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Y,[2,89]),t(Y,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:s,54:u,56:d},{16:100,60:f,86:C,100:T,102:w},{41:[1,102],45:101,51:ee},{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:X,50:le,59:110,60:te,82:ne,84:111,85:112,86:ae,87:re,88:ge,89:pe,90:Be},{60:[1,122]},{13:z,55:123},t(P,[2,72]),t(P,[2,138]),{22:X,50:le,59:124,60:te,61:[1,125],82:ne,84:111,85:112,86:ae,87:re,88:ge,89:pe,90:Be},t(Le,[2,74]),{16:39,17:40,19:126,60:f,86:C,100:T,102:w,103:R},t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),{11:127,12:He,39:[2,36]},t(Re,[2,9],{16:85,17:86,15:130,18:[1,129],60:f,86:C,100:T,102:w,103:R}),t(Re,[2,10]),t(xe,[2,55],{11:131,12:He}),t(O,[2,7]),{9:[1,132]},t($e,[2,67]),{16:39,17:40,19:133,60:f,86:C,100:T,102:w,103:R},{13:[1,135],16:39,17:40,19:134,60:f,86:C,100:T,102:w,103:R},t(G,[2,82],{66:136,68:$,69:F,70:A,71:I,72:D}),t(G,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,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:ee},{47:[1,145]},{16:39,17:40,19:146,60:f,86:C,100:T,102:w,103:R},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:Ce}),t(ut,[2,107],{85:154,22:X,50:le,60:te,82:ne,86:ae,87:re,88:ge,89:pe,90:Be}),t(Ae,[2,109]),t(Ae,[2,111]),t(Ae,[2,112]),t(Ae,[2,113]),t(Ae,[2,114]),t(Ae,[2,115]),t(Ae,[2,116]),t(Ae,[2,117]),t(Ae,[2,118]),t(Ae,[2,119]),t(M,[2,106]),t(P,[2,71]),t(M,[2,73],{61:Ce}),{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:R},t(Re,[2,12]),t(xe,[2,56]),{1:[2,4]},t($e,[2,69]),t($e,[2,68]),{16:39,17:40,19:158,60:f,86:C,100:T,102:w,103:R},t(G,[2,80]),t(P,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:s,54:u,56:d},{45:163,51:ee},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:X,50:le,60:te,82:ne,84:169,85:112,86:ae,87:re,88:ge,89:pe,90:Be},t(Ae,[2,110]),t(Le,[2,75]),{14:[1,170]},t(Re,[2,11]),t($e,[2,70]),t(P,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ee},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:X,50:le,60:te,82:ne,86:ae,87:re,88:ge,89:pe,90:Be}),t(xe,[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:E(function(it,ke){if(ke.recoverable)this.trace(it);else{var Qe=new Error(it);throw Qe.hash=ke,Qe}},"parseError"),parse:E(function(it){var ke=this,Qe=[0],_e=[],ye=[null],q=[],fe=this.table,j="",we=0,Te=0,rt=2,Oe=1,Pe=q.slice.call(arguments,1),Ie=Object.create(this.lexer),Ze={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(Ze.yy[ze]=this.yy[ze]);Ie.setInput(it,Ze.yy),Ze.yy.lexer=Ie,Ze.yy.parser=this,typeof Ie.yylloc>"u"&&(Ie.yylloc={});var me=Ie.yylloc;q.push(me);var ie=Ie.options&&Ie.options.ranges;typeof Ze.yy.parseError=="function"?this.parseError=Ze.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ve(Nt){Qe.length=Qe.length-2*Nt,ye.length=ye.length-Nt,q.length=q.length-Nt}E(Ve,"popStack");function ve(){var Nt;return Nt=_e.pop()||Ie.lex()||Oe,typeof Nt!="number"&&(Nt instanceof Array&&(_e=Nt,Nt=_e.pop()),Nt=ke.symbols_[Nt]||Nt),Nt}E(ve,"lex");for(var Tt,St,nt,dt,ft={},gt,se,It,bt;;){if(St=Qe[Qe.length-1],this.defaultActions[St]?nt=this.defaultActions[St]:((Tt===null||typeof Tt>"u")&&(Tt=ve()),nt=fe[St]&&fe[St][Tt]),typeof nt>"u"||!nt.length||!nt[0]){var Et="";bt=[];for(gt in fe[St])this.terminals_[gt]&>>rt&&bt.push("'"+this.terminals_[gt]+"'");Ie.showPosition?Et="Parse error on line "+(we+1)+`: `+Ie.showPosition()+` Expecting `+bt.join(", ")+", got '"+(this.terminals_[Tt]||Tt)+"'":Et="Parse error on line "+(we+1)+": Unexpected "+(Tt==Oe?"end of input":"'"+(this.terminals_[Tt]||Tt)+"'"),this.parseError(Et,{text:Ie.match,token:this.terminals_[Tt]||Tt,line:Ie.yylineno,loc:me,expected:bt})}if(nt[0]instanceof Array&&nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+Tt);switch(nt[0]){case 1:Qe.push(Tt),ye.push(Ie.yytext),q.push(Ie.yylloc),Qe.push(nt[1]),Tt=null,Te=Ie.yyleng,j=Ie.yytext,we=Ie.yylineno,me=Ie.yylloc;break;case 2:if(se=this.productions_[nt[1]][1],ft.$=ye[ye.length-se],ft._$={first_line:q[q.length-(se||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(se||1)].first_column,last_column:q[q.length-1].last_column},ie&&(ft._$.range=[q[q.length-(se||1)].range[0],q[q.length-1].range[1]]),dt=this.performAction.apply(ft,[j,Te,we,Ze.yy,nt[1],ye,q].concat(Pe)),typeof dt<"u")return dt;se&&(Qe=Qe.slice(0,-1*se*2),ye=ye.slice(0,-1*se),q=q.slice(0,-1*se)),Qe.push(this.productions_[nt[1]][0]),ye.push(ft.$),q.push(ft._$),It=fe[Qe[Qe.length-2]][Qe[Qe.length-1]],Qe.push(It);break;case 3:return!0}}return!0},"parse")},ot=(function(){var ct={EOF:1,parseError:E(function(ke,Qe){if(this.yy.parser)this.yy.parser.parseError(ke,Qe);else throw new Error(ke)},"parseError"),setInput:E(function(it,ke){return this.yy=ke||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:E(function(){var it=this._input[0];this.yytext+=it,this.yyleng++,this.offset++,this.match+=it,this.matched+=it;var ke=it.match(/(?:\r\n?|\n).*/g);return ke?(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:E(function(it){var ke=it.length,Qe=it.split(/(?:\r\n?|\n)/g);this._input=it+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ke),this.offset-=ke;var _e=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),Qe.length-1&&(this.yylineno-=Qe.length-1);var ye=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:Qe?(Qe.length===_e.length?this.yylloc.first_column:0)+_e[_e.length-Qe.length].length-Qe[0].length:this.yylloc.first_column-ke},this.options.ranges&&(this.yylloc.range=[ye[0],ye[0]+this.yyleng-ke]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(it){this.unput(this.match.slice(it))},"less"),pastInput:E(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:E(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:E(function(){var it=this.pastInput(),ke=new Array(it.length+1).join("-");return it+this.upcomingInput()+` `+ke+"^"},"showPosition"),test_match:E(function(it,ke){var Qe,_e,ye;if(this.options.backtrack_lexer&&(ye={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&&(ye.yylloc.range=this.yylloc.range.slice(0))),_e=it[0].match(/(?:\r\n?|\n).*/g),_e&&(this.yylineno+=_e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_e?_e[_e.length-1].length-_e[_e.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],Qe=this.performAction.call(this,this.yy,this,ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qe)return Qe;if(this._backtrack){for(var q in ye)this[q]=ye[q];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var it,ke,Qe,_e;this._more||(this.yytext="",this.match="");for(var ye=this._currentRules(),q=0;qke[0].length)){if(ke=Qe,_e=q,this.options.backtrack_lexer){if(it=this.test_match(Qe,ye[q]),it!==!1)return it;if(this._backtrack){ke=!1;continue}else return!1}else if(!this.options.flex)break}return ke?(it=this.test_match(ke,ye[_e]),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:E(function(){var ke=this.next();return ke||this.lex()},"lex"),begin:E(function(ke){this.conditionStack.push(ke)},"begin"),popState:E(function(){var ke=this.conditionStack.length-1;return ke>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(ke){return ke=this.conditionStack.length-1-Math.abs(ke||0),ke>=0?this.conditionStack[ke]:"INITIAL"},"topState"),pushState:E(function(ke){this.begin(ke)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:E(function(ke,Qe,_e,ye){switch(_e){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 ct})();je.lexer=ot;function lt(){this.yy={}}return E(lt,"Parser"),lt.prototype=je,je.Parser=lt,new lt})();Tz.parser=Tz;var FAe=Tz,vle=["#","+","~","-",""],F_,yle=(F_=class{constructor(e,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";const n=dn(e,Ye());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+Ad(this.id);this.memberType==="method"&&(e+=`(${Ad(this.parameters.trim())})`,this.returnType&&(e+=" : "+Ad(this.returnType))),e=e.trim();const r=this.parseClassifier();return{displayText:e,cssStyle:r}}parseMember(e){let r="";if(this.memberType==="method"){const i=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(i){const s=i[1]?i[1].trim():"";if(vle.includes(s)&&(this.visibility=s),this.id=i[2],this.parameters=i[3]?i[3].trim():"",r=i[4]?i[4].trim():"",this.returnType=i[5]?i[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 a=e.length,i=e.substring(0,1),s=e.substring(a-1);vle.includes(i)&&(this.visibility=i),/[$*]/.exec(s)&&(r=s),this.id=e.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const n=`${this.visibility?"\\"+this.visibility:""}${Ad(this.id)}${this.memberType==="method"?`(${Ad(this.parameters)})${this.returnType?" : "+Ad(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""}}},E(F_,"ClassMember"),F_),Y3="classId-",_le=0,Tf=E(t=>qt.sanitizeText(t,Ye()),"sanitizeText"),nh,$Ae=(nh=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=E(e=>{const r=Q2e();At(e).select("svg").selectAll("g").filter(function(){return At(this).attr("title")!==null}).on("mouseover",i=>{const s=At(i.currentTarget),o=s.attr("title");if(!o)return;const l=i.currentTarget.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.html(uh.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",i=>{r.transition().duration(500).style("opacity",0),At(i.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=sa,this.getAccTitle=va,this.setAccDescription=ya,this.getAccDescription=_a,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getConfig=E(()=>Ye().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,Ye());let n="",a=r;if(r.indexOf("~")>0){const i=r.split("~");a=Tf(i[0]),n=Tf(i[1])}return{className:a,type:n}}setClassLabel(e,r){const n=qt.sanitizeText(e,Ye());r&&(r=Tf(r));const{className:a}=this.splitClassNameAndType(n);this.classes.get(a).label=r,this.classes.get(a).text=`${r}${this.classes.get(a).type?`<${this.classes.get(a).type}>`:""}`}addClass(e){const r=qt.sanitizeText(e,Ye()),{className:n,type:a}=this.splitClassNameAndType(r);if(this.classes.has(n))return;const i=qt.sanitizeText(n,Ye());this.classes.set(i,{id:i,type:a,label:i,text:`${i}${a?`<${a}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:Y3+i+"-"+_le}),_le++}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,Ye());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",oa()}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){oe.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(),Ye()),e.relationTitle2=qt.sanitizeText(e.relationTitle2.trim(),Ye()),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,a=this.classes.get(n);if(typeof r=="string"){const i=r.trim();i.startsWith("<<")&&i.endsWith(">>")?a.annotations.push(Tf(i.substring(2,i.length-2))):i.indexOf(")")>0?a.methods.push(new yle(i,"method")):i&&a.members.push(new yle(i,"attribute"))}}addMembers(e,r){Array.isArray(r)&&(r.reverse(),r.forEach(n=>this.addMember(e,n)))}addNote(e,r){const n=this.notes.size,a={id:`note${n}`,class:r,text:e,index:n};return this.notes.set(a.id,a),a.id}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),Tf(e.trim())}setCssClass(e,r){e.split(",").forEach(n=>{let a=n;/\d/.exec(n[0])&&(a=Y3+a);const i=this.classes.get(a);i&&(i.cssClasses+=" "+r)})}defineClass(e,r){for(const n of e){let a=this.styleClasses.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,a)),r&&r.forEach(i=>{if(/color/.exec(i)){const s=i.replace("fill","bgFill");a.textStyles.push(s)}a.styles.push(i)}),this.classes.forEach(i=>{i.cssClasses.includes(n)&&i.styles.push(...r.flatMap(s=>s.split(",")))})}}setTooltip(e,r){e.split(",").forEach(n=>{r!==void 0&&(this.classes.get(n).tooltip=Tf(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 a=Ye();e.split(",").forEach(i=>{let s=i;/\d/.exec(i[0])&&(s=Y3+s);const o=this.classes.get(s);o&&(o.link=Kr.formatUrl(r,a),a.securityLevel==="sandbox"?o.linkTarget="_top":typeof n=="string"?o.linkTarget=Tf(n):o.linkTarget="_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,r,n){e.split(",").forEach(a=>{this.setClickFunc(a,r,n),this.classes.get(a).haveCallback=!0}),this.setCssClass(e,"clickable")}setClickFunc(e,r,n){const a=qt.sanitizeText(e,Ye());if(Ye().securityLevel!=="loose"||r===void 0)return;const s=a;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",()=>{Kr.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 a=1;a0?i[s-1]:void 0,u=s===i.length-1,d=u&&r?r:a[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 a of r){const{className:i}=this.splitClassNameAndType(a),s=this.getClass(i);s.parent=e,this.namespaces.get(e).classes.set(i,s)}for(const a of n){const i=this.getNote(a);i.parent=e,this.namespaces.get(e).notes.set(a,i)}}}setCssStyle(e,r){const n=this.classes.get(e);if(!(!r||!n))for(const a of r)a.includes(",")?n.styles.push(...a.split(",")):n.styles.push(a)}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=Ye(),a=n.class?.hierarchicalNamespaces??!0;for(const s of this.namespaces.values()){if(!a&&!s.explicit)continue;const o={id:s.id,label:a?s.label:s.id,isGroup:!0,padding:n.class.padding??16,shape:"rect",cssStyles:[],look:n.look,parentId:a?s.parent:void 0};e.push(o)}for(const s of this.classes.values()){const o=a?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=a?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 i=0;for(const s of this.relations){i++;const o={id:n1(s.id1,s.id2,{prefix:"id",counter:i}),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()}}},E(nh,"ClassDB"),nh),$It=E(t=>`g.classGroup text { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var ke=this.next();return ke||this.lex()},"lex"),begin:E(function(ke){this.conditionStack.push(ke)},"begin"),popState:E(function(){var ke=this.conditionStack.length-1;return ke>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(ke){return ke=this.conditionStack.length-1-Math.abs(ke||0),ke>=0?this.conditionStack[ke]:"INITIAL"},"topState"),pushState:E(function(ke){this.begin(ke)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:E(function(ke,Qe,_e,ye){switch(_e){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 ct})();je.lexer=ot;function lt(){this.yy={}}return E(lt,"Parser"),lt.prototype=je,je.Parser=lt,new lt})();Tz.parser=Tz;var FAe=Tz,vle=["#","+","~","-",""],F_,yle=(F_=class{constructor(e,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";const n=dn(e,Ye());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+Ad(this.id);this.memberType==="method"&&(e+=`(${Ad(this.parameters.trim())})`,this.returnType&&(e+=" : "+Ad(this.returnType))),e=e.trim();const r=this.parseClassifier();return{displayText:e,cssStyle:r}}parseMember(e){let r="";if(this.memberType==="method"){const i=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(i){const s=i[1]?i[1].trim():"";if(vle.includes(s)&&(this.visibility=s),this.id=i[2],this.parameters=i[3]?i[3].trim():"",r=i[4]?i[4].trim():"",this.returnType=i[5]?i[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 a=e.length,i=e.substring(0,1),s=e.substring(a-1);vle.includes(i)&&(this.visibility=i),/[$*]/.exec(s)&&(r=s),this.id=e.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const n=`${this.visibility?"\\"+this.visibility:""}${Ad(this.id)}${this.memberType==="method"?`(${Ad(this.parameters)})${this.returnType?" : "+Ad(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""}}},E(F_,"ClassMember"),F_),Y3="classId-",_le=0,Tf=E(t=>qt.sanitizeText(t,Ye()),"sanitizeText"),nh,$Ae=(nh=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=E(e=>{const r=Q2e();At(e).select("svg").selectAll("g").filter(function(){return At(this).attr("title")!==null}).on("mouseover",i=>{const s=At(i.currentTarget),o=s.attr("title");if(!o)return;const l=i.currentTarget.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.html(uh.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",i=>{r.transition().duration(500).style("opacity",0),At(i.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=sa,this.getAccTitle=va,this.setAccDescription=ya,this.getAccDescription=_a,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getConfig=E(()=>Ye().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,Ye());let n="",a=r;if(r.indexOf("~")>0){const i=r.split("~");a=Tf(i[0]),n=Tf(i[1])}return{className:a,type:n}}setClassLabel(e,r){const n=qt.sanitizeText(e,Ye());r&&(r=Tf(r));const{className:a}=this.splitClassNameAndType(n);this.classes.get(a).label=r,this.classes.get(a).text=`${r}${this.classes.get(a).type?`<${this.classes.get(a).type}>`:""}`}addClass(e){const r=qt.sanitizeText(e,Ye()),{className:n,type:a}=this.splitClassNameAndType(r);if(this.classes.has(n))return;const i=qt.sanitizeText(n,Ye());this.classes.set(i,{id:i,type:a,label:i,text:`${i}${a?`<${a}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:Y3+i+"-"+_le}),_le++}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,Ye());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",oa()}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){oe.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(),Ye()),e.relationTitle2=qt.sanitizeText(e.relationTitle2.trim(),Ye()),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,a=this.classes.get(n);if(typeof r=="string"){const i=r.trim();i.startsWith("<<")&&i.endsWith(">>")?a.annotations.push(Tf(i.substring(2,i.length-2))):i.indexOf(")")>0?a.methods.push(new yle(i,"method")):i&&a.members.push(new yle(i,"attribute"))}}addMembers(e,r){Array.isArray(r)&&(r.reverse(),r.forEach(n=>this.addMember(e,n)))}addNote(e,r){const n=this.notes.size,a={id:`note${n}`,class:r,text:e,index:n};return this.notes.set(a.id,a),a.id}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),Tf(e.trim())}setCssClass(e,r){e.split(",").forEach(n=>{let a=n;/\d/.exec(n[0])&&(a=Y3+a);const i=this.classes.get(a);i&&(i.cssClasses+=" "+r)})}defineClass(e,r){for(const n of e){let a=this.styleClasses.get(n);a===void 0&&(a={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,a)),r&&r.forEach(i=>{if(/color/.exec(i)){const s=i.replace("fill","bgFill");a.textStyles.push(s)}a.styles.push(i)}),this.classes.forEach(i=>{i.cssClasses.includes(n)&&i.styles.push(...r.flatMap(s=>s.split(",")))})}}setTooltip(e,r){e.split(",").forEach(n=>{r!==void 0&&(this.classes.get(n).tooltip=Tf(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 a=Ye();e.split(",").forEach(i=>{let s=i;/\d/.exec(i[0])&&(s=Y3+s);const o=this.classes.get(s);o&&(o.link=Kr.formatUrl(r,a),a.securityLevel==="sandbox"?o.linkTarget="_top":typeof n=="string"?o.linkTarget=Tf(n):o.linkTarget="_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,r,n){e.split(",").forEach(a=>{this.setClickFunc(a,r,n),this.classes.get(a).haveCallback=!0}),this.setCssClass(e,"clickable")}setClickFunc(e,r,n){const a=qt.sanitizeText(e,Ye());if(Ye().securityLevel!=="loose"||r===void 0)return;const s=a;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",()=>{Kr.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 a=1;a0?i[s-1]:void 0,u=s===i.length-1,d=u&&r?r:a[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 a of r){const{className:i}=this.splitClassNameAndType(a),s=this.getClass(i);s.parent=e,this.namespaces.get(e).classes.set(i,s)}for(const a of n){const i=this.getNote(a);i.parent=e,this.namespaces.get(e).notes.set(a,i)}}}setCssStyle(e,r){const n=this.classes.get(e);if(!(!r||!n))for(const a of r)a.includes(",")?n.styles.push(...a.split(",")):n.styles.push(a)}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=Ye(),a=n.class?.hierarchicalNamespaces??!0;for(const s of this.namespaces.values()){if(!a&&!s.explicit)continue;const o={id:s.id,label:a?s.label:s.id,isGroup:!0,padding:n.class.padding??16,shape:"rect",cssStyles:[],look:n.look,parentId:a?s.parent:void 0};e.push(o)}for(const s of this.classes.values()){const o=a?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=a?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 i=0;for(const s of this.relations){i++;const o={id:n1(s.id1,s.id2,{prefix:"id",counter:i}),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()}}},E(nh,"ClassDB"),nh),zIt=E(t=>`g.classGroup text { fill: ${t.nodeBorder||t.classText}; stroke: none; font-family: ${t.fontFamily}; @@ -6275,12 +6280,12 @@ g.classGroup line { text-align: center; } ${YT()} -`,"getStyles"),zAe=$It,zIt=E((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"),UIt=E(function(t,e){return e.db.getClasses()},"getClasses"),GIt=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing class diagram (v3)",e);const{securityLevel:a,state:i,layout:s}=Ye();n.db.setDiagramId(e);const o=n.db.getData(),l=b2(e,a);o.type=n.type,o.layoutAlgorithm=ST(s),o.nodeSpacing=i?.nodeSpacing||50,o.rankSpacing=i?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=e,await n2(o,l);const u=8;Kr.insertTitle(l,"classDiagramTitleText",i?.titleTopMargin??25,n.db.getDiagramTitle()),gg(l,u,"classDiagram",i?.useMaxWidth??!0)},"draw"),UAe={getClasses:UIt,draw:GIt,getDir:zIt},qIt={parser:FAe,get db(){return new $Ae},renderer:UAe,styles:zAe,init:E(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const YIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:qIt},Symbol.toStringTag,{value:"Module"}));var HIt={parser:FAe,get db(){return new $Ae},renderer:UAe,styles:zAe,init:E(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const VIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:HIt},Symbol.toStringTag,{value:"Module"}));var xz=(function(){var t=E(function(P,z,B,U){for(B=B||{},U=P.length;U--;B[P[U]]=z);return B},"o"),e=[1,2],r=[1,3],n=[1,4],a=[2,4],i=[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],v=[1,24],y=[1,26],b=[1,27],_=[1,28],S=[1,29],x=[1,30],C=[1,31],T=[1,32],w=[1,35],R=[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:E(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:E(function(z,B,U,G,K,Y,ee){var X=Y.length-1;switch(K){case 3:return G.setRootDoc(Y[X]),Y[X];case 4:this.$=[];break;case 5:Y[X]!="nl"&&(Y[X-1].push(Y[X]),this.$=Y[X-1]);break;case 6:case 7:this.$=Y[X];break;case 8:this.$="nl";break;case 12:this.$=Y[X];break;case 13:const ae=Y[X-1];ae.description=G.trimColon(Y[X]),this.$=ae;break;case 14:this.$={stmt:"relation",state1:Y[X-2],state2:Y[X]};break;case 15:const re=G.trimColon(Y[X]);this.$={stmt:"relation",state1:Y[X-3],state2:Y[X-1],description:re};break;case 19:this.$={stmt:"state",id:Y[X-3],type:"default",description:"",doc:Y[X-1]};break;case 20:var le=Y[X],te=Y[X-2].trim();if(Y[X].match(":")){var ne=Y[X].split(":");le=ne[0],te=[te,ne[1]]}this.$={stmt:"state",id:le,type:"default",description:te};break;case 21:this.$={stmt:"state",id:Y[X-3],type:"default",description:Y[X-5],doc:Y[X-1]};break;case 22:this.$={stmt:"state",id:Y[X],type:"fork"};break;case 23:this.$={stmt:"state",id:Y[X],type:"join"};break;case 24:this.$={stmt:"state",id:Y[X],type:"choice"};break;case 25:this.$={stmt:"state",id:G.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:Y[X-1].trim(),note:{position:Y[X-2].trim(),text:Y[X].trim()}};break;case 29:this.$=Y[X].trim(),G.setAccTitle(this.$);break;case 30:case 31:this.$=Y[X].trim(),G.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:Y[X-3],url:Y[X-2],tooltip:Y[X-1]};break;case 33:this.$={stmt:"click",id:Y[X-3],url:Y[X-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:Y[X-1].trim(),classes:Y[X].trim()};break;case 36:this.$={stmt:"style",id:Y[X-1].trim(),styleClass:Y[X].trim()};break;case 37:this.$={stmt:"applyClass",id:Y[X-1].trim(),styleClass:Y[X].trim()};break;case 38:G.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:G.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:G.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:G.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:Y[X].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:Y[X-2].trim(),classes:[Y[X].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:Y[X-2].trim(),classes:[Y[X].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],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,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:v,32:25,33:y,35:b,37:_,38:S,41:x,45:C,48:T,51:w,52:R,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:v,32:25,33:y,35:b,37:_,38:S,41:x,45:C,48:T,51:w,52:R,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,a,{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:i,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:v,32:25,33:y,35:b,37:_,38:S,41:x,45:C,48:T,51:w,52:R,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,a,{7:78}),t(F,[2,26]),t(F,[2,27]),{5:[1,79]},{5:[1,80]},{4:i,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:v,32:25,33:y,35:b,37:_,38:S,41:x,45:C,48:T,51:w,52:R,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:E(function(z,B){if(B.recoverable)this.trace(z);else{var U=new Error(z);throw U.hash=B,U}},"parseError"),parse:E(function(z){var B=this,U=[0],G=[],K=[null],Y=[],ee=this.table,X="",le=0,te=0,ne=2,ae=1,re=Y.slice.call(arguments,1),ge=Object.create(this.lexer),pe={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(pe.yy[Be]=this.yy[Be]);ge.setInput(z,pe.yy),pe.yy.lexer=ge,pe.yy.parser=this,typeof ge.yylloc>"u"&&(ge.yylloc={});var Le=ge.yylloc;Y.push(Le);var He=ge.options&&ge.options.ranges;typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(Qe){U.length=U.length-2*Qe,K.length=K.length-Qe,Y.length=Y.length-Qe}E(Re,"popStack");function xe(){var Qe;return Qe=G.pop()||ge.lex()||ae,typeof Qe!="number"&&(Qe instanceof Array&&(G=Qe,Qe=G.pop()),Qe=B.symbols_[Qe]||Qe),Qe}E(xe,"lex");for(var $e,Ce,ut,Ae,je={},ot,lt,ct,it;;){if(Ce=U[U.length-1],this.defaultActions[Ce]?ut=this.defaultActions[Ce]:(($e===null||typeof $e>"u")&&($e=xe()),ut=ee[Ce]&&ee[Ce][$e]),typeof ut>"u"||!ut.length||!ut[0]){var ke="";it=[];for(ot in ee[Ce])this.terminals_[ot]&&ot>ne&&it.push("'"+this.terminals_[ot]+"'");ge.showPosition?ke="Parse error on line "+(le+1)+`: +`,"getStyles"),zAe=zIt,UIt=E((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"),GIt=E(function(t,e){return e.db.getClasses()},"getClasses"),qIt=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing class diagram (v3)",e);const{securityLevel:a,state:i,layout:s}=Ye();n.db.setDiagramId(e);const o=n.db.getData(),l=b2(e,a);o.type=n.type,o.layoutAlgorithm=ST(s),o.nodeSpacing=i?.nodeSpacing||50,o.rankSpacing=i?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=e,await n2(o,l);const u=8;Kr.insertTitle(l,"classDiagramTitleText",i?.titleTopMargin??25,n.db.getDiagramTitle()),gg(l,u,"classDiagram",i?.useMaxWidth??!0)},"draw"),UAe={getClasses:GIt,draw:qIt,getDir:UIt},YIt={parser:FAe,get db(){return new $Ae},renderer:UAe,styles:zAe,init:E(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const HIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:YIt},Symbol.toStringTag,{value:"Module"}));var VIt={parser:FAe,get db(){return new $Ae},renderer:UAe,styles:zAe,init:E(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const WIt=Object.freeze(Object.defineProperty({__proto__:null,diagram:VIt},Symbol.toStringTag,{value:"Module"}));var xz=(function(){var t=E(function(P,z,B,U){for(B=B||{},U=P.length;U--;B[P[U]]=z);return B},"o"),e=[1,2],r=[1,3],n=[1,4],a=[2,4],i=[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],v=[1,24],y=[1,26],b=[1,27],_=[1,28],S=[1,29],x=[1,30],C=[1,31],T=[1,32],w=[1,35],R=[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:E(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:E(function(z,B,U,G,K,Y,ee){var X=Y.length-1;switch(K){case 3:return G.setRootDoc(Y[X]),Y[X];case 4:this.$=[];break;case 5:Y[X]!="nl"&&(Y[X-1].push(Y[X]),this.$=Y[X-1]);break;case 6:case 7:this.$=Y[X];break;case 8:this.$="nl";break;case 12:this.$=Y[X];break;case 13:const ae=Y[X-1];ae.description=G.trimColon(Y[X]),this.$=ae;break;case 14:this.$={stmt:"relation",state1:Y[X-2],state2:Y[X]};break;case 15:const re=G.trimColon(Y[X]);this.$={stmt:"relation",state1:Y[X-3],state2:Y[X-1],description:re};break;case 19:this.$={stmt:"state",id:Y[X-3],type:"default",description:"",doc:Y[X-1]};break;case 20:var le=Y[X],te=Y[X-2].trim();if(Y[X].match(":")){var ne=Y[X].split(":");le=ne[0],te=[te,ne[1]]}this.$={stmt:"state",id:le,type:"default",description:te};break;case 21:this.$={stmt:"state",id:Y[X-3],type:"default",description:Y[X-5],doc:Y[X-1]};break;case 22:this.$={stmt:"state",id:Y[X],type:"fork"};break;case 23:this.$={stmt:"state",id:Y[X],type:"join"};break;case 24:this.$={stmt:"state",id:Y[X],type:"choice"};break;case 25:this.$={stmt:"state",id:G.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:Y[X-1].trim(),note:{position:Y[X-2].trim(),text:Y[X].trim()}};break;case 29:this.$=Y[X].trim(),G.setAccTitle(this.$);break;case 30:case 31:this.$=Y[X].trim(),G.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:Y[X-3],url:Y[X-2],tooltip:Y[X-1]};break;case 33:this.$={stmt:"click",id:Y[X-3],url:Y[X-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:Y[X-1].trim(),classes:Y[X].trim()};break;case 36:this.$={stmt:"style",id:Y[X-1].trim(),styleClass:Y[X].trim()};break;case 37:this.$={stmt:"applyClass",id:Y[X-1].trim(),styleClass:Y[X].trim()};break;case 38:G.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:G.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:G.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:G.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:Y[X].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:Y[X-2].trim(),classes:[Y[X].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:Y[X-2].trim(),classes:[Y[X].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],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,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:v,32:25,33:y,35:b,37:_,38:S,41:x,45:C,48:T,51:w,52:R,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:v,32:25,33:y,35:b,37:_,38:S,41:x,45:C,48:T,51:w,52:R,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,a,{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:i,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:v,32:25,33:y,35:b,37:_,38:S,41:x,45:C,48:T,51:w,52:R,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,a,{7:78}),t(F,[2,26]),t(F,[2,27]),{5:[1,79]},{5:[1,80]},{4:i,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:v,32:25,33:y,35:b,37:_,38:S,41:x,45:C,48:T,51:w,52:R,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:E(function(z,B){if(B.recoverable)this.trace(z);else{var U=new Error(z);throw U.hash=B,U}},"parseError"),parse:E(function(z){var B=this,U=[0],G=[],K=[null],Y=[],ee=this.table,X="",le=0,te=0,ne=2,ae=1,re=Y.slice.call(arguments,1),ge=Object.create(this.lexer),pe={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(pe.yy[Be]=this.yy[Be]);ge.setInput(z,pe.yy),pe.yy.lexer=ge,pe.yy.parser=this,typeof ge.yylloc>"u"&&(ge.yylloc={});var Le=ge.yylloc;Y.push(Le);var He=ge.options&&ge.options.ranges;typeof pe.yy.parseError=="function"?this.parseError=pe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(Qe){U.length=U.length-2*Qe,K.length=K.length-Qe,Y.length=Y.length-Qe}E(Re,"popStack");function xe(){var Qe;return Qe=G.pop()||ge.lex()||ae,typeof Qe!="number"&&(Qe instanceof Array&&(G=Qe,Qe=G.pop()),Qe=B.symbols_[Qe]||Qe),Qe}E(xe,"lex");for(var $e,Ce,ut,Ae,je={},ot,lt,ct,it;;){if(Ce=U[U.length-1],this.defaultActions[Ce]?ut=this.defaultActions[Ce]:(($e===null||typeof $e>"u")&&($e=xe()),ut=ee[Ce]&&ee[Ce][$e]),typeof ut>"u"||!ut.length||!ut[0]){var ke="";it=[];for(ot in ee[Ce])this.terminals_[ot]&&ot>ne&&it.push("'"+this.terminals_[ot]+"'");ge.showPosition?ke="Parse error on line "+(le+1)+`: `+ge.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[$e]||$e)+"'":ke="Parse error on line "+(le+1)+": Unexpected "+($e==ae?"end of input":"'"+(this.terminals_[$e]||$e)+"'"),this.parseError(ke,{text:ge.match,token:this.terminals_[$e]||$e,line:ge.yylineno,loc:Le,expected:it})}if(ut[0]instanceof Array&&ut.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ce+", token: "+$e);switch(ut[0]){case 1:U.push($e),K.push(ge.yytext),Y.push(ge.yylloc),U.push(ut[1]),$e=null,te=ge.yyleng,X=ge.yytext,le=ge.yylineno,Le=ge.yylloc;break;case 2:if(lt=this.productions_[ut[1]][1],je.$=K[K.length-lt],je._$={first_line:Y[Y.length-(lt||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(lt||1)].first_column,last_column:Y[Y.length-1].last_column},He&&(je._$.range=[Y[Y.length-(lt||1)].range[0],Y[Y.length-1].range[1]]),Ae=this.performAction.apply(je,[X,te,le,pe.yy,ut[1],K,Y].concat(re)),typeof Ae<"u")return Ae;lt&&(U=U.slice(0,-1*lt*2),K=K.slice(0,-1*lt),Y=Y.slice(0,-1*lt)),U.push(this.productions_[ut[1]][0]),K.push(je.$),Y.push(je._$),ct=ee[U[U.length-2]][U[U.length-1]],U.push(ct);break;case 3:return!0}}return!0},"parse")},L=(function(){var P={EOF:1,parseError:E(function(B,U){if(this.yy.parser)this.yy.parser.parseError(B,U);else throw new Error(B)},"parseError"),setInput:E(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:E(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:E(function(z){var B=z.length,U=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 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),U.length-1&&(this.yylineno-=U.length-1);var K=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===G.length?this.yylloc.first_column:0)+G[G.length-U.length].length-U[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[K[0],K[0]+this.yyleng-B]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(z){this.unput(this.match.slice(z))},"less"),pastInput:E(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:E(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:E(function(){var z=this.pastInput(),B=new Array(z.length+1).join("-");return z+this.upcomingInput()+` `+B+"^"},"showPosition"),test_match:E(function(z,B){var U,G,K;if(this.options.backtrack_lexer&&(K={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&&(K.yylloc.range=this.yylloc.range.slice(0))),G=z[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+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],U=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),U)return U;if(this._backtrack){for(var Y in K)this[Y]=K[Y];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var z,B,U,G;this._more||(this.yytext="",this.match="");for(var K=this._currentRules(),Y=0;YB[0].length)){if(B=U,G=Y,this.options.backtrack_lexer){if(z=this.test_match(U,K[Y]),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,K[G]),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:E(function(){var B=this.next();return B||this.lex()},"lex"),begin:E(function(B){this.conditionStack.push(B)},"begin"),popState:E(function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},"topState"),pushState:E(function(B){this.begin(B)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(B,U,G,K){function Y(){const ee=U.yytext.indexOf("%%");if(ee===0)return!1;if(ee>0){const X=U.yytext.slice(0,ee),le=U.yytext.slice(ee);le&&B.lexer.unput(le),U.yytext=X}return!0}switch(E(Y,"processId"),G){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(),U.yytext=U.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),U.yytext=U.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),U.yytext=U.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),U.yytext=U.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),U.yytext=U.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),U.yytext=U.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 Y()?(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 Y()?(this.popState(),"ID"):void 0;case 65:return Y()?(this.popState(),this.pushState("NOTE_TEXT"),24):void 0;case 66:return this.popState(),U.yytext=U.yytext.substr(2).trim(),31;case 67:return this.popState(),U.yytext=U.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 Y()?24:void 0;case 73:return U.yytext=U.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 N(){this.yy={}}return E(N,"Parser"),N.prototype=D,D.Parser=N,new N})();xz.parser=xz;var GAe=xz,WIt="TB",qAe="TB",ble="dir",km="state",im="root",Cz="relation",KIt="classDef",XIt="style",jIt="applyClass",LS="default",YAe="divider",HAe="fill:none",VAe="fill: #333",WAe="c",KAe="markdown",XAe="normal",gM="rect",mM="rectWithTitle",QIt="stateStart",ZIt="stateEnd",Ele="divider",Sle="roundedWithTitle",JIt="note",eOt="noteGroup",mx="statediagram",tOt="state",rOt=`${mx}-${tOt}`,jAe="transition",nOt="note",aOt="note-edge",iOt=`${jAe} ${aOt}`,sOt=`${mx}-${nOt}`,oOt="cluster",lOt=`${mx}-${oOt}`,cOt="cluster-alt",uOt=`${mx}-${cOt}`,QAe="parent",ZAe="note",dOt="state",HW="----",hOt=`${HW}${ZAe}`,Tle=`${HW}${QAe}`,JAe=E((t,e=qAe)=>{if(!t.doc)return e;let r=e;for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),fOt=E(function(t,e){return e.db.getClasses()},"getClasses"),pOt=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing state diagram (v2)",e);const{securityLevel:a,state:i,layout:s}=Ye();n.db.extract(n.db.getRootDocV2());const o=n.db.getData(),l=b2(e,a);o.type=n.type,o.layoutAlgorithm=s,o.nodeSpacing=i?.nodeSpacing||50,o.rankSpacing=i?.rankSpacing||50,Ye().look==="neo"?o.markers=["barbNeo"]:o.markers=["barb"],o.diagramId=e,await n2(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){oe.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(p));return}const m=l.node()?.querySelectorAll("g");let v;if(m?.forEach(S=>{S.textContent?.trim()===g&&(v=S)}),!v){oe.warn("⚠️ Could not find node matching text:",g);return}const y=v.parentNode;if(!y){oe.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 S=f.tooltip.replace(/^"+|"+$/g,"");b.setAttribute("title",S)}y.replaceChild(b,v),b.appendChild(v),oe.info("🔗 Wrapped node in
tag for:",g,f.url)})}catch(h){oe.error("❌ Error injecting clickable links:",h)}Kr.insertTitle(l,"statediagramTitleText",i?.titleTopMargin??25,n.db.getDiagramTitle()),gg(l,d,mx,i?.useMaxWidth??!0)},"draw"),gOt={getClasses:fOt,draw:pOt,getDir:JAe},dC=new Map,Bd=0;function hC(t="",e=0,r="",n=HW){const a=r!==null&&r.length>0?`${n}${r}`:"";return`${dOt}-${t}${a}-${e}`}E(hC,"stateDomId");var mOt=E((t,e,r,n,a,i,s,o)=>{oe.trace("items",e),e.forEach(l=>{switch(l.stmt){case km:KE(t,l,r,n,a,i,s,o);break;case LS:KE(t,l,r,n,a,i,s,o);break;case Cz:{KE(t,l.state1,r,n,a,i,s,o),KE(t,l.state2,r,n,a,i,s,o);const u=s==="neo",d={id:"edge"+Bd,start:l.state1.id,end:l.state2.id,arrowhead:"normal",arrowTypeEnd:u?"arrow_barb_neo":"arrow_barb",style:HAe,labelStyle:"",label:qt.sanitizeText(l.description??"",Ye()),arrowheadStyle:VAe,labelpos:WAe,labelType:KAe,thickness:XAe,classes:jAe,look:s};a.push(d),Bd++}break}})},"setupDoc"),xle=E((t,e=qAe)=>{let r=e;if(t.doc)for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir");function WE(t,e,r){if(!e.id||e.id===""||e.id==="")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(a=>{const i=r.get(a);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));const n=t.find(a=>a.id===e.id);n?Object.assign(n,e):t.push(e)}E(WE,"insertOrUpdateNode");function e8e(t){return t?.classes?.join(" ")??""}E(e8e,"getClassesFromDbInfo");function t8e(t){return t?.styles??[]}E(t8e,"getStylesFromDbInfo");var KE=E((t,e,r,n,a,i,s,o)=>{const l=e.id,u=r.get(l),d=e8e(u),h=t8e(u),f=Ye();if(oe.info("dataFetcher parsedItem",e,u,h),l!=="root"){let p=gM;e.start===!0?p=QIt:e.start===!1&&(p=ZIt),e.type!==LS&&(p=e.type),dC.get(l)||dC.set(l,{id:l,shape:p,description:qt.sanitizeText(l,f),cssClasses:`${d} ${rOt}`,cssStyles:h});const g=dC.get(l);e.description&&(Array.isArray(g.description)?(g.shape=mM,g.description.push(e.description)):g.description?.length&&g.description.length>0?(g.shape=mM,g.description===l?g.description=[e.description]:g.description=[g.description,e.description]):(g.shape=gM,g.description=e.description),g.description=qt.sanitizeTextOrArray(g.description,f)),g.description?.length===1&&g.shape===mM&&(g.type==="group"?g.shape=Sle:g.shape=gM),!g.type&&e.doc&&(oe.info("Setting cluster for XCX",l,xle(e)),g.type="group",g.isGroup=!0,g.dir=xle(e),g.shape=e.type===YAe?Ele:Sle,g.cssClasses=`${g.cssClasses} ${lOt} ${i?uOt:""}`);const m={labelStyle:"",shape:g.shape,label:g.description,cssClasses:g.cssClasses,cssCompiledStyles:[],cssStyles:g.cssStyles,id:l,dir:g.dir,domId:hC(l,Bd),type:g.type,isGroup:g.type==="group",padding:8,rx:10,ry:10,look:s,labelType:"markdown"};if(m.shape===Ele&&(m.label=""),t&&t.id!=="root"&&(oe.trace("Setting node ",l," to be child of its parent ",t.id),m.parentId=t.id),m.centerLabel=!0,e.note){const v={labelStyle:"",shape:JIt,label:e.note.text,labelType:"markdown",cssClasses:sOt,cssStyles:[],cssCompiledStyles:[],id:l+hOt+"-"+Bd,domId:hC(l,Bd,ZAe),type:g.type,isGroup:g.type==="group",padding:f.flowchart?.padding,look:s,position:e.note.position},y=l+Tle,b={labelStyle:"",shape:eOt,label:e.note.text,cssClasses:g.cssClasses,cssStyles:[],id:l+Tle,domId:hC(l,Bd,QAe),type:"group",isGroup:!0,padding:16,look:s,position:e.note.position};Bd++,b.id=y,v.parentId=y,WE(n,b,o),WE(n,v,o),WE(n,m,o);let _=l,S=v.id;e.note.position==="left of"&&(_=v.id,S=l),a.push({id:_+"-"+S,start:_,end:S,arrowhead:"none",arrowTypeEnd:"",style:HAe,labelStyle:"",classes:iOt,arrowheadStyle:VAe,labelpos:WAe,labelType:KAe,thickness:XAe,look:s})}else WE(n,m,o)}e.doc&&(oe.trace("Adding nodes children "),mOt(e,e.doc,r,n,a,!i,s,o))},"dataFetcher"),vOt=E(()=>{dC.clear(),Bd=0},"reset"),ks={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Cle=E(()=>new Map,"newClassesList"),wle=E(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),H3=E(t=>JSON.parse(JSON.stringify(t)),"clone"),kp,ip=(kp=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Cle(),this.documents={root:wle()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=va,this.setAccTitle=sa,this.getAccDescription=_a,this.setAccDescription=ya,this.setDiagramTitle=pa,this.getDiagramTitle=la,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 a of Array.isArray(e)?e:e.doc)switch(a.stmt){case km:this.addState(a.id.trim(),a.type,a.doc,a.description,a.note);break;case Cz:this.addRelation(a.state1,a.state2,a.description);break;case KIt:this.addStyleClass(a.id.trim(),a.classes);break;case XIt:this.handleStyleDef(a);break;case jIt:this.setCssClass(a.id.trim(),a.styleClass);break;case"click":this.addLink(a.id,a.url,a.tooltip);break}const r=this.getStates(),n=Ye();vOt(),KE(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,n.look,this.classes);for(const a of this.nodes)if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(e){const r=e.id.trim().split(","),n=e.styleClass.split(",");for(const a of r){let i=this.getState(a);if(!i){const s=a.trim();this.addState(s),i=this.getState(s)}i&&(i.styles=n.map(s=>s.replace(/;/g,"")?.trim()))}}setRootDoc(e){oe.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===Cz){this.docTranslator(e,r.state1,!0),this.docTranslator(e,r.state2,!1);return}if(r.stmt===km&&(r.id===ks.START_NODE?(r.id=e.id+(n?"_start":"_end"),r.start=n):r.id=r.id.trim()),r.stmt!==im&&r.stmt!==km||!r.doc)return;const a=[];let i=[];for(const s of r.doc)if(s.type===YAe){const o=H3(s);o.doc=H3(i),a.push(o),i=[]}else i.push(s);if(a.length>0&&i.length>0){const s={stmt:km,id:Cpe(),type:"divider",doc:H3(i)};a.push(H3(s)),r.doc=a}r.doc.forEach(s=>this.docTranslator(r,s,!0))}getRootDocV2(){return this.docTranslator({id:im,stmt:im},{id:im,stmt:im,doc:this.rootDoc},!0),{id:im,doc:this.rootDoc}}addState(e,r=LS,n=void 0,a=void 0,i=void 0,s=void 0,o=void 0,l=void 0){const u=e?.trim();if(!this.currentDocument.states.has(u))oe.info("Adding state ",u,a),this.currentDocument.states.set(u,{stmt:km,id:u,descriptions:[],type:r,doc:n,note:i,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(a&&(oe.info("Setting state description",u,a),(Array.isArray(a)?a:[a]).forEach(h=>this.addDescription(u,h.trim()))),i){const d=this.currentDocument.states.get(u);if(!d)throw new Error(`State not found: ${u}`);d.note=i,d.note.text=qt.sanitizeText(d.note.text,Ye())}s&&(oe.info("Setting state classes",u,s),(Array.isArray(s)?s:[s]).forEach(h=>this.setCssClass(u,h.trim()))),o&&(oe.info("Setting state styles",u,o),(Array.isArray(o)?o:[o]).forEach(h=>this.setStyle(u,h.trim()))),l&&(oe.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:wle()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Cle(),e||(this.links=new Map,oa())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){oe.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,r,n){this.links.set(e,{url:r,tooltip:n}),oe.warn("Adding link",e,r,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===ks.START_NODE?(this.startEndCount++,`${ks.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",r=LS){return e===ks.START_NODE?ks.START_TYPE:r}endIdIfNeeded(e=""){return e===ks.END_NODE?(this.startEndCount++,`${ks.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",r=LS){return e===ks.END_NODE?ks.END_TYPE:r}addRelationObjs(e,r,n=""){const a=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),s=this.startIdIfNeeded(r.id.trim()),o=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(a,i,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:a,id2:s,relationTitle:qt.sanitizeText(n,Ye())})}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 a=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),s=this.endIdIfNeeded(r.trim()),o=this.endTypeIfNeeded(r);this.addState(a,i),this.addState(s,o),this.currentDocument.relations.push({id1:a,id2:s,relationTitle:n?qt.sanitizeText(n,Ye()):void 0})}}addDescription(e,r){const n=this.currentDocument.states.get(e),a=r.startsWith(":")?r.replace(":","").trim():r;n?.descriptions?.push(qt.sanitizeText(a,Ye()))}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(ks.STYLECLASS_SEP).forEach(a=>{const i=a.replace(/([^;]*);/,"$1").trim();if(RegExp(ks.COLOR_KEYWORD).exec(a)){const o=i.replace(ks.FILL_KEYWORD,ks.BG_FILL).replace(ks.COLOR_KEYWORD,ks.FILL_KEYWORD);n.textStyles.push(o)}n.styles.push(i)})}getClasses(){return this.classes}setCssClass(e,r){e.split(",").forEach(n=>{let a=this.getState(n);if(!a){const i=n.trim();this.addState(i),a=this.getState(i)}a?.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===ble)}getDirection(){return this.getDirectionStatement()?.value??WIt}setDirection(e){const r=this.getDirectionStatement();r?r.value=e:this.rootDoc.unshift({stmt:ble,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=Ye();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:JAe(this.getRootDocV2())}}getConfig(){return Ye().state}},E(kp,"StateDB"),kp.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},kp),yOt=E(t=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var B=this.next();return B||this.lex()},"lex"),begin:E(function(B){this.conditionStack.push(B)},"begin"),popState:E(function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},"topState"),pushState:E(function(B){this.begin(B)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(B,U,G,K){function Y(){const ee=U.yytext.indexOf("%%");if(ee===0)return!1;if(ee>0){const X=U.yytext.slice(0,ee),le=U.yytext.slice(ee);le&&B.lexer.unput(le),U.yytext=X}return!0}switch(E(Y,"processId"),G){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(),U.yytext=U.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),U.yytext=U.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),U.yytext=U.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),U.yytext=U.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),U.yytext=U.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),U.yytext=U.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 Y()?(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 Y()?(this.popState(),"ID"):void 0;case 65:return Y()?(this.popState(),this.pushState("NOTE_TEXT"),24):void 0;case 66:return this.popState(),U.yytext=U.yytext.substr(2).trim(),31;case 67:return this.popState(),U.yytext=U.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 Y()?24:void 0;case 73:return U.yytext=U.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 N(){this.yy={}}return E(N,"Parser"),N.prototype=D,D.Parser=N,new N})();xz.parser=xz;var GAe=xz,KIt="TB",qAe="TB",ble="dir",km="state",im="root",Cz="relation",XIt="classDef",jIt="style",QIt="applyClass",LS="default",YAe="divider",HAe="fill:none",VAe="fill: #333",WAe="c",KAe="markdown",XAe="normal",gM="rect",mM="rectWithTitle",ZIt="stateStart",JIt="stateEnd",Ele="divider",Sle="roundedWithTitle",eOt="note",tOt="noteGroup",mx="statediagram",rOt="state",nOt=`${mx}-${rOt}`,jAe="transition",aOt="note",iOt="note-edge",sOt=`${jAe} ${iOt}`,oOt=`${mx}-${aOt}`,lOt="cluster",cOt=`${mx}-${lOt}`,uOt="cluster-alt",dOt=`${mx}-${uOt}`,QAe="parent",ZAe="note",hOt="state",HW="----",fOt=`${HW}${ZAe}`,Tle=`${HW}${QAe}`,JAe=E((t,e=qAe)=>{if(!t.doc)return e;let r=e;for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),pOt=E(function(t,e){return e.db.getClasses()},"getClasses"),gOt=E(async function(t,e,r,n){oe.info("REF0:"),oe.info("Drawing state diagram (v2)",e);const{securityLevel:a,state:i,layout:s}=Ye();n.db.extract(n.db.getRootDocV2());const o=n.db.getData(),l=b2(e,a);o.type=n.type,o.layoutAlgorithm=s,o.nodeSpacing=i?.nodeSpacing||50,o.rankSpacing=i?.rankSpacing||50,Ye().look==="neo"?o.markers=["barbNeo"]:o.markers=["barb"],o.diagramId=e,await n2(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){oe.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(p));return}const m=l.node()?.querySelectorAll("g");let v;if(m?.forEach(S=>{S.textContent?.trim()===g&&(v=S)}),!v){oe.warn("⚠️ Could not find node matching text:",g);return}const y=v.parentNode;if(!y){oe.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 S=f.tooltip.replace(/^"+|"+$/g,"");b.setAttribute("title",S)}y.replaceChild(b,v),b.appendChild(v),oe.info("🔗 Wrapped node in tag for:",g,f.url)})}catch(h){oe.error("❌ Error injecting clickable links:",h)}Kr.insertTitle(l,"statediagramTitleText",i?.titleTopMargin??25,n.db.getDiagramTitle()),gg(l,d,mx,i?.useMaxWidth??!0)},"draw"),mOt={getClasses:pOt,draw:gOt,getDir:JAe},dC=new Map,Bd=0;function hC(t="",e=0,r="",n=HW){const a=r!==null&&r.length>0?`${n}${r}`:"";return`${hOt}-${t}${a}-${e}`}E(hC,"stateDomId");var vOt=E((t,e,r,n,a,i,s,o)=>{oe.trace("items",e),e.forEach(l=>{switch(l.stmt){case km:KE(t,l,r,n,a,i,s,o);break;case LS:KE(t,l,r,n,a,i,s,o);break;case Cz:{KE(t,l.state1,r,n,a,i,s,o),KE(t,l.state2,r,n,a,i,s,o);const u=s==="neo",d={id:"edge"+Bd,start:l.state1.id,end:l.state2.id,arrowhead:"normal",arrowTypeEnd:u?"arrow_barb_neo":"arrow_barb",style:HAe,labelStyle:"",label:qt.sanitizeText(l.description??"",Ye()),arrowheadStyle:VAe,labelpos:WAe,labelType:KAe,thickness:XAe,classes:jAe,look:s};a.push(d),Bd++}break}})},"setupDoc"),xle=E((t,e=qAe)=>{let r=e;if(t.doc)for(const n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir");function WE(t,e,r){if(!e.id||e.id===""||e.id==="")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(a=>{const i=r.get(a);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));const n=t.find(a=>a.id===e.id);n?Object.assign(n,e):t.push(e)}E(WE,"insertOrUpdateNode");function e8e(t){return t?.classes?.join(" ")??""}E(e8e,"getClassesFromDbInfo");function t8e(t){return t?.styles??[]}E(t8e,"getStylesFromDbInfo");var KE=E((t,e,r,n,a,i,s,o)=>{const l=e.id,u=r.get(l),d=e8e(u),h=t8e(u),f=Ye();if(oe.info("dataFetcher parsedItem",e,u,h),l!=="root"){let p=gM;e.start===!0?p=ZIt:e.start===!1&&(p=JIt),e.type!==LS&&(p=e.type),dC.get(l)||dC.set(l,{id:l,shape:p,description:qt.sanitizeText(l,f),cssClasses:`${d} ${nOt}`,cssStyles:h});const g=dC.get(l);e.description&&(Array.isArray(g.description)?(g.shape=mM,g.description.push(e.description)):g.description?.length&&g.description.length>0?(g.shape=mM,g.description===l?g.description=[e.description]:g.description=[g.description,e.description]):(g.shape=gM,g.description=e.description),g.description=qt.sanitizeTextOrArray(g.description,f)),g.description?.length===1&&g.shape===mM&&(g.type==="group"?g.shape=Sle:g.shape=gM),!g.type&&e.doc&&(oe.info("Setting cluster for XCX",l,xle(e)),g.type="group",g.isGroup=!0,g.dir=xle(e),g.shape=e.type===YAe?Ele:Sle,g.cssClasses=`${g.cssClasses} ${cOt} ${i?dOt:""}`);const m={labelStyle:"",shape:g.shape,label:g.description,cssClasses:g.cssClasses,cssCompiledStyles:[],cssStyles:g.cssStyles,id:l,dir:g.dir,domId:hC(l,Bd),type:g.type,isGroup:g.type==="group",padding:8,rx:10,ry:10,look:s,labelType:"markdown"};if(m.shape===Ele&&(m.label=""),t&&t.id!=="root"&&(oe.trace("Setting node ",l," to be child of its parent ",t.id),m.parentId=t.id),m.centerLabel=!0,e.note){const v={labelStyle:"",shape:eOt,label:e.note.text,labelType:"markdown",cssClasses:oOt,cssStyles:[],cssCompiledStyles:[],id:l+fOt+"-"+Bd,domId:hC(l,Bd,ZAe),type:g.type,isGroup:g.type==="group",padding:f.flowchart?.padding,look:s,position:e.note.position},y=l+Tle,b={labelStyle:"",shape:tOt,label:e.note.text,cssClasses:g.cssClasses,cssStyles:[],id:l+Tle,domId:hC(l,Bd,QAe),type:"group",isGroup:!0,padding:16,look:s,position:e.note.position};Bd++,b.id=y,v.parentId=y,WE(n,b,o),WE(n,v,o),WE(n,m,o);let _=l,S=v.id;e.note.position==="left of"&&(_=v.id,S=l),a.push({id:_+"-"+S,start:_,end:S,arrowhead:"none",arrowTypeEnd:"",style:HAe,labelStyle:"",classes:sOt,arrowheadStyle:VAe,labelpos:WAe,labelType:KAe,thickness:XAe,look:s})}else WE(n,m,o)}e.doc&&(oe.trace("Adding nodes children "),vOt(e,e.doc,r,n,a,!i,s,o))},"dataFetcher"),yOt=E(()=>{dC.clear(),Bd=0},"reset"),ks={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Cle=E(()=>new Map,"newClassesList"),wle=E(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),H3=E(t=>JSON.parse(JSON.stringify(t)),"clone"),kp,ip=(kp=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Cle(),this.documents={root:wle()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=va,this.setAccTitle=sa,this.getAccDescription=_a,this.setAccDescription=ya,this.setDiagramTitle=pa,this.getDiagramTitle=la,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 a of Array.isArray(e)?e:e.doc)switch(a.stmt){case km:this.addState(a.id.trim(),a.type,a.doc,a.description,a.note);break;case Cz:this.addRelation(a.state1,a.state2,a.description);break;case XIt:this.addStyleClass(a.id.trim(),a.classes);break;case jIt:this.handleStyleDef(a);break;case QIt:this.setCssClass(a.id.trim(),a.styleClass);break;case"click":this.addLink(a.id,a.url,a.tooltip);break}const r=this.getStates(),n=Ye();yOt(),KE(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,n.look,this.classes);for(const a of this.nodes)if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(e){const r=e.id.trim().split(","),n=e.styleClass.split(",");for(const a of r){let i=this.getState(a);if(!i){const s=a.trim();this.addState(s),i=this.getState(s)}i&&(i.styles=n.map(s=>s.replace(/;/g,"")?.trim()))}}setRootDoc(e){oe.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===Cz){this.docTranslator(e,r.state1,!0),this.docTranslator(e,r.state2,!1);return}if(r.stmt===km&&(r.id===ks.START_NODE?(r.id=e.id+(n?"_start":"_end"),r.start=n):r.id=r.id.trim()),r.stmt!==im&&r.stmt!==km||!r.doc)return;const a=[];let i=[];for(const s of r.doc)if(s.type===YAe){const o=H3(s);o.doc=H3(i),a.push(o),i=[]}else i.push(s);if(a.length>0&&i.length>0){const s={stmt:km,id:Cpe(),type:"divider",doc:H3(i)};a.push(H3(s)),r.doc=a}r.doc.forEach(s=>this.docTranslator(r,s,!0))}getRootDocV2(){return this.docTranslator({id:im,stmt:im},{id:im,stmt:im,doc:this.rootDoc},!0),{id:im,doc:this.rootDoc}}addState(e,r=LS,n=void 0,a=void 0,i=void 0,s=void 0,o=void 0,l=void 0){const u=e?.trim();if(!this.currentDocument.states.has(u))oe.info("Adding state ",u,a),this.currentDocument.states.set(u,{stmt:km,id:u,descriptions:[],type:r,doc:n,note:i,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(a&&(oe.info("Setting state description",u,a),(Array.isArray(a)?a:[a]).forEach(h=>this.addDescription(u,h.trim()))),i){const d=this.currentDocument.states.get(u);if(!d)throw new Error(`State not found: ${u}`);d.note=i,d.note.text=qt.sanitizeText(d.note.text,Ye())}s&&(oe.info("Setting state classes",u,s),(Array.isArray(s)?s:[s]).forEach(h=>this.setCssClass(u,h.trim()))),o&&(oe.info("Setting state styles",u,o),(Array.isArray(o)?o:[o]).forEach(h=>this.setStyle(u,h.trim()))),l&&(oe.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:wle()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Cle(),e||(this.links=new Map,oa())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){oe.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,r,n){this.links.set(e,{url:r,tooltip:n}),oe.warn("Adding link",e,r,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===ks.START_NODE?(this.startEndCount++,`${ks.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",r=LS){return e===ks.START_NODE?ks.START_TYPE:r}endIdIfNeeded(e=""){return e===ks.END_NODE?(this.startEndCount++,`${ks.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",r=LS){return e===ks.END_NODE?ks.END_TYPE:r}addRelationObjs(e,r,n=""){const a=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),s=this.startIdIfNeeded(r.id.trim()),o=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(a,i,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:a,id2:s,relationTitle:qt.sanitizeText(n,Ye())})}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 a=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),s=this.endIdIfNeeded(r.trim()),o=this.endTypeIfNeeded(r);this.addState(a,i),this.addState(s,o),this.currentDocument.relations.push({id1:a,id2:s,relationTitle:n?qt.sanitizeText(n,Ye()):void 0})}}addDescription(e,r){const n=this.currentDocument.states.get(e),a=r.startsWith(":")?r.replace(":","").trim():r;n?.descriptions?.push(qt.sanitizeText(a,Ye()))}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(ks.STYLECLASS_SEP).forEach(a=>{const i=a.replace(/([^;]*);/,"$1").trim();if(RegExp(ks.COLOR_KEYWORD).exec(a)){const o=i.replace(ks.FILL_KEYWORD,ks.BG_FILL).replace(ks.COLOR_KEYWORD,ks.FILL_KEYWORD);n.textStyles.push(o)}n.styles.push(i)})}getClasses(){return this.classes}setCssClass(e,r){e.split(",").forEach(n=>{let a=this.getState(n);if(!a){const i=n.trim();this.addState(i),a=this.getState(i)}a?.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===ble)}getDirection(){return this.getDirectionStatement()?.value??KIt}setDirection(e){const r=this.getDirectionStatement();r?r.value=e:this.rootDoc.unshift({stmt:ble,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=Ye();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:JAe(this.getRootDocV2())}}getConfig(){return Ye().state}},E(kp,"StateDB"),kp.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},kp),_Ot=E(t=>` defs [id$="-barbEnd"] { fill: ${t.transitionColor}; stroke: ${t.transitionColor}; @@ -6505,12 +6510,12 @@ g.stateGroup line { ry: ${t.radius}px; filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"} } -`,"getStyles"),r8e=yOt,_Ot=E(t=>t.append("circle").attr("class","start-state").attr("r",Ye().state.sizeUnit).attr("cx",Ye().state.padding+Ye().state.sizeUnit).attr("cy",Ye().state.padding+Ye().state.sizeUnit),"drawStartState"),bOt=E(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ye().state.textHeight).attr("class","divider").attr("x2",Ye().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),EOt=E((t,e)=>{const r=t.append("text").attr("x",2*Ye().state.padding).attr("y",Ye().state.textHeight+2*Ye().state.padding).attr("font-size",Ye().state.fontSize).attr("class","state-title").text(e.id),n=r.node().getBBox();return t.insert("rect",":first-child").attr("x",Ye().state.padding).attr("y",Ye().state.padding).attr("width",n.width+2*Ye().state.padding).attr("height",n.height+2*Ye().state.padding).attr("rx",Ye().state.radius),r},"drawSimpleState"),SOt=E((t,e)=>{const r=E(function(f,p,g){const m=f.append("tspan").attr("x",2*Ye().state.padding).text(p);g||m.attr("dy",Ye().state.textHeight)},"addTspan"),a=t.append("text").attr("x",2*Ye().state.padding).attr("y",Ye().state.textHeight+1.3*Ye().state.padding).attr("font-size",Ye().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),i=a.height,s=t.append("text").attr("x",Ye().state.padding).attr("y",i+Ye().state.padding*.4+Ye().state.dividerMargin+Ye().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",Ye().state.padding).attr("y1",Ye().state.padding+i+Ye().state.dividerMargin/2).attr("y2",Ye().state.padding+i+Ye().state.dividerMargin/2).attr("class","descr-divider"),d=s.node().getBBox(),h=Math.max(d.width,a.width);return u.attr("x2",h+3*Ye().state.padding),t.insert("rect",":first-child").attr("x",Ye().state.padding).attr("y",Ye().state.padding).attr("width",h+2*Ye().state.padding).attr("height",d.height+i+2*Ye().state.padding).attr("rx",Ye().state.radius),t},"drawDescrState"),TOt=E((t,e,r)=>{const n=Ye().state.padding,a=2*Ye().state.padding,i=t.node().getBBox(),s=i.width,o=i.x,l=t.append("text").attr("x",0).attr("y",Ye().state.titleShift).attr("font-size",Ye().state.fontSize).attr("class","state-title").text(e.id),d=l.node().getBBox().width+a;let h=Math.max(d,s);h===s&&(h=h+a);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-Ye().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+Ye().state.textHeight+Ye().state.titleShift+1).attr("rx","0"),l.attr("x",f+n),d<=s&&l.attr("x",o+(h-a)/2-d/2+n),t.insert("rect",":first-child").attr("x",f).attr("y",Ye().state.titleShift-Ye().state.textHeight-Ye().state.padding).attr("width",h).attr("height",Ye().state.textHeight*3).attr("rx",Ye().state.radius),t.insert("rect",":first-child").attr("x",f).attr("y",Ye().state.titleShift-Ye().state.textHeight-Ye().state.padding).attr("width",h).attr("height",p.height+3+2*Ye().state.textHeight).attr("rx",Ye().state.radius),t},"addTitleAndBox"),xOt=E(t=>(t.append("circle").attr("class","end-state-outer").attr("r",Ye().state.sizeUnit+Ye().state.miniPadding).attr("cx",Ye().state.padding+Ye().state.sizeUnit+Ye().state.miniPadding).attr("cy",Ye().state.padding+Ye().state.sizeUnit+Ye().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",Ye().state.sizeUnit).attr("cx",Ye().state.padding+Ye().state.sizeUnit+2).attr("cy",Ye().state.padding+Ye().state.sizeUnit+2)),"drawEndState"),COt=E((t,e)=>{let r=Ye().state.forkWidth,n=Ye().state.forkHeight;if(e.parentId){let a=r;r=n,n=a}return t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",Ye().state.padding).attr("y",Ye().state.padding)},"drawForkJoinState"),wOt=E((t,e,r,n)=>{let a=0;const i=n.append("text");i.style("text-anchor","start"),i.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*Ye().state.noteMargin;for(const u of o){const d=u.trim();if(d.length>0){const h=i.append("tspan");if(h.text(d),l===0){const f=h.node().getBBox();l+=f.height}a+=l,h.attr("x",e+Ye().state.noteMargin),h.attr("y",r+a+1.25*Ye().state.noteMargin)}}return{textWidth:i.node().getBBox().width,textHeight:a}},"_drawLongText"),kOt=E((t,e)=>{e.attr("class","state-note");const r=e.append("rect").attr("x",0).attr("y",Ye().state.padding),n=e.append("g"),{textWidth:a,textHeight:i}=wOt(t,0,0,n);return r.attr("height",i+2*Ye().state.noteMargin),r.attr("width",a+Ye().state.noteMargin*2),r},"drawNote"),kle=E(function(t,e){const r=e.id,n={id:r,label:e.id,width:0,height:0},a=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&_Ot(a),e.type==="end"&&xOt(a),(e.type==="fork"||e.type==="join")&&COt(a,e),e.type==="note"&&kOt(e.note.text,a),e.type==="divider"&&bOt(a),e.type==="default"&&e.descriptions.length===0&&EOt(a,e),e.type==="default"&&e.descriptions.length>0&&SOt(a,e);const i=a.node().getBBox();return n.width=i.width+2*Ye().state.padding,n.height=i.height+2*Ye().state.padding,n},"drawState"),Ale=0,AOt=E(function(t,e,r){const n=E(function(l){switch(l){case ip.relationType.AGGREGATION:return"aggregation";case ip.relationType.EXTENSION:return"extension";case ip.relationType.COMPOSITION:return"composition";case ip.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(l=>!Number.isNaN(l.y));const a=e.points,i=ZS().x(function(l){return l.x}).y(function(l){return l.y}).curve(JS),s=t.append("path").attr("d",i(a)).attr("id","edge"+Ale).attr("class","transition");let o="";if(Ye().state.arrowMarkerAbsolute&&(o=Ok(!0)),s.attr("marker-end","url("+o+"#"+n(ip.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const l=t.append("g").attr("class","stateLabel"),{x:u,y:d}=Kr.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),S=_.node().getBBox();g=Math.max(g,S.width),m=Math.min(m,S.x),oe.info(S.x,u,d+f),f===0&&(f=_.node().getBBox().height,oe.info("Title height",f,d)),p.push(_)}let v=f*h.length;if(h.length>1){const b=(h.length-1)*f*.5;p.forEach((_,S)=>_.attr("y",d+S*f-b)),v=f*h.length}const y=l.node().getBBox();l.insert("rect",":first-child").attr("class","box").attr("x",u-g/2-Ye().state.padding/2).attr("y",d-v/2-Ye().state.padding/2-3.5).attr("width",g+Ye().state.padding).attr("height",v+Ye().state.padding),oe.info(y)}Ale++},"drawEdge"),Do,vM={},ROt=E(function(){},"setConf"),NOt=E(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"),IOt=E(function(t,e,r,n){Do=Ye().state;const a=Ye().securityLevel;let i;a==="sandbox"&&(i=At("#i"+e));const s=At(a==="sandbox"?i.nodes()[0].contentDocument.body:"body"),o=a==="sandbox"?i.nodes()[0].contentDocument:document;oe.debug("Rendering diagram "+t);const l=s.select(`[id='${e}']`);NOt(l);const u=n.db.getRootDoc(),d=l.append("g").attr("id",e+"-root");n8e(u,d,void 0,!1,s,o,n);const h=Do.padding,f=l.node().getBBox(),p=f.width+h*2,g=f.height+h*2,m=p*1.75;di(l,g,m,Do.useMaxWidth),l.attr("viewBox",`${f.x-Do.padding} ${f.y-Do.padding} `+p+" "+g)},"draw"),OOt=E(t=>t?t.length*Do.fontSizeFactor:1,"getLabelWidth"),n8e=E((t,e,r,n,a,i,s)=>{const o=new ko({compound:!0,multigraph:!0});let l,u=!0;for(l=0;l{const S=_.parentElement;let x=0,C=0;S&&(S.parentElement&&(x=S.parentElement.getBBox().width),C=parseInt(S.getAttribute("data-x-shift"),10),Number.isNaN(C)&&(C=0)),_.setAttribute("x1",0-C+8),_.setAttribute("x2",x-C-8)})):oe.debug("No Node "+y+": "+JSON.stringify(o.node(y)))});let m=g.getBBox();o.edges().forEach(function(y){y!==void 0&&o.edge(y)!==void 0&&(oe.debug("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(o.edge(y))),AOt(e,o.edge(y),o.edge(y).relation))}),m=g.getBBox();const v={id:r||"root",label:r||"root",width:0,height:0};return v.width=m.width+2*Do.padding,v.height=m.height+2*Do.padding,oe.debug("Doc rendered",v,o),v},"renderDoc"),DOt={setConf:ROt,draw:IOt},LOt={parser:GAe,get db(){return new ip(1)},renderer:DOt,styles:r8e,init:E(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const MOt=Object.freeze(Object.defineProperty({__proto__:null,diagram:LOt},Symbol.toStringTag,{value:"Module"}));var POt={parser:GAe,get db(){return new ip(2)},renderer:gOt,styles:r8e,init:E(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const BOt=Object.freeze(Object.defineProperty({__proto__:null,diagram:POt},Symbol.toStringTag,{value:"Module"}));var wz=(function(){var t=E(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],a=[1,11],i=[1,12],s=[1,13],o=[1,14],l={trace:E(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:E(function(f,p,g,m,v,y,b){var _=y.length-1;switch(v){case 1:return y[_-1];case 2:this.$=[];break;case 3:y[_-1].push(y[_]),this.$=y[_-1];break;case 4:case 5:this.$=y[_];break;case 6:case 7:this.$=[];break;case 8:m.setDiagramTitle(y[_].substr(6)),this.$=y[_].substr(6);break;case 9:this.$=y[_].trim(),m.setAccTitle(this.$);break;case 10:case 11:this.$=y[_].trim(),m.setAccDescription(this.$);break;case 12:m.addSection(y[_].substr(8)),this.$=y[_].substr(8);break;case 13:m.addTask(y[_-1],y[_]),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:a,16:i,17:s,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:n,14:a,16:i,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:E(function(f,p){if(p.recoverable)this.trace(f);else{var g=new Error(f);throw g.hash=p,g}},"parseError"),parse:E(function(f){var p=this,g=[0],m=[],v=[null],y=[],b=this.table,_="",S=0,x=0,C=2,T=1,w=y.slice.call(arguments,1),R=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]);R.setInput(f,O.yy),O.yy.lexer=R,O.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var $=R.yylloc;y.push($);var F=R.options&&R.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A(ee){g.length=g.length-2*ee,v.length=v.length-ee,y.length=y.length-ee}E(A,"popStack");function I(){var ee;return ee=m.pop()||R.lex()||T,typeof ee!="number"&&(ee instanceof Array&&(m=ee,ee=m.pop()),ee=p.symbols_[ee]||ee),ee}E(I,"lex");for(var D,L,N,P,z={},B,U,G,K;;){if(L=g[g.length-1],this.defaultActions[L]?N=this.defaultActions[L]:((D===null||typeof D>"u")&&(D=I()),N=b[L]&&b[L][D]),typeof N>"u"||!N.length||!N[0]){var Y="";K=[];for(B in b[L])this.terminals_[B]&&B>C&&K.push("'"+this.terminals_[B]+"'");R.showPosition?Y="Parse error on line "+(S+1)+`: +`,"getStyles"),r8e=_Ot,bOt=E(t=>t.append("circle").attr("class","start-state").attr("r",Ye().state.sizeUnit).attr("cx",Ye().state.padding+Ye().state.sizeUnit).attr("cy",Ye().state.padding+Ye().state.sizeUnit),"drawStartState"),EOt=E(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ye().state.textHeight).attr("class","divider").attr("x2",Ye().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),SOt=E((t,e)=>{const r=t.append("text").attr("x",2*Ye().state.padding).attr("y",Ye().state.textHeight+2*Ye().state.padding).attr("font-size",Ye().state.fontSize).attr("class","state-title").text(e.id),n=r.node().getBBox();return t.insert("rect",":first-child").attr("x",Ye().state.padding).attr("y",Ye().state.padding).attr("width",n.width+2*Ye().state.padding).attr("height",n.height+2*Ye().state.padding).attr("rx",Ye().state.radius),r},"drawSimpleState"),TOt=E((t,e)=>{const r=E(function(f,p,g){const m=f.append("tspan").attr("x",2*Ye().state.padding).text(p);g||m.attr("dy",Ye().state.textHeight)},"addTspan"),a=t.append("text").attr("x",2*Ye().state.padding).attr("y",Ye().state.textHeight+1.3*Ye().state.padding).attr("font-size",Ye().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),i=a.height,s=t.append("text").attr("x",Ye().state.padding).attr("y",i+Ye().state.padding*.4+Ye().state.dividerMargin+Ye().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",Ye().state.padding).attr("y1",Ye().state.padding+i+Ye().state.dividerMargin/2).attr("y2",Ye().state.padding+i+Ye().state.dividerMargin/2).attr("class","descr-divider"),d=s.node().getBBox(),h=Math.max(d.width,a.width);return u.attr("x2",h+3*Ye().state.padding),t.insert("rect",":first-child").attr("x",Ye().state.padding).attr("y",Ye().state.padding).attr("width",h+2*Ye().state.padding).attr("height",d.height+i+2*Ye().state.padding).attr("rx",Ye().state.radius),t},"drawDescrState"),xOt=E((t,e,r)=>{const n=Ye().state.padding,a=2*Ye().state.padding,i=t.node().getBBox(),s=i.width,o=i.x,l=t.append("text").attr("x",0).attr("y",Ye().state.titleShift).attr("font-size",Ye().state.fontSize).attr("class","state-title").text(e.id),d=l.node().getBBox().width+a;let h=Math.max(d,s);h===s&&(h=h+a);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-Ye().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+Ye().state.textHeight+Ye().state.titleShift+1).attr("rx","0"),l.attr("x",f+n),d<=s&&l.attr("x",o+(h-a)/2-d/2+n),t.insert("rect",":first-child").attr("x",f).attr("y",Ye().state.titleShift-Ye().state.textHeight-Ye().state.padding).attr("width",h).attr("height",Ye().state.textHeight*3).attr("rx",Ye().state.radius),t.insert("rect",":first-child").attr("x",f).attr("y",Ye().state.titleShift-Ye().state.textHeight-Ye().state.padding).attr("width",h).attr("height",p.height+3+2*Ye().state.textHeight).attr("rx",Ye().state.radius),t},"addTitleAndBox"),COt=E(t=>(t.append("circle").attr("class","end-state-outer").attr("r",Ye().state.sizeUnit+Ye().state.miniPadding).attr("cx",Ye().state.padding+Ye().state.sizeUnit+Ye().state.miniPadding).attr("cy",Ye().state.padding+Ye().state.sizeUnit+Ye().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",Ye().state.sizeUnit).attr("cx",Ye().state.padding+Ye().state.sizeUnit+2).attr("cy",Ye().state.padding+Ye().state.sizeUnit+2)),"drawEndState"),wOt=E((t,e)=>{let r=Ye().state.forkWidth,n=Ye().state.forkHeight;if(e.parentId){let a=r;r=n,n=a}return t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",Ye().state.padding).attr("y",Ye().state.padding)},"drawForkJoinState"),kOt=E((t,e,r,n)=>{let a=0;const i=n.append("text");i.style("text-anchor","start"),i.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*Ye().state.noteMargin;for(const u of o){const d=u.trim();if(d.length>0){const h=i.append("tspan");if(h.text(d),l===0){const f=h.node().getBBox();l+=f.height}a+=l,h.attr("x",e+Ye().state.noteMargin),h.attr("y",r+a+1.25*Ye().state.noteMargin)}}return{textWidth:i.node().getBBox().width,textHeight:a}},"_drawLongText"),AOt=E((t,e)=>{e.attr("class","state-note");const r=e.append("rect").attr("x",0).attr("y",Ye().state.padding),n=e.append("g"),{textWidth:a,textHeight:i}=kOt(t,0,0,n);return r.attr("height",i+2*Ye().state.noteMargin),r.attr("width",a+Ye().state.noteMargin*2),r},"drawNote"),kle=E(function(t,e){const r=e.id,n={id:r,label:e.id,width:0,height:0},a=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&bOt(a),e.type==="end"&&COt(a),(e.type==="fork"||e.type==="join")&&wOt(a,e),e.type==="note"&&AOt(e.note.text,a),e.type==="divider"&&EOt(a),e.type==="default"&&e.descriptions.length===0&&SOt(a,e),e.type==="default"&&e.descriptions.length>0&&TOt(a,e);const i=a.node().getBBox();return n.width=i.width+2*Ye().state.padding,n.height=i.height+2*Ye().state.padding,n},"drawState"),Ale=0,ROt=E(function(t,e,r){const n=E(function(l){switch(l){case ip.relationType.AGGREGATION:return"aggregation";case ip.relationType.EXTENSION:return"extension";case ip.relationType.COMPOSITION:return"composition";case ip.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(l=>!Number.isNaN(l.y));const a=e.points,i=ZS().x(function(l){return l.x}).y(function(l){return l.y}).curve(JS),s=t.append("path").attr("d",i(a)).attr("id","edge"+Ale).attr("class","transition");let o="";if(Ye().state.arrowMarkerAbsolute&&(o=Ok(!0)),s.attr("marker-end","url("+o+"#"+n(ip.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const l=t.append("g").attr("class","stateLabel"),{x:u,y:d}=Kr.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),S=_.node().getBBox();g=Math.max(g,S.width),m=Math.min(m,S.x),oe.info(S.x,u,d+f),f===0&&(f=_.node().getBBox().height,oe.info("Title height",f,d)),p.push(_)}let v=f*h.length;if(h.length>1){const b=(h.length-1)*f*.5;p.forEach((_,S)=>_.attr("y",d+S*f-b)),v=f*h.length}const y=l.node().getBBox();l.insert("rect",":first-child").attr("class","box").attr("x",u-g/2-Ye().state.padding/2).attr("y",d-v/2-Ye().state.padding/2-3.5).attr("width",g+Ye().state.padding).attr("height",v+Ye().state.padding),oe.info(y)}Ale++},"drawEdge"),Do,vM={},NOt=E(function(){},"setConf"),IOt=E(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"),OOt=E(function(t,e,r,n){Do=Ye().state;const a=Ye().securityLevel;let i;a==="sandbox"&&(i=At("#i"+e));const s=At(a==="sandbox"?i.nodes()[0].contentDocument.body:"body"),o=a==="sandbox"?i.nodes()[0].contentDocument:document;oe.debug("Rendering diagram "+t);const l=s.select(`[id='${e}']`);IOt(l);const u=n.db.getRootDoc(),d=l.append("g").attr("id",e+"-root");n8e(u,d,void 0,!1,s,o,n);const h=Do.padding,f=l.node().getBBox(),p=f.width+h*2,g=f.height+h*2,m=p*1.75;di(l,g,m,Do.useMaxWidth),l.attr("viewBox",`${f.x-Do.padding} ${f.y-Do.padding} `+p+" "+g)},"draw"),DOt=E(t=>t?t.length*Do.fontSizeFactor:1,"getLabelWidth"),n8e=E((t,e,r,n,a,i,s)=>{const o=new ko({compound:!0,multigraph:!0});let l,u=!0;for(l=0;l{const S=_.parentElement;let x=0,C=0;S&&(S.parentElement&&(x=S.parentElement.getBBox().width),C=parseInt(S.getAttribute("data-x-shift"),10),Number.isNaN(C)&&(C=0)),_.setAttribute("x1",0-C+8),_.setAttribute("x2",x-C-8)})):oe.debug("No Node "+y+": "+JSON.stringify(o.node(y)))});let m=g.getBBox();o.edges().forEach(function(y){y!==void 0&&o.edge(y)!==void 0&&(oe.debug("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(o.edge(y))),ROt(e,o.edge(y),o.edge(y).relation))}),m=g.getBBox();const v={id:r||"root",label:r||"root",width:0,height:0};return v.width=m.width+2*Do.padding,v.height=m.height+2*Do.padding,oe.debug("Doc rendered",v,o),v},"renderDoc"),LOt={setConf:NOt,draw:OOt},MOt={parser:GAe,get db(){return new ip(1)},renderer:LOt,styles:r8e,init:E(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const POt=Object.freeze(Object.defineProperty({__proto__:null,diagram:MOt},Symbol.toStringTag,{value:"Module"}));var BOt={parser:GAe,get db(){return new ip(2)},renderer:mOt,styles:r8e,init:E(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};const FOt=Object.freeze(Object.defineProperty({__proto__:null,diagram:BOt},Symbol.toStringTag,{value:"Module"}));var wz=(function(){var t=E(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],a=[1,11],i=[1,12],s=[1,13],o=[1,14],l={trace:E(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:E(function(f,p,g,m,v,y,b){var _=y.length-1;switch(v){case 1:return y[_-1];case 2:this.$=[];break;case 3:y[_-1].push(y[_]),this.$=y[_-1];break;case 4:case 5:this.$=y[_];break;case 6:case 7:this.$=[];break;case 8:m.setDiagramTitle(y[_].substr(6)),this.$=y[_].substr(6);break;case 9:this.$=y[_].trim(),m.setAccTitle(this.$);break;case 10:case 11:this.$=y[_].trim(),m.setAccDescription(this.$);break;case 12:m.addSection(y[_].substr(8)),this.$=y[_].substr(8);break;case 13:m.addTask(y[_-1],y[_]),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:a,16:i,17:s,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:n,14:a,16:i,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:E(function(f,p){if(p.recoverable)this.trace(f);else{var g=new Error(f);throw g.hash=p,g}},"parseError"),parse:E(function(f){var p=this,g=[0],m=[],v=[null],y=[],b=this.table,_="",S=0,x=0,C=2,T=1,w=y.slice.call(arguments,1),R=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]);R.setInput(f,O.yy),O.yy.lexer=R,O.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var $=R.yylloc;y.push($);var F=R.options&&R.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A(ee){g.length=g.length-2*ee,v.length=v.length-ee,y.length=y.length-ee}E(A,"popStack");function I(){var ee;return ee=m.pop()||R.lex()||T,typeof ee!="number"&&(ee instanceof Array&&(m=ee,ee=m.pop()),ee=p.symbols_[ee]||ee),ee}E(I,"lex");for(var D,L,N,P,z={},B,U,G,K;;){if(L=g[g.length-1],this.defaultActions[L]?N=this.defaultActions[L]:((D===null||typeof D>"u")&&(D=I()),N=b[L]&&b[L][D]),typeof N>"u"||!N.length||!N[0]){var Y="";K=[];for(B in b[L])this.terminals_[B]&&B>C&&K.push("'"+this.terminals_[B]+"'");R.showPosition?Y="Parse error on line "+(S+1)+`: `+R.showPosition()+` Expecting `+K.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Y="Parse error on line "+(S+1)+": Unexpected "+(D==T?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Y,{text:R.match,token:this.terminals_[D]||D,line:R.yylineno,loc:$,expected:K})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+D);switch(N[0]){case 1:g.push(D),v.push(R.yytext),y.push(R.yylloc),g.push(N[1]),D=null,x=R.yyleng,_=R.yytext,S=R.yylineno,$=R.yylloc;break;case 2:if(U=this.productions_[N[1]][1],z.$=v[v.length-U],z._$={first_line:y[y.length-(U||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(U||1)].first_column,last_column:y[y.length-1].last_column},F&&(z._$.range=[y[y.length-(U||1)].range[0],y[y.length-1].range[1]]),P=this.performAction.apply(z,[_,x,S,O.yy,N[1],v,y].concat(w)),typeof P<"u")return P;U&&(g=g.slice(0,-1*U*2),v=v.slice(0,-1*U),y=y.slice(0,-1*U)),g.push(this.productions_[N[1]][0]),v.push(z.$),y.push(z._$),G=b[g[g.length-2]][g[g.length-1]],g.push(G);break;case 3:return!0}}return!0},"parse")},u=(function(){var h={EOF:1,parseError:E(function(p,g){if(this.yy.parser)this.yy.parser.parseError(p,g);else throw new Error(p)},"parseError"),setInput:E(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:E(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:E(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 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: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=[v[0],v[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(f){this.unput(this.match.slice(f))},"less"),pastInput:E(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:E(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:E(function(){var f=this.pastInput(),p=new Array(f.length+1).join("-");return f+this.upcomingInput()+` `+p+"^"},"showPosition"),test_match:E(function(f,p){var g,m,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))),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 y in v)this[y]=v[y];return!1}return!1},"test_match"),next:E(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 v=this._currentRules(),y=0;yp[0].length)){if(p=g,m=y,this.options.backtrack_lexer){if(f=this.test_match(g,v[y]),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,v[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:E(function(){var p=this.next();return p||this.lex()},"lex"),begin:E(function(p){this.conditionStack.push(p)},"begin"),popState:E(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:E(function(p){this.begin(p)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(p,g,m,v){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 E(d,"Parser"),d.prototype=l,l.Parser=d,new d})();wz.parser=wz;var FOt=wz,Ub="",VW=[],Z4=[],J4=[],$Ot=E(function(){VW.length=0,Z4.length=0,Ub="",J4.length=0,oa()},"clear"),zOt=E(function(t){Ub=t,VW.push(t)},"addSection"),UOt=E(function(){return VW},"getSections"),GOt=E(function(){let t=Rle();const e=100;let r=0;for(;!t&&r{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},"updateActors"),YOt=E(function(t,e){const r=e.substr(1).split(":");let n=0,a=[];r.length===1?(n=Number(r[0]),a=[]):(n=Number(r[0]),a=r[1].split(","));const i=a.map(o=>o.trim()),s={section:Ub,type:Ub,people:i,task:t,score:n};J4.push(s)},"addTask"),HOt=E(function(t){const e={section:Ub,type:Ub,description:t,task:t,classes:[]};Z4.push(e)},"addTaskOrg"),Rle=E(function(){const t=E(function(r){return J4[r].processed},"compileTask");let e=!0;for(const[r,n]of J4.entries())t(r),e=e&&n.processed;return e},"compileTasks"),VOt=E(function(){return qOt()},"getActors"),Nle={getConfig:E(()=>Ye().journey,"getConfig"),clear:$Ot,setDiagramTitle:pa,getDiagramTitle:la,setAccTitle:sa,getAccTitle:va,setAccDescription:ya,getAccDescription:_a,addSection:zOt,getSections:UOt,getTasks:GOt,addTask:YOt,addTaskOrg:HOt,getActors:VOt},WOt=E(t=>`.label { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var p=this.next();return p||this.lex()},"lex"),begin:E(function(p){this.conditionStack.push(p)},"begin"),popState:E(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:E(function(p){this.begin(p)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(p,g,m,v){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 E(d,"Parser"),d.prototype=l,l.Parser=d,new d})();wz.parser=wz;var $Ot=wz,Ub="",VW=[],Z4=[],J4=[],zOt=E(function(){VW.length=0,Z4.length=0,Ub="",J4.length=0,oa()},"clear"),UOt=E(function(t){Ub=t,VW.push(t)},"addSection"),GOt=E(function(){return VW},"getSections"),qOt=E(function(){let t=Rle();const e=100;let r=0;for(;!t&&r{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},"updateActors"),HOt=E(function(t,e){const r=e.substr(1).split(":");let n=0,a=[];r.length===1?(n=Number(r[0]),a=[]):(n=Number(r[0]),a=r[1].split(","));const i=a.map(o=>o.trim()),s={section:Ub,type:Ub,people:i,task:t,score:n};J4.push(s)},"addTask"),VOt=E(function(t){const e={section:Ub,type:Ub,description:t,task:t,classes:[]};Z4.push(e)},"addTaskOrg"),Rle=E(function(){const t=E(function(r){return J4[r].processed},"compileTask");let e=!0;for(const[r,n]of J4.entries())t(r),e=e&&n.processed;return e},"compileTasks"),WOt=E(function(){return YOt()},"getActors"),Nle={getConfig:E(()=>Ye().journey,"getConfig"),clear:zOt,setDiagramTitle:pa,getDiagramTitle:la,setAccTitle:sa,getAccTitle:va,setAccDescription:ya,getAccDescription:_a,addSection:UOt,getSections:GOt,getTasks:qOt,addTask:HOt,addTaskOrg:VOt,getActors:WOt},KOt=E(t=>`.label { font-family: ${t.fontFamily}; color: ${t.textColor}; } @@ -6643,12 +6648,12 @@ Expecting `+K.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Y="Parse error on ${t.actor5?`fill: ${t.actor5}`:""}; } ${YT()} -`,"getStyles"),KOt=WOt,WW=E(function(t,e){return sA(t,e)},"drawRect"),XOt=E(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"),a=t.append("g");a.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"),a.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 i(l){const u=cb().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)+")")}E(i,"smile");function s(l){const u=cb().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)+")")}E(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 E(o,"ambivalent"),e.score>3?i(a):e.score<3?s(a):o(a),n},"drawFace"),a8e=E(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"),i8e=E(function(t,e){return V_t(t,e)},"drawText"),jOt=E(function(t,e){function r(a,i,s,o,l){return a+","+i+" "+(a+s)+","+i+" "+(a+s)+","+(i+o-l)+" "+(a+s-l*1.2)+","+(i+o)+" "+a+","+(i+o)}E(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,i8e(t,e)},"drawLabel"),QOt=E(function(t,e,r){const n=t.append("g"),a=Zo();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),a.height=r.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,WW(n,a),s8e(r)(e.text,n,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),kz=-1,ZOt=E(function(t,e,r,n){const a=e.x+r.width/2,i=t.append("g");kz++,i.append("line").attr("id",n+"-task"+kz).attr("x1",a).attr("y1",e.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),XOt(i,{cx:a,cy:300+(5-e.score)*30,score:e.score});const o=Zo();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,WW(i,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};a8e(i,h),l+=10}),s8e(r)(e.task,i,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),JOt=E(function(t,e){j2e(t,e)},"drawBackgroundRect"),s8e=(function(){function t(a,i,s,o,l,u,d,h){const f=i.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(a);n(f,d)}E(t,"byText");function e(a,i,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=a.split(//gi);for(let v=0;v{const i=m0[a].color,s={cx:20,cy:n,r:7,fill:i,stroke:"#000",pos:m0[a].position};eT.drawCircle(t,s);let o=t.append("text").attr("visibility","hidden").text(a);const l=o.node().getBoundingClientRect().width;o.remove();let u=[];if(l<=r)u=[a];else{const d=a.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 v of f)m+=v,o.text(m+"-"),o.node().getBoundingClientRect().width>r&&(u.push(m.slice(0,-1)+"-"),m=v);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=eT.drawText(t,f).node().getBoundingClientRect().width;g>fC&&g>e.leftMargin-g&&(fC=g)}),n+=Math.max(20,u.length*20)})}E(o8e,"drawActorLegend");var Hl=Ye().journey,Md=0,r9t=E(function(t,e,r,n){const a=Ye(),i=a.journey.titleColor,s=a.journey.titleFontSize,o=a.journey.titleFontFamily,l=a.securityLevel;let u;l==="sandbox"&&(u=At("#i"+e));const d=At(l==="sandbox"?u.nodes()[0].contentDocument.body:"body");hl.init();const h=d.select("#"+e);eT.initGraphics(h,e);const f=n.db.getTasks(),p=n.db.getDiagramTitle(),g=n.db.getActors();for(const S in m0)delete m0[S];let m=0;g.forEach(S=>{m0[S]={color:Hl.actorColours[m%Hl.actorColours.length],position:m},m++}),o8e(h),Md=Hl.leftMargin+fC,hl.insert(0,0,Md,Object.keys(m0).length*50),n9t(h,f,0,e);const v=hl.getBounds();p&&h.append("text").text(p).attr("x",Md).attr("font-size",s).attr("font-weight","bold").attr("y",25).attr("fill",i).attr("font-family",o);const y=v.stopy-v.starty+2*Hl.diagramMarginY,b=Md+v.stopx+2*Hl.diagramMarginX;di(h,y,b,Hl.useMaxWidth),h.append("line").attr("x1",Md).attr("y1",Hl.height*4).attr("x2",b-Md-4).attr("y2",Hl.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const _=p?70:0;h.attr("viewBox",`${v.startx} -25 ${b} ${y+_}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",y+_+25)},"draw"),hl={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:E(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:E(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:E(function(t,e,r,n){const a=Ye().journey,i=this;let s=0;function o(l){return E(function(d){s++;const h=i.sequenceItems.length-s+1;i.updateVal(d,"starty",e-h*a.boxMargin,Math.min),i.updateVal(d,"stopy",n+h*a.boxMargin,Math.max),i.updateVal(hl.data,"startx",t-h*a.boxMargin,Math.min),i.updateVal(hl.data,"stopx",r+h*a.boxMargin,Math.max),l!=="activation"&&(i.updateVal(d,"startx",t-h*a.boxMargin,Math.min),i.updateVal(d,"stopx",r+h*a.boxMargin,Math.max),i.updateVal(hl.data,"starty",e-h*a.boxMargin,Math.min),i.updateVal(hl.data,"stopy",n+h*a.boxMargin,Math.max))},"updateItemBounds")}E(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:E(function(t,e,r,n){const a=Math.min(t,r),i=Math.max(t,r),s=Math.min(e,n),o=Math.max(e,n);this.updateVal(hl.data,"startx",a,Math.min),this.updateVal(hl.data,"starty",s,Math.min),this.updateVal(hl.data,"stopx",i,Math.max),this.updateVal(hl.data,"stopy",o,Math.max),this.updateBounds(a,s,i,o)},"insert"),bumpVerticalPos:E(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:E(function(){return this.verticalPos},"getVerticalPos"),getBounds:E(function(){return this.data},"getBounds")},yM=Hl.sectionFills,Ile=Hl.sectionColours,n9t=E(function(t,e,r,n){const a=Ye().journey;let i="";const s=a.height*2+a.diagramMarginY,o=r+s;let l=0,u="#CCC",d="black",h=0;for(const[f,p]of e.entries()){if(i!==p.section){u=yM[l%yM.length],h=l%yM.length,d=Ile[l%Ile.length];let m=0;const v=p.section;for(let b=f;b(m0[v]&&(m[v]=m0[v]),m),{});p.x=f*a.taskMargin+f*a.width+Md,p.y=o,p.width=a.diagramMarginX,p.height=a.diagramMarginY,p.colour=d,p.fill=u,p.num=h,p.actors=g,eT.drawTask(t,p,a,n),hl.insert(p.x,p.y,p.x+p.width+a.taskMargin,450)}},"drawTasks"),Ole={setConf:t9t,draw:r9t},a9t={parser:FOt,db:Nle,renderer:Ole,styles:KOt,init:E(t=>{Ole.setConf(t.journey),Nle.clear()},"init")};const i9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:a9t},Symbol.toStringTag,{value:"Module"}));var Az=(function(){var t=E(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],a=[1,14],i=[1,15],s=[1,16],o=[1,19],l=[1,20],u={trace:E(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:E(function(p,g,m,v,y,b,_){var S=b.length-1;switch(y){case 1:return b[S-1];case 3:v.setDirection("LR");break;case 4:v.setDirection("TD");break;case 5:this.$=[];break;case 6:b[S-1].push(b[S]),this.$=b[S-1];break;case 7:case 8:this.$=b[S];break;case 9:case 10:this.$=[];break;case 11:v.getCommonDb().setDiagramTitle(b[S].substr(6)),this.$=b[S].substr(6);break;case 12:this.$=b[S].trim(),v.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=b[S].trim(),v.getCommonDb().setAccDescription(this.$);break;case 15:v.addSection(b[S].substr(8)),this.$=b[S].substr(8);break;case 18:v.addTask(b[S],0,""),this.$=b[S];break;case 19:v.addEvent(b[S].substr(2)),this.$=b[S];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:a,19:i,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:a,19:i,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:E(function(p,g){if(g.recoverable)this.trace(p);else{var m=new Error(p);throw m.hash=g,m}},"parseError"),parse:E(function(p){var g=this,m=[0],v=[],y=[null],b=[],_=this.table,S="",x=0,C=0,T=2,w=1,R=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(X){m.length=m.length-2*X,y.length=y.length-X,b.length=b.length-X}E(I,"popStack");function D(){var X;return X=v.pop()||O.lex()||w,typeof X!="number"&&(X instanceof Array&&(v=X,X=v.pop()),X=g.symbols_[X]||X),X}E(D,"lex");for(var L,N,P,z,B={},U,G,K,Y;;){if(N=m[m.length-1],this.defaultActions[N]?P=this.defaultActions[N]:((L===null||typeof L>"u")&&(L=D()),P=_[N]&&_[N][L]),typeof P>"u"||!P.length||!P[0]){var ee="";Y=[];for(U in _[N])this.terminals_[U]&&U>T&&Y.push("'"+this.terminals_[U]+"'");O.showPosition?ee="Parse error on line "+(x+1)+`: +`,"getStyles"),XOt=KOt,WW=E(function(t,e){return sA(t,e)},"drawRect"),jOt=E(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"),a=t.append("g");a.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"),a.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 i(l){const u=cb().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)+")")}E(i,"smile");function s(l){const u=cb().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)+")")}E(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 E(o,"ambivalent"),e.score>3?i(a):e.score<3?s(a):o(a),n},"drawFace"),a8e=E(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"),i8e=E(function(t,e){return W_t(t,e)},"drawText"),QOt=E(function(t,e){function r(a,i,s,o,l){return a+","+i+" "+(a+s)+","+i+" "+(a+s)+","+(i+o-l)+" "+(a+s-l*1.2)+","+(i+o)+" "+a+","+(i+o)}E(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,i8e(t,e)},"drawLabel"),ZOt=E(function(t,e,r){const n=t.append("g"),a=Zo();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),a.height=r.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,WW(n,a),s8e(r)(e.text,n,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),kz=-1,JOt=E(function(t,e,r,n){const a=e.x+r.width/2,i=t.append("g");kz++,i.append("line").attr("id",n+"-task"+kz).attr("x1",a).attr("y1",e.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),jOt(i,{cx:a,cy:300+(5-e.score)*30,score:e.score});const o=Zo();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,WW(i,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};a8e(i,h),l+=10}),s8e(r)(e.task,i,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),e9t=E(function(t,e){j2e(t,e)},"drawBackgroundRect"),s8e=(function(){function t(a,i,s,o,l,u,d,h){const f=i.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(a);n(f,d)}E(t,"byText");function e(a,i,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=a.split(//gi);for(let v=0;v{const i=m0[a].color,s={cx:20,cy:n,r:7,fill:i,stroke:"#000",pos:m0[a].position};eT.drawCircle(t,s);let o=t.append("text").attr("visibility","hidden").text(a);const l=o.node().getBoundingClientRect().width;o.remove();let u=[];if(l<=r)u=[a];else{const d=a.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 v of f)m+=v,o.text(m+"-"),o.node().getBoundingClientRect().width>r&&(u.push(m.slice(0,-1)+"-"),m=v);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=eT.drawText(t,f).node().getBoundingClientRect().width;g>fC&&g>e.leftMargin-g&&(fC=g)}),n+=Math.max(20,u.length*20)})}E(o8e,"drawActorLegend");var Hl=Ye().journey,Md=0,n9t=E(function(t,e,r,n){const a=Ye(),i=a.journey.titleColor,s=a.journey.titleFontSize,o=a.journey.titleFontFamily,l=a.securityLevel;let u;l==="sandbox"&&(u=At("#i"+e));const d=At(l==="sandbox"?u.nodes()[0].contentDocument.body:"body");hl.init();const h=d.select("#"+e);eT.initGraphics(h,e);const f=n.db.getTasks(),p=n.db.getDiagramTitle(),g=n.db.getActors();for(const S in m0)delete m0[S];let m=0;g.forEach(S=>{m0[S]={color:Hl.actorColours[m%Hl.actorColours.length],position:m},m++}),o8e(h),Md=Hl.leftMargin+fC,hl.insert(0,0,Md,Object.keys(m0).length*50),a9t(h,f,0,e);const v=hl.getBounds();p&&h.append("text").text(p).attr("x",Md).attr("font-size",s).attr("font-weight","bold").attr("y",25).attr("fill",i).attr("font-family",o);const y=v.stopy-v.starty+2*Hl.diagramMarginY,b=Md+v.stopx+2*Hl.diagramMarginX;di(h,y,b,Hl.useMaxWidth),h.append("line").attr("x1",Md).attr("y1",Hl.height*4).attr("x2",b-Md-4).attr("y2",Hl.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const _=p?70:0;h.attr("viewBox",`${v.startx} -25 ${b} ${y+_}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",y+_+25)},"draw"),hl={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:E(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:E(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:E(function(t,e,r,n){const a=Ye().journey,i=this;let s=0;function o(l){return E(function(d){s++;const h=i.sequenceItems.length-s+1;i.updateVal(d,"starty",e-h*a.boxMargin,Math.min),i.updateVal(d,"stopy",n+h*a.boxMargin,Math.max),i.updateVal(hl.data,"startx",t-h*a.boxMargin,Math.min),i.updateVal(hl.data,"stopx",r+h*a.boxMargin,Math.max),l!=="activation"&&(i.updateVal(d,"startx",t-h*a.boxMargin,Math.min),i.updateVal(d,"stopx",r+h*a.boxMargin,Math.max),i.updateVal(hl.data,"starty",e-h*a.boxMargin,Math.min),i.updateVal(hl.data,"stopy",n+h*a.boxMargin,Math.max))},"updateItemBounds")}E(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:E(function(t,e,r,n){const a=Math.min(t,r),i=Math.max(t,r),s=Math.min(e,n),o=Math.max(e,n);this.updateVal(hl.data,"startx",a,Math.min),this.updateVal(hl.data,"starty",s,Math.min),this.updateVal(hl.data,"stopx",i,Math.max),this.updateVal(hl.data,"stopy",o,Math.max),this.updateBounds(a,s,i,o)},"insert"),bumpVerticalPos:E(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:E(function(){return this.verticalPos},"getVerticalPos"),getBounds:E(function(){return this.data},"getBounds")},yM=Hl.sectionFills,Ile=Hl.sectionColours,a9t=E(function(t,e,r,n){const a=Ye().journey;let i="";const s=a.height*2+a.diagramMarginY,o=r+s;let l=0,u="#CCC",d="black",h=0;for(const[f,p]of e.entries()){if(i!==p.section){u=yM[l%yM.length],h=l%yM.length,d=Ile[l%Ile.length];let m=0;const v=p.section;for(let b=f;b(m0[v]&&(m[v]=m0[v]),m),{});p.x=f*a.taskMargin+f*a.width+Md,p.y=o,p.width=a.diagramMarginX,p.height=a.diagramMarginY,p.colour=d,p.fill=u,p.num=h,p.actors=g,eT.drawTask(t,p,a,n),hl.insert(p.x,p.y,p.x+p.width+a.taskMargin,450)}},"drawTasks"),Ole={setConf:r9t,draw:n9t},i9t={parser:$Ot,db:Nle,renderer:Ole,styles:XOt,init:E(t=>{Ole.setConf(t.journey),Nle.clear()},"init")};const s9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:i9t},Symbol.toStringTag,{value:"Module"}));var Az=(function(){var t=E(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],a=[1,14],i=[1,15],s=[1,16],o=[1,19],l=[1,20],u={trace:E(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:E(function(p,g,m,v,y,b,_){var S=b.length-1;switch(y){case 1:return b[S-1];case 3:v.setDirection("LR");break;case 4:v.setDirection("TD");break;case 5:this.$=[];break;case 6:b[S-1].push(b[S]),this.$=b[S-1];break;case 7:case 8:this.$=b[S];break;case 9:case 10:this.$=[];break;case 11:v.getCommonDb().setDiagramTitle(b[S].substr(6)),this.$=b[S].substr(6);break;case 12:this.$=b[S].trim(),v.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=b[S].trim(),v.getCommonDb().setAccDescription(this.$);break;case 15:v.addSection(b[S].substr(8)),this.$=b[S].substr(8);break;case 18:v.addTask(b[S],0,""),this.$=b[S];break;case 19:v.addEvent(b[S].substr(2)),this.$=b[S];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:a,19:i,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:a,19:i,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:E(function(p,g){if(g.recoverable)this.trace(p);else{var m=new Error(p);throw m.hash=g,m}},"parseError"),parse:E(function(p){var g=this,m=[0],v=[],y=[null],b=[],_=this.table,S="",x=0,C=0,T=2,w=1,R=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(X){m.length=m.length-2*X,y.length=y.length-X,b.length=b.length-X}E(I,"popStack");function D(){var X;return X=v.pop()||O.lex()||w,typeof X!="number"&&(X instanceof Array&&(v=X,X=v.pop()),X=g.symbols_[X]||X),X}E(D,"lex");for(var L,N,P,z,B={},U,G,K,Y;;){if(N=m[m.length-1],this.defaultActions[N]?P=this.defaultActions[N]:((L===null||typeof L>"u")&&(L=D()),P=_[N]&&_[N][L]),typeof P>"u"||!P.length||!P[0]){var ee="";Y=[];for(U in _[N])this.terminals_[U]&&U>T&&Y.push("'"+this.terminals_[U]+"'");O.showPosition?ee="Parse error on line "+(x+1)+`: `+O.showPosition()+` Expecting `+Y.join(", ")+", got '"+(this.terminals_[L]||L)+"'":ee="Parse error on line "+(x+1)+": Unexpected "+(L==w?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(ee,{text:O.match,token:this.terminals_[L]||L,line:O.yylineno,loc:F,expected:Y})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+L);switch(P[0]){case 1:m.push(L),y.push(O.yytext),b.push(O.yylloc),m.push(P[1]),L=null,C=O.yyleng,S=O.yytext,x=O.yylineno,F=O.yylloc;break;case 2:if(G=this.productions_[P[1]][1],B.$=y[y.length-G],B._$={first_line:b[b.length-(G||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(G||1)].first_column,last_column:b[b.length-1].last_column},A&&(B._$.range=[b[b.length-(G||1)].range[0],b[b.length-1].range[1]]),z=this.performAction.apply(B,[S,C,x,M.yy,P[1],y,b].concat(R)),typeof z<"u")return z;G&&(m=m.slice(0,-1*G*2),y=y.slice(0,-1*G),b=b.slice(0,-1*G)),m.push(this.productions_[P[1]][0]),y.push(B.$),b.push(B._$),K=_[m[m.length-2]][m[m.length-1]],m.push(K);break;case 3:return!0}}return!0},"parse")},d=(function(){var f={EOF:1,parseError:E(function(g,m){if(this.yy.parser)this.yy.parser.parseError(g,m);else throw new Error(g)},"parseError"),setInput:E(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:E(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:E(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 v=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 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:m?(m.length===v.length?this.yylloc.first_column:0)+v[v.length-m.length].length-m[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(p){this.unput(this.match.slice(p))},"less"),pastInput:E(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:E(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:E(function(){var p=this.pastInput(),g=new Array(p.length+1).join("-");return p+this.upcomingInput()+` `+g+"^"},"showPosition"),test_match:E(function(p,g){var m,v,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))),v=p[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.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 y)this[b]=y[b];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,g,m,v;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),b=0;bg[0].length)){if(g=m,v=b,this.options.backtrack_lexer){if(p=this.test_match(m,y[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,y[v]),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:E(function(){var g=this.next();return g||this.lex()},"lex"),begin:E(function(g){this.conditionStack.push(g)},"begin"),popState:E(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:E(function(g){this.begin(g)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(g,m,v,y){switch(v){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 E(h,"Parser"),h.prototype=u,u.Parser=h,new h})();Az.parser=Az;var s9t=Az,l8e={};Rk(l8e,{addEvent:()=>y8e,addSection:()=>p8e,addTask:()=>v8e,addTaskOrg:()=>_8e,clear:()=>d8e,default:()=>o9t,getCommonDb:()=>u8e,getDirection:()=>f8e,getSections:()=>g8e,getTasks:()=>m8e,setDirection:()=>h8e});var Gb="",c8e=0,KW="LR",XW=[],Qw=[],qb=[],u8e=E(()=>UU,"getCommonDb"),d8e=E(function(){XW.length=0,Qw.length=0,Gb="",qb.length=0,KW="LR",oa()},"clear"),h8e=E(function(t){KW=t},"setDirection"),f8e=E(function(){return KW},"getDirection"),p8e=E(function(t){Gb=t,XW.push(t)},"addSection"),g8e=E(function(){return XW},"getSections"),m8e=E(function(){let t=Dle();const e=100;let r=0;for(;!t&&rr.id===c8e-1).events.push(t)},"addEvent"),_8e=E(function(t){const e={section:Gb,type:Gb,description:t,task:t,classes:[]};Qw.push(e)},"addTaskOrg"),Dle=E(function(){const t=E(function(r){return qb[r].processed},"compileTask");let e=!0;for(const[r,n]of qb.entries())t(r),e=e&&n.processed;return e},"compileTasks"),o9t={clear:d8e,getCommonDb:u8e,getDirection:f8e,setDirection:h8e,addSection:p8e,getSections:g8e,getTasks:m8e,addTask:v8e,addTaskOrg:_8e,addEvent:y8e},b8e=0,C8=E(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"),l9t=E(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"),a=t.append("g");a.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"),a.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 i(l){const u=cb().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)+")")}E(i,"smile");function s(l){const u=cb().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)+")")}E(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 E(o,"ambivalent"),e.score>3?i(a):e.score<3?s(a):o(a),n},"drawFace"),c9t=E(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"),E8e=E(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 a=n.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.text(r),n},"drawText"),u9t=E(function(t,e){function r(a,i,s,o,l){return a+","+i+" "+(a+s)+","+i+" "+(a+s)+","+(i+o-l)+" "+(a+s-l*1.2)+","+(i+o)+" "+a+","+(i+o)}E(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,E8e(t,e)},"drawLabel"),d9t=E(function(t,e,r){const n=t.append("g"),a=jW();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=r.width,a.height=r.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,C8(n,a),S8e(r)(e.text,n,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),Rz=-1,h9t=E(function(t,e,r,n){const a=e.x+r.width/2,i=t.append("g");Rz++,i.append("line").attr("id",n+"-task"+Rz).attr("x1",a).attr("y1",e.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),l9t(i,{cx:a,cy:300+(5-e.score)*30,score:e.score});const o=jW();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,C8(i,o),S8e(r)(e.task,i,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),f9t=E(function(t,e){C8(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),p9t=E(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),jW=E(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),S8e=(function(){function t(a,i,s,o,l,u,d,h){const f=i.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(a);n(f,d)}E(t,"byText");function e(a,i,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=a.split(//gi);for(let v=0;v)/).reverse(),a,i=[],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||a==="
")&&(i.pop(),u.text(i.join(" ").trim()),a==="
"?i=[""]:i=[a],u=r.append("tspan").attr("x",0).attr("y",o).attr("dy",s+"em").text(a))})}E(QW,"wrap");var m9t=E(function(t,e,r,n,a,i=!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(QW,e.width).node().getBBox(),v=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;if(e.height=m.height+v*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}, ${i?e.padding/2+3:e.padding})`),y9t(f,e,d,a,n),o==="neo"&&(h.attr("data-look","neo"),l)){const y=s.includes("dark"),b=t.node()?.ownerSVGElement??t.node(),_=At(b),S=_.attr("id")??"",x=S?`${S}-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",y?"0.2":"0.06").attr("flood-color",y?"#FFFFFF":"#000000")}}return e},"drawNode"),v9t=E(function(t,e,r){const n=t.append("g"),i=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(QW,e.width).node().getBBox(),s=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;return n.remove(),i.height+s*1.1*.5+e.padding},"getVirtualNodeHeight"),y9t=E(function(t,e,r,n,a){const{theme:i}=a,s=i?.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-"+b8e++).attr("class","node-bkg node-"+e.type).attr("d",l),i?.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"),yo={drawRect:C8,drawCircle:c9t,drawSection:d9t,drawText:E8e,drawLabel:u9t,drawTask:h9t,drawBackgroundRect:f9t,getTextObj:p9t,getNoteRect:jW,initGraphics:g9t,drawNode:m9t,getVirtualNodeHeight:v9t},_9t=E(function(t,e,r,n){const a=Ye(),{look:i,theme:s,themeVariables:o}=a,{useGradient:l,gradientStart:u,gradientStop:d}=o,h=a.timeline?.leftMargin??50;oe.debug("timeline",n.db);const f=a.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 v=n.db.getTasks(),y=n.db.getCommonDb().getDiagramTitle();oe.debug("task",v),yo.initGraphics(m,e);const b=n.db.getSections();oe.debug("sections",b);let _=0,S=0,x=0,C=0,T=50+h,w=50;C=50;let R=0,O=!0;b.forEach(function(I){const D={number:R,descr:I,section:R,width:150,padding:20,maxHeight:_},L=yo.getVirtualNodeHeight(m,D,a);oe.debug("sectionHeight before draw",L),_=Math.max(_,L+20)});let M=0,$=0;oe.debug("tasks.length",v.length);for(const[I,D]of v.entries()){const L={number:I,descr:D,section:D.section,width:150,padding:20,maxHeight:S},N=yo.getVirtualNodeHeight(m,L,a);oe.debug("taskHeight before draw",N),S=Math.max(S,N+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+=yo.getVirtualNodeHeight(m,B,a)}D.events.length>0&&(P+=(D.events.length-1)*10),$=Math.max($,P)}oe.debug("maxSectionHeight before draw",_),oe.debug("maxTaskHeight before draw",S),b&&b.length>0?b.forEach(I=>{const D=v.filter(z=>z.section===I),L={number:R,descr:I,section:R,width:200*Math.max(D.length,1)-50,padding:20,maxHeight:_};oe.debug("sectionNode",L);const N=m.append("g"),P=yo.drawNode(N,L,R,a,e);oe.debug("sectionNode output",P),N.attr("transform",`translate(${T}, ${C})`),w+=_+50,D.length>0&&Lle(m,D,R,T,w,S,a,M,$,_,!1,e),T+=200*Math.max(D.length,1),w=C,R++}):(O=!1,Lle(m,v,R,T,w,S,a,M,$,_,!0,e));const F=m.node().getBBox();if(oe.debug("bounds",F),y&&m.append("text").text(y).attr("x",i==="neo"?F.x*2+h:F.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),x=O?_+S+150:S+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)`),i==="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)}Jb(void 0,m,a.timeline?.padding??50,a.timeline?.useMaxWidth??!1)},"draw"),Lle=E(function(t,e,r,n,a,i,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:i};oe.debug("taskNode",p);const g=t.append("g").attr("class","taskWrapper"),v=yo.drawNode(g,p,r,s,h).height;if(oe.debug("taskHeight after draw",v),g.attr("transform",`translate(${n}, ${a})`),i=Math.max(i,v),f.events){const y=t.append("g").attr("class","lineWrapper");let b=i;a+=100,b=b+b9t(t,f.events,r,n,a,s,h),a-=100,y.append("line").attr("x1",n+190/2).attr("y1",a+i).attr("x2",n+190/2).attr("y2",a+i+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++}a=a-10},"drawTasks"),b9t=E(function(t,e,r,n,a,i,s){let o=0;const l=a;a=a+100;for(const u of e){const d={descr:u,section:r,number:r,width:150,padding:20,maxHeight:50};oe.debug("eventNode",d);const h=t.append("g").attr("class","eventWrapper"),p=yo.drawNode(h,d,r,i,s,!0).height;o=o+p,h.attr("transform",`translate(${n}, ${a})`),a=a+10+p}return a=l,o},"drawEvents"),E9t={setConf:E(()=>{},"setConf"),draw:_9t},w8=200,o0=5,S9t=w8+o0*2,ZW=w8+100,T9t=ZW+o0*2,T8e=10,x9t=0,Mle=20,x8e=20,Ple=30,C8e=50,C9t=E(function(t,e,r,n){const a=Ye(),i=a.timeline?.leftMargin??50;oe.debug("timeline",n.db);const s=wo(e);s.append("g");const o=n.db.getTasks(),l=n.db.getCommonDb().getDiagramTitle();oe.debug("task",o),yo.initGraphics(s);const u=n.db.getSections();oe.debug("sections",u);let d=0,h=0;const f=50+i;let p=50;const g=p,m=f,v=S9t+x8e,y=T9t+C8e,b=m+v;let _=0;const S=u&&u.length>0,x=S?b:f+v,C=Math.max(50,v+y-o0*2);u.forEach(function(I){const D={number:_,descr:I,section:_,width:C,padding:o0,maxHeight:d},L=yo.getVirtualNodeHeight(s,D,a);oe.debug("sectionHeight before draw",L),d=Math.max(d,L)});let T=0;oe.debug("tasks.length",o.length);for(const[I,D]of o.entries()){const L={number:I,descr:D,section:D.section,width:w8,padding:o0,maxHeight:h},N=yo.getVirtualNodeHeight(s,L,a);oe.debug("taskHeight before draw",N),h=Math.max(h,N);let P=0;for(const z of D.events){const B={descr:z,section:D.section,number:D.section,width:ZW,padding:o0,maxHeight:50};P+=yo.getVirtualNodeHeight(s,B,a)}D.events.length>0&&(P+=(D.events.length-1)*T8e),T=Math.max(T,P)+x9t}oe.debug("maxSectionHeight before draw",d),oe.debug("maxTaskHeight before draw",h);const R=Math.max(h,T)+Ple;S?u.forEach(I=>{const D=o.filter(K=>K.section===I),L={number:_,descr:I,section:_,width:C,padding:o0,maxHeight:d};oe.debug("sectionNode",L);const N=s.append("g"),P=yo.drawNode(N,L,_,a);oe.debug("sectionNode output",P);const z=x-v;N.attr("transform",`translate(${z}, ${p})`);const B=p+P.height+Mle;D.length>0&&Ble(s,D,_,x,B,h,a,R,!1);const U=D.length,G=P.height+Mle+R*Math.max(U,1)-(U>0?Ple*2:0);p+=G,_++}):Ble(s,o,_,x,p,h,a,R,!0);let O=s.node()?.getBBox();if(!O)throw new Error("bbox not found");if(oe.debug("bounds",O),l){if(s.append("text").text(l).attr("x",O.width/2-i).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=s.node()?.getBBox(),!O)throw new Error("bbox not found");oe.debug("bounds after title",O)}const[M]=X0(a.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(),Jb(void 0,s,a.timeline?.padding??50,a.timeline?.useMaxWidth??!1)},"draw"),Ble=E(function(t,e,r,n,a,i,s,o,l){for(const u of e){const d={descr:u.task,section:r,number:r,width:w8,padding:o0,maxHeight:i};oe.debug("taskNode",d);const h=t.append("g").attr("class","taskWrapper"),f=yo.drawNode(h,d,r,s),p=f.height;oe.debug("taskHeight after draw",p);const g=n-x8e-f.width;if(h.attr("transform",`translate(${g}, ${a})`),i=Math.max(i,p),u.events&&u.events.length>0){const m=a,v=n+C8e;w9t(t,u.events,r,n,v,m,s)}a=a+o,l&&!s.timeline?.disableMulticolor&&r++}},"drawTasks"),w9t=E(function(t,e,r,n,a,i,s){let o=i;for(const l of e){const u={descr:l,section:r,number:r,width:ZW,padding:o0,maxHeight:0};oe.debug("eventNode",u);const d=t.append("g").attr("class","eventWrapper"),f=yo.drawNode(d,u,r,s).height;d.attr("transform",`translate(${a}, ${o})`);const p=t.append("g").attr("class","lineWrapper"),g=o+f/2;p.append("line").attr("x1",n).attr("y1",g).attr("x2",a).attr("y2",g).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+f+T8e}return o-i},"drawEvents"),k9t={setConf:E(()=>{},"setConf"),draw:C9t},A9t=E(t=>{const{theme:e}=xr(),r=e?.includes("dark"),n=e?.includes("color"),a=t.svgId?.replace(/^#/,"")??"",i=a?`url(#${a}-drop-shadow)`:t.dropShadow??"none";let s="";for(let o=0;o0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:E(function(g){this.begin(g)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(g,m,v,y){switch(v){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 E(h,"Parser"),h.prototype=u,u.Parser=h,new h})();Az.parser=Az;var o9t=Az,l8e={};Rk(l8e,{addEvent:()=>y8e,addSection:()=>p8e,addTask:()=>v8e,addTaskOrg:()=>_8e,clear:()=>d8e,default:()=>l9t,getCommonDb:()=>u8e,getDirection:()=>f8e,getSections:()=>g8e,getTasks:()=>m8e,setDirection:()=>h8e});var Gb="",c8e=0,KW="LR",XW=[],Qw=[],qb=[],u8e=E(()=>UU,"getCommonDb"),d8e=E(function(){XW.length=0,Qw.length=0,Gb="",qb.length=0,KW="LR",oa()},"clear"),h8e=E(function(t){KW=t},"setDirection"),f8e=E(function(){return KW},"getDirection"),p8e=E(function(t){Gb=t,XW.push(t)},"addSection"),g8e=E(function(){return XW},"getSections"),m8e=E(function(){let t=Dle();const e=100;let r=0;for(;!t&&rr.id===c8e-1).events.push(t)},"addEvent"),_8e=E(function(t){const e={section:Gb,type:Gb,description:t,task:t,classes:[]};Qw.push(e)},"addTaskOrg"),Dle=E(function(){const t=E(function(r){return qb[r].processed},"compileTask");let e=!0;for(const[r,n]of qb.entries())t(r),e=e&&n.processed;return e},"compileTasks"),l9t={clear:d8e,getCommonDb:u8e,getDirection:f8e,setDirection:h8e,addSection:p8e,getSections:g8e,getTasks:m8e,addTask:v8e,addTaskOrg:_8e,addEvent:y8e},b8e=0,C8=E(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"),c9t=E(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"),a=t.append("g");a.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"),a.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 i(l){const u=cb().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)+")")}E(i,"smile");function s(l){const u=cb().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)+")")}E(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 E(o,"ambivalent"),e.score>3?i(a):e.score<3?s(a):o(a),n},"drawFace"),u9t=E(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"),E8e=E(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 a=n.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.text(r),n},"drawText"),d9t=E(function(t,e){function r(a,i,s,o,l){return a+","+i+" "+(a+s)+","+i+" "+(a+s)+","+(i+o-l)+" "+(a+s-l*1.2)+","+(i+o)+" "+a+","+(i+o)}E(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,E8e(t,e)},"drawLabel"),h9t=E(function(t,e,r){const n=t.append("g"),a=jW();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=r.width,a.height=r.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,C8(n,a),S8e(r)(e.text,n,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),Rz=-1,f9t=E(function(t,e,r,n){const a=e.x+r.width/2,i=t.append("g");Rz++,i.append("line").attr("id",n+"-task"+Rz).attr("x1",a).attr("y1",e.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),c9t(i,{cx:a,cy:300+(5-e.score)*30,score:e.score});const o=jW();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,C8(i,o),S8e(r)(e.task,i,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),p9t=E(function(t,e){C8(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),g9t=E(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),jW=E(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),S8e=(function(){function t(a,i,s,o,l,u,d,h){const f=i.append("text").attr("x",s+l/2).attr("y",o+u/2+5).style("font-color",h).style("text-anchor","middle").text(a);n(f,d)}E(t,"byText");function e(a,i,s,o,l,u,d,h,f){const{taskFontSize:p,taskFontFamily:g}=h,m=a.split(//gi);for(let v=0;v)/).reverse(),a,i=[],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||a==="
")&&(i.pop(),u.text(i.join(" ").trim()),a==="
"?i=[""]:i=[a],u=r.append("tspan").attr("x",0).attr("y",o).attr("dy",s+"em").text(a))})}E(QW,"wrap");var v9t=E(function(t,e,r,n,a,i=!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(QW,e.width).node().getBBox(),v=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;if(e.height=m.height+v*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}, ${i?e.padding/2+3:e.padding})`),_9t(f,e,d,a,n),o==="neo"&&(h.attr("data-look","neo"),l)){const y=s.includes("dark"),b=t.node()?.ownerSVGElement??t.node(),_=At(b),S=_.attr("id")??"",x=S?`${S}-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",y?"0.2":"0.06").attr("flood-color",y?"#FFFFFF":"#000000")}}return e},"drawNode"),y9t=E(function(t,e,r){const n=t.append("g"),i=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(QW,e.width).node().getBBox(),s=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;return n.remove(),i.height+s*1.1*.5+e.padding},"getVirtualNodeHeight"),_9t=E(function(t,e,r,n,a){const{theme:i}=a,s=i?.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-"+b8e++).attr("class","node-bkg node-"+e.type).attr("d",l),i?.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"),yo={drawRect:C8,drawCircle:u9t,drawSection:h9t,drawText:E8e,drawLabel:d9t,drawTask:f9t,drawBackgroundRect:p9t,getTextObj:g9t,getNoteRect:jW,initGraphics:m9t,drawNode:v9t,getVirtualNodeHeight:y9t},b9t=E(function(t,e,r,n){const a=Ye(),{look:i,theme:s,themeVariables:o}=a,{useGradient:l,gradientStart:u,gradientStop:d}=o,h=a.timeline?.leftMargin??50;oe.debug("timeline",n.db);const f=a.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 v=n.db.getTasks(),y=n.db.getCommonDb().getDiagramTitle();oe.debug("task",v),yo.initGraphics(m,e);const b=n.db.getSections();oe.debug("sections",b);let _=0,S=0,x=0,C=0,T=50+h,w=50;C=50;let R=0,O=!0;b.forEach(function(I){const D={number:R,descr:I,section:R,width:150,padding:20,maxHeight:_},L=yo.getVirtualNodeHeight(m,D,a);oe.debug("sectionHeight before draw",L),_=Math.max(_,L+20)});let M=0,$=0;oe.debug("tasks.length",v.length);for(const[I,D]of v.entries()){const L={number:I,descr:D,section:D.section,width:150,padding:20,maxHeight:S},N=yo.getVirtualNodeHeight(m,L,a);oe.debug("taskHeight before draw",N),S=Math.max(S,N+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+=yo.getVirtualNodeHeight(m,B,a)}D.events.length>0&&(P+=(D.events.length-1)*10),$=Math.max($,P)}oe.debug("maxSectionHeight before draw",_),oe.debug("maxTaskHeight before draw",S),b&&b.length>0?b.forEach(I=>{const D=v.filter(z=>z.section===I),L={number:R,descr:I,section:R,width:200*Math.max(D.length,1)-50,padding:20,maxHeight:_};oe.debug("sectionNode",L);const N=m.append("g"),P=yo.drawNode(N,L,R,a,e);oe.debug("sectionNode output",P),N.attr("transform",`translate(${T}, ${C})`),w+=_+50,D.length>0&&Lle(m,D,R,T,w,S,a,M,$,_,!1,e),T+=200*Math.max(D.length,1),w=C,R++}):(O=!1,Lle(m,v,R,T,w,S,a,M,$,_,!0,e));const F=m.node().getBBox();if(oe.debug("bounds",F),y&&m.append("text").text(y).attr("x",i==="neo"?F.x*2+h:F.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),x=O?_+S+150:S+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)`),i==="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)}Jb(void 0,m,a.timeline?.padding??50,a.timeline?.useMaxWidth??!1)},"draw"),Lle=E(function(t,e,r,n,a,i,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:i};oe.debug("taskNode",p);const g=t.append("g").attr("class","taskWrapper"),v=yo.drawNode(g,p,r,s,h).height;if(oe.debug("taskHeight after draw",v),g.attr("transform",`translate(${n}, ${a})`),i=Math.max(i,v),f.events){const y=t.append("g").attr("class","lineWrapper");let b=i;a+=100,b=b+E9t(t,f.events,r,n,a,s,h),a-=100,y.append("line").attr("x1",n+190/2).attr("y1",a+i).attr("x2",n+190/2).attr("y2",a+i+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++}a=a-10},"drawTasks"),E9t=E(function(t,e,r,n,a,i,s){let o=0;const l=a;a=a+100;for(const u of e){const d={descr:u,section:r,number:r,width:150,padding:20,maxHeight:50};oe.debug("eventNode",d);const h=t.append("g").attr("class","eventWrapper"),p=yo.drawNode(h,d,r,i,s,!0).height;o=o+p,h.attr("transform",`translate(${n}, ${a})`),a=a+10+p}return a=l,o},"drawEvents"),S9t={setConf:E(()=>{},"setConf"),draw:b9t},w8=200,o0=5,T9t=w8+o0*2,ZW=w8+100,x9t=ZW+o0*2,T8e=10,C9t=0,Mle=20,x8e=20,Ple=30,C8e=50,w9t=E(function(t,e,r,n){const a=Ye(),i=a.timeline?.leftMargin??50;oe.debug("timeline",n.db);const s=wo(e);s.append("g");const o=n.db.getTasks(),l=n.db.getCommonDb().getDiagramTitle();oe.debug("task",o),yo.initGraphics(s);const u=n.db.getSections();oe.debug("sections",u);let d=0,h=0;const f=50+i;let p=50;const g=p,m=f,v=T9t+x8e,y=x9t+C8e,b=m+v;let _=0;const S=u&&u.length>0,x=S?b:f+v,C=Math.max(50,v+y-o0*2);u.forEach(function(I){const D={number:_,descr:I,section:_,width:C,padding:o0,maxHeight:d},L=yo.getVirtualNodeHeight(s,D,a);oe.debug("sectionHeight before draw",L),d=Math.max(d,L)});let T=0;oe.debug("tasks.length",o.length);for(const[I,D]of o.entries()){const L={number:I,descr:D,section:D.section,width:w8,padding:o0,maxHeight:h},N=yo.getVirtualNodeHeight(s,L,a);oe.debug("taskHeight before draw",N),h=Math.max(h,N);let P=0;for(const z of D.events){const B={descr:z,section:D.section,number:D.section,width:ZW,padding:o0,maxHeight:50};P+=yo.getVirtualNodeHeight(s,B,a)}D.events.length>0&&(P+=(D.events.length-1)*T8e),T=Math.max(T,P)+C9t}oe.debug("maxSectionHeight before draw",d),oe.debug("maxTaskHeight before draw",h);const R=Math.max(h,T)+Ple;S?u.forEach(I=>{const D=o.filter(K=>K.section===I),L={number:_,descr:I,section:_,width:C,padding:o0,maxHeight:d};oe.debug("sectionNode",L);const N=s.append("g"),P=yo.drawNode(N,L,_,a);oe.debug("sectionNode output",P);const z=x-v;N.attr("transform",`translate(${z}, ${p})`);const B=p+P.height+Mle;D.length>0&&Ble(s,D,_,x,B,h,a,R,!1);const U=D.length,G=P.height+Mle+R*Math.max(U,1)-(U>0?Ple*2:0);p+=G,_++}):Ble(s,o,_,x,p,h,a,R,!0);let O=s.node()?.getBBox();if(!O)throw new Error("bbox not found");if(oe.debug("bounds",O),l){if(s.append("text").text(l).attr("x",O.width/2-i).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=s.node()?.getBBox(),!O)throw new Error("bbox not found");oe.debug("bounds after title",O)}const[M]=X0(a.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(),Jb(void 0,s,a.timeline?.padding??50,a.timeline?.useMaxWidth??!1)},"draw"),Ble=E(function(t,e,r,n,a,i,s,o,l){for(const u of e){const d={descr:u.task,section:r,number:r,width:w8,padding:o0,maxHeight:i};oe.debug("taskNode",d);const h=t.append("g").attr("class","taskWrapper"),f=yo.drawNode(h,d,r,s),p=f.height;oe.debug("taskHeight after draw",p);const g=n-x8e-f.width;if(h.attr("transform",`translate(${g}, ${a})`),i=Math.max(i,p),u.events&&u.events.length>0){const m=a,v=n+C8e;k9t(t,u.events,r,n,v,m,s)}a=a+o,l&&!s.timeline?.disableMulticolor&&r++}},"drawTasks"),k9t=E(function(t,e,r,n,a,i,s){let o=i;for(const l of e){const u={descr:l,section:r,number:r,width:ZW,padding:o0,maxHeight:0};oe.debug("eventNode",u);const d=t.append("g").attr("class","eventWrapper"),f=yo.drawNode(d,u,r,s).height;d.attr("transform",`translate(${a}, ${o})`);const p=t.append("g").attr("class","lineWrapper"),g=o+f/2;p.append("line").attr("x1",n).attr("y1",g).attr("x2",a).attr("y2",g).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+f+T8e}return o-i},"drawEvents"),A9t={setConf:E(()=>{},"setConf"),draw:w9t},R9t=E(t=>{const{theme:e}=xr(),r=e?.includes("dark"),n=e?.includes("color"),a=t.svgId?.replace(/^#/,"")??"",i=a?`url(#${a}-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",a=t.svgId?.replace(/^#/,"")??"";let i="";if(t.useGradient&&a&&t.THEME_COLOR_LIMIT&&!n)for(let s=0;s{const{theme:e}=xr(),r=e?.includes("redux"),n=e==="neutral",a=t.svgId?.replace(/^#/,"")??"";let i="";if(t.useGradient&&a&&t.THEME_COLOR_LIMIT&&!n)for(let s=0;s{},"setConf"),draw:E((t,e,r,n)=>(n?.db?.getDirection?.()??"LR")==="TD"?k9t.draw(t,e,r,n):E9t.draw(t,e,r,n),"draw")},D9t={db:l8e,renderer:O9t,parser:s9t,styles:I9t};const L9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:D9t},Symbol.toStringTag,{value:"Module"})),Wi=[];for(let t=0;t<256;++t)Wi.push((t+256).toString(16).slice(1));function M9t(t,e=0){return(Wi[t[e+0]]+Wi[t[e+1]]+Wi[t[e+2]]+Wi[t[e+3]]+"-"+Wi[t[e+4]]+Wi[t[e+5]]+"-"+Wi[t[e+6]]+Wi[t[e+7]]+"-"+Wi[t[e+8]]+Wi[t[e+9]]+"-"+Wi[t[e+10]]+Wi[t[e+11]]+Wi[t[e+12]]+Wi[t[e+13]]+Wi[t[e+14]]+Wi[t[e+15]]).toLowerCase()}const P9t=new Uint8Array(16);function B9t(){return crypto.getRandomValues(P9t)}function F9t(t,e,r){return crypto.randomUUID?crypto.randomUUID():$9t(t)}function $9t(t,e,r){t=t||{};const n=t.random??t.rng?.()??B9t();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,M9t(n)}var Nz=(function(){var t=E(function(S,x,C,T){for(C=C||{},T=S.length;T--;C[S[T]]=x);return C},"o"),e=[1,4],r=[1,13],n=[1,12],a=[1,15],i=[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],v=[1,6,7,11,13,15,16,19,22],y={trace:E(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:E(function(x,C,T,w,R,O,M){var $=O.length-1;switch(R){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:a,16:i,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:a,16:i,17:17,18:18,19:s,22:o},{6:r,9:22,12:11,13:n,14:14,15:a,16:i,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:a,16:i,17:17,18:18,19:s,22:o},t(p,[2,14],{7:g,11:m}),t(v,[2,8]),t(v,[2,9]),t(v,[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(v,[2,11]),t(v,[2,12]),{21:[1,37]},t(f,[2,25]),t(f,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:E(function(x,C){if(C.recoverable)this.trace(x);else{var T=new Error(x);throw T.hash=C,T}},"parseError"),parse:E(function(x){var C=this,T=[0],w=[],R=[null],O=[],M=this.table,$="",F=0,A=0,I=2,D=1,L=O.slice.call(arguments,1),N=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]);N.setInput(x,P.yy),P.yy.lexer=N,P.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var B=N.yylloc;O.push(B);var U=N.options&&N.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function G(Be){T.length=T.length-2*Be,R.length=R.length-Be,O.length=O.length-Be}E(G,"popStack");function K(){var Be;return Be=w.pop()||N.lex()||D,typeof Be!="number"&&(Be instanceof Array&&(w=Be,Be=w.pop()),Be=C.symbols_[Be]||Be),Be}E(K,"lex");for(var Y,ee,X,le,te={},ne,ae,re,ge;;){if(ee=T[T.length-1],this.defaultActions[ee]?X=this.defaultActions[ee]:((Y===null||typeof Y>"u")&&(Y=K()),X=M[ee]&&M[ee][Y]),typeof X>"u"||!X.length||!X[0]){var pe="";ge=[];for(ne in M[ee])this.terminals_[ne]&&ne>I&&ge.push("'"+this.terminals_[ne]+"'");N.showPosition?pe="Parse error on line "+(F+1)+`: +`},"getStyles"),O9t=I9t,D9t={setConf:E(()=>{},"setConf"),draw:E((t,e,r,n)=>(n?.db?.getDirection?.()??"LR")==="TD"?A9t.draw(t,e,r,n):S9t.draw(t,e,r,n),"draw")},L9t={db:l8e,renderer:D9t,parser:o9t,styles:O9t};const M9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:L9t},Symbol.toStringTag,{value:"Module"})),Wi=[];for(let t=0;t<256;++t)Wi.push((t+256).toString(16).slice(1));function P9t(t,e=0){return(Wi[t[e+0]]+Wi[t[e+1]]+Wi[t[e+2]]+Wi[t[e+3]]+"-"+Wi[t[e+4]]+Wi[t[e+5]]+"-"+Wi[t[e+6]]+Wi[t[e+7]]+"-"+Wi[t[e+8]]+Wi[t[e+9]]+"-"+Wi[t[e+10]]+Wi[t[e+11]]+Wi[t[e+12]]+Wi[t[e+13]]+Wi[t[e+14]]+Wi[t[e+15]]).toLowerCase()}const B9t=new Uint8Array(16);function F9t(){return crypto.getRandomValues(B9t)}function $9t(t,e,r){return crypto.randomUUID?crypto.randomUUID():z9t(t)}function z9t(t,e,r){t=t||{};const n=t.random??t.rng?.()??F9t();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,P9t(n)}var Nz=(function(){var t=E(function(S,x,C,T){for(C=C||{},T=S.length;T--;C[S[T]]=x);return C},"o"),e=[1,4],r=[1,13],n=[1,12],a=[1,15],i=[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],v=[1,6,7,11,13,15,16,19,22],y={trace:E(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:E(function(x,C,T,w,R,O,M){var $=O.length-1;switch(R){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:a,16:i,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:a,16:i,17:17,18:18,19:s,22:o},{6:r,9:22,12:11,13:n,14:14,15:a,16:i,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:a,16:i,17:17,18:18,19:s,22:o},t(p,[2,14],{7:g,11:m}),t(v,[2,8]),t(v,[2,9]),t(v,[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(v,[2,11]),t(v,[2,12]),{21:[1,37]},t(f,[2,25]),t(f,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:E(function(x,C){if(C.recoverable)this.trace(x);else{var T=new Error(x);throw T.hash=C,T}},"parseError"),parse:E(function(x){var C=this,T=[0],w=[],R=[null],O=[],M=this.table,$="",F=0,A=0,I=2,D=1,L=O.slice.call(arguments,1),N=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]);N.setInput(x,P.yy),P.yy.lexer=N,P.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var B=N.yylloc;O.push(B);var U=N.options&&N.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function G(Be){T.length=T.length-2*Be,R.length=R.length-Be,O.length=O.length-Be}E(G,"popStack");function K(){var Be;return Be=w.pop()||N.lex()||D,typeof Be!="number"&&(Be instanceof Array&&(w=Be,Be=w.pop()),Be=C.symbols_[Be]||Be),Be}E(K,"lex");for(var Y,ee,X,le,te={},ne,ae,re,ge;;){if(ee=T[T.length-1],this.defaultActions[ee]?X=this.defaultActions[ee]:((Y===null||typeof Y>"u")&&(Y=K()),X=M[ee]&&M[ee][Y]),typeof X>"u"||!X.length||!X[0]){var pe="";ge=[];for(ne in M[ee])this.terminals_[ne]&&ne>I&&ge.push("'"+this.terminals_[ne]+"'");N.showPosition?pe="Parse error on line "+(F+1)+`: `+N.showPosition()+` Expecting `+ge.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":pe="Parse error on line "+(F+1)+": Unexpected "+(Y==D?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(pe,{text:N.match,token:this.terminals_[Y]||Y,line:N.yylineno,loc:B,expected:ge})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ee+", token: "+Y);switch(X[0]){case 1:T.push(Y),R.push(N.yytext),O.push(N.yylloc),T.push(X[1]),Y=null,A=N.yyleng,$=N.yytext,F=N.yylineno,B=N.yylloc;break;case 2:if(ae=this.productions_[X[1]][1],te.$=R[R.length-ae],te._$={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},U&&(te._$.range=[O[O.length-(ae||1)].range[0],O[O.length-1].range[1]]),le=this.performAction.apply(te,[$,A,F,P.yy,X[1],R,O].concat(L)),typeof le<"u")return le;ae&&(T=T.slice(0,-1*ae*2),R=R.slice(0,-1*ae),O=O.slice(0,-1*ae)),T.push(this.productions_[X[1]][0]),R.push(te.$),O.push(te._$),re=M[T[T.length-2]][T[T.length-1]],T.push(re);break;case 3:return!0}}return!0},"parse")},b=(function(){var S={EOF:1,parseError:E(function(C,T){if(this.yy.parser)this.yy.parser.parseError(C,T);else throw new Error(C)},"parseError"),setInput:E(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:E(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:E(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 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: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=[R[0],R[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(x){this.unput(this.match.slice(x))},"less"),pastInput:E(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:E(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:E(function(){var x=this.pastInput(),C=new Array(x.length+1).join("-");return x+this.upcomingInput()+` `+C+"^"},"showPosition"),test_match:E(function(x,C){var T,w,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))),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 R)this[O]=R[O];return!1}return!1},"test_match"),next:E(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 R=this._currentRules(),O=0;OC[0].length)){if(C=T,w=O,this.options.backtrack_lexer){if(x=this.test_match(T,R[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,R[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:E(function(){var C=this.next();return C||this.lex()},"lex"),begin:E(function(C){this.conditionStack.push(C)},"begin"),popState:E(function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},"topState"),pushState:E(function(C){this.begin(C)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(C,T,w,R){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 S})();y.lexer=b;function _(){this.yy={}}return E(_,"Parser"),_.prototype=y,y.Parser=_,new _})();Nz.parser=Nz;var z9t=Nz,U9t=12,Wu={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},$_,G9t=($_=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=Wu,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,a){oe.info("addNode",e,r,n,a);let i=!1;this.nodes.length===0?(this.baseLevel=e,e=0,i=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,i=!1);const s=Ye();let o=s.mindmap?.padding??ln.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2;break}const l={id:this.count++,nodeId:dn(r,s),level:e,descr:dn(n,s),type:a,children:[],width:s.mindmap?.maxNodeWidth??ln.mindmap.maxNodeWidth,padding:o,isRoot:i},u=this.getParent(e);if(u)u.children.push(l),this.nodes.push(l);else if(i)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(oe.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=Ye(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=dn(e.icon,r)),e.class&&(n.class=dn(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,a]of e.children.entries()){const i=e.level===0?n%(U9t-1):r;this.assignSections(a,i)}}flattenNodes(e,r){const n=Ye(),a=["mindmap-node"];e.isRoot===!0?a.push("section-root","section--1"):e.section!==void 0&&a.push(`section-${e.section}`),e.class&&a.push(e.class);const i=a.join(" "),s=E(l=>{const d=(n.theme?.toLowerCase()??"").includes("redux");switch(l){case Wu.CIRCLE:return"mindmapCircle";case Wu.RECT:return"rect";case Wu.ROUNDED_RECT:return"rounded";case Wu.CLOUD:return"cloud";case Wu.BANG:return"bang";case Wu.HEXAGON:return"hexagon";case Wu.DEFAULT:return d?"rounded":"defaultMindmapNode";case Wu.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:i,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=Ye();for(const a of e.children){let i="edge";a.section!==void 0&&(i+=` section-edge-${a.section}`);const s=e.level+1;i+=` edge-depth-${s}`;const o={id:`edge_${e.id}_${a.id}`,start:e.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:i,depth:e.level,section:a.section};r.push(o),this.generateEdges(a,r)}}getData(){const e=this.getMindmap(),r=Ye(),a=x$e().layout!==void 0,i=r;if(a||(i.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:i};oe.debug("getData: mindmapRoot",e,r),this.assignSections(e);const s=[],o=[];this.flattenNodes(e,s),this.generateEdges(e,o),oe.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:i,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:"mindmap",diagramId:"mindmap-"+F9t()}}getLogger(){return oe}},E($_,"MindmapDB"),$_),q9t=E(async(t,e,r,n)=>{oe.debug(`Rendering mindmap diagram -`+t);const a=n.db,i=a.getData(),s=b2(e,i.config.securityLevel);if(i.type=n.type,i.layoutAlgorithm=ST(i.config.layout,{fallback:"cose-bilkent"}),i.diagramId=e,!a.getMindmap())return;i.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 n2(i,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)}gg(s,i.config.mindmap?.padding??ln.mindmap.padding,"mindmapDiagram",i.config.mindmap?.useMaxWidth??ln.mindmap.useMaxWidth)},"draw"),Y9t={draw:q9t},H9t=E(t=>{const{theme:e,look:r}=t;let n="";for(let a=0;a0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},"topState"),pushState:E(function(C){this.begin(C)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(C,T,w,R){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 S})();y.lexer=b;function _(){this.yy={}}return E(_,"Parser"),_.prototype=y,y.Parser=_,new _})();Nz.parser=Nz;var U9t=Nz,G9t=12,Wu={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},$_,q9t=($_=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=Wu,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,a){oe.info("addNode",e,r,n,a);let i=!1;this.nodes.length===0?(this.baseLevel=e,e=0,i=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,i=!1);const s=Ye();let o=s.mindmap?.padding??ln.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2;break}const l={id:this.count++,nodeId:dn(r,s),level:e,descr:dn(n,s),type:a,children:[],width:s.mindmap?.maxNodeWidth??ln.mindmap.maxNodeWidth,padding:o,isRoot:i},u=this.getParent(e);if(u)u.children.push(l),this.nodes.push(l);else if(i)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(oe.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=Ye(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=dn(e.icon,r)),e.class&&(n.class=dn(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,a]of e.children.entries()){const i=e.level===0?n%(G9t-1):r;this.assignSections(a,i)}}flattenNodes(e,r){const n=Ye(),a=["mindmap-node"];e.isRoot===!0?a.push("section-root","section--1"):e.section!==void 0&&a.push(`section-${e.section}`),e.class&&a.push(e.class);const i=a.join(" "),s=E(l=>{const d=(n.theme?.toLowerCase()??"").includes("redux");switch(l){case Wu.CIRCLE:return"mindmapCircle";case Wu.RECT:return"rect";case Wu.ROUNDED_RECT:return"rounded";case Wu.CLOUD:return"cloud";case Wu.BANG:return"bang";case Wu.HEXAGON:return"hexagon";case Wu.DEFAULT:return d?"rounded":"defaultMindmapNode";case Wu.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:i,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=Ye();for(const a of e.children){let i="edge";a.section!==void 0&&(i+=` section-edge-${a.section}`);const s=e.level+1;i+=` edge-depth-${s}`;const o={id:`edge_${e.id}_${a.id}`,start:e.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:i,depth:e.level,section:a.section};r.push(o),this.generateEdges(a,r)}}getData(){const e=this.getMindmap(),r=Ye(),a=C$e().layout!==void 0,i=r;if(a||(i.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:i};oe.debug("getData: mindmapRoot",e,r),this.assignSections(e);const s=[],o=[];this.flattenNodes(e,s),this.generateEdges(e,o),oe.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:i,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:"mindmap",diagramId:"mindmap-"+$9t()}}getLogger(){return oe}},E($_,"MindmapDB"),$_),Y9t=E(async(t,e,r,n)=>{oe.debug(`Rendering mindmap diagram +`+t);const a=n.db,i=a.getData(),s=b2(e,i.config.securityLevel);if(i.type=n.type,i.layoutAlgorithm=ST(i.config.layout,{fallback:"cose-bilkent"}),i.diagramId=e,!a.getMindmap())return;i.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 n2(i,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)}gg(s,i.config.mindmap?.padding??ln.mindmap.padding,"mindmapDiagram",i.config.mindmap?.useMaxWidth??ln.mindmap.useMaxWidth)},"draw"),H9t={draw:Y9t},V9t=E(t=>{const{theme:e,look:r}=t;let n="";for(let a=0;a{let n="";for(let a=0;a{let n="";for(let a=0;a{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"),K9t=E(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; } - ${H9t(t)} + ${V9t(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -6856,18 +6861,18 @@ Expecting `+ge.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":pe="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?V9t(t.THEME_COLOR_LIMIT,r,t.mainBkg):""} -`},"getStyles"),K9t=W9t,X9t={get db(){return new G9t},renderer:Y9t,parser:z9t,styles:K9t};const j9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:X9t},Symbol.toStringTag,{value:"Module"}));var Iz=(function(){var t=E(function(T,w,R,O){for(R=R||{},O=T.length;O--;R[T[O]]=w);return R},"o"),e=[1,4],r=[1,13],n=[1,12],a=[1,15],i=[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],v=[1,35],y=[1,36],b=[1,6,7,11,13,16,17,20,23],_=[1,38],S={trace:E(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:E(function(w,R,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:a,17:i,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:a,17:i,18:17,19:18,20:s,23:o},{6:r,9:22,12:11,13:n,14:14,16:a,17:i,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:a,17:i,18:17,19:18,20:s,23:o},t(m,[2,14],{7:v,11:y}),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:v,11:y}),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:E(function(w,R){if(R.recoverable)this.trace(w);else{var O=new Error(w);throw O.hash=R,O}},"parseError"),parse:E(function(w){var R=this,O=[0],M=[],$=[null],F=[],A=this.table,I="",D=0,L=0,N=2,P=1,z=F.slice.call(arguments,1),B=Object.create(this.lexer),U={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(U.yy[G]=this.yy[G]);B.setInput(w,U.yy),U.yy.lexer=B,U.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var K=B.yylloc;F.push(K);var Y=B.options&&B.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(Re){O.length=O.length-2*Re,$.length=$.length-Re,F.length=F.length-Re}E(ee,"popStack");function X(){var Re;return Re=M.pop()||B.lex()||P,typeof Re!="number"&&(Re instanceof Array&&(M=Re,Re=M.pop()),Re=R.symbols_[Re]||Re),Re}E(X,"lex");for(var le,te,ne,ae,re={},ge,pe,Be,Le;;){if(te=O[O.length-1],this.defaultActions[te]?ne=this.defaultActions[te]:((le===null||typeof le>"u")&&(le=X()),ne=A[te]&&A[te][le]),typeof ne>"u"||!ne.length||!ne[0]){var He="";Le=[];for(ge in A[te])this.terminals_[ge]&&ge>N&&Le.push("'"+this.terminals_[ge]+"'");B.showPosition?He="Parse error on line "+(D+1)+`: + ${t.useGradient&&r&&t.mainBkg?W9t(t.THEME_COLOR_LIMIT,r,t.mainBkg):""} +`},"getStyles"),X9t=K9t,j9t={get db(){return new q9t},renderer:H9t,parser:U9t,styles:X9t};const Q9t=Object.freeze(Object.defineProperty({__proto__:null,diagram:j9t},Symbol.toStringTag,{value:"Module"}));var Iz=(function(){var t=E(function(T,w,R,O){for(R=R||{},O=T.length;O--;R[T[O]]=w);return R},"o"),e=[1,4],r=[1,13],n=[1,12],a=[1,15],i=[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],v=[1,35],y=[1,36],b=[1,6,7,11,13,16,17,20,23],_=[1,38],S={trace:E(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:E(function(w,R,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:a,17:i,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:a,17:i,18:17,19:18,20:s,23:o},{6:r,9:22,12:11,13:n,14:14,16:a,17:i,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:a,17:i,18:17,19:18,20:s,23:o},t(m,[2,14],{7:v,11:y}),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:v,11:y}),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:E(function(w,R){if(R.recoverable)this.trace(w);else{var O=new Error(w);throw O.hash=R,O}},"parseError"),parse:E(function(w){var R=this,O=[0],M=[],$=[null],F=[],A=this.table,I="",D=0,L=0,N=2,P=1,z=F.slice.call(arguments,1),B=Object.create(this.lexer),U={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(U.yy[G]=this.yy[G]);B.setInput(w,U.yy),U.yy.lexer=B,U.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var K=B.yylloc;F.push(K);var Y=B.options&&B.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(Re){O.length=O.length-2*Re,$.length=$.length-Re,F.length=F.length-Re}E(ee,"popStack");function X(){var Re;return Re=M.pop()||B.lex()||P,typeof Re!="number"&&(Re instanceof Array&&(M=Re,Re=M.pop()),Re=R.symbols_[Re]||Re),Re}E(X,"lex");for(var le,te,ne,ae,re={},ge,pe,Be,Le;;){if(te=O[O.length-1],this.defaultActions[te]?ne=this.defaultActions[te]:((le===null||typeof le>"u")&&(le=X()),ne=A[te]&&A[te][le]),typeof ne>"u"||!ne.length||!ne[0]){var He="";Le=[];for(ge in A[te])this.terminals_[ge]&&ge>N&&Le.push("'"+this.terminals_[ge]+"'");B.showPosition?He="Parse error on line "+(D+1)+`: `+B.showPosition()+` Expecting `+Le.join(", ")+", got '"+(this.terminals_[le]||le)+"'":He="Parse error on line "+(D+1)+": Unexpected "+(le==P?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(He,{text:B.match,token:this.terminals_[le]||le,line:B.yylineno,loc:K,expected:Le})}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+te+", token: "+le);switch(ne[0]){case 1:O.push(le),$.push(B.yytext),F.push(B.yylloc),O.push(ne[1]),le=null,L=B.yyleng,I=B.yytext,D=B.yylineno,K=B.yylloc;break;case 2:if(pe=this.productions_[ne[1]][1],re.$=$[$.length-pe],re._$={first_line:F[F.length-(pe||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(pe||1)].first_column,last_column:F[F.length-1].last_column},Y&&(re._$.range=[F[F.length-(pe||1)].range[0],F[F.length-1].range[1]]),ae=this.performAction.apply(re,[I,L,D,U.yy,ne[1],$,F].concat(z)),typeof ae<"u")return ae;pe&&(O=O.slice(0,-1*pe*2),$=$.slice(0,-1*pe),F=F.slice(0,-1*pe)),O.push(this.productions_[ne[1]][0]),$.push(re.$),F.push(re._$),Be=A[O[O.length-2]][O[O.length-1]],O.push(Be);break;case 3:return!0}}return!0},"parse")},x=(function(){var T={EOF:1,parseError:E(function(R,O){if(this.yy.parser)this.yy.parser.parseError(R,O);else throw new Error(R)},"parseError"),setInput:E(function(w,R){return this.yy=R||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:E(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var R=w.match(/(?:\r\n?|\n).*/g);return R?(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:E(function(w){var R=w.length,O=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-R),this.offset-=R;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-R},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-R]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(w){this.unput(this.match.slice(w))},"less"),pastInput:E(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:E(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:E(function(){var w=this.pastInput(),R=new Array(w.length+1).join("-");return w+this.upcomingInput()+` `+R+"^"},"showPosition"),test_match:E(function(w,R){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,R,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:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,R,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&&(!R||O[0].length>R[0].length)){if(R=O,M=F,this.options.backtrack_lexer){if(w=this.test_match(O,$[F]),w!==!1)return w;if(this._backtrack){R=!1;continue}else return!1}else if(!this.options.flex)break}return R?(w=this.test_match(R,$[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:E(function(){var R=this.next();return R||this.lex()},"lex"),begin:E(function(R){this.conditionStack.push(R)},"begin"),popState:E(function(){var R=this.conditionStack.length-1;return R>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(R){return R=this.conditionStack.length-1-Math.abs(R||0),R>=0?this.conditionStack[R]:"INITIAL"},"topState"),pushState:E(function(R){this.begin(R)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(R,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 R.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:R.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return R.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:R.getLogger().trace("end icon"),this.popState();break;case 16:return R.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return R.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return R.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return R.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:R.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return R.getLogger().trace("description:",O.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),R.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),R.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),R.getLogger().trace("node end ...",O.yytext),"NODE_DEND";case 36:return this.popState(),R.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),R.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),R.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),R.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),R.getLogger().trace("node end (("),"NODE_DEND";case 41:return R.getLogger().trace("Long description:",O.yytext),21;case 42:return R.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})();S.lexer=x;function C(){this.yy={}}return E(C,"Parser"),C.prototype=S,S.Parser=C,new C})();Iz.parser=Iz;var Q9t=Iz,gl=[],JW=[],Oz=0,eK={},Z9t=E(()=>{gl=[],JW=[],Oz=0,eK={}},"clear"),J9t=E(t=>{if(gl.length===0)return null;const e=gl[0].level;let r=null;for(let n=gl.length-1;n>=0;n--)if(gl[n].level===e&&!r&&(r=gl[n]),gl[n].levelo.parentId===a.id);for(const o of s){const l={id:o.id,parentId:a.id,label:dn(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:Ye()}},"getData"),tDt=E((t,e,r,n,a)=>{const i=Ye();let s=i.mindmap?.padding??ln.mindmap.padding;switch(n){case Ei.ROUNDED_RECT:case Ei.RECT:case Ei.HEXAGON:s*=2}const o={id:dn(e,i)||"kbn"+Oz++,level:t,label:dn(r,i),width:i.mindmap?.maxNodeWidth??ln.mindmap.maxNodeWidth,padding:s,isGroup:!1};if(a!==void 0){let u;a.includes(` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var R=this.next();return R||this.lex()},"lex"),begin:E(function(R){this.conditionStack.push(R)},"begin"),popState:E(function(){var R=this.conditionStack.length-1;return R>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(R){return R=this.conditionStack.length-1-Math.abs(R||0),R>=0?this.conditionStack[R]:"INITIAL"},"topState"),pushState:E(function(R){this.begin(R)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(R,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 R.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:R.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return R.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:R.getLogger().trace("end icon"),this.popState();break;case 16:return R.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return R.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return R.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return R.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:R.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return R.getLogger().trace("description:",O.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),R.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),R.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),R.getLogger().trace("node end ...",O.yytext),"NODE_DEND";case 36:return this.popState(),R.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),R.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),R.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),R.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),R.getLogger().trace("node end (("),"NODE_DEND";case 41:return R.getLogger().trace("Long description:",O.yytext),21;case 42:return R.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})();S.lexer=x;function C(){this.yy={}}return E(C,"Parser"),C.prototype=S,S.Parser=C,new C})();Iz.parser=Iz;var Z9t=Iz,gl=[],JW=[],Oz=0,eK={},J9t=E(()=>{gl=[],JW=[],Oz=0,eK={}},"clear"),eDt=E(t=>{if(gl.length===0)return null;const e=gl[0].level;let r=null;for(let n=gl.length-1;n>=0;n--)if(gl[n].level===e&&!r&&(r=gl[n]),gl[n].levelo.parentId===a.id);for(const o of s){const l={id:o.id,parentId:a.id,label:dn(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:Ye()}},"getData"),rDt=E((t,e,r,n,a)=>{const i=Ye();let s=i.mindmap?.padding??ln.mindmap.padding;switch(n){case Ei.ROUNDED_RECT:case Ei.RECT:case Ei.HEXAGON:s*=2}const o={id:dn(e,i)||"kbn"+Oz++,level:t,label:dn(r,i),width:i.mindmap?.maxNodeWidth??ln.mindmap.maxNodeWidth,padding:s,isGroup:!1};if(a!==void 0){let u;a.includes(` `)?u=a+` `:u=`{ `+a+` -}`;const d=Hk(u,{schema:Yk});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=J9t(t);l?o.parentId=l.id||"kbn"+Oz++:JW.push(o),gl.push(o)},"addNode"),Ei={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},rDt=E((t,e)=>{switch(oe.debug("In get type",t,e),t){case"[":return Ei.RECT;case"(":return e===")"?Ei.ROUNDED_RECT:Ei.CLOUD;case"((":return Ei.CIRCLE;case")":return Ei.CLOUD;case"))":return Ei.BANG;case"{{":return Ei.HEXAGON;default:return Ei.DEFAULT}},"getType"),nDt=E((t,e)=>{eK[t]=e},"setElementForId"),aDt=E(t=>{if(!t)return;const e=Ye(),r=gl[gl.length-1];t.icon&&(r.icon=dn(t.icon,e)),t.class&&(r.cssClasses=dn(t.class,e))},"decorateNode"),iDt=E(t=>{switch(t){case Ei.DEFAULT:return"no-border";case Ei.RECT:return"rect";case Ei.ROUNDED_RECT:return"rounded-rect";case Ei.CIRCLE:return"circle";case Ei.CLOUD:return"cloud";case Ei.BANG:return"bang";case Ei.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),sDt=E(()=>oe,"getLogger"),oDt=E(t=>eK[t],"getElementById"),lDt={clear:Z9t,addNode:tDt,getSections:w8e,getData:eDt,nodeType:Ei,getType:rDt,setElementForId:nDt,decorateNode:aDt,type2Str:iDt,getLogger:sDt,getElementById:oDt},cDt=lDt,uDt=E(async(t,e,r,n)=>{oe.debug(`Rendering kanban diagram -`+t);const i=n.db.getData(),s=Ye();s.htmlLabels=!1;const o=wo(e);for(const v of i.nodes)v.domId=`${e}-${v.id}`;const l=o.append("g");l.attr("class","sections");const u=o.append("g");u.attr("class","items");const d=i.nodes.filter(v=>v.isGroup);let h=0;const f=10,p=[];let g=25;for(const v of d){const y=s?.kanban?.sectionWidth||200;h=h+1,v.x=y*h+(h-1)*f/2,v.width=y,v.y=0,v.height=y*3,v.rx=5,v.ry=5,v.cssClasses=v.cssClasses+" section-"+h;const b=await VG(l,v);g=Math.max(g,b?.labelBBox?.height),p.push(b)}let m=0;for(const v of d){const y=p[m];m=m+1;const b=s?.kanban?.sectionWidth||200,_=-b*3/2+g;let S=_;const x=i.nodes.filter(w=>w.parentId===v.id);for(const w of x){if(w.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");w.x=v.x,w.width=b-1.5*f;const O=(await n7(u,w,{config:s})).node().getBBox();w.y=S+O.height/2,await eB(w),S=w.y+O.height/2+f/2}const C=y.cluster.select("rect"),T=Math.max(S-_+3*f,50)+(g-25);C.attr("height",T)}Jb(void 0,o,s.mindmap?.padding??ln.kanban.padding,s.mindmap?.useMaxWidth??ln.kanban.useMaxWidth)},"draw"),dDt={draw:uDt},hDt=E(t=>{let e="";for(let n=0;nt.darkMode?yt(n,a):vt(n,a),"adjuster");for(let n=0;n{switch(oe.debug("In get type",t,e),t){case"[":return Ei.RECT;case"(":return e===")"?Ei.ROUNDED_RECT:Ei.CLOUD;case"((":return Ei.CIRCLE;case")":return Ei.CLOUD;case"))":return Ei.BANG;case"{{":return Ei.HEXAGON;default:return Ei.DEFAULT}},"getType"),aDt=E((t,e)=>{eK[t]=e},"setElementForId"),iDt=E(t=>{if(!t)return;const e=Ye(),r=gl[gl.length-1];t.icon&&(r.icon=dn(t.icon,e)),t.class&&(r.cssClasses=dn(t.class,e))},"decorateNode"),sDt=E(t=>{switch(t){case Ei.DEFAULT:return"no-border";case Ei.RECT:return"rect";case Ei.ROUNDED_RECT:return"rounded-rect";case Ei.CIRCLE:return"circle";case Ei.CLOUD:return"cloud";case Ei.BANG:return"bang";case Ei.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),oDt=E(()=>oe,"getLogger"),lDt=E(t=>eK[t],"getElementById"),cDt={clear:J9t,addNode:rDt,getSections:w8e,getData:tDt,nodeType:Ei,getType:nDt,setElementForId:aDt,decorateNode:iDt,type2Str:sDt,getLogger:oDt,getElementById:lDt},uDt=cDt,dDt=E(async(t,e,r,n)=>{oe.debug(`Rendering kanban diagram +`+t);const i=n.db.getData(),s=Ye();s.htmlLabels=!1;const o=wo(e);for(const v of i.nodes)v.domId=`${e}-${v.id}`;const l=o.append("g");l.attr("class","sections");const u=o.append("g");u.attr("class","items");const d=i.nodes.filter(v=>v.isGroup);let h=0;const f=10,p=[];let g=25;for(const v of d){const y=s?.kanban?.sectionWidth||200;h=h+1,v.x=y*h+(h-1)*f/2,v.width=y,v.y=0,v.height=y*3,v.rx=5,v.ry=5,v.cssClasses=v.cssClasses+" section-"+h;const b=await VG(l,v);g=Math.max(g,b?.labelBBox?.height),p.push(b)}let m=0;for(const v of d){const y=p[m];m=m+1;const b=s?.kanban?.sectionWidth||200,_=-b*3/2+g;let S=_;const x=i.nodes.filter(w=>w.parentId===v.id);for(const w of x){if(w.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");w.x=v.x,w.width=b-1.5*f;const O=(await n7(u,w,{config:s})).node().getBBox();w.y=S+O.height/2,await eB(w),S=w.y+O.height/2+f/2}const C=y.cluster.select("rect"),T=Math.max(S-_+3*f,50)+(g-25);C.attr("height",T)}Jb(void 0,o,s.mindmap?.padding??ln.kanban.padding,s.mindmap?.useMaxWidth??ln.kanban.useMaxWidth)},"draw"),hDt={draw:dDt},fDt=E(t=>{let e="";for(let n=0;nt.darkMode?yt(n,a):vt(n,a),"adjuster");for(let n=0;n` + `}return e},"genSections"),pDt=E(t=>` .edge { stroke-width: 3; } - ${hDt(t)} + ${fDt(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -6945,14 +6950,14 @@ Expecting `+Le.join(", ")+", got '"+(this.terminals_[le]||le)+"'":He="Parse erro text-align: center; } ${YT()} -`,"getStyles"),pDt=fDt,gDt={db:cDt,renderer:dDt,parser:Q9t,styles:pDt};const mDt=Object.freeze(Object.defineProperty({__proto__:null,diagram:gDt},Symbol.toStringTag,{value:"Module"}));function Fle(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 a of t)(a=e(a,++n,t))!=null&&(r=a)&&(r=a)}return r}function k8e(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 a of t)(a=e(a,++n,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function _M(t,e){let r=0;if(e===void 0)for(let n of t)(n=+n)&&(r+=n);else{let n=-1;for(let a of t)(a=+e(a,++n,t))&&(r+=a)}return r}function vDt(t){return t.target.depth}function yDt(t){return t.depth}function _Dt(t,e){return e-1-t.height}function A8e(t,e){return t.sourceLinks.length?t.depth:e-1}function bDt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?k8e(t.sourceLinks,vDt)-1:0}function V3(t){return function(){return t}}function $le(t,e){return Zw(t.source,e.source)||t.index-e.index}function zle(t,e){return Zw(t.target,e.target)||t.index-e.index}function Zw(t,e){return t.y0-e.y0}function bM(t){return t.value}function EDt(t){return t.index}function SDt(t){return t.nodes}function TDt(t){return t.links}function Ule(t,e){const r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function Gle({nodes:t}){for(const e of t){let r=e.y0,n=r;for(const a of e.sourceLinks)a.y0=r+a.width/2,r+=a.width;for(const a of e.targetLinks)a.y1=n+a.width/2,n+=a.width}}function xDt(){let t=0,e=0,r=1,n=1,a=24,i=8,s,o=EDt,l=A8e,u,d,h=SDt,f=TDt,p=6;function g(){const I={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return m(I),v(I),y(I),b(I),x(I),Gle(I),I}g.update=function(I){return Gle(I),I},g.nodeId=function(I){return arguments.length?(o=typeof I=="function"?I:V3(I),g):o},g.nodeAlign=function(I){return arguments.length?(l=typeof I=="function"?I:V3(I),g):l},g.nodeSort=function(I){return arguments.length?(u=I,g):u},g.nodeWidth=function(I){return arguments.length?(a=+I,g):a},g.nodePadding=function(I){return arguments.length?(i=s=+I,g):i},g.nodes=function(I){return arguments.length?(h=typeof I=="function"?I:V3(I),g):h},g.links=function(I){return arguments.length?(f=typeof I=="function"?I:V3(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[N,P]of I.entries())P.index=N,P.sourceLinks=[],P.targetLinks=[];const L=new Map(I.map((N,P)=>[o(N,P,I),N]));for(const[N,P]of D.entries()){P.index=N;let{source:z,target:B}=P;typeof z!="object"&&(z=P.source=Ule(L,z)),typeof B!="object"&&(B=P.target=Ule(L,B)),z.sourceLinks.push(P),B.targetLinks.push(P)}if(d!=null)for(const{sourceLinks:N,targetLinks:P}of I)N.sort(d),P.sort(d)}function v({nodes:I}){for(const D of I)D.value=D.fixedValue===void 0?Math.max(_M(D.sourceLinks,bM),_M(D.targetLinks,bM)):D.fixedValue}function y({nodes:I}){const D=I.length;let L=new Set(I),N=new Set,P=0;for(;L.size;){for(const z of L){z.depth=P;for(const{target:B}of z.sourceLinks)N.add(B)}if(++P>D)throw new Error("circular link");L=N,N=new Set}}function b({nodes:I}){const D=I.length;let L=new Set(I),N=new Set,P=0;for(;L.size;){for(const z of L){z.height=P;for(const{source:B}of z.targetLinks)N.add(B)}if(++P>D)throw new Error("circular link");L=N,N=new Set}}function _({nodes:I}){const D=Fle(I,P=>P.depth)+1,L=(r-t-a)/(D-1),N=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+a,N[z]?N[z].push(P):N[z]=[P]}if(u)for(const P of N)P.sort(u);return N}function S(I){const D=k8e(I,L=>(n-e-(L.length-1)*s)/_M(L,bM));for(const L of I){let N=e;for(const P of L){P.y0=N,P.y1=N+P.value*D,N=P.y1+s;for(const z of P.sourceLinks)z.width=z.value*D}N=(n-N+s)/(L.length+1);for(let P=0;PL.length)-1)),S(D);for(let L=0;L0))continue;let K=(U/G-B.y0)*D;B.y0+=K,B.y1+=K,M(B)}u===void 0&&z.sort(Zw),w(z,L)}}function T(I,D,L){for(let N=I.length,P=N-2;P>=0;--P){const z=I[P];for(const B of z){let U=0,G=0;for(const{target:Y,value:ee}of B.sourceLinks){let X=ee*(Y.layer-B.layer);U+=A(B,Y)*X,G+=X}if(!(G>0))continue;let K=(U/G-B.y0)*D;B.y0+=K,B.y1+=K,M(B)}u===void 0&&z.sort(Zw),w(z,L)}}function w(I,D){const L=I.length>>1,N=I[L];O(I,N.y0-s,L-1,D),R(I,N.y1+s,L+1,D),O(I,n,I.length-1,D),R(I,e,0,D)}function R(I,D,L,N){for(;L1e-6&&(P.y0+=z,P.y1+=z),D=P.y1+s}}function O(I,D,L,N){for(;L>=0;--L){const P=I[L],z=(P.y1-D)*N;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(zle);for(const{target:{targetLinks:L}}of I)L.sort($le)}}function $(I){if(d===void 0)for(const{sourceLinks:D,targetLinks:L}of I)D.sort(zle),L.sort($le)}function F(I,D){let L=I.y0-(I.sourceLinks.length-1)*s/2;for(const{target:N,width:P}of I.sourceLinks){if(N===D)break;L+=P+s}for(const{source:N,width:P}of D.targetLinks){if(N===I)break;L-=P}return L}function A(I,D){let L=D.y0-(D.targetLinks.length-1)*s/2;for(const{source:N,width:P}of D.targetLinks){if(N===I)break;L+=P+s}for(const{target:N,width:P}of I.sourceLinks){if(N===D)break;L-=P}return L}return g}var Dz=Math.PI,Lz=2*Dz,zf=1e-6,CDt=Lz-zf;function Mz(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function R8e(){return new Mz}Mz.prototype=R8e.prototype={constructor:Mz,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,a,i){this._+="C"+ +t+","+ +e+","+ +r+","+ +n+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(t,e,r,n,a){t=+t,e=+e,r=+r,n=+n,a=+a;var i=this._x1,s=this._y1,o=r-t,l=n-e,u=i-t,d=s-e,h=u*u+d*d;if(a<0)throw new Error("negative radius: "+a);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>zf)if(!(Math.abs(d*o-l*u)>zf)||!a)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var f=r-i,p=n-s,g=o*o+l*l,m=f*f+p*p,v=Math.sqrt(g),y=Math.sqrt(h),b=a*Math.tan((Dz-Math.acos((g+h-m)/(2*v*y)))/2),_=b/y,S=b/v;Math.abs(_-1)>zf&&(this._+="L"+(t+_*u)+","+(e+_*d)),this._+="A"+a+","+a+",0,0,"+ +(d*f>u*p)+","+(this._x1=t+S*o)+","+(this._y1=e+S*l)}},arc:function(t,e,r,n,a,i){t=+t,e=+e,r=+r,i=!!i;var s=r*Math.cos(n),o=r*Math.sin(n),l=t+s,u=e+o,d=1^i,h=i?n-a:a-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>zf||Math.abs(this._y1-u)>zf)&&(this._+="L"+l+","+u),r&&(h<0&&(h=h%Lz+Lz),h>CDt?this._+="A"+r+","+r+",0,1,"+d+","+(t-s)+","+(e-o)+"A"+r+","+r+",0,1,"+d+","+(this._x1=l)+","+(this._y1=u):h>zf&&(this._+="A"+r+","+r+",0,"+ +(h>=Dz)+","+d+","+(this._x1=t+r*Math.cos(a))+","+(this._y1=e+r*Math.sin(a))))},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 qle(t){return function(){return t}}function wDt(t){return t[0]}function kDt(t){return t[1]}var ADt=Array.prototype.slice;function RDt(t){return t.source}function NDt(t){return t.target}function IDt(t){var e=RDt,r=NDt,n=wDt,a=kDt,i=null;function s(){var o,l=ADt.call(arguments),u=e.apply(this,l),d=r.apply(this,l);if(i||(i=o=R8e()),t(i,+n.apply(this,(l[0]=u,l)),+a.apply(this,l),+n.apply(this,(l[0]=d,l)),+a.apply(this,l)),o)return i=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:qle(+o),s):n},s.y=function(o){return arguments.length?(a=typeof o=="function"?o:qle(+o),s):a},s.context=function(o){return arguments.length?(i=o??null,s):i},s}function ODt(t,e,r,n,a){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,a,n,a)}function DDt(){return IDt(ODt)}function LDt(t){return[t.source.x1,t.y0]}function MDt(t){return[t.target.x0,t.y1]}function PDt(){return DDt().source(LDt).target(MDt)}var Pz=(function(){var t=E(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],a={trace:E(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:E(function(l,u,d,h,f,p,g){var m=p.length-1;switch(f){case 7:const v=h.findOrCreateNode(p[m-4].trim().replaceAll('""','"')),y=h.findOrCreateNode(p[m-2].trim().replaceAll('""','"')),b=parseFloat(p[m].trim());h.addLink(v,y,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:E(function(l,u){if(u.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=u,d}},"parseError"),parse:E(function(l){var u=this,d=[0],h=[],f=[null],p=[],g=this.table,m="",v=0,y=0,b=2,_=1,S=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 R=x.options&&x.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(U){d.length=d.length-2*U,f.length=f.length-U,p.length=p.length-U}E(O,"popStack");function M(){var U;return U=h.pop()||x.lex()||_,typeof U!="number"&&(U instanceof Array&&(h=U,U=h.pop()),U=u.symbols_[U]||U),U}E(M,"lex");for(var $,F,A,I,D={},L,N,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 "+(v+1)+`: +`,"getStyles"),gDt=pDt,mDt={db:uDt,renderer:hDt,parser:Z9t,styles:gDt};const vDt=Object.freeze(Object.defineProperty({__proto__:null,diagram:mDt},Symbol.toStringTag,{value:"Module"}));function Fle(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 a of t)(a=e(a,++n,t))!=null&&(r=a)&&(r=a)}return r}function k8e(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 a of t)(a=e(a,++n,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function _M(t,e){let r=0;if(e===void 0)for(let n of t)(n=+n)&&(r+=n);else{let n=-1;for(let a of t)(a=+e(a,++n,t))&&(r+=a)}return r}function yDt(t){return t.target.depth}function _Dt(t){return t.depth}function bDt(t,e){return e-1-t.height}function A8e(t,e){return t.sourceLinks.length?t.depth:e-1}function EDt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?k8e(t.sourceLinks,yDt)-1:0}function V3(t){return function(){return t}}function $le(t,e){return Zw(t.source,e.source)||t.index-e.index}function zle(t,e){return Zw(t.target,e.target)||t.index-e.index}function Zw(t,e){return t.y0-e.y0}function bM(t){return t.value}function SDt(t){return t.index}function TDt(t){return t.nodes}function xDt(t){return t.links}function Ule(t,e){const r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function Gle({nodes:t}){for(const e of t){let r=e.y0,n=r;for(const a of e.sourceLinks)a.y0=r+a.width/2,r+=a.width;for(const a of e.targetLinks)a.y1=n+a.width/2,n+=a.width}}function CDt(){let t=0,e=0,r=1,n=1,a=24,i=8,s,o=SDt,l=A8e,u,d,h=TDt,f=xDt,p=6;function g(){const I={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return m(I),v(I),y(I),b(I),x(I),Gle(I),I}g.update=function(I){return Gle(I),I},g.nodeId=function(I){return arguments.length?(o=typeof I=="function"?I:V3(I),g):o},g.nodeAlign=function(I){return arguments.length?(l=typeof I=="function"?I:V3(I),g):l},g.nodeSort=function(I){return arguments.length?(u=I,g):u},g.nodeWidth=function(I){return arguments.length?(a=+I,g):a},g.nodePadding=function(I){return arguments.length?(i=s=+I,g):i},g.nodes=function(I){return arguments.length?(h=typeof I=="function"?I:V3(I),g):h},g.links=function(I){return arguments.length?(f=typeof I=="function"?I:V3(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[N,P]of I.entries())P.index=N,P.sourceLinks=[],P.targetLinks=[];const L=new Map(I.map((N,P)=>[o(N,P,I),N]));for(const[N,P]of D.entries()){P.index=N;let{source:z,target:B}=P;typeof z!="object"&&(z=P.source=Ule(L,z)),typeof B!="object"&&(B=P.target=Ule(L,B)),z.sourceLinks.push(P),B.targetLinks.push(P)}if(d!=null)for(const{sourceLinks:N,targetLinks:P}of I)N.sort(d),P.sort(d)}function v({nodes:I}){for(const D of I)D.value=D.fixedValue===void 0?Math.max(_M(D.sourceLinks,bM),_M(D.targetLinks,bM)):D.fixedValue}function y({nodes:I}){const D=I.length;let L=new Set(I),N=new Set,P=0;for(;L.size;){for(const z of L){z.depth=P;for(const{target:B}of z.sourceLinks)N.add(B)}if(++P>D)throw new Error("circular link");L=N,N=new Set}}function b({nodes:I}){const D=I.length;let L=new Set(I),N=new Set,P=0;for(;L.size;){for(const z of L){z.height=P;for(const{source:B}of z.targetLinks)N.add(B)}if(++P>D)throw new Error("circular link");L=N,N=new Set}}function _({nodes:I}){const D=Fle(I,P=>P.depth)+1,L=(r-t-a)/(D-1),N=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+a,N[z]?N[z].push(P):N[z]=[P]}if(u)for(const P of N)P.sort(u);return N}function S(I){const D=k8e(I,L=>(n-e-(L.length-1)*s)/_M(L,bM));for(const L of I){let N=e;for(const P of L){P.y0=N,P.y1=N+P.value*D,N=P.y1+s;for(const z of P.sourceLinks)z.width=z.value*D}N=(n-N+s)/(L.length+1);for(let P=0;PL.length)-1)),S(D);for(let L=0;L0))continue;let K=(U/G-B.y0)*D;B.y0+=K,B.y1+=K,M(B)}u===void 0&&z.sort(Zw),w(z,L)}}function T(I,D,L){for(let N=I.length,P=N-2;P>=0;--P){const z=I[P];for(const B of z){let U=0,G=0;for(const{target:Y,value:ee}of B.sourceLinks){let X=ee*(Y.layer-B.layer);U+=A(B,Y)*X,G+=X}if(!(G>0))continue;let K=(U/G-B.y0)*D;B.y0+=K,B.y1+=K,M(B)}u===void 0&&z.sort(Zw),w(z,L)}}function w(I,D){const L=I.length>>1,N=I[L];O(I,N.y0-s,L-1,D),R(I,N.y1+s,L+1,D),O(I,n,I.length-1,D),R(I,e,0,D)}function R(I,D,L,N){for(;L1e-6&&(P.y0+=z,P.y1+=z),D=P.y1+s}}function O(I,D,L,N){for(;L>=0;--L){const P=I[L],z=(P.y1-D)*N;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(zle);for(const{target:{targetLinks:L}}of I)L.sort($le)}}function $(I){if(d===void 0)for(const{sourceLinks:D,targetLinks:L}of I)D.sort(zle),L.sort($le)}function F(I,D){let L=I.y0-(I.sourceLinks.length-1)*s/2;for(const{target:N,width:P}of I.sourceLinks){if(N===D)break;L+=P+s}for(const{source:N,width:P}of D.targetLinks){if(N===I)break;L-=P}return L}function A(I,D){let L=D.y0-(D.targetLinks.length-1)*s/2;for(const{source:N,width:P}of D.targetLinks){if(N===I)break;L+=P+s}for(const{target:N,width:P}of I.sourceLinks){if(N===D)break;L-=P}return L}return g}var Dz=Math.PI,Lz=2*Dz,zf=1e-6,wDt=Lz-zf;function Mz(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function R8e(){return new Mz}Mz.prototype=R8e.prototype={constructor:Mz,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,a,i){this._+="C"+ +t+","+ +e+","+ +r+","+ +n+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(t,e,r,n,a){t=+t,e=+e,r=+r,n=+n,a=+a;var i=this._x1,s=this._y1,o=r-t,l=n-e,u=i-t,d=s-e,h=u*u+d*d;if(a<0)throw new Error("negative radius: "+a);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>zf)if(!(Math.abs(d*o-l*u)>zf)||!a)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var f=r-i,p=n-s,g=o*o+l*l,m=f*f+p*p,v=Math.sqrt(g),y=Math.sqrt(h),b=a*Math.tan((Dz-Math.acos((g+h-m)/(2*v*y)))/2),_=b/y,S=b/v;Math.abs(_-1)>zf&&(this._+="L"+(t+_*u)+","+(e+_*d)),this._+="A"+a+","+a+",0,0,"+ +(d*f>u*p)+","+(this._x1=t+S*o)+","+(this._y1=e+S*l)}},arc:function(t,e,r,n,a,i){t=+t,e=+e,r=+r,i=!!i;var s=r*Math.cos(n),o=r*Math.sin(n),l=t+s,u=e+o,d=1^i,h=i?n-a:a-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>zf||Math.abs(this._y1-u)>zf)&&(this._+="L"+l+","+u),r&&(h<0&&(h=h%Lz+Lz),h>wDt?this._+="A"+r+","+r+",0,1,"+d+","+(t-s)+","+(e-o)+"A"+r+","+r+",0,1,"+d+","+(this._x1=l)+","+(this._y1=u):h>zf&&(this._+="A"+r+","+r+",0,"+ +(h>=Dz)+","+d+","+(this._x1=t+r*Math.cos(a))+","+(this._y1=e+r*Math.sin(a))))},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 qle(t){return function(){return t}}function kDt(t){return t[0]}function ADt(t){return t[1]}var RDt=Array.prototype.slice;function NDt(t){return t.source}function IDt(t){return t.target}function ODt(t){var e=NDt,r=IDt,n=kDt,a=ADt,i=null;function s(){var o,l=RDt.call(arguments),u=e.apply(this,l),d=r.apply(this,l);if(i||(i=o=R8e()),t(i,+n.apply(this,(l[0]=u,l)),+a.apply(this,l),+n.apply(this,(l[0]=d,l)),+a.apply(this,l)),o)return i=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:qle(+o),s):n},s.y=function(o){return arguments.length?(a=typeof o=="function"?o:qle(+o),s):a},s.context=function(o){return arguments.length?(i=o??null,s):i},s}function DDt(t,e,r,n,a){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,a,n,a)}function LDt(){return ODt(DDt)}function MDt(t){return[t.source.x1,t.y0]}function PDt(t){return[t.target.x0,t.y1]}function BDt(){return LDt().source(MDt).target(PDt)}var Pz=(function(){var t=E(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],a={trace:E(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:E(function(l,u,d,h,f,p,g){var m=p.length-1;switch(f){case 7:const v=h.findOrCreateNode(p[m-4].trim().replaceAll('""','"')),y=h.findOrCreateNode(p[m-2].trim().replaceAll('""','"')),b=parseFloat(p[m].trim());h.addLink(v,y,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:E(function(l,u){if(u.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=u,d}},"parseError"),parse:E(function(l){var u=this,d=[0],h=[],f=[null],p=[],g=this.table,m="",v=0,y=0,b=2,_=1,S=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 R=x.options&&x.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(U){d.length=d.length-2*U,f.length=f.length-U,p.length=p.length-U}E(O,"popStack");function M(){var U;return U=h.pop()||x.lex()||_,typeof U!="number"&&(U instanceof Array&&(h=U,U=h.pop()),U=u.symbols_[U]||U),U}E(M,"lex");for(var $,F,A,I,D={},L,N,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 "+(v+1)+`: `+x.showPosition()+` Expecting `+z.join(", ")+", got '"+(this.terminals_[$]||$)+"'":B="Parse error on line "+(v+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,y=x.yyleng,m=x.yytext,v=x.yylineno,w=x.yylloc;break;case 2:if(N=this.productions_[A[1]][1],D.$=f[f.length-N],D._$={first_line:p[p.length-(N||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(N||1)].first_column,last_column:p[p.length-1].last_column},R&&(D._$.range=[p[p.length-(N||1)].range[0],p[p.length-1].range[1]]),I=this.performAction.apply(D,[m,y,v,C.yy,A[1],f,p].concat(S)),typeof I<"u")return I;N&&(d=d.slice(0,-1*N*2),f=f.slice(0,-1*N),p=p.slice(0,-1*N)),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")},i=(function(){var o={EOF:1,parseError:E(function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},"parseError"),setInput:E(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:E(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:E(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:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(l){this.unput(this.match.slice(l))},"less"),pastInput:E(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:E(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:E(function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+` `+u+"^"},"showPosition"),test_match:E(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:E(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:E(function(){var u=this.next();return u||this.lex()},"lex"),begin:E(function(u){this.conditionStack.push(u)},"begin"),popState:E(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:E(function(u){this.begin(u)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(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})();a.lexer=i;function s(){this.yy={}}return E(s,"Parser"),s.prototype=a,a.Parser=s,new s})();Pz.parser=Pz;var Jw=Pz,k8=[],A8=[],ek=new Map,BDt=E(()=>{k8=[],A8=[],ek=new Map,oa()},"clear"),z_,FDt=(z_=class{constructor(e,r,n=0){this.source=e,this.target=r,this.value=n}},E(z_,"SankeyLink"),z_),$Dt=E((t,e,r)=>{k8.push(new FDt(t,e,r))},"addLink"),U_,zDt=(U_=class{constructor(e){this.ID=e}},E(U_,"SankeyNode"),U_),UDt=E(t=>{t=qt.sanitizeText(t,Ye());let e=ek.get(t);return e===void 0&&(e=new zDt(t),ek.set(t,e),A8.push(e)),e},"findOrCreateNode"),GDt=E(()=>A8,"getNodes"),qDt=E(()=>k8,"getLinks"),YDt=E(()=>({nodes:A8.map(t=>({id:t.ID})),links:k8.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),HDt={nodesMap:ek,getConfig:E(()=>Ye().sankey,"getConfig"),getNodes:GDt,getLinks:qDt,getGraph:YDt,addLink:$Dt,findOrCreateNode:UDt,getAccTitle:va,setAccTitle:sa,getAccDescription:_a,setAccDescription:ya,getDiagramTitle:la,setDiagramTitle:pa,clear:BDt},v0,Yle=(v0=class{static next(e){return new v0(e+ ++v0.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},E(v0,"Uid"),v0.count=0,v0),VDt={left:yDt,right:_Dt,center:bDt,justify:A8e},WDt=E(t=>{let e=0,r=0;for(const n of t){const a=n.value??0;a>e&&(e=a,r=n.layer??0)}return r},"findCentralNodeLayer"),KDt=E(function(t,e,r,n){const{securityLevel:a,sankey:i}=Ye(),s=sde.sankey;let o;a==="sandbox"&&(o=At("#i"+e));const l=At(a==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=a==="sandbox"?l.select(`[id="${e}"]`):At(`[id="${e}"]`),d=i?.width??s.width,h=i?.height??s.width,f=i?.useMaxWidth??s.useMaxWidth,p=i?.nodeAlignment??s.nodeAlignment,g=i?.prefix??s.prefix,m=i?.suffix??s.suffix,v=i?.showValues??s.showValues,y=i?.nodeWidth??s.nodeWidth??10,b=i?.nodePadding??s.nodePadding??12,_=i?.labelStyle??s.labelStyle??"legacy",S=i?.nodeColors??{},x=n.db.getGraph(),C=VDt[p];xDt().nodeId(N=>N.id).nodeWidth(y).nodePadding(b+(v?15:0)).nodeAlign(C).extent([[0,0],[d,h]])(x);const w=WDt(x.nodes),R=Ep(ZHe),O=E(N=>S[N]??R(N),"getNodeColor");u.append("g").attr("class","nodes").selectAll(".node").data(x.nodes).join("g").attr("class","node").attr("id",N=>(N.uid=Yle.next("node-")).id).attr("transform",function(N){return"translate("+N.x0+","+N.y0+")"}).attr("x",N=>N.x0).attr("y",N=>N.y0).append("rect").attr("height",N=>N.y1-N.y0).attr("width",N=>N.x1-N.x0).attr("fill",N=>O(N.id));const M=E(({id:N,value:P})=>v?`${N} -${g}${Math.round(P*100)/100}${m}`:N,"getText"),$=E(N=>_==="outlined"?(N.layer??0)F.selectAll(N?`.${N}`:"text").data(x.nodes).join("text").attr("class",N??null).attr("x",P=>$(P).x).attr("y",P=>(P.y1+P.y0)/2).attr("dy",`${v?"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=i?.linkColor??"gradient";if(D==="gradient"){const N=I.append("linearGradient").attr("id",P=>(P.uid=Yle.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",P=>P.source.x1).attr("x2",P=>P.target.x0);N.append("stop").attr("offset","0%").attr("stop-color",P=>O(P.source.id)),N.append("stop").attr("offset","100%").attr("stop-color",P=>O(P.target.id))}let L;switch(D){case"gradient":L=E(N=>N.uid,"coloring");break;case"source":L=E(N=>O(N.source.id),"coloring");break;case"target":L=E(N=>O(N.target.id),"coloring");break;default:L=D}I.append("path").attr("d",PDt()).attr("stroke",L).attr("stroke-width",N=>Math.max(1,N.width)),Jb(void 0,u,0,f)},"draw"),XDt={draw:KDt},jDt=E(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` -`).trim(),"prepareTextForParsing"),QDt=E(t=>`.label { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var u=this.next();return u||this.lex()},"lex"),begin:E(function(u){this.conditionStack.push(u)},"begin"),popState:E(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:E(function(u){this.begin(u)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(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})();a.lexer=i;function s(){this.yy={}}return E(s,"Parser"),s.prototype=a,a.Parser=s,new s})();Pz.parser=Pz;var Jw=Pz,k8=[],A8=[],ek=new Map,FDt=E(()=>{k8=[],A8=[],ek=new Map,oa()},"clear"),z_,$Dt=(z_=class{constructor(e,r,n=0){this.source=e,this.target=r,this.value=n}},E(z_,"SankeyLink"),z_),zDt=E((t,e,r)=>{k8.push(new $Dt(t,e,r))},"addLink"),U_,UDt=(U_=class{constructor(e){this.ID=e}},E(U_,"SankeyNode"),U_),GDt=E(t=>{t=qt.sanitizeText(t,Ye());let e=ek.get(t);return e===void 0&&(e=new UDt(t),ek.set(t,e),A8.push(e)),e},"findOrCreateNode"),qDt=E(()=>A8,"getNodes"),YDt=E(()=>k8,"getLinks"),HDt=E(()=>({nodes:A8.map(t=>({id:t.ID})),links:k8.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),VDt={nodesMap:ek,getConfig:E(()=>Ye().sankey,"getConfig"),getNodes:qDt,getLinks:YDt,getGraph:HDt,addLink:zDt,findOrCreateNode:GDt,getAccTitle:va,setAccTitle:sa,getAccDescription:_a,setAccDescription:ya,getDiagramTitle:la,setDiagramTitle:pa,clear:FDt},v0,Yle=(v0=class{static next(e){return new v0(e+ ++v0.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},E(v0,"Uid"),v0.count=0,v0),WDt={left:_Dt,right:bDt,center:EDt,justify:A8e},KDt=E(t=>{let e=0,r=0;for(const n of t){const a=n.value??0;a>e&&(e=a,r=n.layer??0)}return r},"findCentralNodeLayer"),XDt=E(function(t,e,r,n){const{securityLevel:a,sankey:i}=Ye(),s=sde.sankey;let o;a==="sandbox"&&(o=At("#i"+e));const l=At(a==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=a==="sandbox"?l.select(`[id="${e}"]`):At(`[id="${e}"]`),d=i?.width??s.width,h=i?.height??s.width,f=i?.useMaxWidth??s.useMaxWidth,p=i?.nodeAlignment??s.nodeAlignment,g=i?.prefix??s.prefix,m=i?.suffix??s.suffix,v=i?.showValues??s.showValues,y=i?.nodeWidth??s.nodeWidth??10,b=i?.nodePadding??s.nodePadding??12,_=i?.labelStyle??s.labelStyle??"legacy",S=i?.nodeColors??{},x=n.db.getGraph(),C=WDt[p];CDt().nodeId(N=>N.id).nodeWidth(y).nodePadding(b+(v?15:0)).nodeAlign(C).extent([[0,0],[d,h]])(x);const w=KDt(x.nodes),R=Ep(JHe),O=E(N=>S[N]??R(N),"getNodeColor");u.append("g").attr("class","nodes").selectAll(".node").data(x.nodes).join("g").attr("class","node").attr("id",N=>(N.uid=Yle.next("node-")).id).attr("transform",function(N){return"translate("+N.x0+","+N.y0+")"}).attr("x",N=>N.x0).attr("y",N=>N.y0).append("rect").attr("height",N=>N.y1-N.y0).attr("width",N=>N.x1-N.x0).attr("fill",N=>O(N.id));const M=E(({id:N,value:P})=>v?`${N} +${g}${Math.round(P*100)/100}${m}`:N,"getText"),$=E(N=>_==="outlined"?(N.layer??0)F.selectAll(N?`.${N}`:"text").data(x.nodes).join("text").attr("class",N??null).attr("x",P=>$(P).x).attr("y",P=>(P.y1+P.y0)/2).attr("dy",`${v?"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=i?.linkColor??"gradient";if(D==="gradient"){const N=I.append("linearGradient").attr("id",P=>(P.uid=Yle.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",P=>P.source.x1).attr("x2",P=>P.target.x0);N.append("stop").attr("offset","0%").attr("stop-color",P=>O(P.source.id)),N.append("stop").attr("offset","100%").attr("stop-color",P=>O(P.target.id))}let L;switch(D){case"gradient":L=E(N=>N.uid,"coloring");break;case"source":L=E(N=>O(N.source.id),"coloring");break;case"target":L=E(N=>O(N.target.id),"coloring");break;default:L=D}I.append("path").attr("d",BDt()).attr("stroke",L).attr("stroke-width",N=>Math.max(1,N.width)),Jb(void 0,u,0,f)},"draw"),jDt={draw:XDt},QDt=E(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),"prepareTextForParsing"),ZDt=E(t=>`.label { font-family: ${t.fontFamily}; } @@ -6984,7 +6989,7 @@ ${g}${Math.round(P*100)/100}${m}`:N,"getText"),$=E(N=>_==="outlined"?(N.layer??0 stroke-opacity: 0.5; mix-blend-mode: multiply; } -`,"getStyles"),ZDt=QDt,JDt=Jw.parse.bind(Jw);Jw.parse=t=>JDt(jDt(t));var eLt={styles:ZDt,parser:Jw,db:HDt,renderer:XDt};const tLt=Object.freeze(Object.defineProperty({__proto__:null,diagram:eLt},Symbol.toStringTag,{value:"Module"}));var rLt=ln.packet,G_,N8e=(G_=class{constructor(){this.packet=[],this.setAccTitle=sa,this.getAccTitle=va,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getAccDescription=_a,this.setAccDescription=ya}getConfig(){const e=$a({...rLt,...xr().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){oa(),this.packet=[]}},E(G_,"PacketDB"),G_),nLt=1e4,aLt=E((t,e)=>{Nu(t,e);let r=-1,n=[],a=1;const{bitsPerRow:i}=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,a=e*r;return[{start:t.start,end:n,label:t.label,bits:n-t.start},{start:a,end:t.end,label:t.label,bits:t.end-a}]},"getNextFittingBlock"),I8e={parser:{yy:void 0},parse:E(async t=>{const e=await Sc("packet",t),r=I8e.parser?.yy;if(!(r instanceof N8e))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.");oe.debug(e),aLt(e,r)},"parse")},sLt=E((t,e,r,n)=>{const a=n.db,i=a.getConfig(),{rowHeight:s,paddingY:o,bitWidth:l,bitsPerRow:u}=i,d=a.getPacket(),h=a.getDiagramTitle(),f=s+o,p=f*(d.length+1)-(h?0:s),g=l*u+2,m=wo(e);m.attr("viewBox",`0 0 ${g} ${p}`),di(m,p,g,i.useMaxWidth);for(const[v,y]of d.entries())oLt(m,y,v,i);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"),oLt=E((t,e,r,{rowHeight:n,paddingX:a,paddingY:i,bitWidth:s,bitsPerRow:o,showBits:l})=>{const u=t.append("g"),d=r*(n+i)+i;for(const h of e){const f=h.start%o*s+1,p=(h.end-h.start+1)*s-a;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"),lLt={draw:sLt},cLt={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},uLt=E(({packet:t}={})=>{const e=$a(cLt,t);return` +`,"getStyles"),JDt=ZDt,eLt=Jw.parse.bind(Jw);Jw.parse=t=>eLt(QDt(t));var tLt={styles:JDt,parser:Jw,db:VDt,renderer:jDt};const rLt=Object.freeze(Object.defineProperty({__proto__:null,diagram:tLt},Symbol.toStringTag,{value:"Module"}));var nLt=ln.packet,G_,N8e=(G_=class{constructor(){this.packet=[],this.setAccTitle=sa,this.getAccTitle=va,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getAccDescription=_a,this.setAccDescription=ya}getConfig(){const e=$a({...nLt,...xr().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){oa(),this.packet=[]}},E(G_,"PacketDB"),G_),aLt=1e4,iLt=E((t,e)=>{Nu(t,e);let r=-1,n=[],a=1;const{bitsPerRow:i}=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,a=e*r;return[{start:t.start,end:n,label:t.label,bits:n-t.start},{start:a,end:t.end,label:t.label,bits:t.end-a}]},"getNextFittingBlock"),I8e={parser:{yy:void 0},parse:E(async t=>{const e=await Sc("packet",t),r=I8e.parser?.yy;if(!(r instanceof N8e))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.");oe.debug(e),iLt(e,r)},"parse")},oLt=E((t,e,r,n)=>{const a=n.db,i=a.getConfig(),{rowHeight:s,paddingY:o,bitWidth:l,bitsPerRow:u}=i,d=a.getPacket(),h=a.getDiagramTitle(),f=s+o,p=f*(d.length+1)-(h?0:s),g=l*u+2,m=wo(e);m.attr("viewBox",`0 0 ${g} ${p}`),di(m,p,g,i.useMaxWidth);for(const[v,y]of d.entries())lLt(m,y,v,i);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"),lLt=E((t,e,r,{rowHeight:n,paddingX:a,paddingY:i,bitWidth:s,bitsPerRow:o,showBits:l})=>{const u=t.append("g"),d=r*(n+i)+i;for(const h of e){const f=h.start%o*s+1,p=(h.end-h.start+1)*s-a;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"),cLt={draw:oLt},uLt={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},dLt=E(({packet:t}={})=>{const e=$a(uLt,t);return` .packetByte { font-size: ${e.byteFontSize}; } @@ -7007,7 +7012,7 @@ ${g}${Math.round(P*100)/100}${m}`:N,"getText"),$=E(N=>_==="outlined"?(N.layer??0 stroke-width: ${e.blockStrokeWidth}; fill: ${e.blockFillColor}; } - `},"styles"),dLt={parser:I8e,get db(){return new N8e},renderer:lLt,styles:uLt};const hLt=Object.freeze(Object.defineProperty({__proto__:null,diagram:dLt},Symbol.toStringTag,{value:"Module"}));var Am={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},O8e={axes:[],curves:[],options:Am},$g=structuredClone(O8e),fLt=ln.radar,pLt=E(()=>$a({...fLt,...xr().radar}),"getConfig"),D8e=E(()=>$g.axes,"getAxes"),gLt=E(()=>$g.curves,"getCurves"),mLt=E(()=>$g.options,"getOptions"),vLt=E(t=>{$g.axes=t.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),yLt=E(t=>{$g.curves=t.map(e=>({name:e.name,label:e.label??e.name,entries:_Lt(e.entries)}))},"setCurves"),_Lt=E(t=>{if(t[0].axis==null)return t.map(r=>r.value);const e=D8e();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(r=>{const n=t.find(a=>a.axis?.$refText===r.name);if(n===void 0)throw new Error("Missing entry for axis "+r.label);return n.value})},"computeCurveEntries"),bLt=E(t=>{const e=t.reduce((r,n)=>(r[n.name]=n,r),{});$g.options={showLegend:e.showLegend?.value??Am.showLegend,ticks:e.ticks?.value??Am.ticks,max:e.max?.value??Am.max,min:e.min?.value??Am.min,graticule:e.graticule?.value??Am.graticule}},"setOptions"),ELt=E(()=>{oa(),$g=structuredClone(O8e)},"clear"),XE={getAxes:D8e,getCurves:gLt,getOptions:mLt,setAxes:vLt,setCurves:yLt,setOptions:bLt,getConfig:pLt,clear:ELt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya},SLt=E(t=>{Nu(t,XE);const{axes:e,curves:r,options:n}=t;XE.setAxes(e),XE.setCurves(r),XE.setOptions(n)},"populate"),TLt={parse:E(async t=>{const e=await Sc("radar",t);oe.debug(e),SLt(e)},"parse")},xLt=E((t,e,r,n)=>{const a=n.db,i=a.getAxes(),s=a.getCurves(),o=a.getOptions(),l=a.getConfig(),u=a.getDiagramTitle(),d=wo(e),h=CLt(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;wLt(h,i,g,o.ticks,o.graticule),kLt(h,i,g,l),L8e(h,i,s,p,f,o.graticule,l),B8e(h,s,o.showLegend,l),h.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),CLt=E((t,e)=>{const r=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,a={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return di(t,n,r,e.useMaxWidth??!0),t.attr("viewBox",`0 0 ${r} ${n}`),t.append("g").attr("transform",`translate(${a.x}, ${a.y})`)},"drawFrame"),wLt=E((t,e,r,n,a)=>{if(a==="circle")for(let i=0;i{const h=2*d*Math.PI/i-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"),kLt=E((t,e,r,n)=>{const a=e.length;for(let i=0;i{if(u.entries.length!==o)return;const h=u.entries.map((f,p)=>{const g=2*Math.PI*p/o-Math.PI/2,m=M8e(f,n,a,l),v=m*Math.cos(g),y=m*Math.sin(g);return{x:v,y}});i==="circle"?t.append("path").attr("d",P8e(h,s.curveTension)).attr("class",`radarCurve-${d}`):i==="polygon"&&t.append("polygon").attr("points",h.map(f=>`${f.x},${f.y}`).join(" ")).attr("class",`radarCurve-${d}`)})}E(L8e,"drawCurves");function M8e(t,e,r,n){const a=Math.min(Math.max(t,e),r);return n*(a-e)/(r-e)}E(M8e,"relativeRadius");function P8e(t,e){const r=t.length;let n=`M${t[0].x},${t[0].y}`;for(let a=0;a{const u=t.append("g").attr("transform",`translate(${a}, ${i+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)})}E(B8e,"drawLegend");var ALt={draw:xLt},RLt=E((t,e)=>{let r="";for(let n=0;n$a({...pLt,...xr().radar}),"getConfig"),D8e=E(()=>$g.axes,"getAxes"),mLt=E(()=>$g.curves,"getCurves"),vLt=E(()=>$g.options,"getOptions"),yLt=E(t=>{$g.axes=t.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),_Lt=E(t=>{$g.curves=t.map(e=>({name:e.name,label:e.label??e.name,entries:bLt(e.entries)}))},"setCurves"),bLt=E(t=>{if(t[0].axis==null)return t.map(r=>r.value);const e=D8e();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(r=>{const n=t.find(a=>a.axis?.$refText===r.name);if(n===void 0)throw new Error("Missing entry for axis "+r.label);return n.value})},"computeCurveEntries"),ELt=E(t=>{const e=t.reduce((r,n)=>(r[n.name]=n,r),{});$g.options={showLegend:e.showLegend?.value??Am.showLegend,ticks:e.ticks?.value??Am.ticks,max:e.max?.value??Am.max,min:e.min?.value??Am.min,graticule:e.graticule?.value??Am.graticule}},"setOptions"),SLt=E(()=>{oa(),$g=structuredClone(O8e)},"clear"),XE={getAxes:D8e,getCurves:mLt,getOptions:vLt,setAxes:yLt,setCurves:_Lt,setOptions:ELt,getConfig:gLt,clear:SLt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya},TLt=E(t=>{Nu(t,XE);const{axes:e,curves:r,options:n}=t;XE.setAxes(e),XE.setCurves(r),XE.setOptions(n)},"populate"),xLt={parse:E(async t=>{const e=await Sc("radar",t);oe.debug(e),TLt(e)},"parse")},CLt=E((t,e,r,n)=>{const a=n.db,i=a.getAxes(),s=a.getCurves(),o=a.getOptions(),l=a.getConfig(),u=a.getDiagramTitle(),d=wo(e),h=wLt(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;kLt(h,i,g,o.ticks,o.graticule),ALt(h,i,g,l),L8e(h,i,s,p,f,o.graticule,l),B8e(h,s,o.showLegend,l),h.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),wLt=E((t,e)=>{const r=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,a={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return di(t,n,r,e.useMaxWidth??!0),t.attr("viewBox",`0 0 ${r} ${n}`),t.append("g").attr("transform",`translate(${a.x}, ${a.y})`)},"drawFrame"),kLt=E((t,e,r,n,a)=>{if(a==="circle")for(let i=0;i{const h=2*d*Math.PI/i-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"),ALt=E((t,e,r,n)=>{const a=e.length;for(let i=0;i{if(u.entries.length!==o)return;const h=u.entries.map((f,p)=>{const g=2*Math.PI*p/o-Math.PI/2,m=M8e(f,n,a,l),v=m*Math.cos(g),y=m*Math.sin(g);return{x:v,y}});i==="circle"?t.append("path").attr("d",P8e(h,s.curveTension)).attr("class",`radarCurve-${d}`):i==="polygon"&&t.append("polygon").attr("points",h.map(f=>`${f.x},${f.y}`).join(" ")).attr("class",`radarCurve-${d}`)})}E(L8e,"drawCurves");function M8e(t,e,r,n){const a=Math.min(Math.max(t,e),r);return n*(a-e)/(r-e)}E(M8e,"relativeRadius");function P8e(t,e){const r=t.length;let n=`M${t[0].x},${t[0].y}`;for(let a=0;a{const u=t.append("g").attr("transform",`translate(${a}, ${i+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)})}E(B8e,"drawLegend");var RLt={draw:CLt},NLt=E((t,e)=>{let r="";for(let n=0;n_==="outlined"?(N.layer??0 fill-opacity: ${e.curveOpacity}; stroke: ${a}; } - `}return r},"genIndexStyles"),NLt=E(t=>{const e=Qb(),r=xr(),n=$a(e,r.themeVariables),a=$a(n.radar,t);return{themeVariables:n,radarOptions:a}},"buildRadarStyleOptions"),ILt=E(({radar:t}={})=>{const{themeVariables:e,radarOptions:r}=NLt(t);return` + `}return r},"genIndexStyles"),ILt=E(t=>{const e=Qb(),r=xr(),n=$a(e,r.themeVariables),a=$a(n.radar,t);return{themeVariables:n,radarOptions:a}},"buildRadarStyleOptions"),OLt=E(({radar:t}={})=>{const{themeVariables:e,radarOptions:r}=ILt(t);return` .radarTitle { font-size: ${e.fontSize}; color: ${e.titleColor}; @@ -7048,13 +7053,13 @@ ${g}${Math.round(P*100)/100}${m}`:N,"getText"),$=E(N=>_==="outlined"?(N.layer??0 font-size: ${r.legendFontSize}px; dominant-baseline: hanging; } - ${RLt(e,r)} - `},"styles"),OLt={parser:TLt,db:XE,renderer:ALt,styles:ILt};const DLt=Object.freeze(Object.defineProperty({__proto__:null,diagram:OLt},Symbol.toStringTag,{value:"Module"}));var Bz=(function(){var t=E(function(_,S,x,C){for(x=x||{},C=_.length;C--;x[_[C]]=S);return x},"o"),e=[1,15],r=[1,7],n=[1,13],a=[1,14],i=[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],v={trace:E(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:E(function(S,x,C,T,w,R,O){var M=R.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: ",R[M-1]),T.setHierarchy(R[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: ",R[M]),typeof R[M].length=="number"?this.$=R[M]:this.$=[R[M]];break;case 13:T.getLogger().debug("Rule: statement #2: ",R[M-1]),this.$=[R[M-1]].concat(R[M]);break;case 14:T.getLogger().debug("Rule: link: ",R[M],S),this.$={edgeTypeStr:R[M],label:""};break;case 15:T.getLogger().debug("Rule: LABEL link: ",R[M-3],R[M-1],R[M]),this.$={edgeTypeStr:R[M],label:R[M-1]};break;case 18:const $=parseInt(R[M]),F=T.generateId();this.$={id:F,type:"space",label:"",width:$,children:[]};break;case 23:T.getLogger().debug("Rule: (nodeStatement link node) ",R[M-2],R[M-1],R[M]," typestr: ",R[M-1].edgeTypeStr);const A=T.edgeStrToEdgeData(R[M-1].edgeTypeStr),I=T.edgeStrToEdgeStartData(R[M-1].edgeTypeStr),D=T.edgeStrToThickness(R[M-1].edgeTypeStr),L=T.edgeStrToPattern(R[M-1].edgeTypeStr);this.$=[{id:R[M-2].id,label:R[M-2].label,type:R[M-2].type,directions:R[M-2].directions},{id:R[M-2].id+"-"+R[M].id,start:R[M-2].id,end:R[M].id,label:R[M-1].label,type:"edge",thickness:D,pattern:L,directions:R[M].directions,arrowTypeEnd:A,arrowTypeStart:I},{id:R[M].id,label:R[M].label,type:T.typeStr2Type(R[M].typeStr),directions:R[M].directions}];break;case 24:T.getLogger().debug("Rule: nodeStatement (abc88 node size) ",R[M-1],R[M]),this.$={id:R[M-1].id,label:R[M-1].label,type:T.typeStr2Type(R[M-1].typeStr),directions:R[M-1].directions,widthInColumns:parseInt(R[M],10)};break;case 25:T.getLogger().debug("Rule: nodeStatement (node) ",R[M]),this.$={id:R[M].id,label:R[M].label,type:T.typeStr2Type(R[M].typeStr),directions:R[M].directions,widthInColumns:1};break;case 26:T.getLogger().debug("APA123",this?this:"na"),T.getLogger().debug("COLUMNS: ",R[M]),this.$={type:"column-setting",columns:R[M]==="auto"?-1:parseInt(R[M])};break;case 27:T.getLogger().debug("Rule: id-block statement : ",R[M-2],R[M-1]),T.generateId(),this.$={...R[M-2],type:"composite",children:R[M-1]};break;case 28:T.getLogger().debug("Rule: blockStatement : ",R[M-2],R[M-1],R[M]);const N=T.generateId();this.$={id:N,type:"composite",label:"",children:R[M-1]};break;case 29:T.getLogger().debug("Rule: node (NODE_ID separator): ",R[M]),this.$={id:R[M]};break;case 30:T.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",R[M-1],R[M]),this.$={id:R[M-1],label:R[M].label,typeStr:R[M].typeStr,directions:R[M].directions};break;case 31:T.getLogger().debug("Rule: dirList: ",R[M]),this.$=[R[M]];break;case 32:T.getLogger().debug("Rule: dirList: ",R[M-1],R[M]),this.$=[R[M-1]].concat(R[M]);break;case 33:T.getLogger().debug("Rule: nodeShapeNLabel: ",R[M-2],R[M-1],R[M]),this.$={typeStr:R[M-2]+R[M],label:R[M-1]};break;case 34:T.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",R[M-3],R[M-2]," #3:",R[M-1],R[M]),this.$={typeStr:R[M-3]+R[M],label:R[M-2],directions:R[M-1]};break;case 35:case 36:this.$={type:"classDef",id:R[M-1].trim(),css:R[M].trim()};break;case 37:this.$={type:"applyClass",id:R[M-1].trim(),styleClass:R[M].trim()};break;case 38:this.$={type:"applyStyles",id:R[M-1].trim(),stylesStr:R[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:a,31:i,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:a,31:i,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:i},{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:a,31:i,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:i},{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:a,31:i,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:E(function(S,x){if(x.recoverable)this.trace(S);else{var C=new Error(S);throw C.hash=x,C}},"parseError"),parse:E(function(S){var x=this,C=[0],T=[],w=[null],R=[],O=this.table,M="",$=0,F=0,A=2,I=1,D=R.slice.call(arguments,1),L=Object.create(this.lexer),N={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(N.yy[P]=this.yy[P]);L.setInput(S,N.yy),N.yy.lexer=L,N.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var z=L.yylloc;R.push(z);var B=L.options&&L.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(pe){C.length=C.length-2*pe,w.length=w.length-pe,R.length=R.length-pe}E(U,"popStack");function G(){var pe;return pe=T.pop()||L.lex()||I,typeof pe!="number"&&(pe instanceof Array&&(T=pe,pe=T.pop()),pe=x.symbols_[pe]||pe),pe}E(G,"lex");for(var K,Y,ee,X,le={},te,ne,ae,re;;){if(Y=C[C.length-1],this.defaultActions[Y]?ee=this.defaultActions[Y]:((K===null||typeof K>"u")&&(K=G()),ee=O[Y]&&O[Y][K]),typeof ee>"u"||!ee.length||!ee[0]){var ge="";re=[];for(te in O[Y])this.terminals_[te]&&te>A&&re.push("'"+this.terminals_[te]+"'");L.showPosition?ge="Parse error on line "+($+1)+`: + ${NLt(e,r)} + `},"styles"),DLt={parser:xLt,db:XE,renderer:RLt,styles:OLt};const LLt=Object.freeze(Object.defineProperty({__proto__:null,diagram:DLt},Symbol.toStringTag,{value:"Module"}));var Bz=(function(){var t=E(function(_,S,x,C){for(x=x||{},C=_.length;C--;x[_[C]]=S);return x},"o"),e=[1,15],r=[1,7],n=[1,13],a=[1,14],i=[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],v={trace:E(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:E(function(S,x,C,T,w,R,O){var M=R.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: ",R[M-1]),T.setHierarchy(R[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: ",R[M]),typeof R[M].length=="number"?this.$=R[M]:this.$=[R[M]];break;case 13:T.getLogger().debug("Rule: statement #2: ",R[M-1]),this.$=[R[M-1]].concat(R[M]);break;case 14:T.getLogger().debug("Rule: link: ",R[M],S),this.$={edgeTypeStr:R[M],label:""};break;case 15:T.getLogger().debug("Rule: LABEL link: ",R[M-3],R[M-1],R[M]),this.$={edgeTypeStr:R[M],label:R[M-1]};break;case 18:const $=parseInt(R[M]),F=T.generateId();this.$={id:F,type:"space",label:"",width:$,children:[]};break;case 23:T.getLogger().debug("Rule: (nodeStatement link node) ",R[M-2],R[M-1],R[M]," typestr: ",R[M-1].edgeTypeStr);const A=T.edgeStrToEdgeData(R[M-1].edgeTypeStr),I=T.edgeStrToEdgeStartData(R[M-1].edgeTypeStr),D=T.edgeStrToThickness(R[M-1].edgeTypeStr),L=T.edgeStrToPattern(R[M-1].edgeTypeStr);this.$=[{id:R[M-2].id,label:R[M-2].label,type:R[M-2].type,directions:R[M-2].directions},{id:R[M-2].id+"-"+R[M].id,start:R[M-2].id,end:R[M].id,label:R[M-1].label,type:"edge",thickness:D,pattern:L,directions:R[M].directions,arrowTypeEnd:A,arrowTypeStart:I},{id:R[M].id,label:R[M].label,type:T.typeStr2Type(R[M].typeStr),directions:R[M].directions}];break;case 24:T.getLogger().debug("Rule: nodeStatement (abc88 node size) ",R[M-1],R[M]),this.$={id:R[M-1].id,label:R[M-1].label,type:T.typeStr2Type(R[M-1].typeStr),directions:R[M-1].directions,widthInColumns:parseInt(R[M],10)};break;case 25:T.getLogger().debug("Rule: nodeStatement (node) ",R[M]),this.$={id:R[M].id,label:R[M].label,type:T.typeStr2Type(R[M].typeStr),directions:R[M].directions,widthInColumns:1};break;case 26:T.getLogger().debug("APA123",this?this:"na"),T.getLogger().debug("COLUMNS: ",R[M]),this.$={type:"column-setting",columns:R[M]==="auto"?-1:parseInt(R[M])};break;case 27:T.getLogger().debug("Rule: id-block statement : ",R[M-2],R[M-1]),T.generateId(),this.$={...R[M-2],type:"composite",children:R[M-1]};break;case 28:T.getLogger().debug("Rule: blockStatement : ",R[M-2],R[M-1],R[M]);const N=T.generateId();this.$={id:N,type:"composite",label:"",children:R[M-1]};break;case 29:T.getLogger().debug("Rule: node (NODE_ID separator): ",R[M]),this.$={id:R[M]};break;case 30:T.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",R[M-1],R[M]),this.$={id:R[M-1],label:R[M].label,typeStr:R[M].typeStr,directions:R[M].directions};break;case 31:T.getLogger().debug("Rule: dirList: ",R[M]),this.$=[R[M]];break;case 32:T.getLogger().debug("Rule: dirList: ",R[M-1],R[M]),this.$=[R[M-1]].concat(R[M]);break;case 33:T.getLogger().debug("Rule: nodeShapeNLabel: ",R[M-2],R[M-1],R[M]),this.$={typeStr:R[M-2]+R[M],label:R[M-1]};break;case 34:T.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",R[M-3],R[M-2]," #3:",R[M-1],R[M]),this.$={typeStr:R[M-3]+R[M],label:R[M-2],directions:R[M-1]};break;case 35:case 36:this.$={type:"classDef",id:R[M-1].trim(),css:R[M].trim()};break;case 37:this.$={type:"applyClass",id:R[M-1].trim(),styleClass:R[M].trim()};break;case 38:this.$={type:"applyStyles",id:R[M-1].trim(),stylesStr:R[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:a,31:i,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:a,31:i,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:i},{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:a,31:i,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:i},{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:a,31:i,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:E(function(S,x){if(x.recoverable)this.trace(S);else{var C=new Error(S);throw C.hash=x,C}},"parseError"),parse:E(function(S){var x=this,C=[0],T=[],w=[null],R=[],O=this.table,M="",$=0,F=0,A=2,I=1,D=R.slice.call(arguments,1),L=Object.create(this.lexer),N={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(N.yy[P]=this.yy[P]);L.setInput(S,N.yy),N.yy.lexer=L,N.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var z=L.yylloc;R.push(z);var B=L.options&&L.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(pe){C.length=C.length-2*pe,w.length=w.length-pe,R.length=R.length-pe}E(U,"popStack");function G(){var pe;return pe=T.pop()||L.lex()||I,typeof pe!="number"&&(pe instanceof Array&&(T=pe,pe=T.pop()),pe=x.symbols_[pe]||pe),pe}E(G,"lex");for(var K,Y,ee,X,le={},te,ne,ae,re;;){if(Y=C[C.length-1],this.defaultActions[Y]?ee=this.defaultActions[Y]:((K===null||typeof K>"u")&&(K=G()),ee=O[Y]&&O[Y][K]),typeof ee>"u"||!ee.length||!ee[0]){var ge="";re=[];for(te in O[Y])this.terminals_[te]&&te>A&&re.push("'"+this.terminals_[te]+"'");L.showPosition?ge="Parse error on line "+($+1)+`: `+L.showPosition()+` Expecting `+re.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ge="Parse error on line "+($+1)+": Unexpected "+(K==I?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(ge,{text:L.match,token:this.terminals_[K]||K,line:L.yylineno,loc:z,expected:re})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+K);switch(ee[0]){case 1:C.push(K),w.push(L.yytext),R.push(L.yylloc),C.push(ee[1]),K=null,F=L.yyleng,M=L.yytext,$=L.yylineno,z=L.yylloc;break;case 2:if(ne=this.productions_[ee[1]][1],le.$=w[w.length-ne],le._$={first_line:R[R.length-(ne||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(ne||1)].first_column,last_column:R[R.length-1].last_column},B&&(le._$.range=[R[R.length-(ne||1)].range[0],R[R.length-1].range[1]]),X=this.performAction.apply(le,[M,F,$,N.yy,ee[1],w,R].concat(D)),typeof X<"u")return X;ne&&(C=C.slice(0,-1*ne*2),w=w.slice(0,-1*ne),R=R.slice(0,-1*ne)),C.push(this.productions_[ee[1]][0]),w.push(le.$),R.push(le._$),ae=O[C[C.length-2]][C[C.length-1]],C.push(ae);break;case 3:return!0}}return!0},"parse")},y=(function(){var _={EOF:1,parseError:E(function(x,C){if(this.yy.parser)this.yy.parser.parseError(x,C);else throw new Error(x)},"parseError"),setInput:E(function(S,x){return this.yy=x||this.yy||{},this._input=S,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:E(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var x=S.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),S},"input"),unput:E(function(S){var x=S.length,C=S.split(/(?:\r\n?|\n)/g);this._input=S+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:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(S){this.unput(this.match.slice(S))},"less"),pastInput:E(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:E(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:E(function(){var S=this.pastInput(),x=new Array(S.length+1).join("-");return S+this.upcomingInput()+` `+x+"^"},"showPosition"),test_match:E(function(S,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=S[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+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,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(S[0].length),this.matched+=S[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 R in w)this[R]=w[R];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,x,C,T;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),R=0;Rx[0].length)){if(x=C,T=R,this.options.backtrack_lexer){if(S=this.test_match(C,w[R]),S!==!1)return S;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(S=this.test_match(x,w[T]),S!==!1?S:!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:E(function(){var x=this.next();return x||this.lex()},"lex"),begin:E(function(x){this.conditionStack.push(x)},"begin"),popState:E(function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},"topState"),pushState:E(function(x){this.begin(x)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:E(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 _})();v.lexer=y;function b(){this.yy={}}return E(b,"Parser"),b.prototype=v,v.Parser=b,new b})();Bz.parser=Bz;var LLt=Bz,fc=new Map,tK=[],Fz=new Map,Hle="color",Vle="fill",MLt="bgFill",F8e=",",PLt=Ye(),tk=new Map,rK="",BLt=E(t=>qt.sanitizeText(t,PLt),"sanitizeText"),FLt=E(function(t,e=""){let r=tk.get(t);r||(r={id:t,styles:[],textStyles:[]},tk.set(t,r)),e?.split(F8e).forEach(n=>{const a=n.replace(/([^;]*);/,"$1").trim();if(RegExp(Hle).exec(n)){const s=a.replace(Vle,MLt).replace(Hle,Vle);r.textStyles.push(s)}r.styles.push(a)})},"addStyleClass"),$Lt=E(function(t,e=""){const r=fc.get(t);e!=null&&(r.styles=e.split(F8e))},"addStyle2Node"),zLt=E(function(t,e){t.split(",").forEach(function(r){let n=fc.get(r);if(n===void 0){const a=r.trim();n={id:a,type:"na",children:[]},fc.set(a,n)}n.classes||(n.classes=[]),n.classes.push(e)})},"setCssClass"),$8e=E((t,e)=>{const r=t.flat(),n=[],i=r.find(s=>s?.type==="column-setting")?.columns??-1;for(const s of r){if(typeof i=="number"&&i>0&&s.type!=="column-setting"&&typeof s.widthInColumns=="number"&&s.widthInColumns>i&&oe.warn(`Block ${s.id} width ${s.widthInColumns} exceeds configured column width ${i}`),s.label&&(s.label=BLt(s.label)),s.type==="classDef"){FLt(s.id,s.css);continue}if(s.type==="applyClass"){zLt(s.id,s?.styleClass??"");continue}if(s.type==="applyStyles"){s?.stylesStr&&$Lt(s.id,s?.stylesStr);continue}if(s.type==="column-setting")e.columns=s.columns??-1;else if(s.type==="edge"){const o=(Fz.get(s.id)??0)+1;Fz.set(s.id,o),s.id=o+"-"+s.id,tK.push(s)}else{s.label||(s.type==="composite"?s.label="":s.label=s.id);const o=fc.get(s.id);if(o===void 0?fc.set(s.id,s):(s.type!=="na"&&(o.type=s.type),s.label!==s.id&&(o.label=s.label)),s.children&&$8e(s.children,s),s.type==="space"){const l=s.width??1;for(let u=0;u{oe.debug("Clear called"),oa(),MS={id:"root",type:"composite",children:[],columns:-1},fc=new Map([["root",MS]]),nK=[],tk=new Map,tK=[],Fz=new Map,rK=""},"clear");function z8e(t){switch(oe.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return oe.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"}}E(z8e,"typeStr2Type");function U8e(t){return oe.debug("typeStr2Type",t),t==="=="?"thick":"normal"}E(U8e,"edgeTypeStr2Type");function G8e(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}E(G8e,"edgeStrToEdgeData");function q8e(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}E(q8e,"edgeStrToEdgeStartData");function Y8e(t){return t.includes("==")?"thick":"normal"}E(Y8e,"edgeStrToThickness");function H8e(t){return t.includes(".-")?"dotted":"solid"}E(H8e,"edgeStrToPattern");var Wle=0,GLt=E(()=>(Wle++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Wle),"generateId"),qLt=E(t=>{MS.children=t,$8e(t,MS),nK=MS.children},"setHierarchy"),YLt=E(t=>{const e=fc.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),HLt=E(()=>[...fc.values()],"getBlocksFlat"),VLt=E(()=>nK||[],"getBlocks"),WLt=E(()=>tK,"getEdges"),KLt=E(t=>fc.get(t),"getBlock"),XLt=E(t=>{fc.set(t.id,t)},"setBlock"),jLt=E(t=>{rK=t},"setDiagramId"),QLt=E(()=>rK,"getDiagramId"),ZLt=E(()=>oe,"getLogger"),JLt=E(function(){return tk},"getClasses"),eMt={getConfig:E(()=>xr().block,"getConfig"),typeStr2Type:z8e,edgeTypeStr2Type:U8e,edgeStrToEdgeData:G8e,edgeStrToEdgeStartData:q8e,edgeStrToThickness:Y8e,edgeStrToPattern:H8e,getLogger:ZLt,getBlocksFlat:HLt,getBlocks:VLt,getEdges:WLt,setHierarchy:qLt,getBlock:KLt,setBlock:XLt,getColumns:YLt,getClasses:JLt,clear:ULt,generateId:GLt,setDiagramId:jLt,getDiagramId:QLt},tMt=eMt,EM=E((t,e)=>{const r=FU,n=r(t,"r"),a=r(t,"g"),i=r(t,"b");return rc(n,a,i,e)},"fade"),rMt=E(t=>`.label { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var x=this.next();return x||this.lex()},"lex"),begin:E(function(x){this.conditionStack.push(x)},"begin"),popState:E(function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},"topState"),pushState:E(function(x){this.begin(x)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:E(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 _})();v.lexer=y;function b(){this.yy={}}return E(b,"Parser"),b.prototype=v,v.Parser=b,new b})();Bz.parser=Bz;var MLt=Bz,fc=new Map,tK=[],Fz=new Map,Hle="color",Vle="fill",PLt="bgFill",F8e=",",BLt=Ye(),tk=new Map,rK="",FLt=E(t=>qt.sanitizeText(t,BLt),"sanitizeText"),$Lt=E(function(t,e=""){let r=tk.get(t);r||(r={id:t,styles:[],textStyles:[]},tk.set(t,r)),e?.split(F8e).forEach(n=>{const a=n.replace(/([^;]*);/,"$1").trim();if(RegExp(Hle).exec(n)){const s=a.replace(Vle,PLt).replace(Hle,Vle);r.textStyles.push(s)}r.styles.push(a)})},"addStyleClass"),zLt=E(function(t,e=""){const r=fc.get(t);e!=null&&(r.styles=e.split(F8e))},"addStyle2Node"),ULt=E(function(t,e){t.split(",").forEach(function(r){let n=fc.get(r);if(n===void 0){const a=r.trim();n={id:a,type:"na",children:[]},fc.set(a,n)}n.classes||(n.classes=[]),n.classes.push(e)})},"setCssClass"),$8e=E((t,e)=>{const r=t.flat(),n=[],i=r.find(s=>s?.type==="column-setting")?.columns??-1;for(const s of r){if(typeof i=="number"&&i>0&&s.type!=="column-setting"&&typeof s.widthInColumns=="number"&&s.widthInColumns>i&&oe.warn(`Block ${s.id} width ${s.widthInColumns} exceeds configured column width ${i}`),s.label&&(s.label=FLt(s.label)),s.type==="classDef"){$Lt(s.id,s.css);continue}if(s.type==="applyClass"){ULt(s.id,s?.styleClass??"");continue}if(s.type==="applyStyles"){s?.stylesStr&&zLt(s.id,s?.stylesStr);continue}if(s.type==="column-setting")e.columns=s.columns??-1;else if(s.type==="edge"){const o=(Fz.get(s.id)??0)+1;Fz.set(s.id,o),s.id=o+"-"+s.id,tK.push(s)}else{s.label||(s.type==="composite"?s.label="":s.label=s.id);const o=fc.get(s.id);if(o===void 0?fc.set(s.id,s):(s.type!=="na"&&(o.type=s.type),s.label!==s.id&&(o.label=s.label)),s.children&&$8e(s.children,s),s.type==="space"){const l=s.width??1;for(let u=0;u{oe.debug("Clear called"),oa(),MS={id:"root",type:"composite",children:[],columns:-1},fc=new Map([["root",MS]]),nK=[],tk=new Map,tK=[],Fz=new Map,rK=""},"clear");function z8e(t){switch(oe.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return oe.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"}}E(z8e,"typeStr2Type");function U8e(t){return oe.debug("typeStr2Type",t),t==="=="?"thick":"normal"}E(U8e,"edgeTypeStr2Type");function G8e(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}E(G8e,"edgeStrToEdgeData");function q8e(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}E(q8e,"edgeStrToEdgeStartData");function Y8e(t){return t.includes("==")?"thick":"normal"}E(Y8e,"edgeStrToThickness");function H8e(t){return t.includes(".-")?"dotted":"solid"}E(H8e,"edgeStrToPattern");var Wle=0,qLt=E(()=>(Wle++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Wle),"generateId"),YLt=E(t=>{MS.children=t,$8e(t,MS),nK=MS.children},"setHierarchy"),HLt=E(t=>{const e=fc.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),VLt=E(()=>[...fc.values()],"getBlocksFlat"),WLt=E(()=>nK||[],"getBlocks"),KLt=E(()=>tK,"getEdges"),XLt=E(t=>fc.get(t),"getBlock"),jLt=E(t=>{fc.set(t.id,t)},"setBlock"),QLt=E(t=>{rK=t},"setDiagramId"),ZLt=E(()=>rK,"getDiagramId"),JLt=E(()=>oe,"getLogger"),eMt=E(function(){return tk},"getClasses"),tMt={getConfig:E(()=>xr().block,"getConfig"),typeStr2Type:z8e,edgeTypeStr2Type:U8e,edgeStrToEdgeData:G8e,edgeStrToEdgeStartData:q8e,edgeStrToThickness:Y8e,edgeStrToPattern:H8e,getLogger:JLt,getBlocksFlat:VLt,getBlocks:WLt,getEdges:KLt,setHierarchy:YLt,getBlock:XLt,setBlock:jLt,getColumns:HLt,getClasses:eMt,clear:GLt,generateId:qLt,setDiagramId:QLt,getDiagramId:ZLt},rMt=tMt,EM=E((t,e)=>{const r=FU,n=r(t,"r"),a=r(t,"g"),i=r(t,"b");return rc(n,a,i,e)},"fade"),nMt=E(t=>`.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor||t.textColor}; } @@ -7177,11 +7182,11 @@ Expecting `+re.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ge="Parse error fill: ${t.textColor}; } ${YT()} -`,"getStyles"),nMt=rMt,aMt=E((t,e,r,n)=>{e.forEach(a=>{pMt[a](t,r,n)})},"insertMarkers"),iMt=E((t,e,r)=>{oe.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"),sMt=E((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"),oMt=E((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"),lMt=E((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"),cMt=E((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"),uMt=E((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"),dMt=E((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"),hMt=E((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"),fMt=E((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"),pMt={extension:iMt,composition:sMt,aggregation:oMt,dependency:lMt,lollipop:cMt,point:uMt,circle:dMt,cross:hMt,barb:fMt},gMt=aMt,qa=Ye()?.block?.padding??8;function $z(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}}E($z,"calculateBlockPosition");var mMt=E(t=>{let e=0,r=0;for(const n of t.children){const{width:a,height:i,x:s,y:o}=n.size??{width:0,height:0,x:0,y:0};if(oe.debug("getMaxChildSize abc95 child:",n.id,"width:",a,"height:",i,"x:",s,"y:",o,n.type),n.type==="space")continue;const l=a/(n.widthInColumns??1);l>e&&(e=l),i>r&&(r=i)}return{width:e,height:r}},"getMaxChildSize");function rk(t,e,r=0,n=0){oe.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 a=0,i=0;if(t.children?.length>0){for(const p of t.children)rk(p,e);const s=mMt(t);a=s.width,i=s.height,oe.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",a,i);for(const p of t.children)p.size&&(oe.debug(`abc95 Setting size of children of ${t.id} id=${p.id} ${a} ${i} ${JSON.stringify(p.size)}`),p.size.width=a*(p.widthInColumns??1)+qa*((p.widthInColumns??1)-1),p.size.height=i,p.size.x=0,p.size.y=0,oe.debug(`abc95 updating size of ${t.id} children child:${p.id} maxWidth:${a} maxHeight:${i}`));for(const p of t.children)rk(p,e,a,i);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*qa-qa)/p;oe.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}}oe.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}E(rk,"setBlockSizes");function aK(t,e){oe.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(oe.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){const n=t?.children[0]?.size?.width??0,a=t.children.length*n+(t.children.length-1)*qa;oe.debug("widthOfChildren 88",a,"posX");const i=new Map;{let d=0;for(const h of t.children){if(!h.size)continue;const{py:f}=$z(r,d),p=i.get(f)??0;h.size.height>p&&i.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=[...i.keys()].sort((f,p)=>f-p);for(const f of h)s.set(f,d),d+=(i.get(f)??0)+qa}let o=0;oe.debug("abc91 block?.size?.x",t.id,t?.size?.x);let l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-qa,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}=$z(r,o);if(m!=u&&(u=m,l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-qa,oe.debug("New row in layout for block",t.id," and child ",d.id,u)),oe.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}${qa}`),h.size){const y=f/2;d.size.x=l+qa+y,oe.debug(`abc91 layout blocks (calc) px, pyid:${d.id} startingPos=X${l} new startingPosX${d.size.x} ${y} padding=${qa} width=${f} halfWidth=${y} => x:${d.size.x} y:${d.size.y} ${d.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(d?.widthInColumns??1)/2}`),l=d.size.x+y;const b=s.get(m)??0,_=i.get(m)??p;d.size.y=h.size.y-h.size.height/2+b+_/2+qa,oe.debug(`abc88 layout blocks (calc) px, pyid:${d.id}startingPosX${l}${qa}${y}=>x:${d.size.x}y:${d.size.y}${d.widthInColumns}(width * (child?.w || 1)) / 2${f*(d?.widthInColumns??1)/2}`)}d.children&&aK(d);let v=d?.widthInColumns??1;r>0&&(v=Math.min(v,r-o%r)),o+=v,oe.debug("abc88 columnsPos",d,o)}}oe.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}E(aK,"layoutBlocks");function iK(t,{minX:e,minY:r,maxX:n,maxY:a}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){const{x:i,y:s,width:o,height:l}=t.size;i-o/2n&&(n=i+o/2),s+l/2>a&&(a=s+l/2)}if(t.children)for(const i of t.children)({minX:e,minY:r,maxX:n,maxY:a}=iK(i,{minX:e,minY:r,maxX:n,maxY:a}));return{minX:e,minY:r,maxX:n,maxY:a}}E(iK,"findBounds");function V8e(t){const e=t.getBlock("root");if(!e)return;rk(e,t,0,0),aK(e),oe.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:n,maxX:a,maxY:i}=iK(e),s=i-n,o=a-r;return{x:r,y:n,width:o,height:s}}E(V8e,"layout");var vMt=E(async(t,e,r,n=!1,a=!1)=>{let i=e||"";typeof i=="object"&&(i=i[0]);const s=Ye(),o=On(s);return await eo(t,i,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},s)},"createLabel"),ec=vMt,yMt=E((t,e,r,n,a)=>{e.arrowTypeStart&&Kle(t,"start",e.arrowTypeStart,r,n,a),e.arrowTypeEnd&&Kle(t,"end",e.arrowTypeEnd,r,n,a)},"addEdgeMarkers"),_Mt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Kle=E((t,e,r,n,a,i)=>{const s=_Mt[r];if(!s){oe.warn(`Unknown arrow type: ${r}`);return}const o=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${a}_${i}-${s}${o})`)},"addEdgeMarker"),zz={},os={},bMt=E(async(t,e)=>{const r=Ye(),n=On(r),a=t.insert("g").attr("class","edgeLabel"),i=a.insert("g").attr("class","label"),s=e.labelType==="markdown",o=await eo(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:s,isNode:!1,markdown:s,width:s?void 0:Number.POSITIVE_INFINITY},r);i.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())}i.attr("transform",Hc(u,n)),zz[e.id]=a,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 ec(f,e.startLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],v=At(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}f.attr("transform",Hc(g,n)),os[e.id]||(os[e.id]={}),os[e.id].startLeft=h,jE(d,e.startLabelLeft)}if(e.startLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await ec(f,e.startLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],v=At(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}f.attr("transform",Hc(g,n)),os[e.id]||(os[e.id]={}),os[e.id].startRight=h,jE(d,e.startLabelRight)}if(e.endLabelLeft){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await ec(h,e.endLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],v=At(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}f.attr("transform",Hc(g,n)),os[e.id]||(os[e.id]={}),os[e.id].endLeft=h,jE(d,e.endLabelLeft)}if(e.endLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await ec(h,e.endLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],v=At(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}f.attr("transform",Hc(g,n)),os[e.id]||(os[e.id]={}),os[e.id].endRight=h,jE(d,e.endLabelRight)}return o},"insertEdgeLabel");function jE(t,e){On(Ye())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}E(jE,"setTerminalWidth");var EMt=E((t,e)=>{oe.debug("Moving label abc88 ",t.id,t.label,zz[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=Ye(),{subGraphTitleTotalMargin:a}=_T(n);if(t.label){const i=zz[t.id];let s=t.x,o=t.y;if(r){const l=Kr.calcLabelPosition(r);oe.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}i.attr("transform",`translate(${s}, ${o+a/2})`)}if(t.startLabelLeft){const i=os[t.id].startLeft;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const i=os[t.id].startRight;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const i=os[t.id].endLeft;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const i=os[t.id].endRight;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),SMt=E((t,e)=>{const r=t.x,n=t.y,a=Math.abs(e.x-r),i=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return a>=s||i>=o},"outsideNode"),TMt=E((t,e,r)=>{oe.debug(`intersection calc abc89: +`,"getStyles"),aMt=nMt,iMt=E((t,e,r,n)=>{e.forEach(a=>{gMt[a](t,r,n)})},"insertMarkers"),sMt=E((t,e,r)=>{oe.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"),oMt=E((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"),lMt=E((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"),cMt=E((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"),uMt=E((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"),dMt=E((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"),hMt=E((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"),fMt=E((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"),pMt=E((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"),gMt={extension:sMt,composition:oMt,aggregation:lMt,dependency:cMt,lollipop:uMt,point:dMt,circle:hMt,cross:fMt,barb:pMt},mMt=iMt,qa=Ye()?.block?.padding??8;function $z(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}}E($z,"calculateBlockPosition");var vMt=E(t=>{let e=0,r=0;for(const n of t.children){const{width:a,height:i,x:s,y:o}=n.size??{width:0,height:0,x:0,y:0};if(oe.debug("getMaxChildSize abc95 child:",n.id,"width:",a,"height:",i,"x:",s,"y:",o,n.type),n.type==="space")continue;const l=a/(n.widthInColumns??1);l>e&&(e=l),i>r&&(r=i)}return{width:e,height:r}},"getMaxChildSize");function rk(t,e,r=0,n=0){oe.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 a=0,i=0;if(t.children?.length>0){for(const p of t.children)rk(p,e);const s=vMt(t);a=s.width,i=s.height,oe.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",a,i);for(const p of t.children)p.size&&(oe.debug(`abc95 Setting size of children of ${t.id} id=${p.id} ${a} ${i} ${JSON.stringify(p.size)}`),p.size.width=a*(p.widthInColumns??1)+qa*((p.widthInColumns??1)-1),p.size.height=i,p.size.x=0,p.size.y=0,oe.debug(`abc95 updating size of ${t.id} children child:${p.id} maxWidth:${a} maxHeight:${i}`));for(const p of t.children)rk(p,e,a,i);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*qa-qa)/p;oe.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}}oe.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}E(rk,"setBlockSizes");function aK(t,e){oe.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(oe.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){const n=t?.children[0]?.size?.width??0,a=t.children.length*n+(t.children.length-1)*qa;oe.debug("widthOfChildren 88",a,"posX");const i=new Map;{let d=0;for(const h of t.children){if(!h.size)continue;const{py:f}=$z(r,d),p=i.get(f)??0;h.size.height>p&&i.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=[...i.keys()].sort((f,p)=>f-p);for(const f of h)s.set(f,d),d+=(i.get(f)??0)+qa}let o=0;oe.debug("abc91 block?.size?.x",t.id,t?.size?.x);let l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-qa,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}=$z(r,o);if(m!=u&&(u=m,l=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-qa,oe.debug("New row in layout for block",t.id," and child ",d.id,u)),oe.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}${qa}`),h.size){const y=f/2;d.size.x=l+qa+y,oe.debug(`abc91 layout blocks (calc) px, pyid:${d.id} startingPos=X${l} new startingPosX${d.size.x} ${y} padding=${qa} width=${f} halfWidth=${y} => x:${d.size.x} y:${d.size.y} ${d.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(d?.widthInColumns??1)/2}`),l=d.size.x+y;const b=s.get(m)??0,_=i.get(m)??p;d.size.y=h.size.y-h.size.height/2+b+_/2+qa,oe.debug(`abc88 layout blocks (calc) px, pyid:${d.id}startingPosX${l}${qa}${y}=>x:${d.size.x}y:${d.size.y}${d.widthInColumns}(width * (child?.w || 1)) / 2${f*(d?.widthInColumns??1)/2}`)}d.children&&aK(d);let v=d?.widthInColumns??1;r>0&&(v=Math.min(v,r-o%r)),o+=v,oe.debug("abc88 columnsPos",d,o)}}oe.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}E(aK,"layoutBlocks");function iK(t,{minX:e,minY:r,maxX:n,maxY:a}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){const{x:i,y:s,width:o,height:l}=t.size;i-o/2n&&(n=i+o/2),s+l/2>a&&(a=s+l/2)}if(t.children)for(const i of t.children)({minX:e,minY:r,maxX:n,maxY:a}=iK(i,{minX:e,minY:r,maxX:n,maxY:a}));return{minX:e,minY:r,maxX:n,maxY:a}}E(iK,"findBounds");function V8e(t){const e=t.getBlock("root");if(!e)return;rk(e,t,0,0),aK(e),oe.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:n,maxX:a,maxY:i}=iK(e),s=i-n,o=a-r;return{x:r,y:n,width:o,height:s}}E(V8e,"layout");var yMt=E(async(t,e,r,n=!1,a=!1)=>{let i=e||"";typeof i=="object"&&(i=i[0]);const s=Ye(),o=On(s);return await eo(t,i,{style:r,isTitle:n,useHtmlLabels:o,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},s)},"createLabel"),ec=yMt,_Mt=E((t,e,r,n,a)=>{e.arrowTypeStart&&Kle(t,"start",e.arrowTypeStart,r,n,a),e.arrowTypeEnd&&Kle(t,"end",e.arrowTypeEnd,r,n,a)},"addEdgeMarkers"),bMt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Kle=E((t,e,r,n,a,i)=>{const s=bMt[r];if(!s){oe.warn(`Unknown arrow type: ${r}`);return}const o=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${a}_${i}-${s}${o})`)},"addEdgeMarker"),zz={},os={},EMt=E(async(t,e)=>{const r=Ye(),n=On(r),a=t.insert("g").attr("class","edgeLabel"),i=a.insert("g").attr("class","label"),s=e.labelType==="markdown",o=await eo(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:s,isNode:!1,markdown:s,width:s?void 0:Number.POSITIVE_INFINITY},r);i.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())}i.attr("transform",Hc(u,n)),zz[e.id]=a,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 ec(f,e.startLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],v=At(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}f.attr("transform",Hc(g,n)),os[e.id]||(os[e.id]={}),os[e.id].startLeft=h,jE(d,e.startLabelLeft)}if(e.startLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await ec(f,e.startLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],v=At(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}f.attr("transform",Hc(g,n)),os[e.id]||(os[e.id]={}),os[e.id].startRight=h,jE(d,e.startLabelRight)}if(e.endLabelLeft){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await ec(h,e.endLabelLeft,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],v=At(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}f.attr("transform",Hc(g,n)),os[e.id]||(os[e.id]={}),os[e.id].endLeft=h,jE(d,e.endLabelLeft)}if(e.endLabelRight){const h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner"),p=await ec(h,e.endLabelRight,e.labelStyle);d=p;let g=p.getBBox();if(n){const m=p.children[0],v=At(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}f.attr("transform",Hc(g,n)),os[e.id]||(os[e.id]={}),os[e.id].endRight=h,jE(d,e.endLabelRight)}return o},"insertEdgeLabel");function jE(t,e){On(Ye())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}E(jE,"setTerminalWidth");var SMt=E((t,e)=>{oe.debug("Moving label abc88 ",t.id,t.label,zz[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=Ye(),{subGraphTitleTotalMargin:a}=_T(n);if(t.label){const i=zz[t.id];let s=t.x,o=t.y;if(r){const l=Kr.calcLabelPosition(r);oe.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}i.attr("transform",`translate(${s}, ${o+a/2})`)}if(t.startLabelLeft){const i=os[t.id].startLeft;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const i=os[t.id].startRight;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const i=os[t.id].endLeft;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const i=os[t.id].endRight;let s=t.x,o=t.y;if(r){const l=Kr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}i.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),TMt=E((t,e)=>{const r=t.x,n=t.y,a=Math.abs(e.x-r),i=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return a>=s||i>=o},"outsideNode"),xMt=E((t,e,r)=>{oe.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,a=t.y,i=Math.abs(n-r.x),s=t.width/2;let o=r.xMath.abs(n-e.x)*l){let h=r.y{oe.debug("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],a=!1;return t.forEach(i=>{if(!SMt(e,i)&&!a){const s=TMt(e,n,i);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),a=!0}else n=i,a||r.push(i)}),r},"cutPathAtIntersect"),xMt=E(function(t,e,r,n,a,i,s){let o=r.points;oe.debug("abc88 InsertEdge: edge=",r,"e=",e);let l=!1;const u=i.node(e.v);var d=i.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&&(oe.debug("to cluster abc88",n[r.toCluster]),o=Xle(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(oe.debug("from cluster abc88",n[r.fromCluster]),o=Xle(o.reverse(),n[r.fromCluster].node).reverse(),l=!0);const h=o.filter(S=>!Number.isNaN(S.y));let f=JS;r.curve&&(a==="graph"||a==="flowchart")&&(f=r.curve);const{x:p,y:g}=spe(r),m=ZS().x(p).y(g).curve(f);let v;switch(r.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-thick";break;default:v=""}switch(r.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break}const y=t.append("path").attr("d",m(h)).attr("id",r.id).attr("class"," "+v+(r.classes?" "+r.classes:"")).attr("style",r.style);let b="";(Ye().flowchart.arrowMarkerAbsolute||Ye().state.arrowMarkerAbsolute)&&(b=Ok(!0)),yMt(y,r,b,s,a);let _={};return l&&(_.updatedPath=o),_.originalPath=r.points,_},"insertEdge"),CMt=E(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"),wMt=E((t,e,r,n)=>{const a=CMt(t),i=2,s=e.height+2*r.padding,o=s/i,l=n??e.width+2*o+r.padding,u=r.padding/2;return a.has("right")&&a.has("left")&&a.has("up")&&a.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}]:a.has("right")&&a.has("left")&&a.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}]:a.has("right")&&a.has("left")&&a.has("down")?[{x:0,y:0},{x:o,y:-s},{x:l-o,y:-s},{x:l,y:0}]:a.has("right")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:l,y:-o},{x:l,y:-s+o},{x:0,y:-s}]:a.has("left")&&a.has("up")&&a.has("down")?[{x:l,y:0},{x:0,y:-o},{x:0,y:-s+o},{x:l,y:-s}]:a.has("right")&&a.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}]:a.has("up")&&a.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}]:a.has("right")&&a.has("up")?[{x:0,y:0},{x:l,y:-o},{x:0,y:-s}]:a.has("right")&&a.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:a.has("left")&&a.has("up")?[{x:l,y:0},{x:0,y:-o},{x:l,y:-s}]:a.has("left")&&a.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:a.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}]:a.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}]:a.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}]:a.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 W8e(t,e){return t.intersect(e)}E(W8e,"intersectNode");var kMt=W8e;function K8e(t,e,r,n){var a=t.x,i=t.y,s=a-n.x,o=i-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x0}E(Uz,"sameSign");var RMt=Q8e,NMt=Z8e;function Z8e(t,e,r){var n=t.x,a=t.y,i=[],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=a-t.height/2-o,d=0;d1&&i.sort(function(g,m){var v=g.x-r.x,y=g.y-r.y,b=Math.sqrt(v*v+y*y),_=m.x-r.x,S=m.y-r.y,x=Math.sqrt(_*_+S*S);return b{var r=t.x,n=t.y,a=e.x-r,i=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(i)*s>Math.abs(a)*o?(i<0&&(o=-o),l=i===0?0:o*a/i,u=o):(a<0&&(s=-s),l=s,u=a===0?0:s*i/a),{x:r+l,y:n+u}},"intersectRect"),OMt=IMt,Sa={node:kMt,circle:AMt,ellipse:X8e,polygon:NMt,rect:OMt},qi=E(async(t,e,r,n)=>{const a=Ye();let i;const s=e.useHtmlLabels||On(a);r?i=r:i="node default";const o=t.insert("g").attr("class",i).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=eo(l,dn(R0(u),a),{useHtmlLabels:s,width:e.width||a.flowchart.wrappingWidth,classes:"markdown-node-label"},a):d=await ec(l,dn(R0(u),a),e.labelStyle,!1,n);let h=d.getBBox();const f=e.padding/2;if(On(a)){const p=d.children[0],g=At(d);await OG(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"),Ua=E((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function Tc(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}E(Tc,"insertPolygonShape");var DMt=E(async(t,e)=>{e.useHtmlLabels||On(Ye())||(e.centerLabel=!0);const{shapeSvg:n,bbox:a,halfPadding:i}=await qi(t,e,"node "+e.classes,!0);oe.info("Classes = ",e.classes);const s=n.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-a.width/2-i).attr("y",-a.height/2-i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),Ua(e,s),e.intersect=function(o){return Sa.rect(e,o)},n},"note"),LMt=DMt,jle=E(t=>t?" "+t:"","formatClass"),il=E((t,e)=>`${e||"node default"}${jle(t.classes)} ${jle(t.class)}`,"getClassesFromNode"),Qle=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=a+i,o=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];oe.info("Question main (Circle)");const l=Tc(r,s,s,o);return l.attr("style",e.style),Ua(e,l),e.intersect=function(u){return oe.warn("Intersect called"),Sa.polygon(e,o,u)},r},"question"),MMt=E((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=28,a=[{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",a.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 Sa.circle(e,14,s)},r},"choice"),PMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=4,i=e.positioned?e.height:n.height+e.padding,s=i/a,o=e.positioned?e.width:n.width+2*s+e.padding,l=[{x:s,y:0},{x:o-s,y:0},{x:o,y:-i/2},{x:o-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],u=Tc(r,o,i,l);return u.attr("style",e.style),Ua(e,u),e.intersect=function(d){return Sa.polygon(e,l,d)},r},"hexagon"),BMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,void 0,!0),a=2,i=n.height+2*e.padding,s=i/a,o=n.width+2*s+e.padding,u=e.positioned&&(e.widthInColumns??1)>1&&e.width>o?e.width:o,d=wMt(e.directions,n,e,u),h=Tc(r,u,i,d);return h.attr("style",e.style),Ua(e,h),e.intersect=function(f){return Sa.polygon(e,d,f)},r},"block_arrow"),FMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:-i/2,y:0},{x:a,y:0},{x:a,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return Tc(r,a,i,s).attr("style",e.style),e.width=a+i,e.height=i,e.intersect=function(l){return Sa.polygon(e,s,l)},r},"rect_left_inv_arrow"),$Mt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:-2*i/6,y:0},{x:a-i/6,y:0},{x:a+2*i/6,y:-i},{x:i/6,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"lean_right"),zMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:2*i/6,y:0},{x:a+i/6,y:0},{x:a-2*i/6,y:-i},{x:-i/6,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"lean_left"),UMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:-2*i/6,y:0},{x:a+2*i/6,y:0},{x:a-i/6,y:-i},{x:i/6,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"trapezoid"),GMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:i/6,y:0},{x:a-i/6,y:0},{x:a+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"inv_trapezoid"),qMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:0,y:0},{x:a+i/2,y:0},{x:a,y:-i/2},{x:a+i/2,y:-i},{x:0,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"rect_right_inv_arrow"),YMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=a/2,s=i/(2.5+a/50),o=n.height+s+e.padding,l="M 0,"+s+" a "+i+","+s+" 0,0,0 "+a+" 0 a "+i+","+s+" 0,0,0 "+-a+" 0 l 0,"+o+" a "+i+","+s+" 0,0,0 "+a+" 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("+-a/2+","+-(o/2+s)+")");return Ua(e,u),e.intersect=function(d){const h=Sa.rect(e,d),f=h.x-e.x;if(i!=0&&(Math.abs(f)e.height/2-s)){let p=s*s*(1-f*f/(i*i));p!=0&&(p=Math.sqrt(p)),p=s-p,d.y-e.y>0&&(p=-p),h.y+=p}return h},r},"cylinder"),HMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:a}=await qi(t,e,"node "+e.classes+" "+e.class,!0),i=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-a,u=e.positioned?-o/2:-n.height/2-a;if(i.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&&(R8(i,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{oe.warn(`Unknown node property ${h}`)})}return Ua(e,i),e.intersect=function(d){return Sa.rect(e,d)},r},"rect"),VMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:a}=await qi(t,e,"node "+e.classes,!0),i=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-a,u=e.positioned?-o/2:-n.height/2-a;if(i.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&&(R8(i,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{oe.warn(`Unknown node property ${h}`)})}return Ua(e,i),e.intersect=function(d){return Sa.rect(e,d)},r},"composite"),WMt=E(async(t,e)=>{const{shapeSvg:r}=await qi(t,e,"label",!0);oe.trace("Classes = ",e.class);const n=r.insert("rect",":first-child"),a=0,i=0;if(n.attr("width",a).attr("height",i),r.attr("class","label edgeLabel"),e.props){const s=new Set(Object.keys(e.props));e.props.borders&&(R8(n,e.props.borders,a,i),s.delete("borders")),s.forEach(o=>{oe.warn(`Unknown node property ${o}`)})}return Ua(e,n),e.intersect=function(s){return Sa.rect(e,s)},r},"labelRect");function R8(t,e,r,n){const a=[],i=E(o=>{a.push(o,0)},"addBorder"),s=E(o=>{a.push(0,o)},"skipBorder");e.includes("t")?(oe.debug("add top border"),i(r)):s(r),e.includes("r")?(oe.debug("add right border"),i(n)):s(n),e.includes("b")?(oe.debug("add bottom border"),i(r)):s(r),e.includes("l")?(oe.debug("add left border"),i(n)):s(n),t.attr("stroke-dasharray",a.join(" "))}E(R8,"applyNodePropertyBorders");var KMt=E(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),a=n.insert("rect",":first-child"),i=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,oe.info("Label text abc79",l,o,typeof o=="object");const u=await ec(s,l,e.labelStyle,!0,!0);let d={width:0,height:0};if(On(Ye())){const m=u.children[0],v=At(u);d=m.getBoundingClientRect(),v.attr("width",d.width),v.attr("height",d.height)}oe.info("Text 2",o);const h=o.slice(1,o.length);let f=u.getBBox();const p=await ec(s,h.join?h.join("
"):h,e.labelStyle,!0,!0);if(On(Ye())){const m=p.children[0],v=At(p);d=m.getBoundingClientRect(),v.attr("width",d.width),v.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 qi(t,e,il(e,void 0),!0),a=n.height+e.padding,i=n.width+a/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",a/2).attr("ry",a/2).attr("x",-i/2).attr("y",-a/2).attr("width",i).attr("height",a);return Ua(e,s),e.intersect=function(o){return Sa.rect(e,o)},r},"stadium"),jMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:a}=await qi(t,e,il(e,void 0),!0),i=r.insert("circle",":first-child");return i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+a).attr("width",n.width+e.padding).attr("height",n.height+e.padding),oe.info("Circle main"),Ua(e,i),e.intersect=function(s){return oe.info("Circle intersect",e,n.width/2+a,s),Sa.circle(e,n.width/2+a,s)},r},"circle"),QMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:a}=await qi(t,e,il(e,void 0),!0),i=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+a+i).attr("width",n.width+e.padding+i*2).attr("height",n.height+e.padding+i*2),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+a).attr("width",n.width+e.padding).attr("height",n.height+e.padding),oe.info("DoubleCircle main"),Ua(e,o),e.intersect=function(u){return oe.info("DoubleCircle intersect",e,n.width/2+a+i,u),Sa.circle(e,n.width/2+a+i,u)},r},"doublecircle"),ZMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:0,y:0},{x:a,y:0},{x:a,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"subroutine"),JMt=E((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),Ua(e,n),e.intersect=function(a){return Sa.circle(e,7,a)},r},"start"),Zle=E((t,e,r)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let a=70,i=10;r==="LR"&&(a=10,i=70);const s=n.append("rect").attr("x",-1*a/2).attr("y",-1*i/2).attr("width",a).attr("height",i).attr("class","fork-join");return Ua(e,s),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(o){return Sa.rect(e,o)},n},"forkJoin"),ePt=E((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child"),a=r.insert("circle",":first-child");return a.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),Ua(e,a),e.intersect=function(i){return Sa.circle(e,7,i)},r},"end"),tPt=E(async(t,e)=>{const r=e.padding/2,n=4,a=8;let i;e.classes?i="node "+e.classes:i="node default";const s=t.insert("g").attr("class",i).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]+"»":"",v=await ec(f,m,e.labelStyle,!0,!0);let y=v.getBBox();if(On(Ye())){const w=v.children[0],R=At(v);y=w.getBoundingClientRect(),R.attr("width",y.width),R.attr("height",y.height)}e.classData.annotations[0]&&(h+=y.height+n,d+=y.width);let b=e.classData.label;e.classData.type!==void 0&&e.classData.type!==""&&(On(Ye())?b+="<"+e.classData.type+">":b+="<"+e.classData.type+">");const _=await ec(f,b,e.labelStyle,!0,!0);At(_).attr("class","classTitle");let S=_.getBBox();if(On(Ye())){const w=_.children[0],R=At(_);S=w.getBoundingClientRect(),R.attr("width",S.width),R.attr("height",S.height)}h+=S.height+n,S.width>d&&(d=S.width);const x=[];e.classData.members.forEach(async w=>{const R=w.getDisplayDetails();let O=R.displayText;On(Ye())&&(O=O.replace(//g,">"));const M=await ec(f,O,R.cssStyle?R.cssStyle:e.labelStyle,!0,!0);let $=M.getBBox();if(On(Ye())){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+=a;const C=[];if(e.classData.methods.forEach(async w=>{const R=w.getDisplayDetails();let O=R.displayText;On(Ye())&&(O=O.replace(//g,">"));const M=await ec(f,O,R.cssStyle?R.cssStyle:e.labelStyle,!0,!0);let $=M.getBBox();if(On(Ye())){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+=a,g){let w=(d-y.width)/2;At(v).attr("transform","translate( "+(-1*d/2+w)+", "+-1*h/2+")"),p=y.height+n}let T=(d-S.width)/2;return At(_).attr("transform","translate( "+(-1*d/2+T)+", "+(-1*h/2+p)+")"),p+=S.height+n,l.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+a+p).attr("y2",-h/2-r+a+p),p+=a,x.forEach(w=>{At(w).attr("transform","translate( "+-d/2+", "+(-1*h/2+p+a/2)+")");const R=w?.getBBox();p+=(R?.height??0)+n}),p+=a,u.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+a+p).attr("y2",-h/2-r+a+p),p+=a,C.forEach(w=>{At(w).attr("transform","translate( "+-d/2+", "+(-1*h/2+p)+")");const R=w?.getBBox();p+=(R?.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),Ua(e,o),e.intersect=function(w){return Sa.rect(e,w)},s},"class_box"),Jle={rhombus:Qle,composite:VMt,question:Qle,rect:HMt,labelRect:WMt,rectWithTitle:KMt,choice:MMt,circle:jMt,doublecircle:QMt,stadium:XMt,hexagon:PMt,block_arrow:BMt,rect_left_inv_arrow:FMt,lean_right:$Mt,lean_left:zMt,trapezoid:UMt,inv_trapezoid:GMt,rect_right_inv_arrow:qMt,cylinder:YMt,start:JMt,end:ePt,note:LMt,subroutine:ZMt,fork:Zle,join:Zle,class_box:tPt},pC={},J8e=E(async(t,e,r)=>{let n,a;if(e.link){let i;Ye().securityLevel==="sandbox"?i="_top":e.linkTarget&&(i=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",i),a=await Jle[e.shape](n,e,r)}else a=await Jle[e.shape](t,e,r),n=a;return e.tooltip&&a.attr("title",e.tooltip),e.class&&a.attr("class","node default "+e.class),pC[e.id]=n,e.haveCallback&&pC[e.id].attr("class",pC[e.id].attr("class")+" clickable"),n},"insertNode"),rPt=E(t=>{const e=pC[t.id];oe.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 sK(t,e,r=!1){const n=t;let a="default";(n?.classes?.length||0)>0&&(a=(n?.classes??[]).join(" ")),a=a+" flowchart-label";let i=0,s="",o;switch(n.type){case"round":i=5,s="rect";break;case"composite":i=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=NG(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:i,ry:i,class:a,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}}E(sK,"getNodeFromBlock");async function eRe(t,e,r){const n=sK(e,r,!1);if(n.type==="group")return;const a=xr(),i=await J8e(t,n,{config:a}),s=i.node().getBBox(),o=r.getBlock(n.id);o.size={width:s.width,height:s.height,x:0,y:0,node:i},r.setBlock(o),i.remove()}E(eRe,"calculateBlockSize");async function tRe(t,e,r){const n=sK(e,r,!0);if(r.getBlock(n.id).type!=="space"){const i=xr();await J8e(t,n,{config:i}),e.intersect=n?.intersect,rPt(n)}}E(tRe,"insertBlockPositioned");async function N8(t,e,r,n){for(const a of e)await n(t,a,r),a.children&&await N8(t,a.children,r,n)}E(N8,"performOperations");async function rRe(t,e,r){await N8(t,e,r,eRe)}E(rRe,"calculateBlockSizes");async function nRe(t,e,r){await N8(t,e,r,tRe)}E(nRe,"insertBlocks");async function aRe(t,e,r,n,a){const i=new ko({multigraph:!0,compound:!0});i.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const s of r)s.size&&i.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=a?`${a}-${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`;xMt(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",i,a),s.label&&(await bMt(t,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:h,classes:m}),EMt({...s,x:h[1].x,y:h[1].y},{originalPath:h}))}}}E(aRe,"insertEdges");var nPt=E(function(t,e){return e.db.getClasses()},"getClasses"),aPt=E(async function(t,e,r,n){const{securityLevel:a,block:i}=xr(),s=n.db;s.setDiagramId(e);let o;a==="sandbox"&&(o=At("#i"+e));const l=At(a==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=a==="sandbox"?l.select(`[id="${e}"]`):At(`[id="${e}"]`);gMt(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 rRe(g,h,s);const m=V8e(s);if(await nRe(g,h,s),await aRe(g,p,f,s,e),m){const v=m,y=Math.max(1,Math.round(.125*(v.width/v.height))),b=v.height+y+10,_=v.width+10,{useMaxWidth:S}=i;di(u,b,_,!!S),oe.debug("Here Bounds",m,v),u.attr("viewBox",`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}},"draw"),iPt={draw:aPt,getClasses:nPt},sPt={parser:LLt,db:tMt,renderer:iPt,styles:nMt};const oPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:sPt},Symbol.toStringTag,{value:"Module"}));var $c=new PY(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),lPt=E(()=>{$c.reset(),oa()},"clear"),cPt=E(()=>$c.records.stack[0],"getRoot"),uPt=E(()=>$c.records.cnt,"getCount"),dPt=ln.treeView,hPt=E(()=>$a(dPt,xr().treeView),"getConfig"),fPt=E((t,e)=>{for(;t<=$c.records.stack[$c.records.stack.length-1].level;)$c.records.stack.pop();const r={id:$c.records.cnt++,level:t,name:e,children:[]};$c.records.stack[$c.records.stack.length-1].children.push(r),$c.records.stack.push(r)},"addNode"),pPt={clear:lPt,addNode:fPt,getRoot:cPt,getCount:uPt,getConfig:hPt,getAccTitle:va,getAccDescription:_a,getDiagramTitle:la,setAccDescription:ya,setAccTitle:sa,setDiagramTitle:pa},Gz=pPt,gPt=E(t=>{Nu(t,Gz),t.nodes.map(e=>Gz.addNode(e.indent?parseInt(e.indent):0,e.name))},"populate"),mPt={parse:E(async t=>{const e=await Sc("treeView",t);oe.debug(e),gPt(e)},"parse")},vPt=E((t,e,r,n,a)=>{const i=n.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:s,width:o}=i.node().getBBox(),l=s+a.paddingY*2,u=o+a.paddingX*2;i.attr("x",t+a.paddingX),i.attr("y",e+l/2),r.BBox={x:t,y:e,width:u,height:l}},"positionLabel"),ece=E((t,e,r,n,a,i)=>t.append("line").attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",a).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),yPt=E((t,e,r)=>{let n=0,a=0;const i=E((o,l,u,d)=>{const h=d*(u.rowIndent+u.paddingX);vPt(h,n,l,o,u);const{height:f,width:p}=l.BBox;ece(o,h-u.rowIndent,n+f/2,h,n+f/2,u.lineThickness),a=Math.max(a,h+p),n+=f},"drawNode"),s=E((o,l=0)=>{i(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;ece(t,u+r.paddingX,d+h,u+r.paddingX,f+p/2+r.lineThickness/2,r.lineThickness)}},"processNode");return s(e),{totalHeight:n,totalWidth:a}},"drawTree"),_Pt=E((t,e,r,n)=>{oe.debug(`Rendering treeView diagram -`+t);const a=n.db,i=a.getRoot(),s=a.getConfig(),o=wo(e),l=o.append("g");l.attr("class","tree-view");const{totalHeight:u,totalWidth:d}=yPt(l,i,s);o.attr("viewBox",`-${s.lineThickness/2} 0 ${d} ${u}`),di(o,u,d,s.useMaxWidth)},"draw"),bPt={draw:_Pt},EPt=bPt,SPt={labelFontSize:"16px",labelColor:"black",lineColor:"black"},TPt=E(({treeView:t})=>{const{labelFontSize:e,labelColor:r,lineColor:n}=$a(SPt,t);return` + node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,a=t.y,i=Math.abs(n-r.x),s=t.width/2;let o=r.xMath.abs(n-e.x)*l){let h=r.y{oe.debug("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],a=!1;return t.forEach(i=>{if(!TMt(e,i)&&!a){const s=xMt(e,n,i);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),a=!0}else n=i,a||r.push(i)}),r},"cutPathAtIntersect"),CMt=E(function(t,e,r,n,a,i,s){let o=r.points;oe.debug("abc88 InsertEdge: edge=",r,"e=",e);let l=!1;const u=i.node(e.v);var d=i.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&&(oe.debug("to cluster abc88",n[r.toCluster]),o=Xle(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(oe.debug("from cluster abc88",n[r.fromCluster]),o=Xle(o.reverse(),n[r.fromCluster].node).reverse(),l=!0);const h=o.filter(S=>!Number.isNaN(S.y));let f=JS;r.curve&&(a==="graph"||a==="flowchart")&&(f=r.curve);const{x:p,y:g}=spe(r),m=ZS().x(p).y(g).curve(f);let v;switch(r.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-thick";break;default:v=""}switch(r.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break}const y=t.append("path").attr("d",m(h)).attr("id",r.id).attr("class"," "+v+(r.classes?" "+r.classes:"")).attr("style",r.style);let b="";(Ye().flowchart.arrowMarkerAbsolute||Ye().state.arrowMarkerAbsolute)&&(b=Ok(!0)),_Mt(y,r,b,s,a);let _={};return l&&(_.updatedPath=o),_.originalPath=r.points,_},"insertEdge"),wMt=E(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"),kMt=E((t,e,r,n)=>{const a=wMt(t),i=2,s=e.height+2*r.padding,o=s/i,l=n??e.width+2*o+r.padding,u=r.padding/2;return a.has("right")&&a.has("left")&&a.has("up")&&a.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}]:a.has("right")&&a.has("left")&&a.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}]:a.has("right")&&a.has("left")&&a.has("down")?[{x:0,y:0},{x:o,y:-s},{x:l-o,y:-s},{x:l,y:0}]:a.has("right")&&a.has("up")&&a.has("down")?[{x:0,y:0},{x:l,y:-o},{x:l,y:-s+o},{x:0,y:-s}]:a.has("left")&&a.has("up")&&a.has("down")?[{x:l,y:0},{x:0,y:-o},{x:0,y:-s+o},{x:l,y:-s}]:a.has("right")&&a.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}]:a.has("up")&&a.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}]:a.has("right")&&a.has("up")?[{x:0,y:0},{x:l,y:-o},{x:0,y:-s}]:a.has("right")&&a.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:a.has("left")&&a.has("up")?[{x:l,y:0},{x:0,y:-o},{x:l,y:-s}]:a.has("left")&&a.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:a.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}]:a.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}]:a.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}]:a.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 W8e(t,e){return t.intersect(e)}E(W8e,"intersectNode");var AMt=W8e;function K8e(t,e,r,n){var a=t.x,i=t.y,s=a-n.x,o=i-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),u=Math.abs(e*r*s/l);n.x0}E(Uz,"sameSign");var NMt=Q8e,IMt=Z8e;function Z8e(t,e,r){var n=t.x,a=t.y,i=[],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=a-t.height/2-o,d=0;d1&&i.sort(function(g,m){var v=g.x-r.x,y=g.y-r.y,b=Math.sqrt(v*v+y*y),_=m.x-r.x,S=m.y-r.y,x=Math.sqrt(_*_+S*S);return b{var r=t.x,n=t.y,a=e.x-r,i=e.y-n,s=t.width/2,o=t.height/2,l,u;return Math.abs(i)*s>Math.abs(a)*o?(i<0&&(o=-o),l=i===0?0:o*a/i,u=o):(a<0&&(s=-s),l=s,u=a===0?0:s*i/a),{x:r+l,y:n+u}},"intersectRect"),DMt=OMt,Sa={node:AMt,circle:RMt,ellipse:X8e,polygon:IMt,rect:DMt},qi=E(async(t,e,r,n)=>{const a=Ye();let i;const s=e.useHtmlLabels||On(a);r?i=r:i="node default";const o=t.insert("g").attr("class",i).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=eo(l,dn(R0(u),a),{useHtmlLabels:s,width:e.width||a.flowchart.wrappingWidth,classes:"markdown-node-label"},a):d=await ec(l,dn(R0(u),a),e.labelStyle,!1,n);let h=d.getBBox();const f=e.padding/2;if(On(a)){const p=d.children[0],g=At(d);await OG(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"),Ua=E((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function Tc(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}E(Tc,"insertPolygonShape");var LMt=E(async(t,e)=>{e.useHtmlLabels||On(Ye())||(e.centerLabel=!0);const{shapeSvg:n,bbox:a,halfPadding:i}=await qi(t,e,"node "+e.classes,!0);oe.info("Classes = ",e.classes);const s=n.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-a.width/2-i).attr("y",-a.height/2-i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),Ua(e,s),e.intersect=function(o){return Sa.rect(e,o)},n},"note"),MMt=LMt,jle=E(t=>t?" "+t:"","formatClass"),il=E((t,e)=>`${e||"node default"}${jle(t.classes)} ${jle(t.class)}`,"getClassesFromNode"),Qle=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=a+i,o=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];oe.info("Question main (Circle)");const l=Tc(r,s,s,o);return l.attr("style",e.style),Ua(e,l),e.intersect=function(u){return oe.warn("Intersect called"),Sa.polygon(e,o,u)},r},"question"),PMt=E((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=28,a=[{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",a.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 Sa.circle(e,14,s)},r},"choice"),BMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=4,i=e.positioned?e.height:n.height+e.padding,s=i/a,o=e.positioned?e.width:n.width+2*s+e.padding,l=[{x:s,y:0},{x:o-s,y:0},{x:o,y:-i/2},{x:o-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],u=Tc(r,o,i,l);return u.attr("style",e.style),Ua(e,u),e.intersect=function(d){return Sa.polygon(e,l,d)},r},"hexagon"),FMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,void 0,!0),a=2,i=n.height+2*e.padding,s=i/a,o=n.width+2*s+e.padding,u=e.positioned&&(e.widthInColumns??1)>1&&e.width>o?e.width:o,d=kMt(e.directions,n,e,u),h=Tc(r,u,i,d);return h.attr("style",e.style),Ua(e,h),e.intersect=function(f){return Sa.polygon(e,d,f)},r},"block_arrow"),$Mt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:-i/2,y:0},{x:a,y:0},{x:a,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return Tc(r,a,i,s).attr("style",e.style),e.width=a+i,e.height=i,e.intersect=function(l){return Sa.polygon(e,s,l)},r},"rect_left_inv_arrow"),zMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:-2*i/6,y:0},{x:a-i/6,y:0},{x:a+2*i/6,y:-i},{x:i/6,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"lean_right"),UMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:2*i/6,y:0},{x:a+i/6,y:0},{x:a-2*i/6,y:-i},{x:-i/6,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"lean_left"),GMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:-2*i/6,y:0},{x:a+2*i/6,y:0},{x:a-i/6,y:-i},{x:i/6,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"trapezoid"),qMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:i/6,y:0},{x:a-i/6,y:0},{x:a+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"inv_trapezoid"),YMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:0,y:0},{x:a+i/2,y:0},{x:a,y:-i/2},{x:a+i/2,y:-i},{x:0,y:-i}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"rect_right_inv_arrow"),HMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=a/2,s=i/(2.5+a/50),o=n.height+s+e.padding,l="M 0,"+s+" a "+i+","+s+" 0,0,0 "+a+" 0 a "+i+","+s+" 0,0,0 "+-a+" 0 l 0,"+o+" a "+i+","+s+" 0,0,0 "+a+" 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("+-a/2+","+-(o/2+s)+")");return Ua(e,u),e.intersect=function(d){const h=Sa.rect(e,d),f=h.x-e.x;if(i!=0&&(Math.abs(f)e.height/2-s)){let p=s*s*(1-f*f/(i*i));p!=0&&(p=Math.sqrt(p)),p=s-p,d.y-e.y>0&&(p=-p),h.y+=p}return h},r},"cylinder"),VMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:a}=await qi(t,e,"node "+e.classes+" "+e.class,!0),i=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-a,u=e.positioned?-o/2:-n.height/2-a;if(i.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&&(R8(i,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{oe.warn(`Unknown node property ${h}`)})}return Ua(e,i),e.intersect=function(d){return Sa.rect(e,d)},r},"rect"),WMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:a}=await qi(t,e,"node "+e.classes,!0),i=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-a,u=e.positioned?-o/2:-n.height/2-a;if(i.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&&(R8(i,e.props.borders,s,o),d.delete("borders")),d.forEach(h=>{oe.warn(`Unknown node property ${h}`)})}return Ua(e,i),e.intersect=function(d){return Sa.rect(e,d)},r},"composite"),KMt=E(async(t,e)=>{const{shapeSvg:r}=await qi(t,e,"label",!0);oe.trace("Classes = ",e.class);const n=r.insert("rect",":first-child"),a=0,i=0;if(n.attr("width",a).attr("height",i),r.attr("class","label edgeLabel"),e.props){const s=new Set(Object.keys(e.props));e.props.borders&&(R8(n,e.props.borders,a,i),s.delete("borders")),s.forEach(o=>{oe.warn(`Unknown node property ${o}`)})}return Ua(e,n),e.intersect=function(s){return Sa.rect(e,s)},r},"labelRect");function R8(t,e,r,n){const a=[],i=E(o=>{a.push(o,0)},"addBorder"),s=E(o=>{a.push(0,o)},"skipBorder");e.includes("t")?(oe.debug("add top border"),i(r)):s(r),e.includes("r")?(oe.debug("add right border"),i(n)):s(n),e.includes("b")?(oe.debug("add bottom border"),i(r)):s(r),e.includes("l")?(oe.debug("add left border"),i(n)):s(n),t.attr("stroke-dasharray",a.join(" "))}E(R8,"applyNodePropertyBorders");var XMt=E(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),a=n.insert("rect",":first-child"),i=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,oe.info("Label text abc79",l,o,typeof o=="object");const u=await ec(s,l,e.labelStyle,!0,!0);let d={width:0,height:0};if(On(Ye())){const m=u.children[0],v=At(u);d=m.getBoundingClientRect(),v.attr("width",d.width),v.attr("height",d.height)}oe.info("Text 2",o);const h=o.slice(1,o.length);let f=u.getBBox();const p=await ec(s,h.join?h.join("
"):h,e.labelStyle,!0,!0);if(On(Ye())){const m=p.children[0],v=At(p);d=m.getBoundingClientRect(),v.attr("width",d.width),v.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 qi(t,e,il(e,void 0),!0),a=n.height+e.padding,i=n.width+a/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",a/2).attr("ry",a/2).attr("x",-i/2).attr("y",-a/2).attr("width",i).attr("height",a);return Ua(e,s),e.intersect=function(o){return Sa.rect(e,o)},r},"stadium"),QMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:a}=await qi(t,e,il(e,void 0),!0),i=r.insert("circle",":first-child");return i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+a).attr("width",n.width+e.padding).attr("height",n.height+e.padding),oe.info("Circle main"),Ua(e,i),e.intersect=function(s){return oe.info("Circle intersect",e,n.width/2+a,s),Sa.circle(e,n.width/2+a,s)},r},"circle"),ZMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n,halfPadding:a}=await qi(t,e,il(e,void 0),!0),i=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+a+i).attr("width",n.width+e.padding+i*2).attr("height",n.height+e.padding+i*2),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+a).attr("width",n.width+e.padding).attr("height",n.height+e.padding),oe.info("DoubleCircle main"),Ua(e,o),e.intersect=function(u){return oe.info("DoubleCircle intersect",e,n.width/2+a+i,u),Sa.circle(e,n.width/2+a+i,u)},r},"doublecircle"),JMt=E(async(t,e)=>{const{shapeSvg:r,bbox:n}=await qi(t,e,il(e,void 0),!0),a=n.width+e.padding,i=n.height+e.padding,s=[{x:0,y:0},{x:a,y:0},{x:a,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=Tc(r,a,i,s);return o.attr("style",e.style),Ua(e,o),e.intersect=function(l){return Sa.polygon(e,s,l)},r},"subroutine"),ePt=E((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),Ua(e,n),e.intersect=function(a){return Sa.circle(e,7,a)},r},"start"),Zle=E((t,e,r)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let a=70,i=10;r==="LR"&&(a=10,i=70);const s=n.append("rect").attr("x",-1*a/2).attr("y",-1*i/2).attr("width",a).attr("height",i).attr("class","fork-join");return Ua(e,s),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(o){return Sa.rect(e,o)},n},"forkJoin"),tPt=E((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child"),a=r.insert("circle",":first-child");return a.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),Ua(e,a),e.intersect=function(i){return Sa.circle(e,7,i)},r},"end"),rPt=E(async(t,e)=>{const r=e.padding/2,n=4,a=8;let i;e.classes?i="node "+e.classes:i="node default";const s=t.insert("g").attr("class",i).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]+"»":"",v=await ec(f,m,e.labelStyle,!0,!0);let y=v.getBBox();if(On(Ye())){const w=v.children[0],R=At(v);y=w.getBoundingClientRect(),R.attr("width",y.width),R.attr("height",y.height)}e.classData.annotations[0]&&(h+=y.height+n,d+=y.width);let b=e.classData.label;e.classData.type!==void 0&&e.classData.type!==""&&(On(Ye())?b+="<"+e.classData.type+">":b+="<"+e.classData.type+">");const _=await ec(f,b,e.labelStyle,!0,!0);At(_).attr("class","classTitle");let S=_.getBBox();if(On(Ye())){const w=_.children[0],R=At(_);S=w.getBoundingClientRect(),R.attr("width",S.width),R.attr("height",S.height)}h+=S.height+n,S.width>d&&(d=S.width);const x=[];e.classData.members.forEach(async w=>{const R=w.getDisplayDetails();let O=R.displayText;On(Ye())&&(O=O.replace(//g,">"));const M=await ec(f,O,R.cssStyle?R.cssStyle:e.labelStyle,!0,!0);let $=M.getBBox();if(On(Ye())){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+=a;const C=[];if(e.classData.methods.forEach(async w=>{const R=w.getDisplayDetails();let O=R.displayText;On(Ye())&&(O=O.replace(//g,">"));const M=await ec(f,O,R.cssStyle?R.cssStyle:e.labelStyle,!0,!0);let $=M.getBBox();if(On(Ye())){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+=a,g){let w=(d-y.width)/2;At(v).attr("transform","translate( "+(-1*d/2+w)+", "+-1*h/2+")"),p=y.height+n}let T=(d-S.width)/2;return At(_).attr("transform","translate( "+(-1*d/2+T)+", "+(-1*h/2+p)+")"),p+=S.height+n,l.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+a+p).attr("y2",-h/2-r+a+p),p+=a,x.forEach(w=>{At(w).attr("transform","translate( "+-d/2+", "+(-1*h/2+p+a/2)+")");const R=w?.getBBox();p+=(R?.height??0)+n}),p+=a,u.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-h/2-r+a+p).attr("y2",-h/2-r+a+p),p+=a,C.forEach(w=>{At(w).attr("transform","translate( "+-d/2+", "+(-1*h/2+p)+")");const R=w?.getBBox();p+=(R?.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),Ua(e,o),e.intersect=function(w){return Sa.rect(e,w)},s},"class_box"),Jle={rhombus:Qle,composite:WMt,question:Qle,rect:VMt,labelRect:KMt,rectWithTitle:XMt,choice:PMt,circle:QMt,doublecircle:ZMt,stadium:jMt,hexagon:BMt,block_arrow:FMt,rect_left_inv_arrow:$Mt,lean_right:zMt,lean_left:UMt,trapezoid:GMt,inv_trapezoid:qMt,rect_right_inv_arrow:YMt,cylinder:HMt,start:ePt,end:tPt,note:MMt,subroutine:JMt,fork:Zle,join:Zle,class_box:rPt},pC={},J8e=E(async(t,e,r)=>{let n,a;if(e.link){let i;Ye().securityLevel==="sandbox"?i="_top":e.linkTarget&&(i=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",i),a=await Jle[e.shape](n,e,r)}else a=await Jle[e.shape](t,e,r),n=a;return e.tooltip&&a.attr("title",e.tooltip),e.class&&a.attr("class","node default "+e.class),pC[e.id]=n,e.haveCallback&&pC[e.id].attr("class",pC[e.id].attr("class")+" clickable"),n},"insertNode"),nPt=E(t=>{const e=pC[t.id];oe.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 sK(t,e,r=!1){const n=t;let a="default";(n?.classes?.length||0)>0&&(a=(n?.classes??[]).join(" ")),a=a+" flowchart-label";let i=0,s="",o;switch(n.type){case"round":i=5,s="rect";break;case"composite":i=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=NG(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:i,ry:i,class:a,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}}E(sK,"getNodeFromBlock");async function eRe(t,e,r){const n=sK(e,r,!1);if(n.type==="group")return;const a=xr(),i=await J8e(t,n,{config:a}),s=i.node().getBBox(),o=r.getBlock(n.id);o.size={width:s.width,height:s.height,x:0,y:0,node:i},r.setBlock(o),i.remove()}E(eRe,"calculateBlockSize");async function tRe(t,e,r){const n=sK(e,r,!0);if(r.getBlock(n.id).type!=="space"){const i=xr();await J8e(t,n,{config:i}),e.intersect=n?.intersect,nPt(n)}}E(tRe,"insertBlockPositioned");async function N8(t,e,r,n){for(const a of e)await n(t,a,r),a.children&&await N8(t,a.children,r,n)}E(N8,"performOperations");async function rRe(t,e,r){await N8(t,e,r,eRe)}E(rRe,"calculateBlockSizes");async function nRe(t,e,r){await N8(t,e,r,tRe)}E(nRe,"insertBlocks");async function aRe(t,e,r,n,a){const i=new ko({multigraph:!0,compound:!0});i.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const s of r)s.size&&i.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=a?`${a}-${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`;CMt(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",i,a),s.label&&(await EMt(t,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:h,classes:m}),SMt({...s,x:h[1].x,y:h[1].y},{originalPath:h}))}}}E(aRe,"insertEdges");var aPt=E(function(t,e){return e.db.getClasses()},"getClasses"),iPt=E(async function(t,e,r,n){const{securityLevel:a,block:i}=xr(),s=n.db;s.setDiagramId(e);let o;a==="sandbox"&&(o=At("#i"+e));const l=At(a==="sandbox"?o.nodes()[0].contentDocument.body:"body"),u=a==="sandbox"?l.select(`[id="${e}"]`):At(`[id="${e}"]`);mMt(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 rRe(g,h,s);const m=V8e(s);if(await nRe(g,h,s),await aRe(g,p,f,s,e),m){const v=m,y=Math.max(1,Math.round(.125*(v.width/v.height))),b=v.height+y+10,_=v.width+10,{useMaxWidth:S}=i;di(u,b,_,!!S),oe.debug("Here Bounds",m,v),u.attr("viewBox",`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}},"draw"),sPt={draw:iPt,getClasses:aPt},oPt={parser:MLt,db:rMt,renderer:sPt,styles:aMt};const lPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:oPt},Symbol.toStringTag,{value:"Module"}));var $c=new PY(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),cPt=E(()=>{$c.reset(),oa()},"clear"),uPt=E(()=>$c.records.stack[0],"getRoot"),dPt=E(()=>$c.records.cnt,"getCount"),hPt=ln.treeView,fPt=E(()=>$a(hPt,xr().treeView),"getConfig"),pPt=E((t,e)=>{for(;t<=$c.records.stack[$c.records.stack.length-1].level;)$c.records.stack.pop();const r={id:$c.records.cnt++,level:t,name:e,children:[]};$c.records.stack[$c.records.stack.length-1].children.push(r),$c.records.stack.push(r)},"addNode"),gPt={clear:cPt,addNode:pPt,getRoot:uPt,getCount:dPt,getConfig:fPt,getAccTitle:va,getAccDescription:_a,getDiagramTitle:la,setAccDescription:ya,setAccTitle:sa,setDiagramTitle:pa},Gz=gPt,mPt=E(t=>{Nu(t,Gz),t.nodes.map(e=>Gz.addNode(e.indent?parseInt(e.indent):0,e.name))},"populate"),vPt={parse:E(async t=>{const e=await Sc("treeView",t);oe.debug(e),mPt(e)},"parse")},yPt=E((t,e,r,n,a)=>{const i=n.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:s,width:o}=i.node().getBBox(),l=s+a.paddingY*2,u=o+a.paddingX*2;i.attr("x",t+a.paddingX),i.attr("y",e+l/2),r.BBox={x:t,y:e,width:u,height:l}},"positionLabel"),ece=E((t,e,r,n,a,i)=>t.append("line").attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",a).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),_Pt=E((t,e,r)=>{let n=0,a=0;const i=E((o,l,u,d)=>{const h=d*(u.rowIndent+u.paddingX);yPt(h,n,l,o,u);const{height:f,width:p}=l.BBox;ece(o,h-u.rowIndent,n+f/2,h,n+f/2,u.lineThickness),a=Math.max(a,h+p),n+=f},"drawNode"),s=E((o,l=0)=>{i(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;ece(t,u+r.paddingX,d+h,u+r.paddingX,f+p/2+r.lineThickness/2,r.lineThickness)}},"processNode");return s(e),{totalHeight:n,totalWidth:a}},"drawTree"),bPt=E((t,e,r,n)=>{oe.debug(`Rendering treeView diagram +`+t);const a=n.db,i=a.getRoot(),s=a.getConfig(),o=wo(e),l=o.append("g");l.attr("class","tree-view");const{totalHeight:u,totalWidth:d}=_Pt(l,i,s);o.attr("viewBox",`-${s.lineThickness/2} 0 ${d} ${u}`),di(o,u,d,s.useMaxWidth)},"draw"),EPt={draw:bPt},SPt=EPt,TPt={labelFontSize:"16px",labelColor:"black",lineColor:"black"},xPt=E(({treeView:t})=>{const{labelFontSize:e,labelColor:r,lineColor:n}=$a(TPt,t);return` .treeView-node-label { font-size: ${e}; fill: ${r}; @@ -7189,7 +7194,7 @@ Expecting `+re.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ge="Parse error .treeView-node-line { stroke: ${n}; } - `},"styles"),xPt=TPt,CPt={db:Gz,renderer:EPt,parser:mPt,styles:xPt};const wPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:CPt},Symbol.toStringTag,{value:"Module"}));var gC={exports:{}},mC={exports:{}},vC={exports:{}},kPt=vC.exports,tce;function APt(){return tce||(tce=1,(function(t,e){(function(n,a){t.exports=a()})(kPt,function(){return(function(r){var n={};function a(i){if(n[i])return n[i].exports;var s=n[i]={i,l:!1,exports:{}};return r[i].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=n,a.i=function(i){return i},a.d=function(i,s,o){a.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:o})},a.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(s,"a",s),s},a.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},a.p="",a(a.s=28)})([(function(r,n,a){function i(){}i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,r.exports=i}),(function(r,n,a){var i=a(2),s=a(8),o=a(9);function l(d,h,f){i.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=d,this.target=h}l.prototype=Object.create(i.prototype);for(var u in i)l[u]=i[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,a){function i(s){this.vGraphObject=s}r.exports=i}),(function(r,n,a){var i=a(2),s=a(10),o=a(13),l=a(0),u=a(16),d=a(5);function h(p,g,m,v){m==null&&v==null&&(v=g),i.call(this,v),p.graphManager!=null&&(p=p.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=v,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(i.prototype);for(var f in i)h[f]=i[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(v){if(v.target==p){if(v.source!=m)throw"Incorrect edge source!";g.push(v)}}),g},h.prototype.getEdgesBetween=function(p){var g=[],m=this;return m.edges.forEach(function(v){if(!(v.source==m||v.target==m))throw"Incorrect edge source and/or target";(v.target==p||v.source==p)&&g.push(v)}),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 v=this.child.getNodes(),y=0;yg?(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 v=new d(g,m),y=p.inverseTransformPoint(v);this.setLocation(y.x,y.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,a){var i=a(0);function s(){}for(var o in i)s[o]=i[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,a){function i(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(s){this.x=s},i.prototype.setY=function(s){this.y=s},i.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=i}),(function(r,n,a){var i=a(2),s=a(10),o=a(0),l=a(7),u=a(3),d=a(1),h=a(13),f=a(12),p=a(11);function g(v,y,b){i.call(this,b),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=v,y!=null&&y instanceof l?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}g.prototype=Object.create(i.prototype);for(var m in i)g[m]=i[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(v,y,b){if(y==null&&b==null){var _=v;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 S=v;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(b)>-1))throw"Source or target not in graph!";if(!(y.owner==b.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=b.owner?null:(S.source=y,S.target=b,S.isInterGraph=!1,this.getEdges().push(S),y.edges.push(S),b!=y&&b.edges.push(S),S)}},g.prototype.remove=function(v){var y=v;if(v instanceof u){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var b=y.edges.slice(),_,S=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 v=s.MAX_VALUE,y=s.MAX_VALUE,b,_,S,x=this.getNodes(),C=x.length,T=0;Tb&&(v=b),y>_&&(y=_)}return v==s.MAX_VALUE?null:(x[0].getParent().paddingLeft!=null?S=x[0].getParent().paddingLeft:S=this.margin,this.left=y-S,this.top=v-S,new f(this.left,this.top))},g.prototype.updateBounds=function(v){for(var y=s.MAX_VALUE,b=-s.MAX_VALUE,_=s.MAX_VALUE,S=-s.MAX_VALUE,x,C,T,w,R,O=this.nodes,M=O.length,$=0;$x&&(y=x),bT&&(_=T),Sx&&(y=x),bT&&(_=T),S=this.nodes.length){var M=0;b.forEach(function($){$.owner==v&&M++}),M==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,a){var i,s=a(1);function o(l){i=a(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 i){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]=y,u[1]=b,A=!0):(u[0]=v,u[1]=m,A=!0):D===N&&(d>f?(u[0]=g,u[1]=m,A=!0):(u[0]=_,u[1]=b,A=!0)),-L===N?f>d?(u[2]=R,u[3]=O,I=!0):(u[2]=w,u[3]=T,I=!0):L===N&&(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,N,4),z=this.getCardinalDirection(L,N,2)):(P=this.getCardinalDirection(-D,N,3),z=this.getCardinalDirection(-L,N,1)):h>p?(P=this.getCardinalDirection(-D,N,1),z=this.getCardinalDirection(-L,N,3)):(P=this.getCardinalDirection(D,N,2),z=this.getCardinalDirection(L,N,4)),!A)switch(P){case 1:U=m,B=d+-x/N,u[0]=B,u[1]=U;break;case 2:B=_,U=h+S*N,u[0]=B,u[1]=U;break;case 3:U=b,B=d+x/N,u[0]=B,u[1]=U;break;case 4:B=y,U=h+-S*N,u[0]=B,u[1]=U;break}if(!I)switch(z){case 1:K=T,G=f+-F/N,u[2]=G,u[3]=K;break;case 2:G=M,K=p+$*N,u[2]=G,u[3]=K;break;case 3:K=O,G=f+F/N,u[2]=G,u[3]=K;break;case 4:G=R,K=p+-$*N,u[2]=G,u[3]=K;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,v=u.y,y=d.x,b=d.y,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,w=void 0,R=void 0,O=void 0,M=void 0;return x=g-f,T=h-p,R=p*f-h*g,C=b-v,w=m-y,O=y*v-m*b,M=x*w-C*T,M===0?null:(_=(T*O-w*R)/M,S=(C*R-x*O)/M,new i(_,S))},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*v))/(2*g),_=(-m-Math.sqrt(m*m-4*g*v))/(2*g),S=null;return b>=0&&b<=1?[b]:_>=0&&_<=1?[_]:S}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,a){function i(){}i.sign=function(s){return s>0?1:s<0?-1:0},i.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},i.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=i}),(function(r,n,a){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,r.exports=i}),(function(r,n,a){var i=(function(){function h(f,p){for(var g=0;g"u"?"undefined":i(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,a){function i(m){if(Array.isArray(m)){for(var v=0,y=Array(m.length);v0&&v;){for(x.push(T[0]);x.length>0&&v;){var w=x[0];x.splice(0,1),S.add(w);for(var R=w.getEdges(),_=0;_-1&&T.splice(F,1)}S=new Set,C=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var v=[],y=m.source,b=this.graphManager.calcLowestCommonAncestor(m.source,m.target),_=0;_0){for(var b=this.edgeToDummyNodes.get(y),_=0;_=0&&v.splice(O,1);var M=C.getNeighborsList();M.forEach(function(A){if(y.indexOf(A)<0){var I=b.get(A),D=I-1;D==1&&w.push(A),b.set(A,D)}})}y=y.concat(w),(v.length==1||v.length==2)&&(_=!0,S=v[0])}return S},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,a){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},r.exports=i}),(function(r,n,a){var i=a(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 i(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,a){function i(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,v,y,b,_=this.getAllNodes(),S;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),S=new Set,m=0;m<_.length;m++)y=_[m],this.calculateRepulsionForceOfANode(y,S,p,g),S.add(y);else for(m=0;m<_.length;m++)for(y=_[m],v=m+1;v<_.length;v++)b=_[v],y.getOwner()==b.getOwner()&&this.calcRepulsionForce(y,b)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;mx||S>x)&&(p.gravitationForceX=-this.gravityConstant*y,p.gravitationForceY=-this.gravityConstant*b)):(x=g.getEstimatedSize()*this.compoundGravityRangeFactor,(_>x||S>x)&&(p.gravitationForceX=-this.gravityConstant*y*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<_[S][x].length;C++)if(b=_[S][x][C],!(p.getOwner()!=b.getOwner()||p==b)&&!g.has(b)&&!y.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&&y.add(b)}}p.surrounding=[].concat(i(y))}for(S=0;Sh}}]),u})();r.exports=l}),(function(r,n,a){function i(){}i.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 gt=[];ft-- >0;)gt.push(0);return gt})(Math.min(this.m+1,this.n)),this.U=(function(ft){var gt=function se(It){if(It.length==0)return 0;for(var bt=[],Et=0;Et0;)gt.push(0);return gt})(this.n),u=(function(ft){for(var gt=[];ft-- >0;)gt.push(0);return gt})(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 N=L+1;N=0;Y--){if((function(ft,gt){return ft&>})(Y0;){var pe=void 0,Be=void 0;for(pe=A-2;pe>=-1&&pe!==-1;pe--)if(Math.abs(l[pe])<=ge+re*(Math.abs(this.s[pe])+Math.abs(this.s[pe+1]))){l[pe]=0;break}if(pe===A-2)Be=4;else{var Le=void 0;for(Le=A-1;Le>=pe&&Le!==pe;Le--){var He=(Le!==A?Math.abs(l[Le]):0)+(Le!==pe+1?Math.abs(l[Le-1]):0);if(Math.abs(this.s[Le])<=ge+re*He){this.s[Le]=0;break}}Le===pe?Be=3:Le===A-1?Be=1:(Be=2,pe=Le)}switch(pe++,Be){case 1:{var Re=l[A-2];l[A-2]=0;for(var xe=A-2;xe>=pe;xe--){var $e=i.hypot(this.s[xe],Re),Ce=this.s[xe]/$e,ut=Re/$e;this.s[xe]=$e,xe!==pe&&(Re=-ut*l[xe-1],l[xe-1]=Ce*l[xe-1]);for(var Ae=0;Ae=this.s[pe+1]);){var Tt=this.s[pe];if(this.s[pe]=this.s[pe+1],this.s[pe+1]=Tt,peMath.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=i}),(function(r,n,a){var i=(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),v=u(902),y=u(551).FDLayoutConstants,b=u(551).LayoutConstants,_=u(551).Point,S=u(551).PointD,x=u(551).DimensionD,C=u(551).Layout,T=u(551).Integer,w=u(551).IGeometry,R=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=y.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=y.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=y.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=y.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/y.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&&(v.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%y.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(N){return A.has(N)});this.graphManager.setAllNodesToApplyGravitation(I),this.graphManager.updateBounds(),this.updateGrid(),m.PURE_INCREMENTAL?this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=y.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=y.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=y.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(te){A.fixedNodesOnHorizontal.add(te),A.fixedNodesOnVertical.add(te)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var U=this.constraints.alignmentConstraint.vertical,D=0;D=2*te.length/3;re--)ne=Math.floor(Math.random()*(re+1)),ae=te[re],te[re]=te[ne],te[ne]=ae;return te},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(te){if(te.left){var ne=z.has(te.left)?z.get(te.left):te.left,ae=z.has(te.right)?z.get(te.right):te.right;A.nodesInRelativeHorizontal.includes(ne)||(A.nodesInRelativeHorizontal.push(ne),A.nodeToRelativeConstraintMapHorizontal.set(ne,[]),A.dummyToNodeForVerticalAlignment.has(ne)?A.nodeToTempPositionMapHorizontal.set(ne,A.idToNodeMap.get(A.dummyToNodeForVerticalAlignment.get(ne)[0]).getCenterX()):A.nodeToTempPositionMapHorizontal.set(ne,A.idToNodeMap.get(ne).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(ne).push({right:ae,gap:te.gap}),A.nodeToRelativeConstraintMapHorizontal.get(ae).push({left:ne,gap:te.gap})}else{var re=B.has(te.top)?B.get(te.top):te.top,ge=B.has(te.bottom)?B.get(te.bottom):te.bottom;A.nodesInRelativeVertical.includes(re)||(A.nodesInRelativeVertical.push(re),A.nodeToRelativeConstraintMapVertical.set(re,[]),A.dummyToNodeForHorizontalAlignment.has(re)?A.nodeToTempPositionMapVertical.set(re,A.idToNodeMap.get(A.dummyToNodeForHorizontalAlignment.get(re)[0]).getCenterY()):A.nodeToTempPositionMapVertical.set(re,A.idToNodeMap.get(re).getCenterY())),A.nodesInRelativeVertical.includes(ge)||(A.nodesInRelativeVertical.push(ge),A.nodeToRelativeConstraintMapVertical.set(ge,[]),A.dummyToNodeForHorizontalAlignment.has(ge)?A.nodeToTempPositionMapVertical.set(ge,A.idToNodeMap.get(A.dummyToNodeForHorizontalAlignment.get(ge)[0]).getCenterY()):A.nodeToTempPositionMapVertical.set(ge,A.idToNodeMap.get(ge).getCenterY())),A.nodeToRelativeConstraintMapVertical.get(re).push({bottom:ge,gap:te.gap}),A.nodeToRelativeConstraintMapVertical.get(ge).push({top:re,gap:te.gap})}});else{var K=new Map,Y=new Map;this.constraints.relativePlacementConstraint.forEach(function(te){if(te.left){var ne=z.has(te.left)?z.get(te.left):te.left,ae=z.has(te.right)?z.get(te.right):te.right;K.has(ne)?K.get(ne).push(ae):K.set(ne,[ae]),K.has(ae)?K.get(ae).push(ne):K.set(ae,[ne])}else{var re=B.has(te.top)?B.get(te.top):te.top,ge=B.has(te.bottom)?B.get(te.bottom):te.bottom;Y.has(re)?Y.get(re).push(ge):Y.set(re,[ge]),Y.has(ge)?Y.get(ge).push(re):Y.set(ge,[re])}});var ee=function(ne,ae){var re=[],ge=[],pe=new M,Be=new Set,Le=0;return ne.forEach(function(He,Re){if(!Be.has(Re)){re[Le]=[],ge[Le]=!1;var xe=Re;for(pe.push(xe),Be.add(xe),re[Le].push(xe);pe.length!=0;){xe=pe.shift(),ae.has(xe)&&(ge[Le]=!0);var $e=ne.get(xe);$e.forEach(function(Ce){Be.has(Ce)||(pe.push(Ce),Be.add(Ce),re[Le].push(Ce))})}Le++}}),{components:re,isFixed:ge}},X=ee(K,A.fixedNodesOnHorizontal);this.componentsOnHorizontal=X.components,this.fixedComponentsOnHorizontal=X.isFixed;var le=ee(Y,A.fixedNodesOnVertical);this.componentsOnVertical=le.components,this.fixedComponentsOnVertical=le.isFixed}}},$.prototype.updateDisplacements=function(){var A=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(le){var te=A.idToNodeMap.get(le.nodeId);te.displacementX=0,te.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 S(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 N=R.calculateBounds(A),P=new O;P.setDeviceOrgX(N.getMinX()),P.setDeviceOrgY(N.getMinY()),P.setWorldOrgX(D.x),P.setWorldOrgY(D.y);for(var z=0;z1;){var ae=ne[0];ne.splice(0,1);var re=Y.indexOf(ae);re>=0&&Y.splice(re,1),le--,ee--}I!=null?te=(Y.indexOf(ne[0])+1)%le:te=0;for(var ge=Math.abs(L-D)/ee,pe=te;X!=ee;pe=++pe%le){var Be=Y[pe].getOtherEnd(A);if(Be!=I){var Le=(D+X*ge)%360,He=(Le+ge)%360;$.branchRadialLayout(Be,A,Le,He,N+P,P),X++}}},$.maxDiagonalInTree=function(A){for(var I=T.MIN_VALUE,D=0;DI&&(I=N)}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(),N=0;N"u"&&(I[B]=[]),I[B]=I[B].concat(P)}Object.keys(I).forEach(function(U){if(I[U].length>1){var G="DummyCompound_"+U;A.memberGroups[G]=I[U];var K=I[U][0].getParent(),Y=new p(A.graphManager);Y.id=G,Y.paddingLeft=K.paddingLeft||0,Y.paddingRight=K.paddingRight||0,Y.paddingBottom=K.paddingBottom||0,Y.paddingTop=K.paddingTop||0,A.idToDummyNode[G]=Y;var ee=A.getGraphManager().add(A.newGraph(),Y),X=K.getChild();X.add(Y);for(var le=0;leN?(L.rect.x-=(L.labelWidth-N)/2,L.setWidth(L.labelWidth),L.labelMarginLeft=(L.labelWidth-N)/2):L.labelPosHorizontal=="right"&&L.setWidth(N+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,N=I.paddingTop,P=I.labelMarginLeft,z=I.labelMarginTop;this.adjustLocations(this.tiledMemberPack[D],I.rect.x,I.rect.y,L,N,P,z)}},$.prototype.repopulateZeroDegreeMembers=function(){var A=this,I=this.tiledZeroDegreePack;Object.keys(I).forEach(function(D){var L=A.idToDummyNode[D],N=L.paddingLeft,P=L.paddingTop,z=L.labelMarginLeft,B=L.labelMarginTop;A.adjustLocations(I[D],L.rect.x,L.rect.y,N,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(),N=0;N0)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;LK&&(K=ee.rect.height)}D+=K+A.verticalPadding}},$.prototype.tileCompoundMembers=function(A,I){var D=this;this.tiledMemberPack=[],Object.keys(A).forEach(function(L){var N=I[L];if(D.tiledMemberPack[L]=D.tileNodes(A[L],N.paddingLeft+N.paddingRight),N.rect.width=D.tiledMemberPack[L].width,N.rect.height=D.tiledMemberPack[L].height,N.setCenter(D.tiledMemberPack[L].centerX,D.tiledMemberPack[L].centerY),N.labelMarginLeft=0,N.labelMarginTop=0,m.NODE_DIMENSIONS_INCLUDE_LABELS){var P=N.rect.width,z=N.rect.height;N.labelWidth&&(N.labelPosHorizontal=="left"?(N.rect.x-=N.labelWidth,N.setWidth(P+N.labelWidth),N.labelMarginLeft=N.labelWidth):N.labelPosHorizontal=="center"&&N.labelWidth>P?(N.rect.x-=(N.labelWidth-P)/2,N.setWidth(N.labelWidth),N.labelMarginLeft=(N.labelWidth-P)/2):N.labelPosHorizontal=="right"&&N.setWidth(P+N.labelWidth)),N.labelHeight&&(N.labelPosVertical=="top"?(N.rect.y-=N.labelHeight,N.setHeight(z+N.labelHeight),N.labelMarginTop=N.labelHeight):N.labelPosVertical=="center"&&N.labelHeight>z?(N.rect.y-=(N.labelHeight-z)/2,N.setHeight(N.labelHeight),N.labelMarginTop=(N.labelHeight-z)/2):N.labelPosVertical=="bottom"&&N.setHeight(z+N.labelHeight))}})},$.prototype.tileNodes=function(A,I){var D=this.tileNodesByFavoringDim(A,I,!0),L=this.tileNodesByFavoringDim(A,I,!1),N=this.getOrgRatio(D),P=this.getOrgRatio(L),z;return PB&&(B=le.getWidth())});var U=P/N,G=z/N,K=Math.pow(D-L,2)+4*(U+L)*(G+D)*N,Y=(L-D+Math.sqrt(K))/(2*(U+L)),ee;I?(ee=Math.ceil(Y),ee==Y&&ee++):ee=Math.floor(Y);var X=ee*(U+L)-L;return B>X&&(X=B),X+=L*2,X},$.prototype.tileNodesByFavoringDim=function(A,I,D){var L=m.TILING_PADDING_VERTICAL,N=m.TILING_PADDING_HORIZONTAL,P=m.TILING_COMPARE_BY,z={rows:[],rowWidth:[],rowHeight:[],width:0,height:I,verticalPadding:L,horizontalPadding:N,centerX:0,centerY:0};P&&(z.idealRowWidth=this.calcIdealRowWidth(A,D));var B=function(te){return te.rect.width*te.rect.height},U=function(te,ne){return B(ne)-B(te)};A.sort(function(le,te){var ne=U;return z.idealRowWidth?(ne=P,ne(le.id,te.id)):ne(le,te)});for(var G=0,K=0,Y=0;Y0&&(z+=A.horizontalPadding),A.rowWidth[D]=z,A.width0&&(B+=A.verticalPadding);var U=0;B>A.rowHeight[D]&&(U=A.rowHeight[D],A.rowHeight[D]=B,U=A.rowHeight[D]-U),A.height+=U,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,N=A.rowWidth[L];return N+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 U;A.width-z>=I+A.horizontalPadding?U=(A.height+B)/(z+I+A.horizontalPadding):U=(A.height+B)/A.width,B=D+A.verticalPadding;var G;return A.widthP&&I!=D){L.splice(-1,1),A.rows[D].push(N),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 U=A.rowHeight[I]+A.rowHeight[D];A.rowHeight[I]=z,A.rowHeight[D]0)for(var X=N;X<=P;X++)ee[0]+=this.grid[X][z-1].length+this.grid[X][z].length-1;if(P0)for(var X=z;X<=B;X++)ee[3]+=this.grid[N-1][X].length+this.grid[N][X].length-1;for(var le=T.MAX_VALUE,te,ne,ae=0;ae{var d=u(551).FDLayoutNode,h=u(551).IMath;function f(g,m,v,y){d.call(this,g,m,v,y)}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 v=this.getChild().getNodes(),y,b=0;b{function d(v){if(Array.isArray(v)){for(var y=0,b=Array(v.length);y0){var Tt=0;ve.forEach(function(nt){fe=="horizontal"?(Pe.set(nt,_.has(nt)?S[_.get(nt)]:we.get(nt)),Tt+=Pe.get(nt)):(Pe.set(nt,_.has(nt)?x[_.get(nt)]:we.get(nt)),Tt+=Pe.get(nt))}),Tt=Tt/ve.length,Ve.forEach(function(nt){j.has(nt)||Pe.set(nt,Tt)})}else{var St=0;Ve.forEach(function(nt){fe=="horizontal"?St+=_.has(nt)?S[_.get(nt)]:we.get(nt):St+=_.has(nt)?x[_.get(nt)]:we.get(nt)}),St=St/Ve.length,Ve.forEach(function(nt){Pe.set(nt,St)})}});for(var ze=function(){var ve=Ze.shift(),Tt=q.get(ve);Tt.forEach(function(St){if(Pe.get(St.id)nt&&(nt=Nt),Vrdt&&(dt=Vr)}}catch(Fe){gt=!0,se=Fe}finally{try{!ft&&It.return&&It.return()}finally{if(gt)throw se}}var Ne=(Tt+nt)/2-(St+dt)/2,mt=!0,_t=!1,Ot=void 0;try{for(var Qt=Ve[Symbol.iterator](),br;!(mt=(br=Qt.next()).done);mt=!0){var Ct=br.value;Pe.set(Ct,Pe.get(Ct)+Ne)}}catch(Fe){_t=!0,Ot=Fe}finally{try{!mt&&Qt.return&&Qt.return()}finally{if(_t)throw Ot}}})}return Pe},F=function(q){var fe=0,j=0,we=0,Te=0;if(q.forEach(function(Ie){Ie.left?S[_.get(Ie.left)]-S[_.get(Ie.right)]>=0?fe++:j++:x[_.get(Ie.top)]-x[_.get(Ie.bottom)]>=0?we++:Te++}),fe>j&&we>Te)for(var rt=0;rt<_.size;rt++)S[rt]=-1*S[rt],x[rt]=-1*x[rt];else if(fe>j)for(var Oe=0;Oe<_.size;Oe++)S[Oe]=-1*S[Oe];else if(we>Te)for(var Pe=0;Pe<_.size;Pe++)x[Pe]=-1*x[Pe]},A=function(q){var fe=[],j=new f,we=new Set,Te=0;return q.forEach(function(rt,Oe){if(!we.has(Oe)){fe[Te]=[];var Pe=Oe;for(j.push(Pe),we.add(Pe),fe[Te].push(Pe);j.length!=0;){Pe=j.shift();var Ie=q.get(Pe);Ie.forEach(function(Ze){we.has(Ze.id)||(j.push(Ze.id),we.add(Ze.id),fe[Te].push(Ze.id))})}Te++}}),fe},I=function(q){var fe=new Map;return q.forEach(function(j,we){fe.set(we,[])}),q.forEach(function(j,we){j.forEach(function(Te){fe.get(we).push(Te),fe.get(Te.id).push({id:we,gap:Te.gap,direction:Te.direction})})}),fe},D=function(q){var fe=new Map;return q.forEach(function(j,we){fe.set(we,[])}),q.forEach(function(j,we){j.forEach(function(Te){fe.get(Te.id).push({id:we,gap:Te.gap,direction:Te.direction})})}),fe},L=[],N=[],P=!1,z=!1,B=new Set,U=new Map,G=new Map,K=[];if(y.fixedNodeConstraint&&y.fixedNodeConstraint.forEach(function(ye){B.add(ye.nodeId)}),y.relativePlacementConstraint&&(y.relativePlacementConstraint.forEach(function(ye){ye.left?(U.has(ye.left)?U.get(ye.left).push({id:ye.right,gap:ye.gap,direction:"horizontal"}):U.set(ye.left,[{id:ye.right,gap:ye.gap,direction:"horizontal"}]),U.has(ye.right)||U.set(ye.right,[])):(U.has(ye.top)?U.get(ye.top).push({id:ye.bottom,gap:ye.gap,direction:"vertical"}):U.set(ye.top,[{id:ye.bottom,gap:ye.gap,direction:"vertical"}]),U.has(ye.bottom)||U.set(ye.bottom,[]))}),G=I(U),K=A(G)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(y.fixedNodeConstraint&&y.fixedNodeConstraint.length>1)y.fixedNodeConstraint.forEach(function(ye,q){L[q]=[ye.position.x,ye.position.y],N[q]=[S[_.get(ye.nodeId)],x[_.get(ye.nodeId)]]}),P=!0;else if(y.alignmentConstraint)(function(){var ye=0;if(y.alignmentConstraint.vertical){for(var q=y.alignmentConstraint.vertical,fe=function(Pe){var Ie=new Set;q[Pe].forEach(function(me){Ie.add(me)});var Ze=new Set([].concat(d(Ie)).filter(function(me){return B.has(me)})),ze=void 0;Ze.size>0?ze=S[_.get(Ze.values().next().value)]:ze=M(Ie).x,q[Pe].forEach(function(me){L[ye]=[ze,x[_.get(me)]],N[ye]=[S[_.get(me)],x[_.get(me)]],ye++})},j=0;j0?ze=S[_.get(Ze.values().next().value)]:ze=M(Ie).y,we[Pe].forEach(function(me){L[ye]=[S[_.get(me)],ze],N[ye]=[S[_.get(me)],x[_.get(me)]],ye++})},rt=0;rtY&&(Y=K[X].length,ee=X);if(Y0){var Ae={x:0,y:0};y.fixedNodeConstraint.forEach(function(ye,q){var fe={x:S[_.get(ye.nodeId)],y:x[_.get(ye.nodeId)]},j=ye.position,we=O(j,fe);Ae.x+=we.x,Ae.y+=we.y}),Ae.x/=y.fixedNodeConstraint.length,Ae.y/=y.fixedNodeConstraint.length,S.forEach(function(ye,q){S[q]+=Ae.x}),x.forEach(function(ye,q){x[q]+=Ae.y}),y.fixedNodeConstraint.forEach(function(ye){S[_.get(ye.nodeId)]=ye.position.x,x[_.get(ye.nodeId)]=ye.position.y})}if(y.alignmentConstraint){if(y.alignmentConstraint.vertical)for(var je=y.alignmentConstraint.vertical,ot=function(q){var fe=new Set;je[q].forEach(function(Te){fe.add(Te)});var j=new Set([].concat(d(fe)).filter(function(Te){return B.has(Te)})),we=void 0;j.size>0?we=S[_.get(j.values().next().value)]:we=M(fe).x,fe.forEach(function(Te){B.has(Te)||(S[_.get(Te)]=we)})},lt=0;lt0?we=x[_.get(j.values().next().value)]:we=M(fe).y,fe.forEach(function(Te){B.has(Te)||(x[_.get(Te)]=we)})},ke=0;ke{o.exports=r})},a={};function i(o){var l=a[o];if(l!==void 0)return l.exports;var u=a[o]={exports:{}};return n[o](u,u.exports,i),u.exports}var s=i(45);return s})()})})(mC)),mC.exports}var IPt=gC.exports,nce;function OPt(){return nce||(nce=1,(function(t,e){(function(n,a){t.exports=a(NPt())})(IPt,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 v=[],y=!0,b=!1,_=void 0;try{for(var S=g[Symbol.iterator](),x;!(y=(x=S.next()).done)&&(v.push(x.value),!(m&&v.length===m));y=!0);}catch(C){b=!0,_=C}finally{try{!y&&S.return&&S.return()}finally{if(b)throw _}}return v}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(G)});for(var z=0;z1){x=_[0],C=x.connectedEdges().length,_.forEach(function(N){N.connectedEdges().length0&&v.set("dummy"+(v.size+1),R),O},f.relocateComponent=function(p,g,m){if(!m.fixedNodeConstraint){var v=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY,b=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;if(m.quality=="draft"){var S=!0,x=!1,C=void 0;try{for(var T=g.nodeIndexes[Symbol.iterator](),w;!(S=(w=T.next()).done);S=!0){var R=w.value,O=d(R,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,N=g.yCoords[$]+A.h/2;Iy&&(y=D),L_&&(_=N)}}}catch(G){x=!0,C=G}finally{try{!S&&T.return&&T.return()}finally{if(x)throw C}}var P=p.x-(y+v)/2,z=p.y-(_+b)/2;g.xCoords=g.xCoords.map(function(G){return G+P}),g.yCoords=g.yCoords.map(function(G){return G+z})}else{Object.keys(g).forEach(function(G){var K=g[G],Y=K.getRect().x,ee=K.getRect().x+K.getRect().width,X=K.getRect().y,le=K.getRect().y+K.getRect().height;Yy&&(y=ee),X_&&(_=le)});var B=p.x-(y+v)/2,U=p.y-(_+b)/2;Object.keys(g).forEach(function(G){var K=g[G];K.setCenter(K.getCenterX()+B,K.getCenterY()+U)})}}},f.calcBoundingBox=function(p,g,m,v){for(var y=Number.MAX_SAFE_INTEGER,b=Number.MIN_SAFE_INTEGER,_=Number.MAX_SAFE_INTEGER,S=Number.MIN_SAFE_INTEGER,x=void 0,C=void 0,T=void 0,w=void 0,R=p.descendants().not(":parent"),O=R.length,M=0;Mx&&(y=x),bT&&(_=T),S{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,v=u(140).layoutBase.FDLayoutConstants,y=u(140).CoSEConstants,b=function(S,x){var C=S.cy,T=S.eles,w=T.nodes(),R=T.edges(),O=void 0,M=void 0,$=void 0,F={};S.randomize&&(O=x.nodeIndexes,M=x.xCoords,$=x.yCoords);var A=function(G){return typeof G=="function"},I=function(G,K){return A(G)?G(K):G},D=d.calcParentsWithoutChildren(C,T),L=function U(G,K,Y,ee){for(var X=K.length,le=0;le0){var pe=void 0;pe=Y.getGraphManager().add(Y.newGraph(),ae),U(pe,ne,Y,ee)}}},N=function(G,K,Y){for(var ee=0,X=0,le=0;le0?y.DEFAULT_EDGE_LENGTH=v.DEFAULT_EDGE_LENGTH=ee/X:A(S.idealEdgeLength)?y.DEFAULT_EDGE_LENGTH=v.DEFAULT_EDGE_LENGTH=50:y.DEFAULT_EDGE_LENGTH=v.DEFAULT_EDGE_LENGTH=S.idealEdgeLength,y.MIN_REPULSION_DIST=v.MIN_REPULSION_DIST=v.DEFAULT_EDGE_LENGTH/10,y.DEFAULT_RADIAL_SEPARATION=v.DEFAULT_EDGE_LENGTH)},P=function(G,K){K.fixedNodeConstraint&&(G.constraints.fixedNodeConstraint=K.fixedNodeConstraint),K.alignmentConstraint&&(G.constraints.alignmentConstraint=K.alignmentConstraint),K.relativePlacementConstraint&&(G.constraints.relativePlacementConstraint=K.relativePlacementConstraint)};S.nestingFactor!=null&&(y.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=S.nestingFactor),S.gravity!=null&&(y.DEFAULT_GRAVITY_STRENGTH=v.DEFAULT_GRAVITY_STRENGTH=S.gravity),S.numIter!=null&&(y.MAX_ITERATIONS=v.MAX_ITERATIONS=S.numIter),S.gravityRange!=null&&(y.DEFAULT_GRAVITY_RANGE_FACTOR=v.DEFAULT_GRAVITY_RANGE_FACTOR=S.gravityRange),S.gravityCompound!=null&&(y.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.DEFAULT_COMPOUND_GRAVITY_STRENGTH=S.gravityCompound),S.gravityRangeCompound!=null&&(y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=S.gravityRangeCompound),S.initialEnergyOnIncremental!=null&&(y.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.DEFAULT_COOLING_FACTOR_INCREMENTAL=S.initialEnergyOnIncremental),S.tilingCompareBy!=null&&(y.TILING_COMPARE_BY=S.tilingCompareBy),S.quality=="proof"?m.QUALITY=2:m.QUALITY=0,y.NODE_DIMENSIONS_INCLUDE_LABELS=v.NODE_DIMENSIONS_INCLUDE_LABELS=m.NODE_DIMENSIONS_INCLUDE_LABELS=S.nodeDimensionsIncludeLabels,y.DEFAULT_INCREMENTAL=v.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!S.randomize,y.ANIMATE=v.ANIMATE=m.ANIMATE=S.animate,y.TILE=S.tile,y.TILING_PADDING_VERTICAL=typeof S.tilingPaddingVertical=="function"?S.tilingPaddingVertical.call():S.tilingPaddingVertical,y.TILING_PADDING_HORIZONTAL=typeof S.tilingPaddingHorizontal=="function"?S.tilingPaddingHorizontal.call():S.tilingPaddingHorizontal,y.DEFAULT_INCREMENTAL=v.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!0,y.PURE_INCREMENTAL=!S.randomize,m.DEFAULT_UNIFORM_LEAF_NODE_SIZES=S.uniformNodeDimensions,S.step=="transformed"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,y.ENFORCE_CONSTRAINTS=!1,y.APPLY_LAYOUT=!1),S.step=="enforced"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!0,y.APPLY_LAYOUT=!1),S.step=="cose"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!1,y.APPLY_LAYOUT=!0),S.step=="all"&&(S.randomize?y.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!0,y.APPLY_LAYOUT=!0),S.fixedNodeConstraint||S.alignmentConstraint||S.relativePlacementConstraint?y.TREE_REDUCTION_ON_INCREMENTAL=!1:y.TREE_REDUCTION_ON_INCREMENTAL=!0;var z=new h,B=z.newGraphManager();return L(B.addRoot(),d.getTopMostNodes(w),z,S),N(z,B,R),P(z,S),z.runLayout(),F};o.exports={coseLayout:b}}),212:((o,l,u)=>{var d=(function(){function S(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(He){var Re=He.boundingBox();F.push({x:Re.x1+Re.w/2,y:Re.y1+Re.h/2})}),T.randomize&&$.forEach(function(He){T.eles=He,O.push(m(T))}),T.quality=="default"||T.quality=="proof"){var z=w.collection();if(T.tile){var B=new Map,U=[],G=[],K=0,Y={nodeIndexes:B,xCoords:U,yCoords:G},ee=[];if($.forEach(function(He,Re){He.edges().length==0&&(He.nodes().forEach(function(xe,$e){z.merge(He.nodes()[$e]),xe.isParent()||(Y.nodeIndexes.set(He.nodes()[$e].id(),K++),Y.xCoords.push(He.nodes()[0].position().x),Y.yCoords.push(He.nodes()[0].position().y))}),ee.push(Re))}),z.length>1){var X=z.boundingBox();F.push({x:X.x1+X.w/2,y:X.y1+X.h/2}),$.push(z),O.push(Y);for(var le=ee.length-1;le>=0;le--)$.splice(ee[le],1),O.splice(ee[le],1),F.splice(ee[le],1)}}$.forEach(function(He,Re){T.eles=He,M.push(y(T,O[Re])),p.relocateComponent(F[Re],M[Re],T)})}else $.forEach(function(He,Re){p.relocateComponent(F[Re],O[Re],T)});var te=new Set;if($.length>1){var ne=[],ae=R.filter(function(He){return He.css("display")=="none"});$.forEach(function(He,Re){var xe=void 0;if(T.quality=="draft"&&(xe=O[Re].nodeIndexes),He.nodes().not(ae).length>0){var $e={};$e.edges=[],$e.nodes=[];var Ce=void 0;He.nodes().not(ae).forEach(function(ut){if(T.quality=="draft")if(!ut.isParent())Ce=xe.get(ut.id()),$e.nodes.push({x:O[Re].xCoords[Ce]-ut.boundingbox().w/2,y:O[Re].yCoords[Ce]-ut.boundingbox().h/2,width:ut.boundingbox().w,height:ut.boundingbox().h});else{var Ae=p.calcBoundingBox(ut,O[Re].xCoords,O[Re].yCoords,xe);$e.nodes.push({x:Ae.topLeftX,y:Ae.topLeftY,width:Ae.width,height:Ae.height})}else M[Re][ut.id()]&&$e.nodes.push({x:M[Re][ut.id()].getLeft(),y:M[Re][ut.id()].getTop(),width:M[Re][ut.id()].getWidth(),height:M[Re][ut.id()].getHeight()})}),He.edges().forEach(function(ut){var Ae=ut.source(),je=ut.target();if(Ae.css("display")!="none"&&je.css("display")!="none")if(T.quality=="draft"){var ot=xe.get(Ae.id()),lt=xe.get(je.id()),ct=[],it=[];if(Ae.isParent()){var ke=p.calcBoundingBox(Ae,O[Re].xCoords,O[Re].yCoords,xe);ct.push(ke.topLeftX+ke.width/2),ct.push(ke.topLeftY+ke.height/2)}else ct.push(O[Re].xCoords[ot]),ct.push(O[Re].yCoords[ot]);if(je.isParent()){var Qe=p.calcBoundingBox(je,O[Re].xCoords,O[Re].yCoords,xe);it.push(Qe.topLeftX+Qe.width/2),it.push(Qe.topLeftY+Qe.height/2)}else it.push(O[Re].xCoords[lt]),it.push(O[Re].yCoords[lt]);$e.edges.push({startX:ct[0],startY:ct[1],endX:it[0],endY:it[1]})}else M[Re][Ae.id()]&&M[Re][je.id()]&&$e.edges.push({startX:M[Re][Ae.id()].getCenterX(),startY:M[Re][Ae.id()].getCenterY(),endX:M[Re][je.id()].getCenterX(),endY:M[Re][je.id()].getCenterY()})}),$e.nodes.length>0&&(ne.push($e),te.add(Re))}});var re=I.packComponents(ne,T.randomize).shifts;if(T.quality=="draft")O.forEach(function(He,Re){var xe=He.xCoords.map(function(Ce){return Ce+re[Re].dx}),$e=He.yCoords.map(function(Ce){return Ce+re[Re].dy});He.xCoords=xe,He.yCoords=$e});else{var ge=0;te.forEach(function(He){Object.keys(M[He]).forEach(function(Re){var xe=M[He][Re];xe.setCenter(xe.getCenterX()+re[ge].dx,xe.getCenterY()+re[ge].dy)}),ge++})}}}else{var L=T.eles.boundingBox();if(F.push({x:L.x1+L.w/2,y:L.y1+L.h/2}),T.randomize){var N=m(T);O.push(N)}T.quality=="default"||T.quality=="proof"?(M.push(y(T,O[0])),p.relocateComponent(F[0],M[0],T)):p.relocateComponent(F[0],O[0],T)}var pe=function(Re,xe){if(T.quality=="default"||T.quality=="proof"){typeof Re=="number"&&(Re=xe);var $e=void 0,Ce=void 0,ut=Re.data("id");return M.forEach(function(je){ut in je&&($e={x:je[ut].getRect().getCenterX(),y:je[ut].getRect().getCenterY()},Ce=je[ut])}),T.nodeDimensionsIncludeLabels&&(Ce.labelWidth&&(Ce.labelPosHorizontal=="left"?$e.x+=Ce.labelWidth/2:Ce.labelPosHorizontal=="right"&&($e.x-=Ce.labelWidth/2)),Ce.labelHeight&&(Ce.labelPosVertical=="top"?$e.y+=Ce.labelHeight/2:Ce.labelPosVertical=="bottom"&&($e.y-=Ce.labelHeight/2))),$e==null&&($e={x:Re.position("x"),y:Re.position("y")}),{x:$e.x,y:$e.y}}else{var Ae=void 0;return O.forEach(function(je){var ot=je.nodeIndexes.get(Re.id());ot!=null&&(Ae={x:je.xCoords[ot],y:je.yCoords[ot]})}),Ae==null&&(Ae={x:Re.position("x"),y:Re.position("y")}),{x:Ae.x,y:Ae.y}}};if(T.quality=="default"||T.quality=="proof"||T.randomize){var Be=p.calcParentsWithoutChildren(w,R),Le=R.filter(function(He){return He.css("display")=="none"});T.eles=R.not(Le),R.nodes().not(":parent").not(Le).layoutPositions(C,T,pe),Be.length>0&&Be.forEach(function(He){He.position(pe(He))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),S})();o.exports=_}),657:((o,l,u)=>{var d=u(548),h=u(140).layoutBase.Matrix,f=u(140).layoutBase.SVD,p=function(m){var v=m.cy,y=m.eles,b=y.nodes(),_=y.nodes(":parent"),S=new Map,x=new Map,C=new Map,T=[],w=[],R=[],O=[],M=[],$=[],F=[],A=[],I=void 0,D=1e8,L=1e-9,N=m.piTol,P=m.samplingType,z=m.nodeSeparation,B=void 0,U=function(){for(var q=0,fe=0,j=!1;fe=Te;){Oe=we[Te++];for(var ie=T[Oe],Ve=0;VeZe&&(Ze=M[Tt],ze=Tt)}return ze},K=function(q){var fe=void 0;if(q){fe=Math.floor(Math.random()*I);for(var we=0;we=1)break;Ie=Pe}for(var me=0;me=1)break;Ie=Pe}for(var Ve=0;Ve0&&(fe.isParent()?T[q].push(C.get(fe.id())):T[q].push(fe.id()))})});var Le=function(q){var fe=x.get(q),j=void 0;S.get(q).forEach(function(we){v.getElementById(we).isParent()?j=C.get(we):j=we,T[fe].push(j),T[x.get(j)].push(q)})},He=!0,Re=!1,xe=void 0;try{for(var $e=S.keys()[Symbol.iterator](),Ce;!(He=(Ce=$e.next()).done);He=!0){var ut=Ce.value;Le(ut)}}catch(ye){Re=!0,xe=ye}finally{try{!He&&$e.return&&$e.return()}finally{if(Re)throw xe}}I=x.size;var Ae=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})},a={};function i(o){var l=a[o];if(l!==void 0)return l.exports;var u=a[o]={exports:{}};return n[o](u,u.exports,i),u.exports}var s=i(579);return s})()})})(gC)),gC.exports}var DPt=OPt();const LPt=Fl(DPt);var ace={L:"left",R:"right",T:"top",B:"bottom"},ice={L:E(t=>`${t},${t/2} 0,${t} 0,0`,"L"),R:E(t=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:E(t=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:E(t=>`${t/2},0 ${t},${t} 0,${t}`,"B")},W3={L:E((t,e)=>t-e+2,"L"),R:E((t,e)=>t-2,"R"),T:E((t,e)=>t-e+2,"T"),B:E((t,e)=>t-2,"B")},MPt=E(function(t){return Ds(t)?t==="L"?"R":"L":t==="T"?"B":"T"},"getOppositeArchitectureDirection"),sce=E(function(t){const e=t;return e==="L"||e==="R"||e==="T"||e==="B"},"isArchitectureDirection"),Ds=E(function(t){const e=t;return e==="L"||e==="R"},"isArchitectureDirectionX"),Mh=E(function(t){const e=t;return e==="T"||e==="B"},"isArchitectureDirectionY"),oK=E(function(t,e){const r=Ds(t)&&Mh(e),n=Mh(t)&&Ds(e);return r||n},"isArchitectureDirectionXY"),PPt=E(function(t){const e=t[0],r=t[1],n=Ds(e)&&Mh(r),a=Mh(e)&&Ds(r);return n||a},"isArchitecturePairXY"),BPt=E(function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"},"isValidArchitectureDirectionPair"),qz=E(function(t,e){const r=`${t}${e}`;return BPt(r)?r:void 0},"getArchitectureDirectionPair"),FPt=E(function([t,e],r){const n=r[0],a=r[1];return Ds(n)?Mh(a)?[t+(n==="L"?-1:1),e+(a==="T"?1:-1)]:[t+(n==="L"?-1:1),e]:Ds(a)?[t+(a==="L"?1:-1),e+(n==="T"?1:-1)]:[t,e+(n==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),$Pt=E(function(t){return t==="LT"||t==="TL"?[1,1]:t==="BL"||t==="LB"?[1,-1]:t==="BR"||t==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),zPt=E(function(t,e){return oK(t,e)?"bend":Ds(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),UPt=E(function(t){return t.type==="service"},"isArchitectureService"),GPt=E(function(t){return t.type==="junction"},"isArchitectureJunction"),iRe=E(t=>t.data(),"edgeData"),jm=E(t=>t.data(),"nodeData"),qPt=ln.architecture,q_,sRe=(q_=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=sa,this.getAccTitle=va,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getAccDescription=_a,this.setAccDescription=ya,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="",oa()}addService({id:e,icon:r,in:n,title:a,iconText:i}){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:i,title:a,edges:[],in:n}}getServices(){return Object.values(this.nodes).filter(UPt)}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(GPt)}getNodes(){return Object.values(this.nodes)}getNode(e){return this.nodes[e]??null}addGroup({id:e,icon:r,in:n,title:a}){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:a,in:n}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:e,rhsId:r,lhsDir:n,rhsDir:a,lhsInto:i,rhsInto:s,lhsGroup:o,rhsGroup:l,title:u}){if(!sce(n))throw new Error(`Invalid direction given for left hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(n)}`);if(!sce(a))throw new Error(`Invalid direction given for right hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(a)}`);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:i,lhsGroup:o,rhsId:r,rhsDir:a,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=zPt(f.lhsDir,f.rhsDir);m!=="bend"&&(e[p]??={},e[p][g]=m,e[g]??={},e[g][p]=m)}if(f.lhsId===u){const m=qz(f.lhsDir,f.rhsDir);m&&(h[m]=f.rhsId)}else{const m=qz(f.rhsDir,f.lhsDir);m&&(h[m]=f.lhsId)}return h},{}),l),{}),n=Object.keys(r)[0],a={[n]:1},i=Object.keys(r).reduce((l,u)=>u===n?l:{...l,[u]:1},{}),s=E(l=>{const u={[l]:[0,0]},d=[l];for(;d.length>0;){const h=d.shift();if(h){a[h]=1,delete i[h];const f=r[h],[p,g]=u[h];Object.entries(f).forEach(([m,v])=>{a[v]||(u[v]=FPt([p,g],m),d.push(v))})}}return u},"BFS"),o=[s(n)];for(;Object.keys(i).length>0;)o.push(s(Object.keys(i)[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 $a({...qPt,...xr().architecture})}getConfigField(e){return this.getConfig()[e]}},E(q_,"ArchitectureDB"),q_),YPt=E((t,e)=>{Nu(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"),oRe={parser:{yy:void 0},parse:E(async t=>{const e=await Sc("architecture",t);oe.debug(e);const r=oRe.parser?.yy;if(!(r instanceof sRe))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.");YPt(e,r)},"parse")},HPt=E(t=>` + `},"styles"),CPt=xPt,wPt={db:Gz,renderer:SPt,parser:vPt,styles:CPt};const kPt=Object.freeze(Object.defineProperty({__proto__:null,diagram:wPt},Symbol.toStringTag,{value:"Module"}));var gC={exports:{}},mC={exports:{}},vC={exports:{}},APt=vC.exports,tce;function RPt(){return tce||(tce=1,(function(t,e){(function(n,a){t.exports=a()})(APt,function(){return(function(r){var n={};function a(i){if(n[i])return n[i].exports;var s=n[i]={i,l:!1,exports:{}};return r[i].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=n,a.i=function(i){return i},a.d=function(i,s,o){a.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:o})},a.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(s,"a",s),s},a.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},a.p="",a(a.s=28)})([(function(r,n,a){function i(){}i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,r.exports=i}),(function(r,n,a){var i=a(2),s=a(8),o=a(9);function l(d,h,f){i.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=d,this.target=h}l.prototype=Object.create(i.prototype);for(var u in i)l[u]=i[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,a){function i(s){this.vGraphObject=s}r.exports=i}),(function(r,n,a){var i=a(2),s=a(10),o=a(13),l=a(0),u=a(16),d=a(5);function h(p,g,m,v){m==null&&v==null&&(v=g),i.call(this,v),p.graphManager!=null&&(p=p.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=v,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(i.prototype);for(var f in i)h[f]=i[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(v){if(v.target==p){if(v.source!=m)throw"Incorrect edge source!";g.push(v)}}),g},h.prototype.getEdgesBetween=function(p){var g=[],m=this;return m.edges.forEach(function(v){if(!(v.source==m||v.target==m))throw"Incorrect edge source and/or target";(v.target==p||v.source==p)&&g.push(v)}),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 v=this.child.getNodes(),y=0;yg?(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 v=new d(g,m),y=p.inverseTransformPoint(v);this.setLocation(y.x,y.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,a){var i=a(0);function s(){}for(var o in i)s[o]=i[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,a){function i(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(s){this.x=s},i.prototype.setY=function(s){this.y=s},i.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=i}),(function(r,n,a){var i=a(2),s=a(10),o=a(0),l=a(7),u=a(3),d=a(1),h=a(13),f=a(12),p=a(11);function g(v,y,b){i.call(this,b),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=v,y!=null&&y instanceof l?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}g.prototype=Object.create(i.prototype);for(var m in i)g[m]=i[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(v,y,b){if(y==null&&b==null){var _=v;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 S=v;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(b)>-1))throw"Source or target not in graph!";if(!(y.owner==b.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=b.owner?null:(S.source=y,S.target=b,S.isInterGraph=!1,this.getEdges().push(S),y.edges.push(S),b!=y&&b.edges.push(S),S)}},g.prototype.remove=function(v){var y=v;if(v instanceof u){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var b=y.edges.slice(),_,S=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 v=s.MAX_VALUE,y=s.MAX_VALUE,b,_,S,x=this.getNodes(),C=x.length,T=0;Tb&&(v=b),y>_&&(y=_)}return v==s.MAX_VALUE?null:(x[0].getParent().paddingLeft!=null?S=x[0].getParent().paddingLeft:S=this.margin,this.left=y-S,this.top=v-S,new f(this.left,this.top))},g.prototype.updateBounds=function(v){for(var y=s.MAX_VALUE,b=-s.MAX_VALUE,_=s.MAX_VALUE,S=-s.MAX_VALUE,x,C,T,w,R,O=this.nodes,M=O.length,$=0;$x&&(y=x),bT&&(_=T),Sx&&(y=x),bT&&(_=T),S=this.nodes.length){var M=0;b.forEach(function($){$.owner==v&&M++}),M==this.nodes.length&&(this.isConnected=!0)}},r.exports=g}),(function(r,n,a){var i,s=a(1);function o(l){i=a(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 i){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]=y,u[1]=b,A=!0):(u[0]=v,u[1]=m,A=!0):D===N&&(d>f?(u[0]=g,u[1]=m,A=!0):(u[0]=_,u[1]=b,A=!0)),-L===N?f>d?(u[2]=R,u[3]=O,I=!0):(u[2]=w,u[3]=T,I=!0):L===N&&(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,N,4),z=this.getCardinalDirection(L,N,2)):(P=this.getCardinalDirection(-D,N,3),z=this.getCardinalDirection(-L,N,1)):h>p?(P=this.getCardinalDirection(-D,N,1),z=this.getCardinalDirection(-L,N,3)):(P=this.getCardinalDirection(D,N,2),z=this.getCardinalDirection(L,N,4)),!A)switch(P){case 1:U=m,B=d+-x/N,u[0]=B,u[1]=U;break;case 2:B=_,U=h+S*N,u[0]=B,u[1]=U;break;case 3:U=b,B=d+x/N,u[0]=B,u[1]=U;break;case 4:B=y,U=h+-S*N,u[0]=B,u[1]=U;break}if(!I)switch(z){case 1:K=T,G=f+-F/N,u[2]=G,u[3]=K;break;case 2:G=M,K=p+$*N,u[2]=G,u[3]=K;break;case 3:K=O,G=f+F/N,u[2]=G,u[3]=K;break;case 4:G=R,K=p+-$*N,u[2]=G,u[3]=K;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,v=u.y,y=d.x,b=d.y,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,w=void 0,R=void 0,O=void 0,M=void 0;return x=g-f,T=h-p,R=p*f-h*g,C=b-v,w=m-y,O=y*v-m*b,M=x*w-C*T,M===0?null:(_=(T*O-w*R)/M,S=(C*R-x*O)/M,new i(_,S))},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*v))/(2*g),_=(-m-Math.sqrt(m*m-4*g*v))/(2*g),S=null;return b>=0&&b<=1?[b]:_>=0&&_<=1?[_]:S}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,a){function i(){}i.sign=function(s){return s>0?1:s<0?-1:0},i.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},i.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=i}),(function(r,n,a){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,r.exports=i}),(function(r,n,a){var i=(function(){function h(f,p){for(var g=0;g"u"?"undefined":i(o);return o==null||l!="object"&&l!="function"},r.exports=s}),(function(r,n,a){function i(m){if(Array.isArray(m)){for(var v=0,y=Array(m.length);v0&&v;){for(x.push(T[0]);x.length>0&&v;){var w=x[0];x.splice(0,1),S.add(w);for(var R=w.getEdges(),_=0;_-1&&T.splice(F,1)}S=new Set,C=new Map}}return m},g.prototype.createDummyNodesForBendpoints=function(m){for(var v=[],y=m.source,b=this.graphManager.calcLowestCommonAncestor(m.source,m.target),_=0;_0){for(var b=this.edgeToDummyNodes.get(y),_=0;_=0&&v.splice(O,1);var M=C.getNeighborsList();M.forEach(function(A){if(y.indexOf(A)<0){var I=b.get(A),D=I-1;D==1&&w.push(A),b.set(A,D)}})}y=y.concat(w),(v.length==1||v.length==2)&&(_=!0,S=v[0])}return S},g.prototype.setGraphManager=function(m){this.graphManager=m},r.exports=g}),(function(r,n,a){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},r.exports=i}),(function(r,n,a){var i=a(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 i(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return l},r.exports=s}),(function(r,n,a){function i(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,v,y,b,_=this.getAllNodes(),S;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&p&&this.updateGrid(),S=new Set,m=0;m<_.length;m++)y=_[m],this.calculateRepulsionForceOfANode(y,S,p,g),S.add(y);else for(m=0;m<_.length;m++)for(y=_[m],v=m+1;v<_.length;v++)b=_[v],y.getOwner()==b.getOwner()&&this.calcRepulsionForce(y,b)},h.prototype.calcGravitationalForces=function(){for(var p,g=this.getAllNodesToApplyGravitation(),m=0;mx||S>x)&&(p.gravitationForceX=-this.gravityConstant*y,p.gravitationForceY=-this.gravityConstant*b)):(x=g.getEstimatedSize()*this.compoundGravityRangeFactor,(_>x||S>x)&&(p.gravitationForceX=-this.gravityConstant*y*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<_[S][x].length;C++)if(b=_[S][x][C],!(p.getOwner()!=b.getOwner()||p==b)&&!g.has(b)&&!y.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&&y.add(b)}}p.surrounding=[].concat(i(y))}for(S=0;Sh}}]),u})();r.exports=l}),(function(r,n,a){function i(){}i.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 gt=[];ft-- >0;)gt.push(0);return gt})(Math.min(this.m+1,this.n)),this.U=(function(ft){var gt=function se(It){if(It.length==0)return 0;for(var bt=[],Et=0;Et0;)gt.push(0);return gt})(this.n),u=(function(ft){for(var gt=[];ft-- >0;)gt.push(0);return gt})(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 N=L+1;N=0;Y--){if((function(ft,gt){return ft&>})(Y0;){var pe=void 0,Be=void 0;for(pe=A-2;pe>=-1&&pe!==-1;pe--)if(Math.abs(l[pe])<=ge+re*(Math.abs(this.s[pe])+Math.abs(this.s[pe+1]))){l[pe]=0;break}if(pe===A-2)Be=4;else{var Le=void 0;for(Le=A-1;Le>=pe&&Le!==pe;Le--){var He=(Le!==A?Math.abs(l[Le]):0)+(Le!==pe+1?Math.abs(l[Le-1]):0);if(Math.abs(this.s[Le])<=ge+re*He){this.s[Le]=0;break}}Le===pe?Be=3:Le===A-1?Be=1:(Be=2,pe=Le)}switch(pe++,Be){case 1:{var Re=l[A-2];l[A-2]=0;for(var xe=A-2;xe>=pe;xe--){var $e=i.hypot(this.s[xe],Re),Ce=this.s[xe]/$e,ut=Re/$e;this.s[xe]=$e,xe!==pe&&(Re=-ut*l[xe-1],l[xe-1]=Ce*l[xe-1]);for(var Ae=0;Ae=this.s[pe+1]);){var Tt=this.s[pe];if(this.s[pe]=this.s[pe+1],this.s[pe+1]=Tt,peMath.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=i}),(function(r,n,a){var i=(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),v=u(902),y=u(551).FDLayoutConstants,b=u(551).LayoutConstants,_=u(551).Point,S=u(551).PointD,x=u(551).DimensionD,C=u(551).Layout,T=u(551).Integer,w=u(551).IGeometry,R=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=y.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=y.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=y.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=y.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/y.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&&(v.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%y.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(N){return A.has(N)});this.graphManager.setAllNodesToApplyGravitation(I),this.graphManager.updateBounds(),this.updateGrid(),m.PURE_INCREMENTAL?this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=y.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=y.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=y.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(te){A.fixedNodesOnHorizontal.add(te),A.fixedNodesOnVertical.add(te)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var U=this.constraints.alignmentConstraint.vertical,D=0;D=2*te.length/3;re--)ne=Math.floor(Math.random()*(re+1)),ae=te[re],te[re]=te[ne],te[ne]=ae;return te},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(te){if(te.left){var ne=z.has(te.left)?z.get(te.left):te.left,ae=z.has(te.right)?z.get(te.right):te.right;A.nodesInRelativeHorizontal.includes(ne)||(A.nodesInRelativeHorizontal.push(ne),A.nodeToRelativeConstraintMapHorizontal.set(ne,[]),A.dummyToNodeForVerticalAlignment.has(ne)?A.nodeToTempPositionMapHorizontal.set(ne,A.idToNodeMap.get(A.dummyToNodeForVerticalAlignment.get(ne)[0]).getCenterX()):A.nodeToTempPositionMapHorizontal.set(ne,A.idToNodeMap.get(ne).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(ne).push({right:ae,gap:te.gap}),A.nodeToRelativeConstraintMapHorizontal.get(ae).push({left:ne,gap:te.gap})}else{var re=B.has(te.top)?B.get(te.top):te.top,ge=B.has(te.bottom)?B.get(te.bottom):te.bottom;A.nodesInRelativeVertical.includes(re)||(A.nodesInRelativeVertical.push(re),A.nodeToRelativeConstraintMapVertical.set(re,[]),A.dummyToNodeForHorizontalAlignment.has(re)?A.nodeToTempPositionMapVertical.set(re,A.idToNodeMap.get(A.dummyToNodeForHorizontalAlignment.get(re)[0]).getCenterY()):A.nodeToTempPositionMapVertical.set(re,A.idToNodeMap.get(re).getCenterY())),A.nodesInRelativeVertical.includes(ge)||(A.nodesInRelativeVertical.push(ge),A.nodeToRelativeConstraintMapVertical.set(ge,[]),A.dummyToNodeForHorizontalAlignment.has(ge)?A.nodeToTempPositionMapVertical.set(ge,A.idToNodeMap.get(A.dummyToNodeForHorizontalAlignment.get(ge)[0]).getCenterY()):A.nodeToTempPositionMapVertical.set(ge,A.idToNodeMap.get(ge).getCenterY())),A.nodeToRelativeConstraintMapVertical.get(re).push({bottom:ge,gap:te.gap}),A.nodeToRelativeConstraintMapVertical.get(ge).push({top:re,gap:te.gap})}});else{var K=new Map,Y=new Map;this.constraints.relativePlacementConstraint.forEach(function(te){if(te.left){var ne=z.has(te.left)?z.get(te.left):te.left,ae=z.has(te.right)?z.get(te.right):te.right;K.has(ne)?K.get(ne).push(ae):K.set(ne,[ae]),K.has(ae)?K.get(ae).push(ne):K.set(ae,[ne])}else{var re=B.has(te.top)?B.get(te.top):te.top,ge=B.has(te.bottom)?B.get(te.bottom):te.bottom;Y.has(re)?Y.get(re).push(ge):Y.set(re,[ge]),Y.has(ge)?Y.get(ge).push(re):Y.set(ge,[re])}});var ee=function(ne,ae){var re=[],ge=[],pe=new M,Be=new Set,Le=0;return ne.forEach(function(He,Re){if(!Be.has(Re)){re[Le]=[],ge[Le]=!1;var xe=Re;for(pe.push(xe),Be.add(xe),re[Le].push(xe);pe.length!=0;){xe=pe.shift(),ae.has(xe)&&(ge[Le]=!0);var $e=ne.get(xe);$e.forEach(function(Ce){Be.has(Ce)||(pe.push(Ce),Be.add(Ce),re[Le].push(Ce))})}Le++}}),{components:re,isFixed:ge}},X=ee(K,A.fixedNodesOnHorizontal);this.componentsOnHorizontal=X.components,this.fixedComponentsOnHorizontal=X.isFixed;var le=ee(Y,A.fixedNodesOnVertical);this.componentsOnVertical=le.components,this.fixedComponentsOnVertical=le.isFixed}}},$.prototype.updateDisplacements=function(){var A=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(le){var te=A.idToNodeMap.get(le.nodeId);te.displacementX=0,te.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 S(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 N=R.calculateBounds(A),P=new O;P.setDeviceOrgX(N.getMinX()),P.setDeviceOrgY(N.getMinY()),P.setWorldOrgX(D.x),P.setWorldOrgY(D.y);for(var z=0;z1;){var ae=ne[0];ne.splice(0,1);var re=Y.indexOf(ae);re>=0&&Y.splice(re,1),le--,ee--}I!=null?te=(Y.indexOf(ne[0])+1)%le:te=0;for(var ge=Math.abs(L-D)/ee,pe=te;X!=ee;pe=++pe%le){var Be=Y[pe].getOtherEnd(A);if(Be!=I){var Le=(D+X*ge)%360,He=(Le+ge)%360;$.branchRadialLayout(Be,A,Le,He,N+P,P),X++}}},$.maxDiagonalInTree=function(A){for(var I=T.MIN_VALUE,D=0;DI&&(I=N)}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(),N=0;N"u"&&(I[B]=[]),I[B]=I[B].concat(P)}Object.keys(I).forEach(function(U){if(I[U].length>1){var G="DummyCompound_"+U;A.memberGroups[G]=I[U];var K=I[U][0].getParent(),Y=new p(A.graphManager);Y.id=G,Y.paddingLeft=K.paddingLeft||0,Y.paddingRight=K.paddingRight||0,Y.paddingBottom=K.paddingBottom||0,Y.paddingTop=K.paddingTop||0,A.idToDummyNode[G]=Y;var ee=A.getGraphManager().add(A.newGraph(),Y),X=K.getChild();X.add(Y);for(var le=0;leN?(L.rect.x-=(L.labelWidth-N)/2,L.setWidth(L.labelWidth),L.labelMarginLeft=(L.labelWidth-N)/2):L.labelPosHorizontal=="right"&&L.setWidth(N+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,N=I.paddingTop,P=I.labelMarginLeft,z=I.labelMarginTop;this.adjustLocations(this.tiledMemberPack[D],I.rect.x,I.rect.y,L,N,P,z)}},$.prototype.repopulateZeroDegreeMembers=function(){var A=this,I=this.tiledZeroDegreePack;Object.keys(I).forEach(function(D){var L=A.idToDummyNode[D],N=L.paddingLeft,P=L.paddingTop,z=L.labelMarginLeft,B=L.labelMarginTop;A.adjustLocations(I[D],L.rect.x,L.rect.y,N,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(),N=0;N0)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;LK&&(K=ee.rect.height)}D+=K+A.verticalPadding}},$.prototype.tileCompoundMembers=function(A,I){var D=this;this.tiledMemberPack=[],Object.keys(A).forEach(function(L){var N=I[L];if(D.tiledMemberPack[L]=D.tileNodes(A[L],N.paddingLeft+N.paddingRight),N.rect.width=D.tiledMemberPack[L].width,N.rect.height=D.tiledMemberPack[L].height,N.setCenter(D.tiledMemberPack[L].centerX,D.tiledMemberPack[L].centerY),N.labelMarginLeft=0,N.labelMarginTop=0,m.NODE_DIMENSIONS_INCLUDE_LABELS){var P=N.rect.width,z=N.rect.height;N.labelWidth&&(N.labelPosHorizontal=="left"?(N.rect.x-=N.labelWidth,N.setWidth(P+N.labelWidth),N.labelMarginLeft=N.labelWidth):N.labelPosHorizontal=="center"&&N.labelWidth>P?(N.rect.x-=(N.labelWidth-P)/2,N.setWidth(N.labelWidth),N.labelMarginLeft=(N.labelWidth-P)/2):N.labelPosHorizontal=="right"&&N.setWidth(P+N.labelWidth)),N.labelHeight&&(N.labelPosVertical=="top"?(N.rect.y-=N.labelHeight,N.setHeight(z+N.labelHeight),N.labelMarginTop=N.labelHeight):N.labelPosVertical=="center"&&N.labelHeight>z?(N.rect.y-=(N.labelHeight-z)/2,N.setHeight(N.labelHeight),N.labelMarginTop=(N.labelHeight-z)/2):N.labelPosVertical=="bottom"&&N.setHeight(z+N.labelHeight))}})},$.prototype.tileNodes=function(A,I){var D=this.tileNodesByFavoringDim(A,I,!0),L=this.tileNodesByFavoringDim(A,I,!1),N=this.getOrgRatio(D),P=this.getOrgRatio(L),z;return PB&&(B=le.getWidth())});var U=P/N,G=z/N,K=Math.pow(D-L,2)+4*(U+L)*(G+D)*N,Y=(L-D+Math.sqrt(K))/(2*(U+L)),ee;I?(ee=Math.ceil(Y),ee==Y&&ee++):ee=Math.floor(Y);var X=ee*(U+L)-L;return B>X&&(X=B),X+=L*2,X},$.prototype.tileNodesByFavoringDim=function(A,I,D){var L=m.TILING_PADDING_VERTICAL,N=m.TILING_PADDING_HORIZONTAL,P=m.TILING_COMPARE_BY,z={rows:[],rowWidth:[],rowHeight:[],width:0,height:I,verticalPadding:L,horizontalPadding:N,centerX:0,centerY:0};P&&(z.idealRowWidth=this.calcIdealRowWidth(A,D));var B=function(te){return te.rect.width*te.rect.height},U=function(te,ne){return B(ne)-B(te)};A.sort(function(le,te){var ne=U;return z.idealRowWidth?(ne=P,ne(le.id,te.id)):ne(le,te)});for(var G=0,K=0,Y=0;Y0&&(z+=A.horizontalPadding),A.rowWidth[D]=z,A.width0&&(B+=A.verticalPadding);var U=0;B>A.rowHeight[D]&&(U=A.rowHeight[D],A.rowHeight[D]=B,U=A.rowHeight[D]-U),A.height+=U,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,N=A.rowWidth[L];return N+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 U;A.width-z>=I+A.horizontalPadding?U=(A.height+B)/(z+I+A.horizontalPadding):U=(A.height+B)/A.width,B=D+A.verticalPadding;var G;return A.widthP&&I!=D){L.splice(-1,1),A.rows[D].push(N),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 U=A.rowHeight[I]+A.rowHeight[D];A.rowHeight[I]=z,A.rowHeight[D]0)for(var X=N;X<=P;X++)ee[0]+=this.grid[X][z-1].length+this.grid[X][z].length-1;if(P0)for(var X=z;X<=B;X++)ee[3]+=this.grid[N-1][X].length+this.grid[N][X].length-1;for(var le=T.MAX_VALUE,te,ne,ae=0;ae{var d=u(551).FDLayoutNode,h=u(551).IMath;function f(g,m,v,y){d.call(this,g,m,v,y)}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 v=this.getChild().getNodes(),y,b=0;b{function d(v){if(Array.isArray(v)){for(var y=0,b=Array(v.length);y0){var Tt=0;ve.forEach(function(nt){fe=="horizontal"?(Pe.set(nt,_.has(nt)?S[_.get(nt)]:we.get(nt)),Tt+=Pe.get(nt)):(Pe.set(nt,_.has(nt)?x[_.get(nt)]:we.get(nt)),Tt+=Pe.get(nt))}),Tt=Tt/ve.length,Ve.forEach(function(nt){j.has(nt)||Pe.set(nt,Tt)})}else{var St=0;Ve.forEach(function(nt){fe=="horizontal"?St+=_.has(nt)?S[_.get(nt)]:we.get(nt):St+=_.has(nt)?x[_.get(nt)]:we.get(nt)}),St=St/Ve.length,Ve.forEach(function(nt){Pe.set(nt,St)})}});for(var ze=function(){var ve=Ze.shift(),Tt=q.get(ve);Tt.forEach(function(St){if(Pe.get(St.id)nt&&(nt=Nt),Vrdt&&(dt=Vr)}}catch(Fe){gt=!0,se=Fe}finally{try{!ft&&It.return&&It.return()}finally{if(gt)throw se}}var Ne=(Tt+nt)/2-(St+dt)/2,mt=!0,_t=!1,Ot=void 0;try{for(var Qt=Ve[Symbol.iterator](),br;!(mt=(br=Qt.next()).done);mt=!0){var Ct=br.value;Pe.set(Ct,Pe.get(Ct)+Ne)}}catch(Fe){_t=!0,Ot=Fe}finally{try{!mt&&Qt.return&&Qt.return()}finally{if(_t)throw Ot}}})}return Pe},F=function(q){var fe=0,j=0,we=0,Te=0;if(q.forEach(function(Ie){Ie.left?S[_.get(Ie.left)]-S[_.get(Ie.right)]>=0?fe++:j++:x[_.get(Ie.top)]-x[_.get(Ie.bottom)]>=0?we++:Te++}),fe>j&&we>Te)for(var rt=0;rt<_.size;rt++)S[rt]=-1*S[rt],x[rt]=-1*x[rt];else if(fe>j)for(var Oe=0;Oe<_.size;Oe++)S[Oe]=-1*S[Oe];else if(we>Te)for(var Pe=0;Pe<_.size;Pe++)x[Pe]=-1*x[Pe]},A=function(q){var fe=[],j=new f,we=new Set,Te=0;return q.forEach(function(rt,Oe){if(!we.has(Oe)){fe[Te]=[];var Pe=Oe;for(j.push(Pe),we.add(Pe),fe[Te].push(Pe);j.length!=0;){Pe=j.shift();var Ie=q.get(Pe);Ie.forEach(function(Ze){we.has(Ze.id)||(j.push(Ze.id),we.add(Ze.id),fe[Te].push(Ze.id))})}Te++}}),fe},I=function(q){var fe=new Map;return q.forEach(function(j,we){fe.set(we,[])}),q.forEach(function(j,we){j.forEach(function(Te){fe.get(we).push(Te),fe.get(Te.id).push({id:we,gap:Te.gap,direction:Te.direction})})}),fe},D=function(q){var fe=new Map;return q.forEach(function(j,we){fe.set(we,[])}),q.forEach(function(j,we){j.forEach(function(Te){fe.get(Te.id).push({id:we,gap:Te.gap,direction:Te.direction})})}),fe},L=[],N=[],P=!1,z=!1,B=new Set,U=new Map,G=new Map,K=[];if(y.fixedNodeConstraint&&y.fixedNodeConstraint.forEach(function(ye){B.add(ye.nodeId)}),y.relativePlacementConstraint&&(y.relativePlacementConstraint.forEach(function(ye){ye.left?(U.has(ye.left)?U.get(ye.left).push({id:ye.right,gap:ye.gap,direction:"horizontal"}):U.set(ye.left,[{id:ye.right,gap:ye.gap,direction:"horizontal"}]),U.has(ye.right)||U.set(ye.right,[])):(U.has(ye.top)?U.get(ye.top).push({id:ye.bottom,gap:ye.gap,direction:"vertical"}):U.set(ye.top,[{id:ye.bottom,gap:ye.gap,direction:"vertical"}]),U.has(ye.bottom)||U.set(ye.bottom,[]))}),G=I(U),K=A(G)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(y.fixedNodeConstraint&&y.fixedNodeConstraint.length>1)y.fixedNodeConstraint.forEach(function(ye,q){L[q]=[ye.position.x,ye.position.y],N[q]=[S[_.get(ye.nodeId)],x[_.get(ye.nodeId)]]}),P=!0;else if(y.alignmentConstraint)(function(){var ye=0;if(y.alignmentConstraint.vertical){for(var q=y.alignmentConstraint.vertical,fe=function(Pe){var Ie=new Set;q[Pe].forEach(function(me){Ie.add(me)});var Ze=new Set([].concat(d(Ie)).filter(function(me){return B.has(me)})),ze=void 0;Ze.size>0?ze=S[_.get(Ze.values().next().value)]:ze=M(Ie).x,q[Pe].forEach(function(me){L[ye]=[ze,x[_.get(me)]],N[ye]=[S[_.get(me)],x[_.get(me)]],ye++})},j=0;j0?ze=S[_.get(Ze.values().next().value)]:ze=M(Ie).y,we[Pe].forEach(function(me){L[ye]=[S[_.get(me)],ze],N[ye]=[S[_.get(me)],x[_.get(me)]],ye++})},rt=0;rtY&&(Y=K[X].length,ee=X);if(Y0){var Ae={x:0,y:0};y.fixedNodeConstraint.forEach(function(ye,q){var fe={x:S[_.get(ye.nodeId)],y:x[_.get(ye.nodeId)]},j=ye.position,we=O(j,fe);Ae.x+=we.x,Ae.y+=we.y}),Ae.x/=y.fixedNodeConstraint.length,Ae.y/=y.fixedNodeConstraint.length,S.forEach(function(ye,q){S[q]+=Ae.x}),x.forEach(function(ye,q){x[q]+=Ae.y}),y.fixedNodeConstraint.forEach(function(ye){S[_.get(ye.nodeId)]=ye.position.x,x[_.get(ye.nodeId)]=ye.position.y})}if(y.alignmentConstraint){if(y.alignmentConstraint.vertical)for(var je=y.alignmentConstraint.vertical,ot=function(q){var fe=new Set;je[q].forEach(function(Te){fe.add(Te)});var j=new Set([].concat(d(fe)).filter(function(Te){return B.has(Te)})),we=void 0;j.size>0?we=S[_.get(j.values().next().value)]:we=M(fe).x,fe.forEach(function(Te){B.has(Te)||(S[_.get(Te)]=we)})},lt=0;lt0?we=x[_.get(j.values().next().value)]:we=M(fe).y,fe.forEach(function(Te){B.has(Te)||(x[_.get(Te)]=we)})},ke=0;ke{o.exports=r})},a={};function i(o){var l=a[o];if(l!==void 0)return l.exports;var u=a[o]={exports:{}};return n[o](u,u.exports,i),u.exports}var s=i(45);return s})()})})(mC)),mC.exports}var OPt=gC.exports,nce;function DPt(){return nce||(nce=1,(function(t,e){(function(n,a){t.exports=a(IPt())})(OPt,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 v=[],y=!0,b=!1,_=void 0;try{for(var S=g[Symbol.iterator](),x;!(y=(x=S.next()).done)&&(v.push(x.value),!(m&&v.length===m));y=!0);}catch(C){b=!0,_=C}finally{try{!y&&S.return&&S.return()}finally{if(b)throw _}}return v}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(G)});for(var z=0;z1){x=_[0],C=x.connectedEdges().length,_.forEach(function(N){N.connectedEdges().length0&&v.set("dummy"+(v.size+1),R),O},f.relocateComponent=function(p,g,m){if(!m.fixedNodeConstraint){var v=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY,b=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;if(m.quality=="draft"){var S=!0,x=!1,C=void 0;try{for(var T=g.nodeIndexes[Symbol.iterator](),w;!(S=(w=T.next()).done);S=!0){var R=w.value,O=d(R,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,N=g.yCoords[$]+A.h/2;Iy&&(y=D),L_&&(_=N)}}}catch(G){x=!0,C=G}finally{try{!S&&T.return&&T.return()}finally{if(x)throw C}}var P=p.x-(y+v)/2,z=p.y-(_+b)/2;g.xCoords=g.xCoords.map(function(G){return G+P}),g.yCoords=g.yCoords.map(function(G){return G+z})}else{Object.keys(g).forEach(function(G){var K=g[G],Y=K.getRect().x,ee=K.getRect().x+K.getRect().width,X=K.getRect().y,le=K.getRect().y+K.getRect().height;Yy&&(y=ee),X_&&(_=le)});var B=p.x-(y+v)/2,U=p.y-(_+b)/2;Object.keys(g).forEach(function(G){var K=g[G];K.setCenter(K.getCenterX()+B,K.getCenterY()+U)})}}},f.calcBoundingBox=function(p,g,m,v){for(var y=Number.MAX_SAFE_INTEGER,b=Number.MIN_SAFE_INTEGER,_=Number.MAX_SAFE_INTEGER,S=Number.MIN_SAFE_INTEGER,x=void 0,C=void 0,T=void 0,w=void 0,R=p.descendants().not(":parent"),O=R.length,M=0;Mx&&(y=x),bT&&(_=T),S{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,v=u(140).layoutBase.FDLayoutConstants,y=u(140).CoSEConstants,b=function(S,x){var C=S.cy,T=S.eles,w=T.nodes(),R=T.edges(),O=void 0,M=void 0,$=void 0,F={};S.randomize&&(O=x.nodeIndexes,M=x.xCoords,$=x.yCoords);var A=function(G){return typeof G=="function"},I=function(G,K){return A(G)?G(K):G},D=d.calcParentsWithoutChildren(C,T),L=function U(G,K,Y,ee){for(var X=K.length,le=0;le0){var pe=void 0;pe=Y.getGraphManager().add(Y.newGraph(),ae),U(pe,ne,Y,ee)}}},N=function(G,K,Y){for(var ee=0,X=0,le=0;le0?y.DEFAULT_EDGE_LENGTH=v.DEFAULT_EDGE_LENGTH=ee/X:A(S.idealEdgeLength)?y.DEFAULT_EDGE_LENGTH=v.DEFAULT_EDGE_LENGTH=50:y.DEFAULT_EDGE_LENGTH=v.DEFAULT_EDGE_LENGTH=S.idealEdgeLength,y.MIN_REPULSION_DIST=v.MIN_REPULSION_DIST=v.DEFAULT_EDGE_LENGTH/10,y.DEFAULT_RADIAL_SEPARATION=v.DEFAULT_EDGE_LENGTH)},P=function(G,K){K.fixedNodeConstraint&&(G.constraints.fixedNodeConstraint=K.fixedNodeConstraint),K.alignmentConstraint&&(G.constraints.alignmentConstraint=K.alignmentConstraint),K.relativePlacementConstraint&&(G.constraints.relativePlacementConstraint=K.relativePlacementConstraint)};S.nestingFactor!=null&&(y.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=S.nestingFactor),S.gravity!=null&&(y.DEFAULT_GRAVITY_STRENGTH=v.DEFAULT_GRAVITY_STRENGTH=S.gravity),S.numIter!=null&&(y.MAX_ITERATIONS=v.MAX_ITERATIONS=S.numIter),S.gravityRange!=null&&(y.DEFAULT_GRAVITY_RANGE_FACTOR=v.DEFAULT_GRAVITY_RANGE_FACTOR=S.gravityRange),S.gravityCompound!=null&&(y.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.DEFAULT_COMPOUND_GRAVITY_STRENGTH=S.gravityCompound),S.gravityRangeCompound!=null&&(y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=S.gravityRangeCompound),S.initialEnergyOnIncremental!=null&&(y.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.DEFAULT_COOLING_FACTOR_INCREMENTAL=S.initialEnergyOnIncremental),S.tilingCompareBy!=null&&(y.TILING_COMPARE_BY=S.tilingCompareBy),S.quality=="proof"?m.QUALITY=2:m.QUALITY=0,y.NODE_DIMENSIONS_INCLUDE_LABELS=v.NODE_DIMENSIONS_INCLUDE_LABELS=m.NODE_DIMENSIONS_INCLUDE_LABELS=S.nodeDimensionsIncludeLabels,y.DEFAULT_INCREMENTAL=v.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!S.randomize,y.ANIMATE=v.ANIMATE=m.ANIMATE=S.animate,y.TILE=S.tile,y.TILING_PADDING_VERTICAL=typeof S.tilingPaddingVertical=="function"?S.tilingPaddingVertical.call():S.tilingPaddingVertical,y.TILING_PADDING_HORIZONTAL=typeof S.tilingPaddingHorizontal=="function"?S.tilingPaddingHorizontal.call():S.tilingPaddingHorizontal,y.DEFAULT_INCREMENTAL=v.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!0,y.PURE_INCREMENTAL=!S.randomize,m.DEFAULT_UNIFORM_LEAF_NODE_SIZES=S.uniformNodeDimensions,S.step=="transformed"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,y.ENFORCE_CONSTRAINTS=!1,y.APPLY_LAYOUT=!1),S.step=="enforced"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!0,y.APPLY_LAYOUT=!1),S.step=="cose"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!1,y.APPLY_LAYOUT=!0),S.step=="all"&&(S.randomize?y.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!0,y.APPLY_LAYOUT=!0),S.fixedNodeConstraint||S.alignmentConstraint||S.relativePlacementConstraint?y.TREE_REDUCTION_ON_INCREMENTAL=!1:y.TREE_REDUCTION_ON_INCREMENTAL=!0;var z=new h,B=z.newGraphManager();return L(B.addRoot(),d.getTopMostNodes(w),z,S),N(z,B,R),P(z,S),z.runLayout(),F};o.exports={coseLayout:b}}),212:((o,l,u)=>{var d=(function(){function S(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(He){var Re=He.boundingBox();F.push({x:Re.x1+Re.w/2,y:Re.y1+Re.h/2})}),T.randomize&&$.forEach(function(He){T.eles=He,O.push(m(T))}),T.quality=="default"||T.quality=="proof"){var z=w.collection();if(T.tile){var B=new Map,U=[],G=[],K=0,Y={nodeIndexes:B,xCoords:U,yCoords:G},ee=[];if($.forEach(function(He,Re){He.edges().length==0&&(He.nodes().forEach(function(xe,$e){z.merge(He.nodes()[$e]),xe.isParent()||(Y.nodeIndexes.set(He.nodes()[$e].id(),K++),Y.xCoords.push(He.nodes()[0].position().x),Y.yCoords.push(He.nodes()[0].position().y))}),ee.push(Re))}),z.length>1){var X=z.boundingBox();F.push({x:X.x1+X.w/2,y:X.y1+X.h/2}),$.push(z),O.push(Y);for(var le=ee.length-1;le>=0;le--)$.splice(ee[le],1),O.splice(ee[le],1),F.splice(ee[le],1)}}$.forEach(function(He,Re){T.eles=He,M.push(y(T,O[Re])),p.relocateComponent(F[Re],M[Re],T)})}else $.forEach(function(He,Re){p.relocateComponent(F[Re],O[Re],T)});var te=new Set;if($.length>1){var ne=[],ae=R.filter(function(He){return He.css("display")=="none"});$.forEach(function(He,Re){var xe=void 0;if(T.quality=="draft"&&(xe=O[Re].nodeIndexes),He.nodes().not(ae).length>0){var $e={};$e.edges=[],$e.nodes=[];var Ce=void 0;He.nodes().not(ae).forEach(function(ut){if(T.quality=="draft")if(!ut.isParent())Ce=xe.get(ut.id()),$e.nodes.push({x:O[Re].xCoords[Ce]-ut.boundingbox().w/2,y:O[Re].yCoords[Ce]-ut.boundingbox().h/2,width:ut.boundingbox().w,height:ut.boundingbox().h});else{var Ae=p.calcBoundingBox(ut,O[Re].xCoords,O[Re].yCoords,xe);$e.nodes.push({x:Ae.topLeftX,y:Ae.topLeftY,width:Ae.width,height:Ae.height})}else M[Re][ut.id()]&&$e.nodes.push({x:M[Re][ut.id()].getLeft(),y:M[Re][ut.id()].getTop(),width:M[Re][ut.id()].getWidth(),height:M[Re][ut.id()].getHeight()})}),He.edges().forEach(function(ut){var Ae=ut.source(),je=ut.target();if(Ae.css("display")!="none"&&je.css("display")!="none")if(T.quality=="draft"){var ot=xe.get(Ae.id()),lt=xe.get(je.id()),ct=[],it=[];if(Ae.isParent()){var ke=p.calcBoundingBox(Ae,O[Re].xCoords,O[Re].yCoords,xe);ct.push(ke.topLeftX+ke.width/2),ct.push(ke.topLeftY+ke.height/2)}else ct.push(O[Re].xCoords[ot]),ct.push(O[Re].yCoords[ot]);if(je.isParent()){var Qe=p.calcBoundingBox(je,O[Re].xCoords,O[Re].yCoords,xe);it.push(Qe.topLeftX+Qe.width/2),it.push(Qe.topLeftY+Qe.height/2)}else it.push(O[Re].xCoords[lt]),it.push(O[Re].yCoords[lt]);$e.edges.push({startX:ct[0],startY:ct[1],endX:it[0],endY:it[1]})}else M[Re][Ae.id()]&&M[Re][je.id()]&&$e.edges.push({startX:M[Re][Ae.id()].getCenterX(),startY:M[Re][Ae.id()].getCenterY(),endX:M[Re][je.id()].getCenterX(),endY:M[Re][je.id()].getCenterY()})}),$e.nodes.length>0&&(ne.push($e),te.add(Re))}});var re=I.packComponents(ne,T.randomize).shifts;if(T.quality=="draft")O.forEach(function(He,Re){var xe=He.xCoords.map(function(Ce){return Ce+re[Re].dx}),$e=He.yCoords.map(function(Ce){return Ce+re[Re].dy});He.xCoords=xe,He.yCoords=$e});else{var ge=0;te.forEach(function(He){Object.keys(M[He]).forEach(function(Re){var xe=M[He][Re];xe.setCenter(xe.getCenterX()+re[ge].dx,xe.getCenterY()+re[ge].dy)}),ge++})}}}else{var L=T.eles.boundingBox();if(F.push({x:L.x1+L.w/2,y:L.y1+L.h/2}),T.randomize){var N=m(T);O.push(N)}T.quality=="default"||T.quality=="proof"?(M.push(y(T,O[0])),p.relocateComponent(F[0],M[0],T)):p.relocateComponent(F[0],O[0],T)}var pe=function(Re,xe){if(T.quality=="default"||T.quality=="proof"){typeof Re=="number"&&(Re=xe);var $e=void 0,Ce=void 0,ut=Re.data("id");return M.forEach(function(je){ut in je&&($e={x:je[ut].getRect().getCenterX(),y:je[ut].getRect().getCenterY()},Ce=je[ut])}),T.nodeDimensionsIncludeLabels&&(Ce.labelWidth&&(Ce.labelPosHorizontal=="left"?$e.x+=Ce.labelWidth/2:Ce.labelPosHorizontal=="right"&&($e.x-=Ce.labelWidth/2)),Ce.labelHeight&&(Ce.labelPosVertical=="top"?$e.y+=Ce.labelHeight/2:Ce.labelPosVertical=="bottom"&&($e.y-=Ce.labelHeight/2))),$e==null&&($e={x:Re.position("x"),y:Re.position("y")}),{x:$e.x,y:$e.y}}else{var Ae=void 0;return O.forEach(function(je){var ot=je.nodeIndexes.get(Re.id());ot!=null&&(Ae={x:je.xCoords[ot],y:je.yCoords[ot]})}),Ae==null&&(Ae={x:Re.position("x"),y:Re.position("y")}),{x:Ae.x,y:Ae.y}}};if(T.quality=="default"||T.quality=="proof"||T.randomize){var Be=p.calcParentsWithoutChildren(w,R),Le=R.filter(function(He){return He.css("display")=="none"});T.eles=R.not(Le),R.nodes().not(":parent").not(Le).layoutPositions(C,T,pe),Be.length>0&&Be.forEach(function(He){He.position(pe(He))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),S})();o.exports=_}),657:((o,l,u)=>{var d=u(548),h=u(140).layoutBase.Matrix,f=u(140).layoutBase.SVD,p=function(m){var v=m.cy,y=m.eles,b=y.nodes(),_=y.nodes(":parent"),S=new Map,x=new Map,C=new Map,T=[],w=[],R=[],O=[],M=[],$=[],F=[],A=[],I=void 0,D=1e8,L=1e-9,N=m.piTol,P=m.samplingType,z=m.nodeSeparation,B=void 0,U=function(){for(var q=0,fe=0,j=!1;fe=Te;){Oe=we[Te++];for(var ie=T[Oe],Ve=0;VeZe&&(Ze=M[Tt],ze=Tt)}return ze},K=function(q){var fe=void 0;if(q){fe=Math.floor(Math.random()*I);for(var we=0;we=1)break;Ie=Pe}for(var me=0;me=1)break;Ie=Pe}for(var Ve=0;Ve0&&(fe.isParent()?T[q].push(C.get(fe.id())):T[q].push(fe.id()))})});var Le=function(q){var fe=x.get(q),j=void 0;S.get(q).forEach(function(we){v.getElementById(we).isParent()?j=C.get(we):j=we,T[fe].push(j),T[x.get(j)].push(q)})},He=!0,Re=!1,xe=void 0;try{for(var $e=S.keys()[Symbol.iterator](),Ce;!(He=(Ce=$e.next()).done);He=!0){var ut=Ce.value;Le(ut)}}catch(ye){Re=!0,xe=ye}finally{try{!He&&$e.return&&$e.return()}finally{if(Re)throw xe}}I=x.size;var Ae=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})},a={};function i(o){var l=a[o];if(l!==void 0)return l.exports;var u=a[o]={exports:{}};return n[o](u,u.exports,i),u.exports}var s=i(579);return s})()})})(gC)),gC.exports}var LPt=DPt();const MPt=Fl(LPt);var ace={L:"left",R:"right",T:"top",B:"bottom"},ice={L:E(t=>`${t},${t/2} 0,${t} 0,0`,"L"),R:E(t=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:E(t=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:E(t=>`${t/2},0 ${t},${t} 0,${t}`,"B")},W3={L:E((t,e)=>t-e+2,"L"),R:E((t,e)=>t-2,"R"),T:E((t,e)=>t-e+2,"T"),B:E((t,e)=>t-2,"B")},PPt=E(function(t){return Ds(t)?t==="L"?"R":"L":t==="T"?"B":"T"},"getOppositeArchitectureDirection"),sce=E(function(t){const e=t;return e==="L"||e==="R"||e==="T"||e==="B"},"isArchitectureDirection"),Ds=E(function(t){const e=t;return e==="L"||e==="R"},"isArchitectureDirectionX"),Mh=E(function(t){const e=t;return e==="T"||e==="B"},"isArchitectureDirectionY"),oK=E(function(t,e){const r=Ds(t)&&Mh(e),n=Mh(t)&&Ds(e);return r||n},"isArchitectureDirectionXY"),BPt=E(function(t){const e=t[0],r=t[1],n=Ds(e)&&Mh(r),a=Mh(e)&&Ds(r);return n||a},"isArchitecturePairXY"),FPt=E(function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"},"isValidArchitectureDirectionPair"),qz=E(function(t,e){const r=`${t}${e}`;return FPt(r)?r:void 0},"getArchitectureDirectionPair"),$Pt=E(function([t,e],r){const n=r[0],a=r[1];return Ds(n)?Mh(a)?[t+(n==="L"?-1:1),e+(a==="T"?1:-1)]:[t+(n==="L"?-1:1),e]:Ds(a)?[t+(a==="L"?1:-1),e+(n==="T"?1:-1)]:[t,e+(n==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),zPt=E(function(t){return t==="LT"||t==="TL"?[1,1]:t==="BL"||t==="LB"?[1,-1]:t==="BR"||t==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),UPt=E(function(t,e){return oK(t,e)?"bend":Ds(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),GPt=E(function(t){return t.type==="service"},"isArchitectureService"),qPt=E(function(t){return t.type==="junction"},"isArchitectureJunction"),iRe=E(t=>t.data(),"edgeData"),jm=E(t=>t.data(),"nodeData"),YPt=ln.architecture,q_,sRe=(q_=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=sa,this.getAccTitle=va,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getAccDescription=_a,this.setAccDescription=ya,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="",oa()}addService({id:e,icon:r,in:n,title:a,iconText:i}){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:i,title:a,edges:[],in:n}}getServices(){return Object.values(this.nodes).filter(GPt)}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(qPt)}getNodes(){return Object.values(this.nodes)}getNode(e){return this.nodes[e]??null}addGroup({id:e,icon:r,in:n,title:a}){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:a,in:n}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:e,rhsId:r,lhsDir:n,rhsDir:a,lhsInto:i,rhsInto:s,lhsGroup:o,rhsGroup:l,title:u}){if(!sce(n))throw new Error(`Invalid direction given for left hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(n)}`);if(!sce(a))throw new Error(`Invalid direction given for right hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(a)}`);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:i,lhsGroup:o,rhsId:r,rhsDir:a,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=UPt(f.lhsDir,f.rhsDir);m!=="bend"&&(e[p]??={},e[p][g]=m,e[g]??={},e[g][p]=m)}if(f.lhsId===u){const m=qz(f.lhsDir,f.rhsDir);m&&(h[m]=f.rhsId)}else{const m=qz(f.rhsDir,f.lhsDir);m&&(h[m]=f.lhsId)}return h},{}),l),{}),n=Object.keys(r)[0],a={[n]:1},i=Object.keys(r).reduce((l,u)=>u===n?l:{...l,[u]:1},{}),s=E(l=>{const u={[l]:[0,0]},d=[l];for(;d.length>0;){const h=d.shift();if(h){a[h]=1,delete i[h];const f=r[h],[p,g]=u[h];Object.entries(f).forEach(([m,v])=>{a[v]||(u[v]=$Pt([p,g],m),d.push(v))})}}return u},"BFS"),o=[s(n)];for(;Object.keys(i).length>0;)o.push(s(Object.keys(i)[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 $a({...YPt,...xr().architecture})}getConfigField(e){return this.getConfig()[e]}},E(q_,"ArchitectureDB"),q_),HPt=E((t,e)=>{Nu(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"),oRe={parser:{yy:void 0},parse:E(async t=>{const e=await Sc("architecture",t);oe.debug(e);const r=oRe.parser?.yy;if(!(r instanceof sRe))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.");HPt(e,r)},"parse")},VPt=E(t=>` .edge { stroke-width: ${t.archEdgeWidth}; stroke: ${t.archEdgeColor}; @@ -7220,19 +7225,19 @@ Expecting `+re.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ge="Parse error display: -webkit-box; -webkit-box-orient: vertical; } -`,"getStyles"),VPt=HPt,sm=E(t=>`${t}`,"wrapIcon"),tT={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:sm('')},server:{body:sm('')},disk:{body:sm('')},internet:{body:sm('')},cloud:{body:sm('')},unknown:Gpe,blank:{body:sm("")}}},WPt=E(async function(t,e,r,n){const a=r.getConfigField("padding"),i=r.getConfigField("iconSize"),s=i/2,o=i/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:v,targetGroup:y,label:b}=iRe(u);let{x:_,y:S}=u[0].sourceEndpoint();const{x,y:C}=u[0].midpoint();let{x:T,y:w}=u[0].targetEndpoint();const R=a+4;if(p&&(Ds(h)?_+=h==="L"?-R:R:S+=h==="T"?-R:R+18),y&&(Ds(m)?T+=m==="L"?-R:R:w+=m==="T"?-R:R+18),!p&&r.getNode(d)?.type==="junction"&&(Ds(h)?_+=h==="L"?s:-s:S+=h==="T"?s:-s),!y&&r.getNode(g)?.type==="junction"&&(Ds(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 ${_},${S} L ${x},${C} L${T},${w} `).attr("class","edge").attr("id",`${n}-${n1(d,g,{prefix:"L"})}`),f){const M=Ds(h)?W3[h](_,o):_-l,$=Mh(h)?W3[h](S,o):S-l;O.insert("polygon").attr("points",ice[h](o)).attr("transform",`translate(${M},${$})`).attr("class","arrow")}if(v){const M=Ds(m)?W3[m](T,o):T-l,$=Mh(m)?W3[m](w,o):w-l;O.insert("polygon").attr("points",ice[m](o)).attr("transform",`translate(${M},${$})`).attr("class","arrow")}if(b){const M=oK(h,m)?"XY":Ds(h)?"X":"Y";let $=0;M==="X"?$=Math.abs(_-T):M==="Y"?$=Math.abs(S-w)/1.5:$=Math.abs(_-T)/2;const F=O.append("g");if(await eo(F,b,{useHtmlLabels:!1,width:$,classes:"architecture-service-label"},Ye()),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=qz(h,m);if(A&&PPt(A)){const I=F.node().getBoundingClientRect(),[D,L]=$Pt(A);F.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*D*L*45})`);const N=F.node().getBoundingClientRect();F.attr("transform",` +`,"getStyles"),WPt=VPt,sm=E(t=>`${t}`,"wrapIcon"),tT={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:sm('')},server:{body:sm('')},disk:{body:sm('')},internet:{body:sm('')},cloud:{body:sm('')},unknown:Gpe,blank:{body:sm("")}}},KPt=E(async function(t,e,r,n){const a=r.getConfigField("padding"),i=r.getConfigField("iconSize"),s=i/2,o=i/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:v,targetGroup:y,label:b}=iRe(u);let{x:_,y:S}=u[0].sourceEndpoint();const{x,y:C}=u[0].midpoint();let{x:T,y:w}=u[0].targetEndpoint();const R=a+4;if(p&&(Ds(h)?_+=h==="L"?-R:R:S+=h==="T"?-R:R+18),y&&(Ds(m)?T+=m==="L"?-R:R:w+=m==="T"?-R:R+18),!p&&r.getNode(d)?.type==="junction"&&(Ds(h)?_+=h==="L"?s:-s:S+=h==="T"?s:-s),!y&&r.getNode(g)?.type==="junction"&&(Ds(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 ${_},${S} L ${x},${C} L${T},${w} `).attr("class","edge").attr("id",`${n}-${n1(d,g,{prefix:"L"})}`),f){const M=Ds(h)?W3[h](_,o):_-l,$=Mh(h)?W3[h](S,o):S-l;O.insert("polygon").attr("points",ice[h](o)).attr("transform",`translate(${M},${$})`).attr("class","arrow")}if(v){const M=Ds(m)?W3[m](T,o):T-l,$=Mh(m)?W3[m](w,o):w-l;O.insert("polygon").attr("points",ice[m](o)).attr("transform",`translate(${M},${$})`).attr("class","arrow")}if(b){const M=oK(h,m)?"XY":Ds(h)?"X":"Y";let $=0;M==="X"?$=Math.abs(_-T):M==="Y"?$=Math.abs(S-w)/1.5:$=Math.abs(_-T)/2;const F=O.append("g");if(await eo(F,b,{useHtmlLabels:!1,width:$,classes:"architecture-service-label"},Ye()),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=qz(h,m);if(A&&BPt(A)){const I=F.node().getBoundingClientRect(),[D,L]=zPt(A);F.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*D*L*45})`);const N=F.node().getBoundingClientRect();F.attr("transform",` translate(${x}, ${C-I.height/2}) translate(${D*N.width/2}, ${L*N.height/2}) rotate(${-1*D*L*45}, 0, ${I.height/2}) - `)}}}}}))},"drawEdges"),KPt=E(async function(t,e,r,n){const i=r.getConfigField("padding")*.75,s=r.getConfigField("fontSize"),l=r.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async u=>{const d=jm(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 v=t.append("g");let y=p,b=g;if(d.icon){const _=v.append("g");_.html(`${await fh(d.icon,{height:i,width:i,fallbackPrefix:tT.prefix})}`),_.attr("transform","translate("+(y+l+1)+", "+(b+l+1)+")"),y+=i,b+=s/2-1-2}if(d.label){const _=v.append("g");await eo(_,d.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},Ye()),_.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),_.attr("transform","translate("+(y+l+4)+", "+(b+l+2)+")")}r.setElementForId(d.id,m)}}))},"drawGroups"),XPt=E(async function(t,e,r,n){const a=Ye();for(const i of r){const s=e.append("g"),o=t.getConfigField("iconSize");if(i.title){const h=s.append("g");await eo(h,i.title,{useHtmlLabels:!1,width:o*1.5,classes:"architecture-service-label"},a),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(i.icon)l.html(`${await fh(i.icon,{height:o,width:o,fallbackPrefix:tT.prefix})}`);else if(i.iconText){l.html(`${await fh("blank",{height:o,width:o,fallbackPrefix:tT.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(dn(i.iconText,a)),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-${i.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-${i.id}`).attr("class","architecture-service");const{width:u,height:d}=s.node().getBBox();i.width=u,i.height=d,t.setElementForId(i.id,s)}return 0},"drawServices"),jPt=E(function(t,e,r,n){r.forEach(a=>{const i=e.append("g"),s=t.getConfigField("iconSize");i.append("g").append("rect").attr("id",`${n}-node-${a.id}`).attr("fill-opacity","0").attr("width",s).attr("height",s),i.attr("class","architecture-junction");const{width:l,height:u}=i._groups[0][0].getBBox();i.width=l,i.height=u,t.setElementForId(a.id,i)})},"drawJunctions");Ype([{name:tT.prefix,icons:tT}]);uu.use(LPt);function lRe(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"})})}E(lRe,"addServices");function cRe(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"})})}E(cRe,"addJunctions");function uRe(t,e){e.nodes().map(r=>{const n=jm(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)+")")})}E(uRe,"positionNodes");function dRe(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"})})}E(dRe,"addGroups");function hRe(t,e){t.forEach(r=>{const{lhsId:n,rhsId:a,lhsInto:i,lhsGroup:s,rhsInto:o,lhsDir:l,rhsDir:u,rhsGroup:d,title:h}=r,f=oK(r.lhsDir,r.rhsDir)?"segments":"straight",p={id:`${n}-${a}`,label:h,source:n,sourceDir:l,sourceArrow:i,sourceGroup:s,sourceEndpoint:l==="L"?"0 50%":l==="R"?"100% 50%":l==="T"?"50% 0":"50% 100%",target:a,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})})}E(hRe,"addEdges");function fRe(t,e,r){const n=E((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)}}),[i,s]=a.reduce(([o,l],{horiz:u,vert:d})=>[[...o,...u],[...l,...d]],[[],[]]);return{horizontal:i,vertical:s}}E(fRe,"getAlignments");function pRe(t,e){const r=[],n=E(i=>`${i[0]},${i[1]}`,"posToStr"),a=E(i=>i.split(",").map(s=>parseInt(s)),"strToPos");return t.forEach(i=>{const s=Object.fromEntries(Object.entries(i).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=a(d);Object.entries(u).forEach(([p,g])=>{const m=n([f[0]+g[0],f[1]+g[1]]),v=s[m];v&&!l[m]&&(o.push(m),r.push({[ace[p]]:v,[ace[MPt(p)]]:h,gap:1.5*e.getConfigField("iconSize")}))})}}}}),r}E(pRe,"getRelativeConstraints");function gRe(t,e,r,n,a,{spatialMaps:i,groupAlignments:s}){return new Promise(o=>{const l=At("body").append("div").attr("id","cy").attr("style","display:none"),u=uu({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":`${a.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:`${a.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),dRe(r,u),lRe(t,u,a),cRe(e,u,a),hRe(n,u);const d=fRe(a,i,s),h=pRe(i,a),f=a.getConfigField("iconSize"),p=a.getConfigField("idealEdgeLengthMultiplier")*f,g=.5*f,m=a.getConfigField("edgeElasticity"),v=u.layout({name:"fcose",quality:"proof",randomize:a.getConfigField("randomize"),nodeSeparation:a.getConfigField("nodeSeparation"),numIter:a.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(y){const[b,_]=y.connectedNodes(),{parent:S}=jm(b),{parent:x}=jm(_);return S===x?p:g},edgeElasticity(y){const[b,_]=y.connectedNodes(),{parent:S}=jm(b),{parent:x}=jm(_);return S===x?m:.001},alignmentConstraint:d,relativePlacementConstraint:h});v.one("layoutstop",()=>{function y(b,_,S,x){let C,T;const{x:w,y:R}=b,{x:O,y:M}=_;T=(x-R+(w-S)*(R-M)/(w-O))/Math.sqrt(1+Math.pow((R-M)/(w-O),2)),C=Math.sqrt(Math.pow(x-R,2)+Math.pow(S-w,2)-Math.pow(T,2));const $=Math.sqrt(Math.pow(O-w,2)+Math.pow(M-R,2));C=C/$;let F=(O-w)*(x-R)-(M-R)*(S-w);switch(!0){case F>=0:F=1;break;case F<0:F=-1;break}let A=(O-w)*(S-w)+(M-R)*(x-R);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}}E(y,"getSegmentWeights"),u.startBatch();for(const b of Object.values(u.edges()))if(b.data?.()){const{x:_,y:S}=b.source().position(),{x,y:C}=b.target().position();if(_!==x&&S!==C){const T=b.sourceEndpoint(),w=b.targetEndpoint(),{sourceDir:R}=iRe(b),[O,M]=Mh(R)?[T.x,w.y]:[w.x,T.y],{weights:$,distances:F}=y(T,w,O,M);b.style("segment-distances",F),b.style("segment-weights",$)}}u.endBatch(),v.run()}),v.run(),u.ready(y=>{oe.info("Ready",y),o(u)})})}E(gRe,"layoutArchitecture");var QPt=E(async(t,e,r,n)=>{const a=n.db;a.setDiagramId(e);const i=a.getServices(),s=a.getJunctions(),o=a.getGroups(),l=a.getEdges(),u=a.getDataStructures(),d=wo(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 XPt(a,f,i,e),jPt(a,f,s,e);const g=await gRe(i,s,o,l,a,u);await WPt(h,g,a,e),await KPt(p,g,a,e),uRe(a,g),Jb(void 0,d,a.getConfigField("padding"),a.getConfigField("useMaxWidth"))},"draw"),ZPt={draw:QPt},JPt={parser:oRe,get db(){return new sRe},renderer:ZPt,styles:VPt};const eBt=Object.freeze(Object.defineProperty({__proto__:null,diagram:JPt},Symbol.toStringTag,{value:"Module"}));var mRe="position frame",vRe="frame positioned",Yz="position relation",yRe="relation positioned",tBt=E(function(t){oe.debug("options str",t)},"setOptions"),rBt=E(function(){return{}},"getOptions"),nBt=E(function(){_Re(),oa()},"clear");function _Re(){lK={}}E(_Re,"reset");var aBt=ln.eventmodeling,iBt=E(()=>$a({...aBt,...xr().eventmodeling}),"getConfig"),lK={};function bRe(){let t=sBt;const{ast:e}=lK,r=cK();if(!e)throw new Error("No data for EventModel");return e.frames.forEach((n,a)=>{const i=kRe(n,e.dataEntities,r);t=_C(t,{$kind:mRe,index:a,frame:n,textProps:i});let s;DRe(n)?(oe.debug("source frame",n.sourceFrames),s=e.frames.filter(o=>n.sourceFrames.some(l=>l.$refText===o.name)),s.forEach(o=>{t=_C(t,{$kind:Yz,index:a,frame:n,sourceFrame:o})})):t=_C(t,{$kind:Yz,index:a,frame:n})}),t={...t,sortedSwimlanesArray:uK(t.swimlanes)},t}E(bRe,"getState");function ERe(t){lK.ast=t}E(ERe,"setAst");var bn={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 cK(){return bn}E(cK,"getDiagramProps");var sBt={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function SRe(t){const e=t.split(".");if(e.length===2)return e[0]}E(SRe,"extractNamespace");function TRe(t){const e=t.split(".");return e.length===2?e[1]:t}E(TRe,"extractName");function xRe(t,e){if(!(!e||e.length===0))return Object.values(t).find(r=>r.namespace===e)}E(xRe,"findSwimlaneByNamespace");function yC(t,e,r){return Math.max(e,...Object.keys(t).filter(n=>{const a=Number.parseInt(n);return a>e&&aNumber.parseInt(n)))+1}E(yC,"findNextAvailableIndex");function CRe(t,e){const r=SRe(t.entityIdentifier),n=xRe(e,r);switch(t.modelEntityType){case"ui":case"pcr":case"processor":return n?{index:n.index,label:n.namespace||bn.labelUiAutomation}:r?{index:yC(e,0,100),label:bn.labelUiAutomationPrefix+r}:{index:0,label:bn.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return n?{index:n.index,label:n.namespace||bn.labelCommandReadModel}:r?{index:yC(e,100,200),label:bn.labelCommandReadModelPrefix+r}:{index:100,label:bn.labelCommandReadModel};default:return n?{index:n.index,label:n.namespace||bn.labelEvents}:r?{index:yC(e,200,300),label:bn.labelEventsPrefix+r}:{index:200,label:bn.labelEvents}}}E(CRe,"calculateSwimlaneProps");function wRe(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"}}}E(wRe,"calculateEntityVisualProps");function kRe(t,e,r){const n=xr(),a=dn(TRe(t.entityIdentifier)??"",n);let i;const s={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
"};let l=`${cS(a,r.textMaxWidth,s)}`;if(t.dataInlineValue&&(i=t.dataInlineValue,i=i.substring(i.indexOf("{")+1),i=i.substring(0,i.lastIndexOf("}")-1),i=dn(i,n),i=cS(i,r.textMaxWidth,s),i=i.replaceAll(" "," ")),t.dataReference){const g=e.find(m=>m.name===t.dataReference?.$refText);g&&(i=g.dataBlockValue,i=i.substring(i.indexOf(`{ -`)+2),i=i.substring(0,i.lastIndexOf("}")-1),i=dn(i,n),i=cS(i,r.textMaxWidth,s),i=i.replaceAll(" "," "),i+="
")}const u=i!==void 0;u&&(l+=`

${i}`);const d={fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:s.fontFamily},h=jk(l,d),f=u?h.width/3:h.width,p={content:l,width:f,height:h.height};return oe.debug(`[${t.name}] ${t.entityIdentifier} text`,p),p}E(kRe,"calculateTextProps");function ARe(t,e){const r=e,n=wRe(r.frame),a={width:r.textProps.width+2*bn.boxTextPadding,height:r.textProps.height+2*bn.boxTextPadding};return[{$kind:vRe,frame:r.frame,index:r.index,visual:n,dimension:a,textProps:r.textProps}]}E(ARe,"decidePositionFrame");function RRe(t,e,r){return e===void 0?bn.contentStartX:e.index===t.index&&t.r?t.r+bn.boxPadding:r===void 0?bn.contentStartX:r.r-bn.boxOverlap+bn.boxPadding}E(RRe,"calculateX");function NRe(t,e){const r=[...t.map(n=>n.r),e];return Math.max(...r)}E(NRe,"calculateMaxRight");function uK(t){return Object.values(t).sort((e,r)=>e.index-r.index)}E(uK,"sortedSwimlanesArray");function IRe(t,e){const r=e,n=CRe(r.frame,t.swimlanes);let a;n.index in t.swimlanes?a=t.swimlanes[n.index]:a={index:n.index,label:n.label,r:0,y:n.index*bn.swimlaneMinHeight+bn.swimlaneGap,height:bn.swimlaneMinHeight,maxHeight:bn.swimlaneMinHeight};const i=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(bn.boxMinWidth,Math.min(bn.boxMaxWidth,r.dimension.width))+2*bn.boxPadding,height:Math.max(bn.boxMinHeight,Math.min(bn.boxMaxHeight,r.dimension.height))+2*bn.boxPadding},l=RRe(a,s,i),u=l+o.width+bn.boxPadding,d=NRe(Object.values(t.swimlanes),u);a.r=l+o.width,a.maxHeight=Math.max(a.maxHeight,o.height),a.height=Math.max(bn.swimlaneMinHeight,a.maxHeight)+2*bn.swimlanePadding;const h={x:l,y:bn.swimlanePadding+a.y,r:u,dimension:o,leftSibling:!1,swimlane:a,visual:r.visual,text:r.textProps.content,frame:r.frame,index:r.index},f={...t,boxes:[...t.boxes,h],swimlanes:{...t.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:n.index,previousFrame:r.frame,maxR:d},p=uK(f.swimlanes);p.length>0&&(p[0].y=0);for(let g=1;g0}E(DRe,"hasSourceFrame");function Hz(t,e){if(e!=null)return t.find(r=>r.frame.name===e.name)}E(Hz,"findBoxByFrame");function LRe(t,e,r){if(!(r<0))for(let n=r;n>=0;n--){const a=t[n];if(a.swimlane.index!==e)return a}}E(LRe,"findBoxByLineIndex");function MRe(t,e){const r=e;if(s7e(r.frame)||ORe(r.index,r.frame))return[];const n=Hz(t.boxes,r.frame);if(n===void 0)throw new Error(`Target box not found for frame ${r.frame.name}`);let a;return r.sourceFrame?a=Hz(t.boxes,r.sourceFrame):a=LRe(t.boxes,n.swimlane.index,r.index-1),a===void 0?[]:[{$kind:yRe,frame:r.frame,index:r.index,sourceBox:a,targetBox:n}]}E(MRe,"decidePositionRelation");function PRe(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]}}E(PRe,"evolveRelationPositioned");var oBt={[mRe]:ARe,[Yz]:MRe},lBt={[vRe]:IRe,[yRe]:PRe};function BRe(t,e){const r=oBt[e.$kind];if(r==null)return[];const n=r(t,e);return oe.debug("decided events",n),n}E(BRe,"decide");function FRe(t,e){const r=e.reduce((n,a)=>{const i=lBt[a.$kind];return i==null?n:i(n,a)},t);return oe.debug("evolve events",{state:t,newState:r,events:e}),r}E(FRe,"evolve");function _C(t,e){const r=BRe(t,e);return FRe(t,r)}E(_C,"dispatch");var Vz={getConfig:iBt,setOptions:tBt,getOptions:rBt,clear:nBt,setAccTitle:sa,getAccTitle:va,getAccDescription:_a,setAccDescription:ya,setDiagramTitle:pa,getDiagramTitle:la,setAst:ERe,getDiagramProps:cK,getState:bRe},cBt={parse:E(async t=>{const e=await Sc("eventmodeling",t);oe.debug(e),Vz.setAst(e),Nu(e,Vz)},"parse")},uBt=Ye(),dBt=uBt?.eventmodeling;function $Re(t,e){return r=>{const n=r.swimlane.y+e.swimlanePadding,a=t.append("g").attr("class","em-box");a.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),a.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)}}E($Re,"renderD3Box");function zRe(t,e){return t>e}E(zRe,"dirUpwards");function URe(t,e,r,n){return a=>{const i=a.sourceBox.swimlane.y+e.swimlanePadding,s=a.targetBox.swimlane.y+e.swimlanePadding,o=zRe(i,s),l=a.sourceBox.x+a.sourceBox.dimension.width*2/3,u=a.targetBox.x+a.targetBox.dimension.width/3;let d,h;oe.debug(`rendering relation up=${o} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),o?(d=i,h=s+a.targetBox.dimension.height):(d=i+a.sourceBox.dimension.height,h=s);const f=n.emRelationStroke??a.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",f).attr("stroke-width","1").attr("marker-end",`url(#${r})`).attr("d",`M${l} ${d} L${u} ${h}`)}}E(URe,"renderD3Relation");function GRe(t,e,r,n){return a=>{const i=t.append("g").attr("class","em-swimlane"),s=n.emSwimlaneBackgroundOdd??"rgb(250,250,250)",o=n.emSwimlaneBackgroundStroke??"rgb(240,240,240)";i.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",e+r.swimlanePadding).attr("height",a.height).attr("fill",s).attr("stroke",o),i.append("text").attr("font-weight",r.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}E(GRe,"renderD3Swimlane");var hBt=E(function(t,e,r,n){if(oe.debug("in eventmodeling renderer",t+` -`,"id:",e,r),!dBt)throw new Error("EventModeling config not found");const a=n.db,{themeVariables:i,eventmodeling:s}=Ye(),o=At(`[id="${e}"]`),l=a.getDiagramProps(),u=a.getState(),d=`em-arrowhead-${e}`,h=i.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(GRe(o,u.maxR,l,i)),u.boxes.forEach($Re(o,l)),u.relations.forEach(URe(o,l,d,i)),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),WU(void 0,o,s?.padding??30,s?.useMaxWidth)},"draw"),fBt={draw:hBt},pBt=E(t=>"","getStyles"),gBt=pBt,mBt={parser:cBt,db:Vz,renderer:fBt,styles:gBt};const vBt=Object.freeze(Object.defineProperty({__proto__:null,diagram:mBt},Symbol.toStringTag,{value:"Module"}));var Wz=(function(){var t=E(function(y,b,_,S){for(_=_||{},S=y.length;S--;_[y[S]]=b);return _},"o"),e=[1,4],r=[1,14],n=[1,12],a=[1,13],i=[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:E(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:E(function(b,_,S,x,C,T,w){var R=T.length-1;switch(C){case 6:case 7:return x;case 15:x.addNode(T[R-1].length,T[R].trim());break;case 16:x.addNode(0,T[R].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:a},t(i,[2,3]),{1:[2,2]},t(i,[2,4]),t(i,[2,5]),{1:[2,6],6:r,12:15,13:n,14:a},{6:r,9:16,12:11,13:n,14:a},{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:a},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:E(function(b,_){if(_.recoverable)this.trace(b);else{var S=new Error(b);throw S.hash=_,S}},"parseError"),parse:E(function(b){var _=this,S=[0],x=[],C=[null],T=[],w=this.table,R="",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 N=I.yylloc;T.push(N);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(re){S.length=S.length-2*re,C.length=C.length-re,T.length=T.length-re}E(z,"popStack");function B(){var re;return re=x.pop()||I.lex()||F,typeof re!="number"&&(re instanceof Array&&(x=re,re=x.pop()),re=_.symbols_[re]||re),re}E(B,"lex");for(var U,G,K,Y,ee={},X,le,te,ne;;){if(G=S[S.length-1],this.defaultActions[G]?K=this.defaultActions[G]:((U===null||typeof U>"u")&&(U=B()),K=w[G]&&w[G][U]),typeof K>"u"||!K.length||!K[0]){var ae="";ne=[];for(X in w[G])this.terminals_[X]&&X>$&&ne.push("'"+this.terminals_[X]+"'");I.showPosition?ae="Parse error on line "+(O+1)+`: + `)}}}}}))},"drawEdges"),XPt=E(async function(t,e,r,n){const i=r.getConfigField("padding")*.75,s=r.getConfigField("fontSize"),l=r.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async u=>{const d=jm(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 v=t.append("g");let y=p,b=g;if(d.icon){const _=v.append("g");_.html(`${await fh(d.icon,{height:i,width:i,fallbackPrefix:tT.prefix})}`),_.attr("transform","translate("+(y+l+1)+", "+(b+l+1)+")"),y+=i,b+=s/2-1-2}if(d.label){const _=v.append("g");await eo(_,d.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},Ye()),_.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),_.attr("transform","translate("+(y+l+4)+", "+(b+l+2)+")")}r.setElementForId(d.id,m)}}))},"drawGroups"),jPt=E(async function(t,e,r,n){const a=Ye();for(const i of r){const s=e.append("g"),o=t.getConfigField("iconSize");if(i.title){const h=s.append("g");await eo(h,i.title,{useHtmlLabels:!1,width:o*1.5,classes:"architecture-service-label"},a),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(i.icon)l.html(`${await fh(i.icon,{height:o,width:o,fallbackPrefix:tT.prefix})}`);else if(i.iconText){l.html(`${await fh("blank",{height:o,width:o,fallbackPrefix:tT.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(dn(i.iconText,a)),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-${i.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-${i.id}`).attr("class","architecture-service");const{width:u,height:d}=s.node().getBBox();i.width=u,i.height=d,t.setElementForId(i.id,s)}return 0},"drawServices"),QPt=E(function(t,e,r,n){r.forEach(a=>{const i=e.append("g"),s=t.getConfigField("iconSize");i.append("g").append("rect").attr("id",`${n}-node-${a.id}`).attr("fill-opacity","0").attr("width",s).attr("height",s),i.attr("class","architecture-junction");const{width:l,height:u}=i._groups[0][0].getBBox();i.width=l,i.height=u,t.setElementForId(a.id,i)})},"drawJunctions");Ype([{name:tT.prefix,icons:tT}]);uu.use(MPt);function lRe(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"})})}E(lRe,"addServices");function cRe(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"})})}E(cRe,"addJunctions");function uRe(t,e){e.nodes().map(r=>{const n=jm(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)+")")})}E(uRe,"positionNodes");function dRe(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"})})}E(dRe,"addGroups");function hRe(t,e){t.forEach(r=>{const{lhsId:n,rhsId:a,lhsInto:i,lhsGroup:s,rhsInto:o,lhsDir:l,rhsDir:u,rhsGroup:d,title:h}=r,f=oK(r.lhsDir,r.rhsDir)?"segments":"straight",p={id:`${n}-${a}`,label:h,source:n,sourceDir:l,sourceArrow:i,sourceGroup:s,sourceEndpoint:l==="L"?"0 50%":l==="R"?"100% 50%":l==="T"?"50% 0":"50% 100%",target:a,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})})}E(hRe,"addEdges");function fRe(t,e,r){const n=E((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)}}),[i,s]=a.reduce(([o,l],{horiz:u,vert:d})=>[[...o,...u],[...l,...d]],[[],[]]);return{horizontal:i,vertical:s}}E(fRe,"getAlignments");function pRe(t,e){const r=[],n=E(i=>`${i[0]},${i[1]}`,"posToStr"),a=E(i=>i.split(",").map(s=>parseInt(s)),"strToPos");return t.forEach(i=>{const s=Object.fromEntries(Object.entries(i).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=a(d);Object.entries(u).forEach(([p,g])=>{const m=n([f[0]+g[0],f[1]+g[1]]),v=s[m];v&&!l[m]&&(o.push(m),r.push({[ace[p]]:v,[ace[PPt(p)]]:h,gap:1.5*e.getConfigField("iconSize")}))})}}}}),r}E(pRe,"getRelativeConstraints");function gRe(t,e,r,n,a,{spatialMaps:i,groupAlignments:s}){return new Promise(o=>{const l=At("body").append("div").attr("id","cy").attr("style","display:none"),u=uu({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":`${a.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:`${a.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),dRe(r,u),lRe(t,u,a),cRe(e,u,a),hRe(n,u);const d=fRe(a,i,s),h=pRe(i,a),f=a.getConfigField("iconSize"),p=a.getConfigField("idealEdgeLengthMultiplier")*f,g=.5*f,m=a.getConfigField("edgeElasticity"),v=u.layout({name:"fcose",quality:"proof",randomize:a.getConfigField("randomize"),nodeSeparation:a.getConfigField("nodeSeparation"),numIter:a.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(y){const[b,_]=y.connectedNodes(),{parent:S}=jm(b),{parent:x}=jm(_);return S===x?p:g},edgeElasticity(y){const[b,_]=y.connectedNodes(),{parent:S}=jm(b),{parent:x}=jm(_);return S===x?m:.001},alignmentConstraint:d,relativePlacementConstraint:h});v.one("layoutstop",()=>{function y(b,_,S,x){let C,T;const{x:w,y:R}=b,{x:O,y:M}=_;T=(x-R+(w-S)*(R-M)/(w-O))/Math.sqrt(1+Math.pow((R-M)/(w-O),2)),C=Math.sqrt(Math.pow(x-R,2)+Math.pow(S-w,2)-Math.pow(T,2));const $=Math.sqrt(Math.pow(O-w,2)+Math.pow(M-R,2));C=C/$;let F=(O-w)*(x-R)-(M-R)*(S-w);switch(!0){case F>=0:F=1;break;case F<0:F=-1;break}let A=(O-w)*(S-w)+(M-R)*(x-R);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}}E(y,"getSegmentWeights"),u.startBatch();for(const b of Object.values(u.edges()))if(b.data?.()){const{x:_,y:S}=b.source().position(),{x,y:C}=b.target().position();if(_!==x&&S!==C){const T=b.sourceEndpoint(),w=b.targetEndpoint(),{sourceDir:R}=iRe(b),[O,M]=Mh(R)?[T.x,w.y]:[w.x,T.y],{weights:$,distances:F}=y(T,w,O,M);b.style("segment-distances",F),b.style("segment-weights",$)}}u.endBatch(),v.run()}),v.run(),u.ready(y=>{oe.info("Ready",y),o(u)})})}E(gRe,"layoutArchitecture");var ZPt=E(async(t,e,r,n)=>{const a=n.db;a.setDiagramId(e);const i=a.getServices(),s=a.getJunctions(),o=a.getGroups(),l=a.getEdges(),u=a.getDataStructures(),d=wo(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 jPt(a,f,i,e),QPt(a,f,s,e);const g=await gRe(i,s,o,l,a,u);await KPt(h,g,a,e),await XPt(p,g,a,e),uRe(a,g),Jb(void 0,d,a.getConfigField("padding"),a.getConfigField("useMaxWidth"))},"draw"),JPt={draw:ZPt},eBt={parser:oRe,get db(){return new sRe},renderer:JPt,styles:WPt};const tBt=Object.freeze(Object.defineProperty({__proto__:null,diagram:eBt},Symbol.toStringTag,{value:"Module"}));var mRe="position frame",vRe="frame positioned",Yz="position relation",yRe="relation positioned",rBt=E(function(t){oe.debug("options str",t)},"setOptions"),nBt=E(function(){return{}},"getOptions"),aBt=E(function(){_Re(),oa()},"clear");function _Re(){lK={}}E(_Re,"reset");var iBt=ln.eventmodeling,sBt=E(()=>$a({...iBt,...xr().eventmodeling}),"getConfig"),lK={};function bRe(){let t=oBt;const{ast:e}=lK,r=cK();if(!e)throw new Error("No data for EventModel");return e.frames.forEach((n,a)=>{const i=kRe(n,e.dataEntities,r);t=_C(t,{$kind:mRe,index:a,frame:n,textProps:i});let s;DRe(n)?(oe.debug("source frame",n.sourceFrames),s=e.frames.filter(o=>n.sourceFrames.some(l=>l.$refText===o.name)),s.forEach(o=>{t=_C(t,{$kind:Yz,index:a,frame:n,sourceFrame:o})})):t=_C(t,{$kind:Yz,index:a,frame:n})}),t={...t,sortedSwimlanesArray:uK(t.swimlanes)},t}E(bRe,"getState");function ERe(t){lK.ast=t}E(ERe,"setAst");var bn={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 cK(){return bn}E(cK,"getDiagramProps");var oBt={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function SRe(t){const e=t.split(".");if(e.length===2)return e[0]}E(SRe,"extractNamespace");function TRe(t){const e=t.split(".");return e.length===2?e[1]:t}E(TRe,"extractName");function xRe(t,e){if(!(!e||e.length===0))return Object.values(t).find(r=>r.namespace===e)}E(xRe,"findSwimlaneByNamespace");function yC(t,e,r){return Math.max(e,...Object.keys(t).filter(n=>{const a=Number.parseInt(n);return a>e&&aNumber.parseInt(n)))+1}E(yC,"findNextAvailableIndex");function CRe(t,e){const r=SRe(t.entityIdentifier),n=xRe(e,r);switch(t.modelEntityType){case"ui":case"pcr":case"processor":return n?{index:n.index,label:n.namespace||bn.labelUiAutomation}:r?{index:yC(e,0,100),label:bn.labelUiAutomationPrefix+r}:{index:0,label:bn.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return n?{index:n.index,label:n.namespace||bn.labelCommandReadModel}:r?{index:yC(e,100,200),label:bn.labelCommandReadModelPrefix+r}:{index:100,label:bn.labelCommandReadModel};default:return n?{index:n.index,label:n.namespace||bn.labelEvents}:r?{index:yC(e,200,300),label:bn.labelEventsPrefix+r}:{index:200,label:bn.labelEvents}}}E(CRe,"calculateSwimlaneProps");function wRe(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"}}}E(wRe,"calculateEntityVisualProps");function kRe(t,e,r){const n=xr(),a=dn(TRe(t.entityIdentifier)??"",n);let i;const s={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
"};let l=`${cS(a,r.textMaxWidth,s)}`;if(t.dataInlineValue&&(i=t.dataInlineValue,i=i.substring(i.indexOf("{")+1),i=i.substring(0,i.lastIndexOf("}")-1),i=dn(i,n),i=cS(i,r.textMaxWidth,s),i=i.replaceAll(" "," ")),t.dataReference){const g=e.find(m=>m.name===t.dataReference?.$refText);g&&(i=g.dataBlockValue,i=i.substring(i.indexOf(`{ +`)+2),i=i.substring(0,i.lastIndexOf("}")-1),i=dn(i,n),i=cS(i,r.textMaxWidth,s),i=i.replaceAll(" "," "),i+="
")}const u=i!==void 0;u&&(l+=`

${i}`);const d={fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:s.fontFamily},h=jk(l,d),f=u?h.width/3:h.width,p={content:l,width:f,height:h.height};return oe.debug(`[${t.name}] ${t.entityIdentifier} text`,p),p}E(kRe,"calculateTextProps");function ARe(t,e){const r=e,n=wRe(r.frame),a={width:r.textProps.width+2*bn.boxTextPadding,height:r.textProps.height+2*bn.boxTextPadding};return[{$kind:vRe,frame:r.frame,index:r.index,visual:n,dimension:a,textProps:r.textProps}]}E(ARe,"decidePositionFrame");function RRe(t,e,r){return e===void 0?bn.contentStartX:e.index===t.index&&t.r?t.r+bn.boxPadding:r===void 0?bn.contentStartX:r.r-bn.boxOverlap+bn.boxPadding}E(RRe,"calculateX");function NRe(t,e){const r=[...t.map(n=>n.r),e];return Math.max(...r)}E(NRe,"calculateMaxRight");function uK(t){return Object.values(t).sort((e,r)=>e.index-r.index)}E(uK,"sortedSwimlanesArray");function IRe(t,e){const r=e,n=CRe(r.frame,t.swimlanes);let a;n.index in t.swimlanes?a=t.swimlanes[n.index]:a={index:n.index,label:n.label,r:0,y:n.index*bn.swimlaneMinHeight+bn.swimlaneGap,height:bn.swimlaneMinHeight,maxHeight:bn.swimlaneMinHeight};const i=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(bn.boxMinWidth,Math.min(bn.boxMaxWidth,r.dimension.width))+2*bn.boxPadding,height:Math.max(bn.boxMinHeight,Math.min(bn.boxMaxHeight,r.dimension.height))+2*bn.boxPadding},l=RRe(a,s,i),u=l+o.width+bn.boxPadding,d=NRe(Object.values(t.swimlanes),u);a.r=l+o.width,a.maxHeight=Math.max(a.maxHeight,o.height),a.height=Math.max(bn.swimlaneMinHeight,a.maxHeight)+2*bn.swimlanePadding;const h={x:l,y:bn.swimlanePadding+a.y,r:u,dimension:o,leftSibling:!1,swimlane:a,visual:r.visual,text:r.textProps.content,frame:r.frame,index:r.index},f={...t,boxes:[...t.boxes,h],swimlanes:{...t.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:n.index,previousFrame:r.frame,maxR:d},p=uK(f.swimlanes);p.length>0&&(p[0].y=0);for(let g=1;g0}E(DRe,"hasSourceFrame");function Hz(t,e){if(e!=null)return t.find(r=>r.frame.name===e.name)}E(Hz,"findBoxByFrame");function LRe(t,e,r){if(!(r<0))for(let n=r;n>=0;n--){const a=t[n];if(a.swimlane.index!==e)return a}}E(LRe,"findBoxByLineIndex");function MRe(t,e){const r=e;if(s7e(r.frame)||ORe(r.index,r.frame))return[];const n=Hz(t.boxes,r.frame);if(n===void 0)throw new Error(`Target box not found for frame ${r.frame.name}`);let a;return r.sourceFrame?a=Hz(t.boxes,r.sourceFrame):a=LRe(t.boxes,n.swimlane.index,r.index-1),a===void 0?[]:[{$kind:yRe,frame:r.frame,index:r.index,sourceBox:a,targetBox:n}]}E(MRe,"decidePositionRelation");function PRe(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]}}E(PRe,"evolveRelationPositioned");var lBt={[mRe]:ARe,[Yz]:MRe},cBt={[vRe]:IRe,[yRe]:PRe};function BRe(t,e){const r=lBt[e.$kind];if(r==null)return[];const n=r(t,e);return oe.debug("decided events",n),n}E(BRe,"decide");function FRe(t,e){const r=e.reduce((n,a)=>{const i=cBt[a.$kind];return i==null?n:i(n,a)},t);return oe.debug("evolve events",{state:t,newState:r,events:e}),r}E(FRe,"evolve");function _C(t,e){const r=BRe(t,e);return FRe(t,r)}E(_C,"dispatch");var Vz={getConfig:sBt,setOptions:rBt,getOptions:nBt,clear:aBt,setAccTitle:sa,getAccTitle:va,getAccDescription:_a,setAccDescription:ya,setDiagramTitle:pa,getDiagramTitle:la,setAst:ERe,getDiagramProps:cK,getState:bRe},uBt={parse:E(async t=>{const e=await Sc("eventmodeling",t);oe.debug(e),Vz.setAst(e),Nu(e,Vz)},"parse")},dBt=Ye(),hBt=dBt?.eventmodeling;function $Re(t,e){return r=>{const n=r.swimlane.y+e.swimlanePadding,a=t.append("g").attr("class","em-box");a.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),a.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)}}E($Re,"renderD3Box");function zRe(t,e){return t>e}E(zRe,"dirUpwards");function URe(t,e,r,n){return a=>{const i=a.sourceBox.swimlane.y+e.swimlanePadding,s=a.targetBox.swimlane.y+e.swimlanePadding,o=zRe(i,s),l=a.sourceBox.x+a.sourceBox.dimension.width*2/3,u=a.targetBox.x+a.targetBox.dimension.width/3;let d,h;oe.debug(`rendering relation up=${o} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),o?(d=i,h=s+a.targetBox.dimension.height):(d=i+a.sourceBox.dimension.height,h=s);const f=n.emRelationStroke??a.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",f).attr("stroke-width","1").attr("marker-end",`url(#${r})`).attr("d",`M${l} ${d} L${u} ${h}`)}}E(URe,"renderD3Relation");function GRe(t,e,r,n){return a=>{const i=t.append("g").attr("class","em-swimlane"),s=n.emSwimlaneBackgroundOdd??"rgb(250,250,250)",o=n.emSwimlaneBackgroundStroke??"rgb(240,240,240)";i.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",e+r.swimlanePadding).attr("height",a.height).attr("fill",s).attr("stroke",o),i.append("text").attr("font-weight",r.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}E(GRe,"renderD3Swimlane");var fBt=E(function(t,e,r,n){if(oe.debug("in eventmodeling renderer",t+` +`,"id:",e,r),!hBt)throw new Error("EventModeling config not found");const a=n.db,{themeVariables:i,eventmodeling:s}=Ye(),o=At(`[id="${e}"]`),l=a.getDiagramProps(),u=a.getState(),d=`em-arrowhead-${e}`,h=i.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(GRe(o,u.maxR,l,i)),u.boxes.forEach($Re(o,l)),u.relations.forEach(URe(o,l,d,i)),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),WU(void 0,o,s?.padding??30,s?.useMaxWidth)},"draw"),pBt={draw:fBt},gBt=E(t=>"","getStyles"),mBt=gBt,vBt={parser:uBt,db:Vz,renderer:pBt,styles:mBt};const yBt=Object.freeze(Object.defineProperty({__proto__:null,diagram:vBt},Symbol.toStringTag,{value:"Module"}));var Wz=(function(){var t=E(function(y,b,_,S){for(_=_||{},S=y.length;S--;_[y[S]]=b);return _},"o"),e=[1,4],r=[1,14],n=[1,12],a=[1,13],i=[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:E(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:E(function(b,_,S,x,C,T,w){var R=T.length-1;switch(C){case 6:case 7:return x;case 15:x.addNode(T[R-1].length,T[R].trim());break;case 16:x.addNode(0,T[R].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:a},t(i,[2,3]),{1:[2,2]},t(i,[2,4]),t(i,[2,5]),{1:[2,6],6:r,12:15,13:n,14:a},{6:r,9:16,12:11,13:n,14:a},{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:a},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:E(function(b,_){if(_.recoverable)this.trace(b);else{var S=new Error(b);throw S.hash=_,S}},"parseError"),parse:E(function(b){var _=this,S=[0],x=[],C=[null],T=[],w=this.table,R="",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 N=I.yylloc;T.push(N);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(re){S.length=S.length-2*re,C.length=C.length-re,T.length=T.length-re}E(z,"popStack");function B(){var re;return re=x.pop()||I.lex()||F,typeof re!="number"&&(re instanceof Array&&(x=re,re=x.pop()),re=_.symbols_[re]||re),re}E(B,"lex");for(var U,G,K,Y,ee={},X,le,te,ne;;){if(G=S[S.length-1],this.defaultActions[G]?K=this.defaultActions[G]:((U===null||typeof U>"u")&&(U=B()),K=w[G]&&w[G][U]),typeof K>"u"||!K.length||!K[0]){var ae="";ne=[];for(X in w[G])this.terminals_[X]&&X>$&&ne.push("'"+this.terminals_[X]+"'");I.showPosition?ae="Parse error on line "+(O+1)+`: `+I.showPosition()+` Expecting `+ne.join(", ")+", got '"+(this.terminals_[U]||U)+"'":ae="Parse error on line "+(O+1)+": Unexpected "+(U==F?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(ae,{text:I.match,token:this.terminals_[U]||U,line:I.yylineno,loc:N,expected:ne})}if(K[0]instanceof Array&&K.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+U);switch(K[0]){case 1:S.push(U),C.push(I.yytext),T.push(I.yylloc),S.push(K[1]),U=null,M=I.yyleng,R=I.yytext,O=I.yylineno,N=I.yylloc;break;case 2:if(le=this.productions_[K[1]][1],ee.$=C[C.length-le],ee._$={first_line:T[T.length-(le||1)].first_line,last_line:T[T.length-1].last_line,first_column:T[T.length-(le||1)].first_column,last_column:T[T.length-1].last_column},P&&(ee._$.range=[T[T.length-(le||1)].range[0],T[T.length-1].range[1]]),Y=this.performAction.apply(ee,[R,M,O,D.yy,K[1],C,T].concat(A)),typeof Y<"u")return Y;le&&(S=S.slice(0,-1*le*2),C=C.slice(0,-1*le),T=T.slice(0,-1*le)),S.push(this.productions_[K[1]][0]),C.push(ee.$),T.push(ee._$),te=w[S[S.length-2]][S[S.length-1]],S.push(te);break;case 3:return!0}}return!0},"parse")},m=(function(){var y={EOF:1,parseError:E(function(_,S){if(this.yy.parser)this.yy.parser.parseError(_,S);else throw new Error(_)},"parseError"),setInput:E(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:E(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:E(function(b){var _=b.length,S=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),S.length-1&&(this.yylineno-=S.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:S?(S.length===x.length?this.yylloc.first_column:0)+x[x.length-S.length].length-S[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:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(b){this.unput(this.match.slice(b))},"less"),pastInput:E(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:E(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:E(function(){var b=this.pastInput(),_=new Array(b.length+1).join("-");return b+this.upcomingInput()+` `+_+"^"},"showPosition"),test_match:E(function(b,_){var S,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],S=this.performAction.call(this,this.yy,this,_,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var T in C)this[T]=C[T];return!1}return!1},"test_match"),next:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,_,S,x;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),T=0;T_[0].length)){if(_=S,x=T,this.options.backtrack_lexer){if(b=this.test_match(S,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:E(function(){var _=this.next();return _||this.lex()},"lex"),begin:E(function(_){this.conditionStack.push(_)},"begin"),popState:E(function(){var _=this.conditionStack.length-1;return _>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},"topState"),pushState:E(function(_){this.begin(_)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(_,S,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 y})();g.lexer=m;function v(){this.yy={}}return E(v,"Parser"),v.prototype=g,g.Parser=v,new v})();Wz.parser=Wz;var yBt=Wz,Y_,_Bt=(Y_=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,oa()}getRoot(){return this.root}addNode(e,r){const n=qt.sanitizeText(r,Ye());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],pa(n);return}this.baseLevel??=e;let a=e-this.baseLevel+1;for(a<=0&&(a=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=a;)this.stack.pop();const i=this.stack[this.stack.length-1].node,s={text:n,children:[]};i.children.push(s),this.stack.push({level:a,node:s})}getAccTitle(){return va()}setAccTitle(e){sa(e)}getAccDescription(){return _a()}setAccDescription(e){ya(e)}getDiagramTitle(){return la()}setDiagramTitle(e){pa(e)}},E(Y_,"IshikawaDB"),Y_),bBt=14,om=250,EBt=30,SBt=60,TBt=5,qRe=82*Math.PI/180,oce=Math.cos(qRe),lce=Math.sin(qRe),cce=E((t,e,r)=>{const n=t.node().getBBox(),a=n.width+e*2,i=n.height+e*2;di(t,i,a,r),t.attr("viewBox",`${n.x-e} ${n.y-e} ${a} ${i}`)},"applyPaddedViewBox"),xBt=E((t,e,r,n)=>{const i=n.db.getRoot();if(!i)return;const s=Ye(),{look:o,handDrawnSeed:l,themeVariables:u}=s,d=X0(s.fontSize)[0]??bBt,h=o==="handDrawn",f=i.children??[],p=s.ishikawa?.diagramPadding??20,g=s.ishikawa?.useMaxWidth??!1,m=wo(e),v=m.append("g").attr("class","ishikawa"),y=h?gr.svg(m.node()):void 0,b=y?{roughSvg:y,seed:l??0,lineColor:u?.lineColor??"#333",fillColor:u?.mainBkg??"#fff"}:void 0,_=`ishikawa-arrow-${e}`;h||v.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 S=0,x=om;const C=h?void 0:_1(v,S,x,S,x,"ishikawa-spine");if(CBt(v,S,x,i.text,d,b),!f.length){h&&_1(v,S,x,S,x,"ishikawa-spine",b),cce(m,p,g);return}S-=20;const T=f.filter((D,L)=>L%2===0),w=f.filter((D,L)=>L%2===1),R=uce(T),O=uce(w),M=R.total+O.total;let $=om,F=om;if(M>0){const D=om*2,L=om*.3;$=Math.max(L,D*(R.total/M)),F=Math.max(L,D*(O.total/M))}const A=d*2;$=Math.max($,R.max*A),F=Math.max(F,O.max*A),x=Math.max($,om),C&&C.attr("y1",x).attr("y2",x),v.select(".ishikawa-head-group").attr("transform",`translate(0,${x})`);const I=Math.ceil(f.length/2);for(let D=0;DMath.min(N,P.getBBox().x),1/0)}if(h)_1(v,S,x,0,x,"ishikawa-spine",b);else{C.attr("x1",S);const D=`url(#${_})`;v.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",D)}cce(m,p,g)},"draw"),uce=E(t=>{const e=E(r=>r.children.reduce((n,a)=>n+1+e(a),0),"countDescendants");return t.reduce((r,n)=>{const a=e(n);return r.total+=a,r.max=Math.max(r.max,a),r},{total:0,max:0})},"sideStats"),CBt=E((t,e,r,n,a,i)=>{const s=Math.max(6,Math.floor(110/(a*.6))),o=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${r})`),l=nk(o,YRe(n,s),0,0,"ishikawa-head-label","start",a),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(i){const p=i.roughSvg.path(f,{roughness:1.5,seed:i.seed,fill:i.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:i.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"),wBt=E((t,e)=>{const r=[],n=[],a=E((i,s,o)=>{const l=e===-1?[...i].reverse():i;for(const u of l){const d=r.length,h=u.children??[];r.push({depth:o,text:YRe(u.text,15),parentIndex:s,childCount:h.length}),o%2===0?(n.push(d),h.length&&a(h,d,o+1)):(h.length&&a(h,d,o+1),n.push(d))}},"walk");return a(t,-1,2),{entries:r,yOrder:n}},"flattenTree"),kBt=E((t,e,r,n,a,i,s)=>{const o=t.append("g").attr("class","ishikawa-label-group"),u=nk(o,e,r,n+11*a,"ishikawa-label cause","middle",i).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"),SM=E((t,e,r,n,a,i)=>{const s=Math.sqrt(n*n+a*a);if(s===0)return;const o=n/s,l=a/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=i.roughSvg.path(g,{roughness:1,seed:i.seed,fill:i.lineColor,fillStyle:"solid",stroke:i.lineColor,strokeWidth:1});t.append(()=>m)},"drawArrowMarker"),ABt=E((t,e,r,n,a,i,s,o)=>{const l=e.children??[],u=i*(l.length?1:.2),d=-oce*u,h=lce*u*a,f=r+d,p=n+h;if(_1(t,r,n,f,p,"ishikawa-branch",o),o&&SM(t,r,n,r-f,n-p,o),kBt(t,e.text,f,p,a,s,o),!l.length)return;const{entries:g,yOrder:m}=wBt(l,a),v=g.length,y=new Array(v);for(const[C,T]of m.entries())y[T]=n+h*((C+1)/(v+1));const b=new Map;b.set(-1,{x0:r,y0:n,x1:f,y1:p,childCount:l.length,childrenDrawn:0});const _=-oce,S=lce*a,x=a<0?"ishikawa-label up":"ishikawa-label down";for(const[C,T]of g.entries()){const w=y[C],R=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=R.y1-R.y0;M=dce(R.x0,R.x1,A?(w-R.y0)/A:.5),$=w,F=M-(T.childCount>0?SBt+T.childCount*TBt:EBt),_1(O,M,w,F,w,"ishikawa-sub-branch",o),o&&SM(O,M,w,1,0,o),nk(O,T.text,F,w,"ishikawa-label align","end",s)}else{const A=R.childrenDrawn++;M=dce(R.x0,R.x1,(R.childCount-A)/(R.childCount+1)),$=R.y0,F=M+_*((w-$)/S),_1(O,M,$,F,w,"ishikawa-sub-branch",o),o&&SM(O,M,$,M-F,$-w,o),nk(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"),RBt=E(t=>t.split(/|\n/),"splitLines"),YRe=E((t,e)=>{if(t.length<=e)return t;const r=[];for(const n of t.split(/\s+/)){const a=r.length-1;a>=0&&r[a].length+1+n.length<=e?r[a]+=" "+n:r.push(n)}return r.join(` -`)},"wrapText"),nk=E((t,e,r,n,a,i,s)=>{const o=RBt(e),l=s*1.05,u=t.append("text").attr("class",a).attr("text-anchor",i).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"),dce=E((t,e,r)=>t+(e-t)*r,"lerp"),_1=E((t,e,r,n,a,i,s)=>{if(s){const o=s.roughSvg.line(e,r,n,a,{roughness:1.5,seed:s.seed,stroke:s.lineColor,strokeWidth:2});t.append(()=>o).attr("class",i);return}return t.append("line").attr("class",i).attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",a)},"drawLine"),NBt={draw:xBt},IBt=E(t=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var _=this.next();return _||this.lex()},"lex"),begin:E(function(_){this.conditionStack.push(_)},"begin"),popState:E(function(){var _=this.conditionStack.length-1;return _>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},"topState"),pushState:E(function(_){this.begin(_)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(_,S,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 y})();g.lexer=m;function v(){this.yy={}}return E(v,"Parser"),v.prototype=g,g.Parser=v,new v})();Wz.parser=Wz;var _Bt=Wz,Y_,bBt=(Y_=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,oa()}getRoot(){return this.root}addNode(e,r){const n=qt.sanitizeText(r,Ye());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],pa(n);return}this.baseLevel??=e;let a=e-this.baseLevel+1;for(a<=0&&(a=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=a;)this.stack.pop();const i=this.stack[this.stack.length-1].node,s={text:n,children:[]};i.children.push(s),this.stack.push({level:a,node:s})}getAccTitle(){return va()}setAccTitle(e){sa(e)}getAccDescription(){return _a()}setAccDescription(e){ya(e)}getDiagramTitle(){return la()}setDiagramTitle(e){pa(e)}},E(Y_,"IshikawaDB"),Y_),EBt=14,om=250,SBt=30,TBt=60,xBt=5,qRe=82*Math.PI/180,oce=Math.cos(qRe),lce=Math.sin(qRe),cce=E((t,e,r)=>{const n=t.node().getBBox(),a=n.width+e*2,i=n.height+e*2;di(t,i,a,r),t.attr("viewBox",`${n.x-e} ${n.y-e} ${a} ${i}`)},"applyPaddedViewBox"),CBt=E((t,e,r,n)=>{const i=n.db.getRoot();if(!i)return;const s=Ye(),{look:o,handDrawnSeed:l,themeVariables:u}=s,d=X0(s.fontSize)[0]??EBt,h=o==="handDrawn",f=i.children??[],p=s.ishikawa?.diagramPadding??20,g=s.ishikawa?.useMaxWidth??!1,m=wo(e),v=m.append("g").attr("class","ishikawa"),y=h?gr.svg(m.node()):void 0,b=y?{roughSvg:y,seed:l??0,lineColor:u?.lineColor??"#333",fillColor:u?.mainBkg??"#fff"}:void 0,_=`ishikawa-arrow-${e}`;h||v.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 S=0,x=om;const C=h?void 0:_1(v,S,x,S,x,"ishikawa-spine");if(wBt(v,S,x,i.text,d,b),!f.length){h&&_1(v,S,x,S,x,"ishikawa-spine",b),cce(m,p,g);return}S-=20;const T=f.filter((D,L)=>L%2===0),w=f.filter((D,L)=>L%2===1),R=uce(T),O=uce(w),M=R.total+O.total;let $=om,F=om;if(M>0){const D=om*2,L=om*.3;$=Math.max(L,D*(R.total/M)),F=Math.max(L,D*(O.total/M))}const A=d*2;$=Math.max($,R.max*A),F=Math.max(F,O.max*A),x=Math.max($,om),C&&C.attr("y1",x).attr("y2",x),v.select(".ishikawa-head-group").attr("transform",`translate(0,${x})`);const I=Math.ceil(f.length/2);for(let D=0;DMath.min(N,P.getBBox().x),1/0)}if(h)_1(v,S,x,0,x,"ishikawa-spine",b);else{C.attr("x1",S);const D=`url(#${_})`;v.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",D)}cce(m,p,g)},"draw"),uce=E(t=>{const e=E(r=>r.children.reduce((n,a)=>n+1+e(a),0),"countDescendants");return t.reduce((r,n)=>{const a=e(n);return r.total+=a,r.max=Math.max(r.max,a),r},{total:0,max:0})},"sideStats"),wBt=E((t,e,r,n,a,i)=>{const s=Math.max(6,Math.floor(110/(a*.6))),o=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${r})`),l=nk(o,YRe(n,s),0,0,"ishikawa-head-label","start",a),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(i){const p=i.roughSvg.path(f,{roughness:1.5,seed:i.seed,fill:i.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:i.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"),kBt=E((t,e)=>{const r=[],n=[],a=E((i,s,o)=>{const l=e===-1?[...i].reverse():i;for(const u of l){const d=r.length,h=u.children??[];r.push({depth:o,text:YRe(u.text,15),parentIndex:s,childCount:h.length}),o%2===0?(n.push(d),h.length&&a(h,d,o+1)):(h.length&&a(h,d,o+1),n.push(d))}},"walk");return a(t,-1,2),{entries:r,yOrder:n}},"flattenTree"),ABt=E((t,e,r,n,a,i,s)=>{const o=t.append("g").attr("class","ishikawa-label-group"),u=nk(o,e,r,n+11*a,"ishikawa-label cause","middle",i).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"),SM=E((t,e,r,n,a,i)=>{const s=Math.sqrt(n*n+a*a);if(s===0)return;const o=n/s,l=a/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=i.roughSvg.path(g,{roughness:1,seed:i.seed,fill:i.lineColor,fillStyle:"solid",stroke:i.lineColor,strokeWidth:1});t.append(()=>m)},"drawArrowMarker"),RBt=E((t,e,r,n,a,i,s,o)=>{const l=e.children??[],u=i*(l.length?1:.2),d=-oce*u,h=lce*u*a,f=r+d,p=n+h;if(_1(t,r,n,f,p,"ishikawa-branch",o),o&&SM(t,r,n,r-f,n-p,o),ABt(t,e.text,f,p,a,s,o),!l.length)return;const{entries:g,yOrder:m}=kBt(l,a),v=g.length,y=new Array(v);for(const[C,T]of m.entries())y[T]=n+h*((C+1)/(v+1));const b=new Map;b.set(-1,{x0:r,y0:n,x1:f,y1:p,childCount:l.length,childrenDrawn:0});const _=-oce,S=lce*a,x=a<0?"ishikawa-label up":"ishikawa-label down";for(const[C,T]of g.entries()){const w=y[C],R=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=R.y1-R.y0;M=dce(R.x0,R.x1,A?(w-R.y0)/A:.5),$=w,F=M-(T.childCount>0?TBt+T.childCount*xBt:SBt),_1(O,M,w,F,w,"ishikawa-sub-branch",o),o&&SM(O,M,w,1,0,o),nk(O,T.text,F,w,"ishikawa-label align","end",s)}else{const A=R.childrenDrawn++;M=dce(R.x0,R.x1,(R.childCount-A)/(R.childCount+1)),$=R.y0,F=M+_*((w-$)/S),_1(O,M,$,F,w,"ishikawa-sub-branch",o),o&&SM(O,M,$,M-F,$-w,o),nk(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"),NBt=E(t=>t.split(/|\n/),"splitLines"),YRe=E((t,e)=>{if(t.length<=e)return t;const r=[];for(const n of t.split(/\s+/)){const a=r.length-1;a>=0&&r[a].length+1+n.length<=e?r[a]+=" "+n:r.push(n)}return r.join(` +`)},"wrapText"),nk=E((t,e,r,n,a,i,s)=>{const o=NBt(e),l=s*1.05,u=t.append("text").attr("class",a).attr("text-anchor",i).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"),dce=E((t,e,r)=>t+(e-t)*r,"lerp"),_1=E((t,e,r,n,a,i,s)=>{if(s){const o=s.roughSvg.line(e,r,n,a,{roughness:1.5,seed:s.seed,stroke:s.lineColor,strokeWidth:2});t.append(()=>o).attr("class",i);return}return t.append("line").attr("class",i).attr("x1",e).attr("y1",r).attr("x2",n).attr("y2",a)},"drawLine"),IBt={draw:CBt},OBt=E(t=>` .ishikawa .ishikawa-spine, .ishikawa .ishikawa-branch, .ishikawa .ishikawa-sub-branch { @@ -7295,18 +7300,18 @@ Expecting `+ne.join(", ")+", got '"+(this.terminals_[U]||U)+"'":ae="Parse error .ishikawa .ishikawa-label.down { dominant-baseline: hanging; } -`,"getStyles"),OBt=IBt,DBt={parser:yBt,get db(){return new _Bt},renderer:NBt,styles:OBt};const LBt=Object.freeze(Object.defineProperty({__proto__:null,diagram:DBt},Symbol.toStringTag,{value:"Module"})),HRe=1e-10;function I8(t,e){const r=PBt(t),n=r.filter(o=>MBt(o,t));let a=0,i=0;const s=[];if(n.length>1){const o=WRe(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),a+=Kz(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?a=i=0:(a=o.radius*o.radius*Math.PI,s.push({circle:o,p1:{x:o.x,y:o.y+o.radius},p2:{x:o.x-HRe,y:o.y+o.radius},width:o.radius*2,large:!0,sweep:!0}))}return i/=2,e&&(e.area=a+i,e.arcArea=a,e.polygonArea=i,e.arcs=s,e.innerPoints=n,e.intersectionPoints=r),a+i}function MBt(t,e){return e.every(r=>So(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),a=e-(r*r-t*t+e*e)/(2*r);return Kz(t,n)+Kz(e,a)}function VRe(t,e){const r=So(t,e),n=t.radius,a=e.radius;if(r>=n+a||r<=Math.abs(n-a))return[];const i=(n*n-a*a+r*r)/(2*r),s=Math.sqrt(n*n-i*i),o=t.x+i*(e.x-t.x)/r,l=t.y+i*(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 WRe(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 BBt(t,e,r,n){n=n||{};const a=n.maxIterations||100,i=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)Xz(e))}function b1(t,e){let r=0;for(let n=0;nx.fx-C.fx,y=e.slice(),b=e.slice(),_=e.slice(),S=e.slice();for(let x=0;x{const R=w.slice();return R.fx=w.fx,R.id=w.id,R});T.sort((w,R)=>w.id-R.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?(l0(_,1+d,y,-d,C),_.fx=t(_),_.fx=1)break;for(let w=1;wo+i*a*l||u>=v)m=a;else{if(Math.abs(h)<=-s*l)return a;h*(m-g)>=0&&(m=g),g=a,v=u}return 0}for(let g=0;g<10;++g){if(l0(n.x,1,r.x,a,e),u=n.fx=t(n.x,n.fxprime),h=b1(n.fxprime,e),u>o+i*a*l||g&&u>=d)return p(f,a,d);if(Math.abs(h)<=-s*l)return a;if(h>=0)return p(a,f,u);d=u,f=a,a*=2}return a}function $Bt(t,e,r){let n={x:e.slice(),fx:0,fxprime:e.slice()},a={x:e.slice(),fx:0,fxprime:e.slice()};const i=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(),Qz(s,n.fxprime,-1);for(let d=0;d{const h={};for(let f=0;fdK(t,e,n)-r,0,t+e)}function zBt(t,e={}){const r=e.distinct,n=t.map(o=>Object.assign({},o));function a(o){return o.join(";")}if(r){const o=new Map;for(const l of n)for(let u=0;uo===l?0:oi.sets.length===2).forEach(i=>{const s=r[i.sets[0]],o=r[i.sets[1]],l=Math.sqrt(e[s].size/Math.PI),u=Math.sqrt(e[o].size/Math.PI),d=Zz(l,u,i.size);n[s][o]=n[o][s]=d;let h=0;i.size+1e-10>=Math.min(e[s].size,e[o].size)?h=1:i.size<=1e-10&&(h=-1),a[s][o]=a[o][s]=h}),{distances:n,constraints:a}}function GBt(t,e,r,n){for(let i=0;i0&&g<=h||f<0&&g>=h||(a+=2*m*m,e[2*i]+=4*m*(s-u),e[2*i+1]+=4*m*(o-d),e[2*l]+=4*m*(u-s),e[2*l+1]+=4*m*(d-o))}}return a}function qBt(t,e={}){let r=HBt(t,e);const n=e.lossFunction||Yb;if(t.length>=8){const a=YBt(t,e),i=n(a,t),s=n(r,t);i+1e-8f.map(p=>p/o));const l=(f,p)=>GBt(f,p,i,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+jRe>=Math.min(n[p].size,n[g].size)&&(f=0),a[p].push({set:g,size:h.size,weight:f}),a[g].push({set:p,size:h.size,weight:f})}const i=[];Object.keys(a).forEach(h=>{let f=0;for(let p=0;pt[s]));const i=n.weight!=null?n.weight:1;r+=i*(a-n.size)*(a-n.size)}return r}function QRe(t,e){let r=0;for(const n of e){if(n.sets.length===1)continue;let a;if(n.sets.length===2){const o=t[n.sets[0]],l=t[n.sets[1]];a=dK(o.radius,l.radius,So(o,l))}else a=I8(n.sets.map(o=>t[o]));const i=n.weight!=null?n.weight:1,s=Math.log((a+1)/(n.size+1));r+=i*s*s}return r}function VBt(t,e,r){if(r==null?t.sort((a,i)=>i.radius-a.radius):t.sort(r),t.length>0){const a=t[0].x,i=t[0].y;for(const s of t)s.x-=a,s.y-=i}if(t.length===2&&So(t[0],t[1])1){const a=Math.atan2(t[1].x,t[1].y)-e,i=Math.cos(a),s=Math.sin(a);for(const o of t){const l=o.x,u=o.y;o.x=i*l-s*u,o.y=s*l+i*u}}if(t.length>2){let a=Math.atan2(t[2].x,t[2].y)-e;for(;a<0;)a+=2*Math.PI;for(;a>2*Math.PI;)a-=2*Math.PI;if(a>Math.PI){const i=t[1].y/(1e-10+t[1].x);for(const s of t){var n=(s.x+i*s.y)/(1+i*i);s.x=2*n-s.x,s.y=2*n*i-s.y}}}}function WBt(t){t.forEach(a=>{a.parent=a});function e(a){return a.parent!==a&&(a.parent=e(a.parent)),a.parent}function r(a,i){const s=e(a),o=e(i);s.parent=o}for(let a=0;a{delete a.parent}),Array.from(n.values())}function Jz(t){const e=r=>{const n=t.reduce((i,s)=>Math.max(i,s[r]+s.radius),Number.NEGATIVE_INFINITY),a=t.reduce((i,s)=>Math.min(i,s[r]-s.radius),Number.POSITIVE_INFINITY);return{max:n,min:a}};return{xRange:e("x"),yRange:e("y")}}function ZRe(t,e,r){e==null&&(e=Math.PI/2);let n=tNe(t).map(u=>Object.assign({},u));const a=WBt(n);for(const u of a){VBt(u,e,r);const d=Jz(u);u.size=(d.xRange.max-d.xRange.min)*(d.yRange.max-d.yRange.min),u.bounds=d}a.sort((u,d)=>d.size-u.size),n=a[0];let i=n.bounds;const s=(i.xRange.max-i.xRange.min)/50;function o(u,d,h){if(!u)return;const f=u.bounds;let p,g;if(d)p=i.xRange.max-f.xRange.min+s;else{p=i.xRange.max-f.xRange.max;const m=(f.xRange.max-f.xRange.min)/2-(i.xRange.max-i.xRange.min)/2;m<0&&(p+=m)}if(h)g=i.yRange.max-f.yRange.min+s;else{g=i.yRange.max-f.yRange.max;const m=(f.yRange.max-f.yRange.min)/2-(i.yRange.max-i.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 eNe(t){const e={};for(const r of t)e[r.setid]=r;return e}function tNe(t){return Object.keys(t).map(r=>Object.assign(t[r],{setid:r}))}function KBt(t={}){let e=!1,r=600,n=350,a=15,i=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,v={},y=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 v)return v[T];var w=v[T]=y[b];return b+=1,b>=y.length&&(b=0),w},S=XRe,x=Yb;function C(T){let w=T.datum();const R=new Set;w.forEach(X=>{X.size==0&&X.sets.length==1&&R.add(X.sets[0])}),w=w.filter(X=>!X.sets.some(le=>R.has(le)));let O={},M={};if(w.length>0){let X=S(w,{lossFunction:x,distinct:p});o&&(X=ZRe(X,s,f)),O=JRe(X,r,n,a,l),M=nNe(O,w,m)}const $={};w.forEach(X=>{X.label&&($[X.sets]=X.label)});function F(X){if(X.sets in $)return $[X.sets];if(X.sets.length==1)return""+X.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(X){const le=this.getAttribute("d");X.sets.length==1&&le&&!p&&(D=!0,I[X.sets[0]]=QBt(le))});function L(X){return le=>{const te=X.sets.map(ne=>{let ae=I[ne],re=O[ne];return ae||(ae={x:r/2,y:n/2,radius:1}),re||(re={x:r/2,y:n/2,radius:1}),{x:ae.x*(1-le)+re.x*le,y:ae.y*(1-le)+re.y*le,radius:ae.radius*(1-le)+re.radius*le}});return fce(te,g)}}const N=A.selectAll(".venn-area").data(w,X=>X.sets),P=N.enter().append("g").attr("class",X=>`venn-area venn-${X.sets.length==1?"circle":"intersection"}${X.colour||X.color?" venn-coloured":""}`).attr("data-venn-sets",X=>X.sets.join("_")),z=P.append("path"),B=P.append("text").attr("class","label").text(X=>F(X)).attr("text-anchor","middle").attr("dy",".35em").attr("x",r/2).attr("y",n/2);d&&(z.style("fill-opacity","0").filter(X=>X.sets.length==1).style("fill",X=>X.colour?X.colour:X.color?X.color:_(X.sets)).style("fill-opacity",".25"),B.style("fill",X=>X.colour||X.color?"#FFF":t.textFill?t.textFill:X.sets.length==1?_(X.sets):"#444"));function U(X){return typeof X.transition=="function"?X.transition("venn").duration(i):X}let G=T;D&&typeof G.transition=="function"?(G=U(T),G.selectAll("path").attrTween("d",L)):G.selectAll("path").attr("d",X=>fce(X.sets.map(le=>O[le])),g);const K=G.selectAll("text").filter(X=>X.sets in M).text(X=>F(X)).attr("x",X=>Math.floor(M[X.sets].x)).attr("y",X=>Math.floor(M[X.sets].y));u&&(D?"on"in K?K.on("end",TM(O,F)):K.each("end",TM(O,F)):K.each(TM(O,F)));const Y=U(N.exit()).remove();typeof N.transition=="function"&&Y.selectAll("path").attrTween("d",L);const ee=Y.selectAll("text").attr("x",r/2).attr("y",n/2);return h!==null&&(B.style("font-size","0px"),K.style("font-size",h),ee.style("font-size","0px")),{circles:O,textCentres:M,nodes:N,enter:P,update:G,exit:Y}}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?(a=T,C):a},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?(i=T,C):i},C.layoutFunction=function(T){return arguments.length?(S=T,C):S},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"?Yb:T==="logRatio"?QRe:T,C):x},C}function TM(t,e){return function(r){const n=this,a=t[r.sets[0]].radius||50,i=e(r)||"",s=i.split(/\s+/).reverse(),l=(i.length+s.length)/3;let u=s.pop(),d=[u],h=0;const f=1.1;n.textContent=null;const p=[];function g(_){const S=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return S.textContent=_,p.push(S),n.append(S),S}let m=g(u);for(;u=s.pop(),!!u;){d.push(u);const _=d.join(" ");m.textContent=_,_.length>l&&m.getComputedTextLength()>a&&(d.pop(),m.textContent=d.join(" "),d=[u],m=g(u),h++)}const v=.35-h*f/2,y=n.getAttribute("x"),b=n.getAttribute("y");p.forEach((_,S)=>{_.setAttribute("x",y),_.setAttribute("y",b),_.setAttribute("dy",`${v+S*f}em`)})}}function xM(t,e,r){let n=e[0].radius-So(e[0],t);for(let a=1;a=i&&(a=n[d],i=h)}const s=KRe(d=>-1*xM({x:d[0],y:d[1]},t,e),[a.x,a.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(So(o,d)>d.radius){l=!1;break}for(const d of e)if(So(o,d)d.p1))}function XBt(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 jBt(t,e,r){const n=[];return n.push(` +`,"getStyles"),DBt=OBt,LBt={parser:_Bt,get db(){return new bBt},renderer:IBt,styles:DBt};const MBt=Object.freeze(Object.defineProperty({__proto__:null,diagram:LBt},Symbol.toStringTag,{value:"Module"})),HRe=1e-10;function I8(t,e){const r=BBt(t),n=r.filter(o=>PBt(o,t));let a=0,i=0;const s=[];if(n.length>1){const o=WRe(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),a+=Kz(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?a=i=0:(a=o.radius*o.radius*Math.PI,s.push({circle:o,p1:{x:o.x,y:o.y+o.radius},p2:{x:o.x-HRe,y:o.y+o.radius},width:o.radius*2,large:!0,sweep:!0}))}return i/=2,e&&(e.area=a+i,e.arcArea=a,e.polygonArea=i,e.arcs=s,e.innerPoints=n,e.intersectionPoints=r),a+i}function PBt(t,e){return e.every(r=>So(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),a=e-(r*r-t*t+e*e)/(2*r);return Kz(t,n)+Kz(e,a)}function VRe(t,e){const r=So(t,e),n=t.radius,a=e.radius;if(r>=n+a||r<=Math.abs(n-a))return[];const i=(n*n-a*a+r*r)/(2*r),s=Math.sqrt(n*n-i*i),o=t.x+i*(e.x-t.x)/r,l=t.y+i*(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 WRe(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 FBt(t,e,r,n){n=n||{};const a=n.maxIterations||100,i=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)Xz(e))}function b1(t,e){let r=0;for(let n=0;nx.fx-C.fx,y=e.slice(),b=e.slice(),_=e.slice(),S=e.slice();for(let x=0;x{const R=w.slice();return R.fx=w.fx,R.id=w.id,R});T.sort((w,R)=>w.id-R.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?(l0(_,1+d,y,-d,C),_.fx=t(_),_.fx=1)break;for(let w=1;wo+i*a*l||u>=v)m=a;else{if(Math.abs(h)<=-s*l)return a;h*(m-g)>=0&&(m=g),g=a,v=u}return 0}for(let g=0;g<10;++g){if(l0(n.x,1,r.x,a,e),u=n.fx=t(n.x,n.fxprime),h=b1(n.fxprime,e),u>o+i*a*l||g&&u>=d)return p(f,a,d);if(Math.abs(h)<=-s*l)return a;if(h>=0)return p(a,f,u);d=u,f=a,a*=2}return a}function zBt(t,e,r){let n={x:e.slice(),fx:0,fxprime:e.slice()},a={x:e.slice(),fx:0,fxprime:e.slice()};const i=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(),Qz(s,n.fxprime,-1);for(let d=0;d{const h={};for(let f=0;fdK(t,e,n)-r,0,t+e)}function UBt(t,e={}){const r=e.distinct,n=t.map(o=>Object.assign({},o));function a(o){return o.join(";")}if(r){const o=new Map;for(const l of n)for(let u=0;uo===l?0:oi.sets.length===2).forEach(i=>{const s=r[i.sets[0]],o=r[i.sets[1]],l=Math.sqrt(e[s].size/Math.PI),u=Math.sqrt(e[o].size/Math.PI),d=Zz(l,u,i.size);n[s][o]=n[o][s]=d;let h=0;i.size+1e-10>=Math.min(e[s].size,e[o].size)?h=1:i.size<=1e-10&&(h=-1),a[s][o]=a[o][s]=h}),{distances:n,constraints:a}}function qBt(t,e,r,n){for(let i=0;i0&&g<=h||f<0&&g>=h||(a+=2*m*m,e[2*i]+=4*m*(s-u),e[2*i+1]+=4*m*(o-d),e[2*l]+=4*m*(u-s),e[2*l+1]+=4*m*(d-o))}}return a}function YBt(t,e={}){let r=VBt(t,e);const n=e.lossFunction||Yb;if(t.length>=8){const a=HBt(t,e),i=n(a,t),s=n(r,t);i+1e-8f.map(p=>p/o));const l=(f,p)=>qBt(f,p,i,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+jRe>=Math.min(n[p].size,n[g].size)&&(f=0),a[p].push({set:g,size:h.size,weight:f}),a[g].push({set:p,size:h.size,weight:f})}const i=[];Object.keys(a).forEach(h=>{let f=0;for(let p=0;pt[s]));const i=n.weight!=null?n.weight:1;r+=i*(a-n.size)*(a-n.size)}return r}function QRe(t,e){let r=0;for(const n of e){if(n.sets.length===1)continue;let a;if(n.sets.length===2){const o=t[n.sets[0]],l=t[n.sets[1]];a=dK(o.radius,l.radius,So(o,l))}else a=I8(n.sets.map(o=>t[o]));const i=n.weight!=null?n.weight:1,s=Math.log((a+1)/(n.size+1));r+=i*s*s}return r}function WBt(t,e,r){if(r==null?t.sort((a,i)=>i.radius-a.radius):t.sort(r),t.length>0){const a=t[0].x,i=t[0].y;for(const s of t)s.x-=a,s.y-=i}if(t.length===2&&So(t[0],t[1])1){const a=Math.atan2(t[1].x,t[1].y)-e,i=Math.cos(a),s=Math.sin(a);for(const o of t){const l=o.x,u=o.y;o.x=i*l-s*u,o.y=s*l+i*u}}if(t.length>2){let a=Math.atan2(t[2].x,t[2].y)-e;for(;a<0;)a+=2*Math.PI;for(;a>2*Math.PI;)a-=2*Math.PI;if(a>Math.PI){const i=t[1].y/(1e-10+t[1].x);for(const s of t){var n=(s.x+i*s.y)/(1+i*i);s.x=2*n-s.x,s.y=2*n*i-s.y}}}}function KBt(t){t.forEach(a=>{a.parent=a});function e(a){return a.parent!==a&&(a.parent=e(a.parent)),a.parent}function r(a,i){const s=e(a),o=e(i);s.parent=o}for(let a=0;a{delete a.parent}),Array.from(n.values())}function Jz(t){const e=r=>{const n=t.reduce((i,s)=>Math.max(i,s[r]+s.radius),Number.NEGATIVE_INFINITY),a=t.reduce((i,s)=>Math.min(i,s[r]-s.radius),Number.POSITIVE_INFINITY);return{max:n,min:a}};return{xRange:e("x"),yRange:e("y")}}function ZRe(t,e,r){e==null&&(e=Math.PI/2);let n=tNe(t).map(u=>Object.assign({},u));const a=KBt(n);for(const u of a){WBt(u,e,r);const d=Jz(u);u.size=(d.xRange.max-d.xRange.min)*(d.yRange.max-d.yRange.min),u.bounds=d}a.sort((u,d)=>d.size-u.size),n=a[0];let i=n.bounds;const s=(i.xRange.max-i.xRange.min)/50;function o(u,d,h){if(!u)return;const f=u.bounds;let p,g;if(d)p=i.xRange.max-f.xRange.min+s;else{p=i.xRange.max-f.xRange.max;const m=(f.xRange.max-f.xRange.min)/2-(i.xRange.max-i.xRange.min)/2;m<0&&(p+=m)}if(h)g=i.yRange.max-f.yRange.min+s;else{g=i.yRange.max-f.yRange.max;const m=(f.yRange.max-f.yRange.min)/2-(i.yRange.max-i.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 eNe(t){const e={};for(const r of t)e[r.setid]=r;return e}function tNe(t){return Object.keys(t).map(r=>Object.assign(t[r],{setid:r}))}function XBt(t={}){let e=!1,r=600,n=350,a=15,i=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,v={},y=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 v)return v[T];var w=v[T]=y[b];return b+=1,b>=y.length&&(b=0),w},S=XRe,x=Yb;function C(T){let w=T.datum();const R=new Set;w.forEach(X=>{X.size==0&&X.sets.length==1&&R.add(X.sets[0])}),w=w.filter(X=>!X.sets.some(le=>R.has(le)));let O={},M={};if(w.length>0){let X=S(w,{lossFunction:x,distinct:p});o&&(X=ZRe(X,s,f)),O=JRe(X,r,n,a,l),M=nNe(O,w,m)}const $={};w.forEach(X=>{X.label&&($[X.sets]=X.label)});function F(X){if(X.sets in $)return $[X.sets];if(X.sets.length==1)return""+X.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(X){const le=this.getAttribute("d");X.sets.length==1&&le&&!p&&(D=!0,I[X.sets[0]]=ZBt(le))});function L(X){return le=>{const te=X.sets.map(ne=>{let ae=I[ne],re=O[ne];return ae||(ae={x:r/2,y:n/2,radius:1}),re||(re={x:r/2,y:n/2,radius:1}),{x:ae.x*(1-le)+re.x*le,y:ae.y*(1-le)+re.y*le,radius:ae.radius*(1-le)+re.radius*le}});return fce(te,g)}}const N=A.selectAll(".venn-area").data(w,X=>X.sets),P=N.enter().append("g").attr("class",X=>`venn-area venn-${X.sets.length==1?"circle":"intersection"}${X.colour||X.color?" venn-coloured":""}`).attr("data-venn-sets",X=>X.sets.join("_")),z=P.append("path"),B=P.append("text").attr("class","label").text(X=>F(X)).attr("text-anchor","middle").attr("dy",".35em").attr("x",r/2).attr("y",n/2);d&&(z.style("fill-opacity","0").filter(X=>X.sets.length==1).style("fill",X=>X.colour?X.colour:X.color?X.color:_(X.sets)).style("fill-opacity",".25"),B.style("fill",X=>X.colour||X.color?"#FFF":t.textFill?t.textFill:X.sets.length==1?_(X.sets):"#444"));function U(X){return typeof X.transition=="function"?X.transition("venn").duration(i):X}let G=T;D&&typeof G.transition=="function"?(G=U(T),G.selectAll("path").attrTween("d",L)):G.selectAll("path").attr("d",X=>fce(X.sets.map(le=>O[le])),g);const K=G.selectAll("text").filter(X=>X.sets in M).text(X=>F(X)).attr("x",X=>Math.floor(M[X.sets].x)).attr("y",X=>Math.floor(M[X.sets].y));u&&(D?"on"in K?K.on("end",TM(O,F)):K.each("end",TM(O,F)):K.each(TM(O,F)));const Y=U(N.exit()).remove();typeof N.transition=="function"&&Y.selectAll("path").attrTween("d",L);const ee=Y.selectAll("text").attr("x",r/2).attr("y",n/2);return h!==null&&(B.style("font-size","0px"),K.style("font-size",h),ee.style("font-size","0px")),{circles:O,textCentres:M,nodes:N,enter:P,update:G,exit:Y}}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?(a=T,C):a},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?(i=T,C):i},C.layoutFunction=function(T){return arguments.length?(S=T,C):S},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"?Yb:T==="logRatio"?QRe:T,C):x},C}function TM(t,e){return function(r){const n=this,a=t[r.sets[0]].radius||50,i=e(r)||"",s=i.split(/\s+/).reverse(),l=(i.length+s.length)/3;let u=s.pop(),d=[u],h=0;const f=1.1;n.textContent=null;const p=[];function g(_){const S=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return S.textContent=_,p.push(S),n.append(S),S}let m=g(u);for(;u=s.pop(),!!u;){d.push(u);const _=d.join(" ");m.textContent=_,_.length>l&&m.getComputedTextLength()>a&&(d.pop(),m.textContent=d.join(" "),d=[u],m=g(u),h++)}const v=.35-h*f/2,y=n.getAttribute("x"),b=n.getAttribute("y");p.forEach((_,S)=>{_.setAttribute("x",y),_.setAttribute("y",b),_.setAttribute("dy",`${v+S*f}em`)})}}function xM(t,e,r){let n=e[0].radius-So(e[0],t);for(let a=1;a=i&&(a=n[d],i=h)}const s=KRe(d=>-1*xM({x:d[0],y:d[1]},t,e),[a.x,a.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(So(o,d)>d.radius){l=!1;break}for(const d of e)if(So(o,d)d.p1))}function jBt(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 QBt(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 QBt(t){const e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}function aNe(t){if(t.length===0)return[];const e={};return I8(t,e),e.arcs}function iNe(t,e){if(t.length===0)return"M 0 0";const r=Math.pow(10,e||0),n=e!=null?i=>Math.round(i*r)/r:i=>i;if(t.length==1){const i=t[0].circle;return jBt(n(i.x),n(i.y),n(i.radius))}const a=[` +a`,r,r,0,1,0,-r*2,0),n.join(" ")}function ZBt(t){const e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}function aNe(t){if(t.length===0)return[];const e={};return I8(t,e),e.arcs}function iNe(t,e){if(t.length===0)return"M 0 0";const r=Math.pow(10,e||0),n=e!=null?i=>Math.round(i*r)/r:i=>i;if(t.length==1){const i=t[0].circle;return QBt(n(i.x),n(i.y),n(i.radius))}const a=[` M`,n(t[0].p2.x),n(t[0].p2.y)];for(const i of t){const s=n(i.circle.radius);a.push(` -A`,s,s,0,i.large?1:0,i.sweep?1:0,n(i.p1.x),n(i.p1.y))}return a.join(" ")}function fce(t,e){return iNe(aNe(t),e)}function ZBt(t,e={}){const{lossFunction:r,layoutFunction:n=XRe,normalize:a=!0,orientation:i=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?Yb:r==="logRatio"?QRe:r,distinct:f});a&&(g=ZRe(g,i,s));const m=JRe(g,o,l,u,d),v=nNe(m,t,h),y=new Map(Object.keys(m).map(S=>[S,{set:S,x:m[S].x,y:m[S].y,radius:m[S].radius}])),b=t.map(S=>{const x=S.sets.map(w=>y.get(w)),C=aNe(x),T=iNe(C,p);return{circles:x,arcs:C,path:T,area:S,has:new Set(S.sets)}});function _(S){let x="";for(const C of b)C.has.size>S.length&&S.every(T=>C.has.has(T))&&(x+=" "+C.path);return x}return b.map(({circles:S,arcs:x,path:C,area:T})=>({data:T,text:v[T.sets],circles:S,arcs:x,path:C,distinctPath:C+_(T.sets)}))}var eU=(function(){var t=E(function(b,_,S,x){for(S=S||{},x=b.length;x--;S[b[x]]=_);return S},"o"),e=[5,8],r=[7,8,11,12,17,19,22,24],n=[1,17],a=[1,18],i=[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:E(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:E(function(_,S,x,C,T,w,R){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:a},{13:20,18:19,20:n,21:a},{13:20,18:21,20:n,21:a},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:a},t(r,[2,9],{14:[1,27],15:[1,28]}),t(i,[2,43]),t(i,[2,44]),t(r,[2,13],{14:[1,29],15:[1,30],27:s}),t(i,[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:a},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(i,[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:E(function(_,S){if(S.recoverable)this.trace(_);else{var x=new Error(_);throw x.hash=S,x}},"parseError"),parse:E(function(_){var S=this,x=[0],C=[],T=[null],w=[],R=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 N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(L.yy[N]=this.yy[N]);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(ge){x.length=x.length-2*ge,T.length=T.length-ge,w.length=w.length-ge}E(B,"popStack");function U(){var ge;return ge=C.pop()||D.lex()||A,typeof ge!="number"&&(ge instanceof Array&&(C=ge,ge=C.pop()),ge=S.symbols_[ge]||ge),ge}E(U,"lex");for(var G,K,Y,ee,X={},le,te,ne,ae;;){if(K=x[x.length-1],this.defaultActions[K]?Y=this.defaultActions[K]:((G===null||typeof G>"u")&&(G=U()),Y=R[K]&&R[K][G]),typeof Y>"u"||!Y.length||!Y[0]){var re="";ae=[];for(le in R[K])this.terminals_[le]&&le>F&&ae.push("'"+this.terminals_[le]+"'");D.showPosition?re="Parse error on line "+(M+1)+`: +A`,s,s,0,i.large?1:0,i.sweep?1:0,n(i.p1.x),n(i.p1.y))}return a.join(" ")}function fce(t,e){return iNe(aNe(t),e)}function JBt(t,e={}){const{lossFunction:r,layoutFunction:n=XRe,normalize:a=!0,orientation:i=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?Yb:r==="logRatio"?QRe:r,distinct:f});a&&(g=ZRe(g,i,s));const m=JRe(g,o,l,u,d),v=nNe(m,t,h),y=new Map(Object.keys(m).map(S=>[S,{set:S,x:m[S].x,y:m[S].y,radius:m[S].radius}])),b=t.map(S=>{const x=S.sets.map(w=>y.get(w)),C=aNe(x),T=iNe(C,p);return{circles:x,arcs:C,path:T,area:S,has:new Set(S.sets)}});function _(S){let x="";for(const C of b)C.has.size>S.length&&S.every(T=>C.has.has(T))&&(x+=" "+C.path);return x}return b.map(({circles:S,arcs:x,path:C,area:T})=>({data:T,text:v[T.sets],circles:S,arcs:x,path:C,distinctPath:C+_(T.sets)}))}var eU=(function(){var t=E(function(b,_,S,x){for(S=S||{},x=b.length;x--;S[b[x]]=_);return S},"o"),e=[5,8],r=[7,8,11,12,17,19,22,24],n=[1,17],a=[1,18],i=[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:E(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:E(function(_,S,x,C,T,w,R){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:a},{13:20,18:19,20:n,21:a},{13:20,18:21,20:n,21:a},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:a},t(r,[2,9],{14:[1,27],15:[1,28]}),t(i,[2,43]),t(i,[2,44]),t(r,[2,13],{14:[1,29],15:[1,30],27:s}),t(i,[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:a},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(i,[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:E(function(_,S){if(S.recoverable)this.trace(_);else{var x=new Error(_);throw x.hash=S,x}},"parseError"),parse:E(function(_){var S=this,x=[0],C=[],T=[null],w=[],R=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 N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(L.yy[N]=this.yy[N]);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(ge){x.length=x.length-2*ge,T.length=T.length-ge,w.length=w.length-ge}E(B,"popStack");function U(){var ge;return ge=C.pop()||D.lex()||A,typeof ge!="number"&&(ge instanceof Array&&(C=ge,ge=C.pop()),ge=S.symbols_[ge]||ge),ge}E(U,"lex");for(var G,K,Y,ee,X={},le,te,ne,ae;;){if(K=x[x.length-1],this.defaultActions[K]?Y=this.defaultActions[K]:((G===null||typeof G>"u")&&(G=U()),Y=R[K]&&R[K][G]),typeof Y>"u"||!Y.length||!Y[0]){var re="";ae=[];for(le in R[K])this.terminals_[le]&&le>F&&ae.push("'"+this.terminals_[le]+"'");D.showPosition?re="Parse error on line "+(M+1)+`: `+D.showPosition()+` Expecting `+ae.join(", ")+", got '"+(this.terminals_[G]||G)+"'":re="Parse error on line "+(M+1)+": Unexpected "+(G==A?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(re,{text:D.match,token:this.terminals_[G]||G,line:D.yylineno,loc:P,expected:ae})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+G);switch(Y[0]){case 1:x.push(G),T.push(D.yytext),w.push(D.yylloc),x.push(Y[1]),G=null,$=D.yyleng,O=D.yytext,M=D.yylineno,P=D.yylloc;break;case 2:if(te=this.productions_[Y[1]][1],X.$=T[T.length-te],X._$={first_line:w[w.length-(te||1)].first_line,last_line:w[w.length-1].last_line,first_column:w[w.length-(te||1)].first_column,last_column:w[w.length-1].last_column},z&&(X._$.range=[w[w.length-(te||1)].range[0],w[w.length-1].range[1]]),ee=this.performAction.apply(X,[O,$,M,L.yy,Y[1],T,w].concat(I)),typeof ee<"u")return ee;te&&(x=x.slice(0,-1*te*2),T=T.slice(0,-1*te),w=w.slice(0,-1*te)),x.push(this.productions_[Y[1]][0]),T.push(X.$),w.push(X._$),ne=R[x[x.length-2]][x[x.length-1]],x.push(ne);break;case 3:return!0}}return!0},"parse")},v=(function(){var b={EOF:1,parseError:E(function(S,x){if(this.yy.parser)this.yy.parser.parseError(S,x);else throw new Error(S)},"parseError"),setInput:E(function(_,S){return this.yy=S||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:E(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var S=_.match(/(?:\r\n?|\n).*/g);return S?(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:E(function(_){var S=_.length,x=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;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-S},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},"unput"),more:E(function(){return this._more=!0,this},"more"),reject:E(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:E(function(_){this.unput(this.match.slice(_))},"less"),pastInput:E(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:E(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:E(function(){var _=this.pastInput(),S=new Array(_.length+1).join("-");return _+this.upcomingInput()+` `+S+"^"},"showPosition"),test_match:E(function(_,S){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,S,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:E(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,S,x,C;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),w=0;wS[0].length)){if(S=x,C=w,this.options.backtrack_lexer){if(_=this.test_match(x,T[w]),_!==!1)return _;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(_=this.test_match(S,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:E(function(){var S=this.next();return S||this.lex()},"lex"),begin:E(function(S){this.conditionStack.push(S)},"begin"),popState:E(function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},"topState"),pushState:E(function(S){this.begin(S)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(S,x,C,T){switch(C){case 0:break;case 1:break;case 2:break;case 3:if(S.getIndentMode&&S.getIndentMode())return S.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:S.setIndentMode&&S.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(S.consumeIndentText)S.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=v;function y(){this.yy={}}return E(y,"Parser"),y.prototype=m,m.Parser=y,new y})();eU.parser=eU;var JBt=eU,hK=[],fK=[],pK=[],gK=new Set,mK,vK=!1,eFt=E((t,e,r)=>{const n=O8(t).sort(),a=r??10/Math.pow(t.length,2);mK=n,n.length===1&&gK.add(n[0]),hK.push({sets:n,size:a,label:e?rT(e):void 0})},"addSubsetData"),tFt=E(()=>hK,"getSubsetData"),rT=E(t=>{const e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),rFt=E(t=>t&&rT(t),"normalizeStyleValue"),nFt=E((t,e,r)=>{const n=rT(e);fK.push({sets:O8(t).sort(),id:n,label:r?rT(r):void 0})},"addTextData"),aFt=E((t,e)=>{const r=O8(t).sort(),n={};for(const[a,i]of e)n[a]=rFt(i)??i;pK.push({targets:r,styles:n})},"addStyleData"),iFt=E(()=>pK,"getStyleData"),O8=E(t=>t.map(e=>rT(e)),"normalizeIdentifierList"),sFt=E(t=>{const r=O8(t).filter(n=>!gK.has(n));if(r.length>0)throw new Error(`unknown set identifier: ${r.join(", ")}`)},"validateUnionIdentifiers"),oFt=E(()=>fK,"getTextData"),lFt=E(()=>mK,"getCurrentSets"),cFt=E(()=>vK,"getIndentMode"),uFt=E(t=>{vK=t},"setIndentMode"),dFt=ln.venn;function sNe(){return $a(dFt,xr().venn)}E(sNe,"getConfig");var hFt=E(()=>{oa(),hK.length=0,fK.length=0,pK.length=0,gK.clear(),mK=void 0,vK=!1},"customClear"),fFt={getConfig:sNe,clear:hFt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya,addSubsetData:eFt,getSubsetData:tFt,addTextData:nFt,addStyleData:aFt,validateUnionIdentifiers:sFt,getTextData:oFt,getStyleData:iFt,getCurrentSets:lFt,getIndentMode:cFt,setIndentMode:uFt},pFt=E(t=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:E(function(){var S=this.next();return S||this.lex()},"lex"),begin:E(function(S){this.conditionStack.push(S)},"begin"),popState:E(function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:E(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:E(function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},"topState"),pushState:E(function(S){this.begin(S)},"pushState"),stateStackSize:E(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:E(function(S,x,C,T){switch(C){case 0:break;case 1:break;case 2:break;case 3:if(S.getIndentMode&&S.getIndentMode())return S.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:S.setIndentMode&&S.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(S.consumeIndentText)S.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=v;function y(){this.yy={}}return E(y,"Parser"),y.prototype=m,m.Parser=y,new y})();eU.parser=eU;var eFt=eU,hK=[],fK=[],pK=[],gK=new Set,mK,vK=!1,tFt=E((t,e,r)=>{const n=O8(t).sort(),a=r??10/Math.pow(t.length,2);mK=n,n.length===1&&gK.add(n[0]),hK.push({sets:n,size:a,label:e?rT(e):void 0})},"addSubsetData"),rFt=E(()=>hK,"getSubsetData"),rT=E(t=>{const e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),nFt=E(t=>t&&rT(t),"normalizeStyleValue"),aFt=E((t,e,r)=>{const n=rT(e);fK.push({sets:O8(t).sort(),id:n,label:r?rT(r):void 0})},"addTextData"),iFt=E((t,e)=>{const r=O8(t).sort(),n={};for(const[a,i]of e)n[a]=nFt(i)??i;pK.push({targets:r,styles:n})},"addStyleData"),sFt=E(()=>pK,"getStyleData"),O8=E(t=>t.map(e=>rT(e)),"normalizeIdentifierList"),oFt=E(t=>{const r=O8(t).filter(n=>!gK.has(n));if(r.length>0)throw new Error(`unknown set identifier: ${r.join(", ")}`)},"validateUnionIdentifiers"),lFt=E(()=>fK,"getTextData"),cFt=E(()=>mK,"getCurrentSets"),uFt=E(()=>vK,"getIndentMode"),dFt=E(t=>{vK=t},"setIndentMode"),hFt=ln.venn;function sNe(){return $a(hFt,xr().venn)}E(sNe,"getConfig");var fFt=E(()=>{oa(),hK.length=0,fK.length=0,pK.length=0,gK.clear(),mK=void 0,vK=!1},"customClear"),pFt={getConfig:sNe,clear:fFt,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya,addSubsetData:tFt,getSubsetData:rFt,addTextData:aFt,addStyleData:iFt,validateUnionIdentifiers:oFt,getTextData:lFt,getStyleData:sFt,getCurrentSets:cFt,getIndentMode:uFt,setIndentMode:dFt},gFt=E(t=>` .venn-title { font-size: 32px; fill: ${t.vennTitleTextColor}; @@ -7328,7 +7333,7 @@ Expecting `+ae.join(", ")+", got '"+(this.terminals_[G]||G)+"'":re="Parse error font-family: ${t.fontFamily}; color: ${t.vennSetTextColor}; } -`,"getStyles"),gFt=pFt;function oNe(t){const e=new Map;for(const r of t){const n=r.targets.join("|"),a=e.get(n);a?Object.assign(a,r.styles):e.set(n,{...r.styles})}return e}E(oNe,"buildStyleByKey");var mFt=E((t,e,r,n)=>{const a=n.db,i=a.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=a.getDiagramTitle?.(),f=a.getSubsetData(),p=a.getTextData(),g=oNe(a.getStyleData()),m=i?.width??800,v=i?.height??450,b=m/1600,_=h?48*b:0,S=s.primaryTextColor??s.textColor,x=wo(e);x.attr("viewBox",`0 0 ${m} ${v}`),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=KBt().width(m).height(v-_);C.datum(f).call(T);const w=u?gr.svg(C.select("svg").node()):void 0,R=ZBt(f,{width:m,height:v-_,padding:i?.padding??15}),O=new Map;for(const A of R){const I=Pd([...A.data.sets].sort());O.set(I,A)}p.length>0&&lNe(i,O,C,p,b,g);const M=Js(s.background||"#f4f4f4");C.selectAll(".venn-circle").each(function(A,I){const D=At(this),N=Pd([...A.sets].sort()),P=g.get(N),z=P?.fill||d[I%d.length]||s.primaryColor;D.classed(`venn-set-${I%8}`,!0);const B=P?.["fill-opacity"]??.1,U=P?.stroke||z,G=P?.["stroke-width"]||`${5*b}`;if(u&&w){const Y=O.get(N);if(Y&&Y.circles.length>0){const ee=Y.circles[0],X=w.circle(ee.x,ee.y,ee.radius*2,{roughness:.7,seed:l,fill:QX(z,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+I*60,stroke:U,strokeWidth:parseFloat(String(G))});D.select("path").remove(),D.node()?.insertBefore(X,D.select("text").node())}}else D.select("path").style("fill",z).style("fill-opacity",B).style("stroke",U).style("stroke-width",G).style("stroke-opacity",.95);const K=P?.color||(M?vt(z,30):yt(z,30));D.select("text").style("font-size",`${48*b}px`).style("fill",K)}),u&&w?C.selectAll(".venn-intersection").each(function(A){const I=At(this),L=Pd([...A.sets].sort()),N=g.get(L),P=N?.fill;if(P){const z=I.select("path"),B=z.attr("d");if(B){const U=w.path(B,{roughness:.7,seed:l,fill:QX(P,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),G=z.node();G?.parentNode?.insertBefore(U,G),z.remove()}}else I.select("path").style("fill-opacity",0);I.select("text").style("font-size",`${48*b}px`).style("fill",N?.color??s.vennSetTextColor??S)}):(C.selectAll(".venn-intersection text").style("font-size",`${48*b}px`).style("fill",A=>{const D=Pd([...A.sets].sort());return g.get(D)?.color??s.vennSetTextColor??S}),C.selectAll(".venn-intersection path").style("fill-opacity",A=>{const D=Pd([...A.sets].sort());return g.get(D)?.fill?1:0}).style("fill",A=>{const D=Pd([...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);di(x,v,m,i?.useMaxWidth??!0)},"draw");function Pd(t){return t.join("|")}E(Pd,"stableSetsKey");function lNe(t,e,r,n,a,i){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=Pd(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)),v=Math.min(...f.circles.map(A=>A.radius-Math.hypot(p-A.x,g-A.y)));let y=Number.isFinite(v)?Math.max(0,v):0;y===0&&Number.isFinite(m)&&(y=m*.6);const b=l.append("g").attr("class","venn-text-area").attr("font-size",`${40*a}px`);s&&b.append("circle").attr("class","venn-text-debug-circle").attr("cx",p).attr("cy",g).attr("r",y).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*a).attr("stroke-dasharray",`${6*a} ${4*a}`);const _=Math.max(80*a,y*2*.95),S=Math.max(60*a,y*2*.95),T=(f.data.label&&f.data.label.length>0?Math.min(32*a,y*.25):0)+(h.length<=2?30*a:0),w=p-_/2,R=g-S/2+T,O=Math.max(1,Math.ceil(Math.sqrt(h.length))),M=Math.max(1,Math.ceil(h.length/O)),$=_/O,F=S/M;for(const[A,I]of h.entries()){const D=A%O,L=Math.floor(A/O),N=w+$*(D+.5),P=R+F*(L+.5);s&&b.append("rect").attr("class","venn-text-debug-cell").attr("x",w+$*D).attr("y",R+F*L).attr("width",$).attr("height",F).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*a).attr("stroke-dasharray",`${4*a} ${3*a}`);const z=$*.9,B=F*.9,U=b.append("foreignObject").attr("class","venn-text-node-fo").attr("width",z).attr("height",B).attr("x",N-z/2).attr("y",P-B/2).attr("overflow","visible"),G=i.get(I.id)?.color,K=U.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);G&&K.style("color",G)}}}E(lNe,"renderTextNodes");var vFt={draw:mFt},yFt={parser:JBt,db:fFt,renderer:vFt,styles:gFt};const _Ft=Object.freeze(Object.defineProperty({__proto__:null,diagram:yFt},Symbol.toStringTag,{value:"Module"}));var H_,cNe=(H_=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=sa,this.getAccTitle=va,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getAccDescription=_a,this.setAccDescription=ya}getNodes(){return this.nodes}getConfig(){const e=ln,r=xr();return $a({...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:[]},a=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");a&&a.forEach(i=>{DG(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){oa(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},E(H_,"TreeMapDB"),H_);function uNe(t){if(!t.length)return[];const e=[],r=[];return t.forEach(n=>{const a={name:n.name,children:n.type==="Leaf"?void 0:[]};for(a.classSelector=n?.classSelector,n?.cssCompiledStyles&&(a.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(a.value=n.value);r.length>0&&r[r.length-1].level>=n.level;)r.pop();if(r.length===0)e.push(a);else{const i=r[r.length-1].node;i.children?i.children.push(a):i.children=[a]}n.type!=="Leaf"&&r.push({node:a,level:n.level})}),e}E(uNe,"buildHierarchy");var bFt=E((t,e)=>{Nu(t,e);const r=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&e.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const s=i.item;if(!s)continue;const o=i.indent?parseInt(i.indent):0,l=EFt(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=uNe(r),a=E((i,s)=>{for(const o of i)e.addNode(o,s),o.children&&o.children.length>0&&a(o.children,s+1)},"addNodesRecursively");a(n,0)},"populate"),EFt=E(t=>t.name?String(t.name):"","getItemName"),dNe={parser:{yy:void 0},parse:E(async t=>{try{const r=await Sc("treemap",t);oe.debug("Treemap AST:",r);const n=dNe.parser?.yy;if(!(n instanceof cNe))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.");bFt(r,n)}catch(e){throw oe.error("Error parsing treemap:",e),e}},"parse")},SFt=10,lm=10,gE=25,TFt=E((t,e,r,n)=>{const a=n.db,i=a.getConfig(),s=i.padding??SFt,o=a.getDiagramTitle(),l=a.getRoot(),{themeVariables:u}=xr();if(!l)return;const d=o?30:0,h=wo(e),f=i.nodeWidth?i.nodeWidth*lm:960,p=i.nodeHeight?i.nodeHeight*lm:500,g=f,m=p+d;h.attr("viewBox",`0 0 ${g} ${m}`),di(h,m,g,i.useMaxWidth);let v;try{const A=i.valueFormat||",";if(A==="$0,0")v=E(I=>"$"+Gf(",")(I),"valueFormat");else if(A.startsWith("$")&&A.includes(",")){const I=/\.\d+/.exec(A),D=I?I[0]:"";v=E(L=>"$"+Gf(","+D)(L),"valueFormat")}else if(A.startsWith("$")){const I=A.substring(1);v=E(D=>"$"+Gf(I||"")(D),"valueFormat")}else v=Gf(A)}catch(A){oe.error("Error creating format function:",A),v=Gf(",")}const y=Ep().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=Ep().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]),_=Ep().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 S=h.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),x=rG(l).sum(A=>A.value??0).sort((A,I)=>(I.value??0)-(A.value??0)),T=wYe().size([f,p]).paddingTop(A=>A.children&&A.children.length>0?gE+lm:0).paddingInner(s).paddingLeft(A=>A.children&&A.children.length>0?lm:0).paddingRight(A=>A.children&&A.children.length>0?lm:0).paddingBottom(A=>A.children&&A.children.length>0?lm:0).round(!0)(x),w=T.descendants().filter(A=>A.children&&A.children.length>0),R=S.selectAll(".treemapSection").data(w).enter().append("g").attr("class","treemapSection").attr("transform",A=>`translate(${A.x0},${A.y0})`);R.append("rect").attr("width",A=>A.x1-A.x0).attr("height",gE).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",A=>A.depth===0?"display: none;":""),R.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",gE),R.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=>y(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(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",gE/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,N=6;let P;i.showValues!==!1&&A.value?P=L-10-30-10-N:P=L-N-6;const B=Math.max(15,P),U=I.node();if(U.getComputedTextLength()>B){let Y=D;for(;Y.length>0;){if(Y=D.substring(0,Y.length-1),Y.length===0){I.text("..."),U.getComputedTextLength()>B&&I.text("");break}if(I.text(Y+"..."),U.getComputedTextLength()<=B)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",A=>A.x1-A.x0-10).attr("y",gE/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(A=>A.value?v(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=S.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?y(A.parent.data.name):y(A.data.name)).attr("style",A=>hr({cssCompiledStyles:A.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",A=>A.parent?y(A.parent.data.name):y(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,N=I.node(),P=4,z=D-2*P,B=L-2*P;if(z<10||B<10){I.style("display","none");return}let U=parseInt(I.style("font-size"),10);const G=8,K=28,Y=.6,ee=6,X=2;for(;N.getComputedTextLength()>z&&U>G;)U--,I.style("font-size",`${U}px`);let le=Math.max(ee,Math.min(K,Math.round(U*Y))),te=U+X+le;for(;te>B&&U>G&&(U--,le=Math.max(ee,Math.min(K,Math.round(U*Y))),!(lez||U(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?v(I.value):"").each(function(I){const D=At(this),L=this.parentNode;if(!L){D.style("display","none");return}const N=At(L).select(".treemapLabel");if(N.empty()||N.style("display")==="none"){D.style("display","none");return}const P=parseFloat(N.style("font-size")),z=28,B=.6,U=6,G=2,K=Math.max(U,Math.min(z,Math.round(P*B)));D.style("font-size",`${K}px`);const ee=(I.y1-I.y0)/2+P/2+G;D.attr("y",ee);const X=I.x1-I.x0,ne=I.y1-I.y0-4,ae=X-8;D.node().getComputedTextLength()>ae||ee+K>ne||K{const e=Qb(),r=xr(),n=$a(e,r.themeVariables),a=$a(wFt,t),i=a.titleColor??n.titleColor,s=a.labelColor??n.textColor,o=a.valueColor??n.textColor;return` +`,"getStyles"),mFt=gFt;function oNe(t){const e=new Map;for(const r of t){const n=r.targets.join("|"),a=e.get(n);a?Object.assign(a,r.styles):e.set(n,{...r.styles})}return e}E(oNe,"buildStyleByKey");var vFt=E((t,e,r,n)=>{const a=n.db,i=a.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=a.getDiagramTitle?.(),f=a.getSubsetData(),p=a.getTextData(),g=oNe(a.getStyleData()),m=i?.width??800,v=i?.height??450,b=m/1600,_=h?48*b:0,S=s.primaryTextColor??s.textColor,x=wo(e);x.attr("viewBox",`0 0 ${m} ${v}`),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=XBt().width(m).height(v-_);C.datum(f).call(T);const w=u?gr.svg(C.select("svg").node()):void 0,R=JBt(f,{width:m,height:v-_,padding:i?.padding??15}),O=new Map;for(const A of R){const I=Pd([...A.data.sets].sort());O.set(I,A)}p.length>0&&lNe(i,O,C,p,b,g);const M=Js(s.background||"#f4f4f4");C.selectAll(".venn-circle").each(function(A,I){const D=At(this),N=Pd([...A.sets].sort()),P=g.get(N),z=P?.fill||d[I%d.length]||s.primaryColor;D.classed(`venn-set-${I%8}`,!0);const B=P?.["fill-opacity"]??.1,U=P?.stroke||z,G=P?.["stroke-width"]||`${5*b}`;if(u&&w){const Y=O.get(N);if(Y&&Y.circles.length>0){const ee=Y.circles[0],X=w.circle(ee.x,ee.y,ee.radius*2,{roughness:.7,seed:l,fill:QX(z,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+I*60,stroke:U,strokeWidth:parseFloat(String(G))});D.select("path").remove(),D.node()?.insertBefore(X,D.select("text").node())}}else D.select("path").style("fill",z).style("fill-opacity",B).style("stroke",U).style("stroke-width",G).style("stroke-opacity",.95);const K=P?.color||(M?vt(z,30):yt(z,30));D.select("text").style("font-size",`${48*b}px`).style("fill",K)}),u&&w?C.selectAll(".venn-intersection").each(function(A){const I=At(this),L=Pd([...A.sets].sort()),N=g.get(L),P=N?.fill;if(P){const z=I.select("path"),B=z.attr("d");if(B){const U=w.path(B,{roughness:.7,seed:l,fill:QX(P,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),G=z.node();G?.parentNode?.insertBefore(U,G),z.remove()}}else I.select("path").style("fill-opacity",0);I.select("text").style("font-size",`${48*b}px`).style("fill",N?.color??s.vennSetTextColor??S)}):(C.selectAll(".venn-intersection text").style("font-size",`${48*b}px`).style("fill",A=>{const D=Pd([...A.sets].sort());return g.get(D)?.color??s.vennSetTextColor??S}),C.selectAll(".venn-intersection path").style("fill-opacity",A=>{const D=Pd([...A.sets].sort());return g.get(D)?.fill?1:0}).style("fill",A=>{const D=Pd([...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);di(x,v,m,i?.useMaxWidth??!0)},"draw");function Pd(t){return t.join("|")}E(Pd,"stableSetsKey");function lNe(t,e,r,n,a,i){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=Pd(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)),v=Math.min(...f.circles.map(A=>A.radius-Math.hypot(p-A.x,g-A.y)));let y=Number.isFinite(v)?Math.max(0,v):0;y===0&&Number.isFinite(m)&&(y=m*.6);const b=l.append("g").attr("class","venn-text-area").attr("font-size",`${40*a}px`);s&&b.append("circle").attr("class","venn-text-debug-circle").attr("cx",p).attr("cy",g).attr("r",y).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*a).attr("stroke-dasharray",`${6*a} ${4*a}`);const _=Math.max(80*a,y*2*.95),S=Math.max(60*a,y*2*.95),T=(f.data.label&&f.data.label.length>0?Math.min(32*a,y*.25):0)+(h.length<=2?30*a:0),w=p-_/2,R=g-S/2+T,O=Math.max(1,Math.ceil(Math.sqrt(h.length))),M=Math.max(1,Math.ceil(h.length/O)),$=_/O,F=S/M;for(const[A,I]of h.entries()){const D=A%O,L=Math.floor(A/O),N=w+$*(D+.5),P=R+F*(L+.5);s&&b.append("rect").attr("class","venn-text-debug-cell").attr("x",w+$*D).attr("y",R+F*L).attr("width",$).attr("height",F).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*a).attr("stroke-dasharray",`${4*a} ${3*a}`);const z=$*.9,B=F*.9,U=b.append("foreignObject").attr("class","venn-text-node-fo").attr("width",z).attr("height",B).attr("x",N-z/2).attr("y",P-B/2).attr("overflow","visible"),G=i.get(I.id)?.color,K=U.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);G&&K.style("color",G)}}}E(lNe,"renderTextNodes");var yFt={draw:vFt},_Ft={parser:eFt,db:pFt,renderer:yFt,styles:mFt};const bFt=Object.freeze(Object.defineProperty({__proto__:null,diagram:_Ft},Symbol.toStringTag,{value:"Module"}));var H_,cNe=(H_=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=sa,this.getAccTitle=va,this.setDiagramTitle=pa,this.getDiagramTitle=la,this.getAccDescription=_a,this.setAccDescription=ya}getNodes(){return this.nodes}getConfig(){const e=ln,r=xr();return $a({...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:[]},a=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");a&&a.forEach(i=>{DG(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){oa(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},E(H_,"TreeMapDB"),H_);function uNe(t){if(!t.length)return[];const e=[],r=[];return t.forEach(n=>{const a={name:n.name,children:n.type==="Leaf"?void 0:[]};for(a.classSelector=n?.classSelector,n?.cssCompiledStyles&&(a.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(a.value=n.value);r.length>0&&r[r.length-1].level>=n.level;)r.pop();if(r.length===0)e.push(a);else{const i=r[r.length-1].node;i.children?i.children.push(a):i.children=[a]}n.type!=="Leaf"&&r.push({node:a,level:n.level})}),e}E(uNe,"buildHierarchy");var EFt=E((t,e)=>{Nu(t,e);const r=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&e.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const s=i.item;if(!s)continue;const o=i.indent?parseInt(i.indent):0,l=SFt(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=uNe(r),a=E((i,s)=>{for(const o of i)e.addNode(o,s),o.children&&o.children.length>0&&a(o.children,s+1)},"addNodesRecursively");a(n,0)},"populate"),SFt=E(t=>t.name?String(t.name):"","getItemName"),dNe={parser:{yy:void 0},parse:E(async t=>{try{const r=await Sc("treemap",t);oe.debug("Treemap AST:",r);const n=dNe.parser?.yy;if(!(n instanceof cNe))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.");EFt(r,n)}catch(e){throw oe.error("Error parsing treemap:",e),e}},"parse")},TFt=10,lm=10,gE=25,xFt=E((t,e,r,n)=>{const a=n.db,i=a.getConfig(),s=i.padding??TFt,o=a.getDiagramTitle(),l=a.getRoot(),{themeVariables:u}=xr();if(!l)return;const d=o?30:0,h=wo(e),f=i.nodeWidth?i.nodeWidth*lm:960,p=i.nodeHeight?i.nodeHeight*lm:500,g=f,m=p+d;h.attr("viewBox",`0 0 ${g} ${m}`),di(h,m,g,i.useMaxWidth);let v;try{const A=i.valueFormat||",";if(A==="$0,0")v=E(I=>"$"+Gf(",")(I),"valueFormat");else if(A.startsWith("$")&&A.includes(",")){const I=/\.\d+/.exec(A),D=I?I[0]:"";v=E(L=>"$"+Gf(","+D)(L),"valueFormat")}else if(A.startsWith("$")){const I=A.substring(1);v=E(D=>"$"+Gf(I||"")(D),"valueFormat")}else v=Gf(A)}catch(A){oe.error("Error creating format function:",A),v=Gf(",")}const y=Ep().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=Ep().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]),_=Ep().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 S=h.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),x=rG(l).sum(A=>A.value??0).sort((A,I)=>(I.value??0)-(A.value??0)),T=kYe().size([f,p]).paddingTop(A=>A.children&&A.children.length>0?gE+lm:0).paddingInner(s).paddingLeft(A=>A.children&&A.children.length>0?lm:0).paddingRight(A=>A.children&&A.children.length>0?lm:0).paddingBottom(A=>A.children&&A.children.length>0?lm:0).round(!0)(x),w=T.descendants().filter(A=>A.children&&A.children.length>0),R=S.selectAll(".treemapSection").data(w).enter().append("g").attr("class","treemapSection").attr("transform",A=>`translate(${A.x0},${A.y0})`);R.append("rect").attr("width",A=>A.x1-A.x0).attr("height",gE).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",A=>A.depth===0?"display: none;":""),R.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",gE),R.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=>y(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(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",gE/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,N=6;let P;i.showValues!==!1&&A.value?P=L-10-30-10-N:P=L-N-6;const B=Math.max(15,P),U=I.node();if(U.getComputedTextLength()>B){let Y=D;for(;Y.length>0;){if(Y=D.substring(0,Y.length-1),Y.length===0){I.text("..."),U.getComputedTextLength()>B&&I.text("");break}if(I.text(Y+"..."),U.getComputedTextLength()<=B)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",A=>A.x1-A.x0-10).attr("y",gE/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(A=>A.value?v(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=S.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?y(A.parent.data.name):y(A.data.name)).attr("style",A=>hr({cssCompiledStyles:A.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",A=>A.parent?y(A.parent.data.name):y(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,N=I.node(),P=4,z=D-2*P,B=L-2*P;if(z<10||B<10){I.style("display","none");return}let U=parseInt(I.style("font-size"),10);const G=8,K=28,Y=.6,ee=6,X=2;for(;N.getComputedTextLength()>z&&U>G;)U--,I.style("font-size",`${U}px`);let le=Math.max(ee,Math.min(K,Math.round(U*Y))),te=U+X+le;for(;te>B&&U>G&&(U--,le=Math.max(ee,Math.min(K,Math.round(U*Y))),!(lez||U(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?v(I.value):"").each(function(I){const D=At(this),L=this.parentNode;if(!L){D.style("display","none");return}const N=At(L).select(".treemapLabel");if(N.empty()||N.style("display")==="none"){D.style("display","none");return}const P=parseFloat(N.style("font-size")),z=28,B=.6,U=6,G=2,K=Math.max(U,Math.min(z,Math.round(P*B)));D.style("font-size",`${K}px`);const ee=(I.y1-I.y0)/2+P/2+G;D.attr("y",ee);const X=I.x1-I.x0,ne=I.y1-I.y0-4,ae=X-8;D.node().getComputedTextLength()>ae||ee+K>ne||K{const e=Qb(),r=xr(),n=$a(e,r.themeVariables),a=$a(kFt,t),i=a.titleColor??n.titleColor,s=a.labelColor??n.textColor,o=a.valueColor??n.textColor;return` .treemapNode.section { stroke: ${a.sectionStrokeColor}; stroke-width: ${a.sectionStrokeWidth}; @@ -7351,8 +7356,8 @@ Expecting `+ae.join(", ")+", got '"+(this.terminals_[G]||G)+"'":re="Parse error fill: ${i}; font-size: ${a.titleFontSize}; } - `},"getStyles"),AFt=kFt,RFt={parser:dNe,get db(){return new cNe},renderer:CFt,styles:AFt};const NFt=Object.freeze(Object.defineProperty({__proto__:null,diagram:RFt},Symbol.toStringTag,{value:"Module"}));var ak=E((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"),xf=E((t,e,r)=>({x:ak(e,`${r} evolution`),y:ak(t,`${r} visibility`)}),"toCoordinates"),pce=E(t=>{if(t){if(t==="+<>")return"bidirectional";if(t==="+<")return"backward";if(t==="+>")return"forward"}},"getFlowFromPort"),IFt=E(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"),OFt=E((t,e)=>{if(Nu(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){const r=t.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),n=t.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);e.updateAxes({stages:r,stageBoundaries:n})}if(t.anchors.forEach(r=>{const n=xf(r.visibility,r.evolution,`Anchor "${r.name}"`);e.addNode(r.name,r.name,n.x,n.y,"anchor")}),t.components.forEach(r=>{const n=xf(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,i=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",a,i,r.inertia,s)}),t.notes.forEach(r=>{const n=xf(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 a=n.y;e.startPipeline(r.parent),r.components.forEach(i=>{const s=`${r.parent}_${i.name}`,o=i.label?(i.label.negX?-1:1)*i.label.offsetX:void 0,l=i.label?(i.label.negY?-1:1)*i.label.offsetY:void 0,u=ak(i.evolution,`Pipeline component "${i.name}" evolution`);e.addNode(s,i.name,u,a,"pipeline-component",o,l),e.addPipelineComponent(r.parent,s)})}),t.links.forEach(r=>{const n=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=pce(r.fromPort)??pce(r.toPort);const{flow:i,label:s}=IFt(r.arrow);!a&&i&&(a=i);const o=r.linkLabel,l=s??o;e.addLink(e.resolveNodeId(r.from),e.resolveNodeId(r.to),n,l,a)}),t.evolves.forEach(r=>{const n=e.getNode(r.component);if(n?.y!==void 0){const a=ak(r.target,`Evolve target for "${r.component}"`);e.addTrend(r.component,a,n.y)}}),t.annotations.length>0){const r=t.annotations[0],n=xf(r.x,r.y,"Annotations box");e.setAnnotationsBox(n.x,n.y)}t.annotation.forEach(r=>{const n=xf(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=xf(r.x,r.y,`Accelerator "${r.name}"`);e.addAccelerator(r.name,n.x,n.y)}),t.deaccelerators.forEach(r=>{const n=xf(r.x,r.y,`Deaccelerator "${r.name}"`);e.addDeaccelerator(r.name,n.x,n.y)})},"populateDb"),hNe={parser:{yy:void 0},parse:E(async t=>{const e=await Sc("wardley",t);oe.debug(e);const r=hNe.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.");OFt(e,r)},"parse")},V_,DFt=(V_=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 a=this.nodes.get(r);a&&(a.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}},E(V_,"WardleyBuilder"),V_),ys=new DFt;function fNe(){return Ye()["wardley-beta"]}E(fNe,"getConfig");function pNe(t,e,r,n,a,i,s,o,l){ys.addNode({id:t,label:e,x:r,y:n,className:a,labelOffsetX:i,labelOffsetY:s,inertia:o,sourceStrategy:l})}E(pNe,"addNode");function gNe(t,e,r=!1,n,a){ys.addLink({source:t,target:e,dashed:r,label:n,flow:a})}E(gNe,"addLink");function mNe(t,e,r){ys.addTrend({nodeId:t,targetX:e,targetY:r})}E(mNe,"addTrend");function vNe(t,e,r){ys.addAnnotation({number:t,coordinates:e,text:r})}E(vNe,"addAnnotation");function yNe(t,e,r){ys.addNote({text:t,x:e,y:r})}E(yNe,"addNote");function _Ne(t,e,r){ys.addAccelerator({name:t,x:e,y:r})}E(_Ne,"addAccelerator");function bNe(t,e,r){ys.addDeaccelerator({name:t,x:e,y:r})}E(bNe,"addDeaccelerator");function ENe(t,e){ys.setAnnotationsBox(t,e)}E(ENe,"setAnnotationsBox");function SNe(t,e){ys.setSize(t,e)}E(SNe,"setSize");function TNe(t){ys.startPipeline(t)}E(TNe,"startPipeline");function xNe(t,e){ys.addPipelineComponent(t,e)}E(xNe,"addPipelineComponent");function CNe(t){ys.setAxes(t)}E(CNe,"updateAxes");function wNe(t){return ys.getNode(t)}E(wNe,"getNode");function kNe(t){return ys.resolveNodeId(t)}E(kNe,"resolveNodeId");function ANe(){return ys.build()}E(ANe,"getWardleyData");function RNe(){ys.clear(),oa()}E(RNe,"clear");var LFt={getConfig:fNe,addNode:pNe,addLink:gNe,addTrend:mNe,addAnnotation:vNe,addNote:yNe,addAccelerator:_Ne,addDeaccelerator:bNe,setAnnotationsBox:ENe,setSize:SNe,startPipeline:TNe,addPipelineComponent:xNe,updateAxes:CNe,getNode:wNe,resolveNodeId:kNe,getWardleyData:ANe,clear:RNe,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya},MFt=["Genesis","Custom Built","Product","Commodity"],PFt=E(()=>{const{themeVariables:t}=Ye();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"),BFt=E(()=>{const t=Ye()["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"),FFt=E((t,e,r,n)=>{oe.debug(`Rendering Wardley map -`+t);const a=BFt(),i=PFt(),s=a.nodeRadius*1.6,o=n.db,l=o.getWardleyData(),u=o.getDiagramTitle(),d=l.size?.width??a.width,h=l.size?.height??a.height,f=wo(e);f.selectAll("*").remove(),di(f,h,d,a.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",i.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",i.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",i.linkStroke).attr("stroke","none"),p.append("rect").attr("class","wardley-background").attr("width",d).attr("height",h).attr("fill",i.backgroundColor);const m=d-a.padding*2,v=h-a.padding*2;u&&p.append("text").attr("class","wardley-title").attr("x",d/2).attr("y",a.padding/2).attr("fill",i.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const y=E(N=>a.padding+N/100*m,"projectX"),b=E(N=>h-a.padding-N/100*v,"projectY"),_=p.append("g").attr("class","wardley-axes");_.append("line").attr("x1",a.padding).attr("x2",d-a.padding).attr("y1",h-a.padding).attr("y2",h-a.padding).attr("stroke",i.axisColor).attr("stroke-width",1),_.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",h-a.padding).attr("stroke",i.axisColor).attr("stroke-width",1);const S=l.axes.xLabel??"Evolution",x=l.axes.yLabel??"Visibility";_.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+m/2).attr("y",h-a.padding/4).attr("fill",i.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(S),_.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+v/2).attr("fill",i.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+v/2})`).text(x);const C=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:MFt;if(C.length>0){const N=p.append("g").attr("class","wardley-stages"),P=l.axes.stageBoundaries,z=[];if(P&&P.length===C.length){let B=0;P.forEach(U=>{z.push({start:B,end:U}),B=U})}else{const B=1/C.length;C.forEach((U,G)=>{z.push({start:G*B,end:(G+1)*B})})}C.forEach((B,U)=>{const G=z[U],K=a.padding+G.start*m,Y=a.padding+G.end*m,ee=(K+Y)/2;U>0&&N.append("line").attr("x1",K).attr("x2",K).attr("y1",a.padding).attr("y2",h-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),N.append("text").attr("class","wardley-stage-label").attr("x",ee).attr("y",h-a.padding/1.5).attr("fill",i.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(B)})}if(a.showGrid){const N=p.append("g").attr("class","wardley-grid");for(let P=1;P<4;P++){const z=P/4,B=a.padding+m*z;N.append("line").attr("x1",B).attr("x2",B).attr("y1",a.padding).attr("y2",h-a.padding).attr("stroke",i.gridColor).attr("stroke-dasharray","2 6"),N.append("line").attr("x1",a.padding).attr("x2",d-a.padding).attr("y1",h-a.padding-v*z).attr("y2",h-a.padding-v*z).attr("stroke",i.gridColor).attr("stroke-dasharray","2 6")}}const T=new Map;if(l.nodes.forEach(N=>{T.set(N.id,{x:y(N.x),y:b(N.y),node:N})}),l.pipelines.length>0){const N=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(Y=>({id:Y,pos:T.get(Y),node:l.nodes.find(ee=>ee.id===Y)})).filter(Y=>Y.pos&&Y.node).sort((Y,ee)=>Y.node.x-ee.node.x);for(let Y=0;Y{const ee=T.get(Y);ee&&(U=Math.min(U,ee.x),G=Math.max(G,ee.x),K=ee.y)}),U!==1/0&&G!==-1/0){const ee=a.nodeRadius*4,X=K-ee/2,le=T.get(z.nodeId);if(le){const te=(U+G)/2;le.x=te,le.y=X-s/6}N.append("rect").attr("class","wardley-pipeline-box").attr("x",U-15).attr("y",X).attr("width",G-U+30).attr("height",ee).attr("fill","none").attr("stroke",i.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const w=p.append("g").attr("class","wardley-links"),R=new Map;l.pipelines.forEach(N=>{R.set(N.nodeId,new Set(N.componentIds))});const O=l.links.filter(N=>!(!T.has(N.source)||!T.has(N.target)||R.get(N.target)?.has(N.source)));w.selectAll("line").data(O).enter().append("line").attr("class",N=>`wardley-link${N.dashed?" wardley-link--dashed":""}`).attr("x1",N=>{const P=T.get(N.source),z=T.get(N.target),U=l.nodes.find(ee=>ee.id===N.source).isPipelineParent?s/Math.sqrt(2):a.nodeRadius,G=z.x-P.x,K=z.y-P.y,Y=Math.sqrt(G*G+K*K);return P.x+G/Y*U}).attr("y1",N=>{const P=T.get(N.source),z=T.get(N.target),U=l.nodes.find(ee=>ee.id===N.source).isPipelineParent?s/Math.sqrt(2):a.nodeRadius,G=z.x-P.x,K=z.y-P.y,Y=Math.sqrt(G*G+K*K);return P.y+K/Y*U}).attr("x2",N=>{const P=T.get(N.source),z=T.get(N.target),U=l.nodes.find(ee=>ee.id===N.target).isPipelineParent?s/Math.sqrt(2):a.nodeRadius,G=P.x-z.x,K=P.y-z.y,Y=Math.sqrt(G*G+K*K);return z.x+G/Y*U}).attr("y2",N=>{const P=T.get(N.source),z=T.get(N.target),U=l.nodes.find(ee=>ee.id===N.target).isPipelineParent?s/Math.sqrt(2):a.nodeRadius,G=P.x-z.x,K=P.y-z.y,Y=Math.sqrt(G*G+K*K);return z.y+K/Y*U}).attr("stroke",i.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",N=>N.dashed?"6 6":null).attr("marker-end",N=>N.flow==="forward"||N.flow==="bidirectional"?`url(#link-arrow-end-${e})`:null).attr("marker-start",N=>N.flow==="backward"||N.flow==="bidirectional"?`url(#link-arrow-start-${e})`:null),w.selectAll("text").data(O.filter(N=>N.label)).enter().append("text").attr("class","wardley-link-label").attr("x",N=>{const P=T.get(N.source),z=T.get(N.target),B=(P.x+z.x)/2,U=z.y-P.y,G=z.x-P.x,K=Math.sqrt(G*G+U*U),Y=8,ee=U/K;return B+ee*Y}).attr("y",N=>{const P=T.get(N.source),z=T.get(N.target),B=(P.y+z.y)/2,U=z.x-P.x,G=z.y-P.y,K=Math.sqrt(U*U+G*G),Y=8,ee=-U/K;return B+ee*Y}).attr("fill",i.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",N=>{const P=T.get(N.source),z=T.get(N.target),B=(P.x+z.x)/2,U=(P.y+z.y)/2,G=z.x-P.x,K=z.y-P.y,Y=Math.sqrt(G*G+K*K),ee=8,X=K/Y,le=-G/Y,te=B+X*ee,ne=U+le*ee;let ae=Math.atan2(K,G)*180/Math.PI;return(ae>90||ae<-90)&&(ae+=180),`rotate(${ae} ${te} ${ne})`}).text(N=>N.label);const M=p.append("g").attr("class","wardley-trends"),$=l.trends.map(N=>{const P=T.get(N.nodeId);if(!P)return null;const z=y(N.targetX),B=b(N.targetY),U=z-P.x,G=B-P.y,K=Math.sqrt(U*U+G*G),Y=a.nodeRadius+2,ee=K>Y?z-U/K*Y:z,X=K>Y?B-G/K*Y:B;return{origin:P,targetX:z,targetY:B,adjustedX2:ee,adjustedY2:X}}).filter(N=>N!==null);M.selectAll("line").data($).enter().append("line").attr("class","wardley-trend").attr("x1",N=>N.origin.x).attr("y1",N=>N.origin.y).attr("x2",N=>N.adjustedX2).attr("y2",N=>N.adjustedY2).attr("stroke",i.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",N=>["wardley-node",N.className?`wardley-node--${N.className}`:""].filter(Boolean).join(" "));A.filter(N=>N.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",i.componentStroke).attr("stroke-width",1),A.filter(N=>N.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",i.componentStroke).attr("stroke-width",1),A.filter(N=>N.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const I=A.filter(N=>N.sourceStrategy==="market");I.append("circle").attr("class","wardley-market-overlay").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",1),A.filter(N=>!N.isPipelineParent&&N.sourceStrategy!=="market"&&N.className!=="anchor").append("circle").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius).attr("fill",i.componentFill).attr("stroke",i.componentStroke).attr("stroke-width",1);const D=a.nodeRadius*.7,L=a.nodeRadius*1.2;if(I.append("line").attr("class","wardley-market-line").attr("x1",N=>T.get(N.id).x).attr("y1",N=>T.get(N.id).y-L).attr("x2",N=>T.get(N.id).x-L*Math.cos(Math.PI/6)).attr("y2",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("stroke",i.componentStroke).attr("stroke-width",1),I.append("line").attr("class","wardley-market-line").attr("x1",N=>T.get(N.id).x-L*Math.cos(Math.PI/6)).attr("y1",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("x2",N=>T.get(N.id).x+L*Math.cos(Math.PI/6)).attr("y2",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("stroke",i.componentStroke).attr("stroke-width",1),I.append("line").attr("class","wardley-market-line").attr("x1",N=>T.get(N.id).x+L*Math.cos(Math.PI/6)).attr("y1",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("x2",N=>T.get(N.id).x).attr("y2",N=>T.get(N.id).y-L).attr("stroke",i.componentStroke).attr("stroke-width",1),I.append("circle").attr("class","wardley-market-dot").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y-L).attr("r",D).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",2),I.append("circle").attr("class","wardley-market-dot").attr("cx",N=>T.get(N.id).x-L*Math.cos(Math.PI/6)).attr("cy",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("r",D).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",2),I.append("circle").attr("class","wardley-market-dot").attr("cx",N=>T.get(N.id).x+L*Math.cos(Math.PI/6)).attr("cy",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("r",D).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",2),A.filter(N=>N.isPipelineParent===!0).append("rect").attr("x",N=>T.get(N.id).x-s/2).attr("y",N=>T.get(N.id).y-s/2).attr("width",s).attr("height",s).attr("fill",i.componentFill).attr("stroke",i.componentStroke).attr("stroke-width",1),A.filter(N=>N.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",N=>{const P=T.get(N.id);let z=N.isPipelineParent?s/2+15:a.nodeRadius+15;return N.sourceStrategy&&(z+=a.nodeRadius+10),P.x+z}).attr("y1",N=>{const P=T.get(N.id),z=N.isPipelineParent?s:a.nodeRadius*2;return P.y-z/2}).attr("x2",N=>{const P=T.get(N.id);let z=N.isPipelineParent?s/2+15:a.nodeRadius+15;return N.sourceStrategy&&(z+=a.nodeRadius+10),P.x+z}).attr("y2",N=>{const P=T.get(N.id),z=N.isPipelineParent?s:a.nodeRadius*2;return P.y+z/2}).attr("stroke",i.componentStroke).attr("stroke-width",6),A.append("text").attr("x",N=>{const P=T.get(N.id);if(N.className==="anchor")return N.labelOffsetX!==void 0?P.x+N.labelOffsetX:P.x;let z=a.nodeLabelOffset;N.sourceStrategy&&N.labelOffsetX===void 0&&(z+=10);const B=N.labelOffsetX??z;return P.x+B}).attr("y",N=>{const P=T.get(N.id);if(N.className==="anchor")return N.labelOffsetY!==void 0?P.y+N.labelOffsetY:P.y-3;let z=-a.nodeLabelOffset;N.sourceStrategy&&N.labelOffsetY===void 0&&(z-=10);const B=N.labelOffsetY??z;return P.y+B}).attr("class","wardley-node-label").attr("fill",N=>N.className==="evolved"?i.evolutionStroke:N.className==="anchor"?"#000":i.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",N=>N.className==="anchor"?"bold":"normal").attr("text-anchor",N=>N.className==="anchor"?"middle":"start").attr("dominant-baseline",N=>N.className==="anchor"?"middle":"auto").text(N=>N.label),l.annotations.length>0){const N=p.append("g").attr("class","wardley-annotations");if(l.annotations.forEach(P=>{const z=P.coordinates.map(B=>({x:y(B.x),y:b(B.y)}));if(z.length>1)for(let B=0;B{const U=N.append("g").attr("class","wardley-annotation");U.append("circle").attr("cx",B.x).attr("cy",B.y).attr("r",10).attr("fill","white").attr("stroke",i.axisColor).attr("stroke-width",1.5),U.append("text").attr("x",B.x).attr("y",B.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",i.axisTextColor).attr("font-weight","bold").text(P.number)})}),l.annotationsBox){let P=y(l.annotationsBox.x),z=b(l.annotationsBox.y);const B=10,U=16,G=11,K=N.append("g").attr("class","wardley-annotations-box"),Y=[...l.annotations].filter(X=>X.text).sort((X,le)=>X.number-le.number),ee=[];if(Y.forEach((X,le)=>{const te=K.append("text").attr("x",P+B).attr("y",z+B+(le+1)*U).attr("font-size",G).attr("fill",i.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${X.number}. ${X.text}`);ee.push(te)}),ee.length>0){let X=0,le=0;ee.forEach(Be=>{const Le=Be.node(),He=Le.getComputedTextLength();X=Math.max(X,He);const Re=Le.getBBox();le=Math.max(le,Re.height)});const te=X+B*2+105,ne=Y.length*U+B*2+le/2,ae=a.padding,re=d-a.padding-te,ge=a.padding,pe=h-a.padding-ne;P=Math.max(ae,Math.min(P,re)),z=Math.max(ge,Math.min(z,pe)),ee.forEach((Be,Le)=>{Be.attr("x",P+B).attr("y",z+B+(Le+1)*U)}),K.insert("rect","text").attr("x",P).attr("y",z).attr("width",te).attr("height",ne).attr("fill","white").attr("stroke",i.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(l.notes.length>0){const N=p.append("g").attr("class","wardley-notes");l.notes.forEach(P=>{const z=y(P.x),B=b(P.y);N.append("text").attr("x",z).attr("y",B).attr("text-anchor","start").attr("font-size",11).attr("fill",i.axisTextColor).attr("font-weight","bold").text(P.text)})}if(l.accelerators.length>0){const N=p.append("g").attr("class","wardley-accelerators");l.accelerators.forEach(P=>{const z=y(P.x),B=b(P.y),U=60,G=30,K=20,Y=` + `},"getStyles"),RFt=AFt,NFt={parser:dNe,get db(){return new cNe},renderer:wFt,styles:RFt};const IFt=Object.freeze(Object.defineProperty({__proto__:null,diagram:NFt},Symbol.toStringTag,{value:"Module"}));var ak=E((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"),xf=E((t,e,r)=>({x:ak(e,`${r} evolution`),y:ak(t,`${r} visibility`)}),"toCoordinates"),pce=E(t=>{if(t){if(t==="+<>")return"bidirectional";if(t==="+<")return"backward";if(t==="+>")return"forward"}},"getFlowFromPort"),OFt=E(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"),DFt=E((t,e)=>{if(Nu(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){const r=t.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),n=t.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);e.updateAxes({stages:r,stageBoundaries:n})}if(t.anchors.forEach(r=>{const n=xf(r.visibility,r.evolution,`Anchor "${r.name}"`);e.addNode(r.name,r.name,n.x,n.y,"anchor")}),t.components.forEach(r=>{const n=xf(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,i=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",a,i,r.inertia,s)}),t.notes.forEach(r=>{const n=xf(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 a=n.y;e.startPipeline(r.parent),r.components.forEach(i=>{const s=`${r.parent}_${i.name}`,o=i.label?(i.label.negX?-1:1)*i.label.offsetX:void 0,l=i.label?(i.label.negY?-1:1)*i.label.offsetY:void 0,u=ak(i.evolution,`Pipeline component "${i.name}" evolution`);e.addNode(s,i.name,u,a,"pipeline-component",o,l),e.addPipelineComponent(r.parent,s)})}),t.links.forEach(r=>{const n=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=pce(r.fromPort)??pce(r.toPort);const{flow:i,label:s}=OFt(r.arrow);!a&&i&&(a=i);const o=r.linkLabel,l=s??o;e.addLink(e.resolveNodeId(r.from),e.resolveNodeId(r.to),n,l,a)}),t.evolves.forEach(r=>{const n=e.getNode(r.component);if(n?.y!==void 0){const a=ak(r.target,`Evolve target for "${r.component}"`);e.addTrend(r.component,a,n.y)}}),t.annotations.length>0){const r=t.annotations[0],n=xf(r.x,r.y,"Annotations box");e.setAnnotationsBox(n.x,n.y)}t.annotation.forEach(r=>{const n=xf(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=xf(r.x,r.y,`Accelerator "${r.name}"`);e.addAccelerator(r.name,n.x,n.y)}),t.deaccelerators.forEach(r=>{const n=xf(r.x,r.y,`Deaccelerator "${r.name}"`);e.addDeaccelerator(r.name,n.x,n.y)})},"populateDb"),hNe={parser:{yy:void 0},parse:E(async t=>{const e=await Sc("wardley",t);oe.debug(e);const r=hNe.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.");DFt(e,r)},"parse")},V_,LFt=(V_=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 a=this.nodes.get(r);a&&(a.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}},E(V_,"WardleyBuilder"),V_),ys=new LFt;function fNe(){return Ye()["wardley-beta"]}E(fNe,"getConfig");function pNe(t,e,r,n,a,i,s,o,l){ys.addNode({id:t,label:e,x:r,y:n,className:a,labelOffsetX:i,labelOffsetY:s,inertia:o,sourceStrategy:l})}E(pNe,"addNode");function gNe(t,e,r=!1,n,a){ys.addLink({source:t,target:e,dashed:r,label:n,flow:a})}E(gNe,"addLink");function mNe(t,e,r){ys.addTrend({nodeId:t,targetX:e,targetY:r})}E(mNe,"addTrend");function vNe(t,e,r){ys.addAnnotation({number:t,coordinates:e,text:r})}E(vNe,"addAnnotation");function yNe(t,e,r){ys.addNote({text:t,x:e,y:r})}E(yNe,"addNote");function _Ne(t,e,r){ys.addAccelerator({name:t,x:e,y:r})}E(_Ne,"addAccelerator");function bNe(t,e,r){ys.addDeaccelerator({name:t,x:e,y:r})}E(bNe,"addDeaccelerator");function ENe(t,e){ys.setAnnotationsBox(t,e)}E(ENe,"setAnnotationsBox");function SNe(t,e){ys.setSize(t,e)}E(SNe,"setSize");function TNe(t){ys.startPipeline(t)}E(TNe,"startPipeline");function xNe(t,e){ys.addPipelineComponent(t,e)}E(xNe,"addPipelineComponent");function CNe(t){ys.setAxes(t)}E(CNe,"updateAxes");function wNe(t){return ys.getNode(t)}E(wNe,"getNode");function kNe(t){return ys.resolveNodeId(t)}E(kNe,"resolveNodeId");function ANe(){return ys.build()}E(ANe,"getWardleyData");function RNe(){ys.clear(),oa()}E(RNe,"clear");var MFt={getConfig:fNe,addNode:pNe,addLink:gNe,addTrend:mNe,addAnnotation:vNe,addNote:yNe,addAccelerator:_Ne,addDeaccelerator:bNe,setAnnotationsBox:ENe,setSize:SNe,startPipeline:TNe,addPipelineComponent:xNe,updateAxes:CNe,getNode:wNe,resolveNodeId:kNe,getWardleyData:ANe,clear:RNe,setAccTitle:sa,getAccTitle:va,setDiagramTitle:pa,getDiagramTitle:la,getAccDescription:_a,setAccDescription:ya},PFt=["Genesis","Custom Built","Product","Commodity"],BFt=E(()=>{const{themeVariables:t}=Ye();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"),FFt=E(()=>{const t=Ye()["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"),$Ft=E((t,e,r,n)=>{oe.debug(`Rendering Wardley map +`+t);const a=FFt(),i=BFt(),s=a.nodeRadius*1.6,o=n.db,l=o.getWardleyData(),u=o.getDiagramTitle(),d=l.size?.width??a.width,h=l.size?.height??a.height,f=wo(e);f.selectAll("*").remove(),di(f,h,d,a.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",i.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",i.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",i.linkStroke).attr("stroke","none"),p.append("rect").attr("class","wardley-background").attr("width",d).attr("height",h).attr("fill",i.backgroundColor);const m=d-a.padding*2,v=h-a.padding*2;u&&p.append("text").attr("class","wardley-title").attr("x",d/2).attr("y",a.padding/2).attr("fill",i.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const y=E(N=>a.padding+N/100*m,"projectX"),b=E(N=>h-a.padding-N/100*v,"projectY"),_=p.append("g").attr("class","wardley-axes");_.append("line").attr("x1",a.padding).attr("x2",d-a.padding).attr("y1",h-a.padding).attr("y2",h-a.padding).attr("stroke",i.axisColor).attr("stroke-width",1),_.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",h-a.padding).attr("stroke",i.axisColor).attr("stroke-width",1);const S=l.axes.xLabel??"Evolution",x=l.axes.yLabel??"Visibility";_.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+m/2).attr("y",h-a.padding/4).attr("fill",i.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(S),_.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+v/2).attr("fill",i.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+v/2})`).text(x);const C=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:PFt;if(C.length>0){const N=p.append("g").attr("class","wardley-stages"),P=l.axes.stageBoundaries,z=[];if(P&&P.length===C.length){let B=0;P.forEach(U=>{z.push({start:B,end:U}),B=U})}else{const B=1/C.length;C.forEach((U,G)=>{z.push({start:G*B,end:(G+1)*B})})}C.forEach((B,U)=>{const G=z[U],K=a.padding+G.start*m,Y=a.padding+G.end*m,ee=(K+Y)/2;U>0&&N.append("line").attr("x1",K).attr("x2",K).attr("y1",a.padding).attr("y2",h-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),N.append("text").attr("class","wardley-stage-label").attr("x",ee).attr("y",h-a.padding/1.5).attr("fill",i.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(B)})}if(a.showGrid){const N=p.append("g").attr("class","wardley-grid");for(let P=1;P<4;P++){const z=P/4,B=a.padding+m*z;N.append("line").attr("x1",B).attr("x2",B).attr("y1",a.padding).attr("y2",h-a.padding).attr("stroke",i.gridColor).attr("stroke-dasharray","2 6"),N.append("line").attr("x1",a.padding).attr("x2",d-a.padding).attr("y1",h-a.padding-v*z).attr("y2",h-a.padding-v*z).attr("stroke",i.gridColor).attr("stroke-dasharray","2 6")}}const T=new Map;if(l.nodes.forEach(N=>{T.set(N.id,{x:y(N.x),y:b(N.y),node:N})}),l.pipelines.length>0){const N=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(Y=>({id:Y,pos:T.get(Y),node:l.nodes.find(ee=>ee.id===Y)})).filter(Y=>Y.pos&&Y.node).sort((Y,ee)=>Y.node.x-ee.node.x);for(let Y=0;Y{const ee=T.get(Y);ee&&(U=Math.min(U,ee.x),G=Math.max(G,ee.x),K=ee.y)}),U!==1/0&&G!==-1/0){const ee=a.nodeRadius*4,X=K-ee/2,le=T.get(z.nodeId);if(le){const te=(U+G)/2;le.x=te,le.y=X-s/6}N.append("rect").attr("class","wardley-pipeline-box").attr("x",U-15).attr("y",X).attr("width",G-U+30).attr("height",ee).attr("fill","none").attr("stroke",i.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const w=p.append("g").attr("class","wardley-links"),R=new Map;l.pipelines.forEach(N=>{R.set(N.nodeId,new Set(N.componentIds))});const O=l.links.filter(N=>!(!T.has(N.source)||!T.has(N.target)||R.get(N.target)?.has(N.source)));w.selectAll("line").data(O).enter().append("line").attr("class",N=>`wardley-link${N.dashed?" wardley-link--dashed":""}`).attr("x1",N=>{const P=T.get(N.source),z=T.get(N.target),U=l.nodes.find(ee=>ee.id===N.source).isPipelineParent?s/Math.sqrt(2):a.nodeRadius,G=z.x-P.x,K=z.y-P.y,Y=Math.sqrt(G*G+K*K);return P.x+G/Y*U}).attr("y1",N=>{const P=T.get(N.source),z=T.get(N.target),U=l.nodes.find(ee=>ee.id===N.source).isPipelineParent?s/Math.sqrt(2):a.nodeRadius,G=z.x-P.x,K=z.y-P.y,Y=Math.sqrt(G*G+K*K);return P.y+K/Y*U}).attr("x2",N=>{const P=T.get(N.source),z=T.get(N.target),U=l.nodes.find(ee=>ee.id===N.target).isPipelineParent?s/Math.sqrt(2):a.nodeRadius,G=P.x-z.x,K=P.y-z.y,Y=Math.sqrt(G*G+K*K);return z.x+G/Y*U}).attr("y2",N=>{const P=T.get(N.source),z=T.get(N.target),U=l.nodes.find(ee=>ee.id===N.target).isPipelineParent?s/Math.sqrt(2):a.nodeRadius,G=P.x-z.x,K=P.y-z.y,Y=Math.sqrt(G*G+K*K);return z.y+K/Y*U}).attr("stroke",i.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",N=>N.dashed?"6 6":null).attr("marker-end",N=>N.flow==="forward"||N.flow==="bidirectional"?`url(#link-arrow-end-${e})`:null).attr("marker-start",N=>N.flow==="backward"||N.flow==="bidirectional"?`url(#link-arrow-start-${e})`:null),w.selectAll("text").data(O.filter(N=>N.label)).enter().append("text").attr("class","wardley-link-label").attr("x",N=>{const P=T.get(N.source),z=T.get(N.target),B=(P.x+z.x)/2,U=z.y-P.y,G=z.x-P.x,K=Math.sqrt(G*G+U*U),Y=8,ee=U/K;return B+ee*Y}).attr("y",N=>{const P=T.get(N.source),z=T.get(N.target),B=(P.y+z.y)/2,U=z.x-P.x,G=z.y-P.y,K=Math.sqrt(U*U+G*G),Y=8,ee=-U/K;return B+ee*Y}).attr("fill",i.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",N=>{const P=T.get(N.source),z=T.get(N.target),B=(P.x+z.x)/2,U=(P.y+z.y)/2,G=z.x-P.x,K=z.y-P.y,Y=Math.sqrt(G*G+K*K),ee=8,X=K/Y,le=-G/Y,te=B+X*ee,ne=U+le*ee;let ae=Math.atan2(K,G)*180/Math.PI;return(ae>90||ae<-90)&&(ae+=180),`rotate(${ae} ${te} ${ne})`}).text(N=>N.label);const M=p.append("g").attr("class","wardley-trends"),$=l.trends.map(N=>{const P=T.get(N.nodeId);if(!P)return null;const z=y(N.targetX),B=b(N.targetY),U=z-P.x,G=B-P.y,K=Math.sqrt(U*U+G*G),Y=a.nodeRadius+2,ee=K>Y?z-U/K*Y:z,X=K>Y?B-G/K*Y:B;return{origin:P,targetX:z,targetY:B,adjustedX2:ee,adjustedY2:X}}).filter(N=>N!==null);M.selectAll("line").data($).enter().append("line").attr("class","wardley-trend").attr("x1",N=>N.origin.x).attr("y1",N=>N.origin.y).attr("x2",N=>N.adjustedX2).attr("y2",N=>N.adjustedY2).attr("stroke",i.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",N=>["wardley-node",N.className?`wardley-node--${N.className}`:""].filter(Boolean).join(" "));A.filter(N=>N.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",i.componentStroke).attr("stroke-width",1),A.filter(N=>N.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",i.componentStroke).attr("stroke-width",1),A.filter(N=>N.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const I=A.filter(N=>N.sourceStrategy==="market");I.append("circle").attr("class","wardley-market-overlay").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",1),A.filter(N=>!N.isPipelineParent&&N.sourceStrategy!=="market"&&N.className!=="anchor").append("circle").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y).attr("r",a.nodeRadius).attr("fill",i.componentFill).attr("stroke",i.componentStroke).attr("stroke-width",1);const D=a.nodeRadius*.7,L=a.nodeRadius*1.2;if(I.append("line").attr("class","wardley-market-line").attr("x1",N=>T.get(N.id).x).attr("y1",N=>T.get(N.id).y-L).attr("x2",N=>T.get(N.id).x-L*Math.cos(Math.PI/6)).attr("y2",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("stroke",i.componentStroke).attr("stroke-width",1),I.append("line").attr("class","wardley-market-line").attr("x1",N=>T.get(N.id).x-L*Math.cos(Math.PI/6)).attr("y1",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("x2",N=>T.get(N.id).x+L*Math.cos(Math.PI/6)).attr("y2",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("stroke",i.componentStroke).attr("stroke-width",1),I.append("line").attr("class","wardley-market-line").attr("x1",N=>T.get(N.id).x+L*Math.cos(Math.PI/6)).attr("y1",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("x2",N=>T.get(N.id).x).attr("y2",N=>T.get(N.id).y-L).attr("stroke",i.componentStroke).attr("stroke-width",1),I.append("circle").attr("class","wardley-market-dot").attr("cx",N=>T.get(N.id).x).attr("cy",N=>T.get(N.id).y-L).attr("r",D).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",2),I.append("circle").attr("class","wardley-market-dot").attr("cx",N=>T.get(N.id).x-L*Math.cos(Math.PI/6)).attr("cy",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("r",D).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",2),I.append("circle").attr("class","wardley-market-dot").attr("cx",N=>T.get(N.id).x+L*Math.cos(Math.PI/6)).attr("cy",N=>T.get(N.id).y+L*Math.sin(Math.PI/6)).attr("r",D).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",2),A.filter(N=>N.isPipelineParent===!0).append("rect").attr("x",N=>T.get(N.id).x-s/2).attr("y",N=>T.get(N.id).y-s/2).attr("width",s).attr("height",s).attr("fill",i.componentFill).attr("stroke",i.componentStroke).attr("stroke-width",1),A.filter(N=>N.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",N=>{const P=T.get(N.id);let z=N.isPipelineParent?s/2+15:a.nodeRadius+15;return N.sourceStrategy&&(z+=a.nodeRadius+10),P.x+z}).attr("y1",N=>{const P=T.get(N.id),z=N.isPipelineParent?s:a.nodeRadius*2;return P.y-z/2}).attr("x2",N=>{const P=T.get(N.id);let z=N.isPipelineParent?s/2+15:a.nodeRadius+15;return N.sourceStrategy&&(z+=a.nodeRadius+10),P.x+z}).attr("y2",N=>{const P=T.get(N.id),z=N.isPipelineParent?s:a.nodeRadius*2;return P.y+z/2}).attr("stroke",i.componentStroke).attr("stroke-width",6),A.append("text").attr("x",N=>{const P=T.get(N.id);if(N.className==="anchor")return N.labelOffsetX!==void 0?P.x+N.labelOffsetX:P.x;let z=a.nodeLabelOffset;N.sourceStrategy&&N.labelOffsetX===void 0&&(z+=10);const B=N.labelOffsetX??z;return P.x+B}).attr("y",N=>{const P=T.get(N.id);if(N.className==="anchor")return N.labelOffsetY!==void 0?P.y+N.labelOffsetY:P.y-3;let z=-a.nodeLabelOffset;N.sourceStrategy&&N.labelOffsetY===void 0&&(z-=10);const B=N.labelOffsetY??z;return P.y+B}).attr("class","wardley-node-label").attr("fill",N=>N.className==="evolved"?i.evolutionStroke:N.className==="anchor"?"#000":i.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",N=>N.className==="anchor"?"bold":"normal").attr("text-anchor",N=>N.className==="anchor"?"middle":"start").attr("dominant-baseline",N=>N.className==="anchor"?"middle":"auto").text(N=>N.label),l.annotations.length>0){const N=p.append("g").attr("class","wardley-annotations");if(l.annotations.forEach(P=>{const z=P.coordinates.map(B=>({x:y(B.x),y:b(B.y)}));if(z.length>1)for(let B=0;B{const U=N.append("g").attr("class","wardley-annotation");U.append("circle").attr("cx",B.x).attr("cy",B.y).attr("r",10).attr("fill","white").attr("stroke",i.axisColor).attr("stroke-width",1.5),U.append("text").attr("x",B.x).attr("y",B.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",i.axisTextColor).attr("font-weight","bold").text(P.number)})}),l.annotationsBox){let P=y(l.annotationsBox.x),z=b(l.annotationsBox.y);const B=10,U=16,G=11,K=N.append("g").attr("class","wardley-annotations-box"),Y=[...l.annotations].filter(X=>X.text).sort((X,le)=>X.number-le.number),ee=[];if(Y.forEach((X,le)=>{const te=K.append("text").attr("x",P+B).attr("y",z+B+(le+1)*U).attr("font-size",G).attr("fill",i.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${X.number}. ${X.text}`);ee.push(te)}),ee.length>0){let X=0,le=0;ee.forEach(Be=>{const Le=Be.node(),He=Le.getComputedTextLength();X=Math.max(X,He);const Re=Le.getBBox();le=Math.max(le,Re.height)});const te=X+B*2+105,ne=Y.length*U+B*2+le/2,ae=a.padding,re=d-a.padding-te,ge=a.padding,pe=h-a.padding-ne;P=Math.max(ae,Math.min(P,re)),z=Math.max(ge,Math.min(z,pe)),ee.forEach((Be,Le)=>{Be.attr("x",P+B).attr("y",z+B+(Le+1)*U)}),K.insert("rect","text").attr("x",P).attr("y",z).attr("width",te).attr("height",ne).attr("fill","white").attr("stroke",i.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(l.notes.length>0){const N=p.append("g").attr("class","wardley-notes");l.notes.forEach(P=>{const z=y(P.x),B=b(P.y);N.append("text").attr("x",z).attr("y",B).attr("text-anchor","start").attr("font-size",11).attr("fill",i.axisTextColor).attr("font-weight","bold").text(P.text)})}if(l.accelerators.length>0){const N=p.append("g").attr("class","wardley-accelerators");l.accelerators.forEach(P=>{const z=y(P.x),B=b(P.y),U=60,G=30,K=20,Y=` M ${z} ${B-G/2} L ${z+U-K} ${B-G/2} L ${z+U-K} ${B-G/2-8} @@ -7370,7 +7375,7 @@ Expecting `+ae.join(", ")+", got '"+(this.terminals_[G]||G)+"'":re="Parse error L ${z+K} ${B+G/2} L ${z+U} ${B+G/2} Z - `;N.append("path").attr("d",Y).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",1),N.append("text").attr("x",z+U/2).attr("y",B+G/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",i.axisTextColor).attr("font-weight","bold").text(P.name)})}},"draw"),$Ft={draw:FFt},zFt=E(({wardley:t}={})=>{const e=Qb(),r=xr(),n=$a(e,r.themeVariables),a=$a(n.wardley,t);return` + `;N.append("path").attr("d",Y).attr("fill","white").attr("stroke",i.componentStroke).attr("stroke-width",1),N.append("text").attr("x",z+U/2).attr("y",B+G/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",i.axisTextColor).attr("font-weight","bold").text(P.name)})}},"draw"),zFt={draw:$Ft},UFt=E(({wardley:t}={})=>{const e=Qb(),r=xr(),n=$a(e,r.themeVariables),a=$a(n.wardley,t);return` .wardley-background { fill: ${a.backgroundColor}; } @@ -7428,4 +7433,4 @@ Expecting `+ae.join(", ")+", got '"+(this.terminals_[G]||G)+"'":re="Parse error .wardley-notes text { fill: ${a.axisTextColor}; } - `},"styles"),UFt={parser:hNe,db:LFt,renderer:$Ft,styles:zFt};const GFt=Object.freeze(Object.defineProperty({__proto__:null,diagram:UFt},Symbol.toStringTag,{value:"Module"})),qFt=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:v7e,createInfoServices:y7e},Symbol.toStringTag,{value:"Module"})),YFt=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:_7e,createPacketServices:b7e},Symbol.toStringTag,{value:"Module"})),HFt=Object.freeze(Object.defineProperty({__proto__:null,PieModule:E7e,createPieServices:S7e},Symbol.toStringTag,{value:"Module"})),VFt=Object.freeze(Object.defineProperty({__proto__:null,TreeViewModule:T7e,createTreeViewServices:x7e},Symbol.toStringTag,{value:"Module"})),WFt=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:C7e,createArchitectureServices:w7e},Symbol.toStringTag,{value:"Module"})),KFt=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:g7e,createGitGraphServices:m7e},Symbol.toStringTag,{value:"Module"})),XFt=Object.freeze(Object.defineProperty({__proto__:null,EventModelingModule:A7e,createEventModelingServices:R7e},Symbol.toStringTag,{value:"Module"})),jFt=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:l7e,createRadarServices:c7e},Symbol.toStringTag,{value:"Module"})),QFt=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:d7e,createTreemapServices:h7e},Symbol.toStringTag,{value:"Module"})),ZFt=Object.freeze(Object.defineProperty({__proto__:null,WardleyModule:f7e,createWardleyServices:p7e},Symbol.toStringTag,{value:"Module"})); + `},"styles"),GFt={parser:hNe,db:MFt,renderer:zFt,styles:UFt};const qFt=Object.freeze(Object.defineProperty({__proto__:null,diagram:GFt},Symbol.toStringTag,{value:"Module"})),YFt=Object.freeze(Object.defineProperty({__proto__:null,InfoModule:v7e,createInfoServices:y7e},Symbol.toStringTag,{value:"Module"})),HFt=Object.freeze(Object.defineProperty({__proto__:null,PacketModule:_7e,createPacketServices:b7e},Symbol.toStringTag,{value:"Module"})),VFt=Object.freeze(Object.defineProperty({__proto__:null,PieModule:E7e,createPieServices:S7e},Symbol.toStringTag,{value:"Module"})),WFt=Object.freeze(Object.defineProperty({__proto__:null,TreeViewModule:T7e,createTreeViewServices:x7e},Symbol.toStringTag,{value:"Module"})),KFt=Object.freeze(Object.defineProperty({__proto__:null,ArchitectureModule:C7e,createArchitectureServices:w7e},Symbol.toStringTag,{value:"Module"})),XFt=Object.freeze(Object.defineProperty({__proto__:null,GitGraphModule:g7e,createGitGraphServices:m7e},Symbol.toStringTag,{value:"Module"})),jFt=Object.freeze(Object.defineProperty({__proto__:null,EventModelingModule:A7e,createEventModelingServices:R7e},Symbol.toStringTag,{value:"Module"})),QFt=Object.freeze(Object.defineProperty({__proto__:null,RadarModule:l7e,createRadarServices:c7e},Symbol.toStringTag,{value:"Module"})),ZFt=Object.freeze(Object.defineProperty({__proto__:null,TreemapModule:d7e,createTreemapServices:h7e},Symbol.toStringTag,{value:"Module"})),JFt=Object.freeze(Object.defineProperty({__proto__:null,WardleyModule:f7e,createWardleyServices:p7e},Symbol.toStringTag,{value:"Module"})); diff --git a/src/quicklook/scroll.ts b/src/quicklook/interaction.ts similarity index 92% rename from src/quicklook/scroll.ts rename to src/quicklook/interaction.ts index 3b91930..980407b 100644 --- a/src/quicklook/scroll.ts +++ b/src/quicklook/interaction.ts @@ -1,5 +1,18 @@ import type { Mode } from './mode'; +/** + * Disable the force-touch deep press (link preview / look up) on links, while + * keeping it available for normal text. + */ +export function interceptForceTouch() { + document.addEventListener('webkitmouseforcewillbegin', event => { + const target = event.target; + if (target instanceof Element && target.closest('a') !== null) { + event.preventDefault(); + } + }); +} + /** * Redirect pinch-zoom to the preview pane in preview mode by overriding the * `pinchZoomTarget` resolver from `@light`. diff --git a/src/quicklook/ui.ts b/src/quicklook/ui.ts index 86056b7..4073ead 100644 --- a/src/quicklook/ui.ts +++ b/src/quicklook/ui.ts @@ -1,7 +1,7 @@ import { createToolbar } from './toolbar'; import { currentMode, saveMode } from './mode'; import { getEditorText } from './editor'; -import { interceptPinchZoom, interceptDragging, interceptWheelEvent, trackToolbarSeparator } from './scroll'; +import { interceptForceTouch, interceptPinchZoom, interceptDragging, interceptWheelEvent, trackToolbarSeparator } from './interaction'; import { renderMarkdown, handlePostRender } from '../render'; import { replaceImageURLs } from '../features/image'; import { appendStyle } from '../shared/utils'; @@ -54,6 +54,7 @@ export function setUpQuickLook(previewPane: HTMLElement) { } }); + interceptForceTouch(); interceptPinchZoom(currentMode, previewPane); interceptDragging(currentMode, previewPane); interceptWheelEvent(currentMode, previewPane, toolbar); @@ -103,6 +104,14 @@ function createRenderer(previewPane: HTMLElement): { try { const innerHTML = replaceImageURLs(await renderMarkdown(getEditorText(), false)); previewPane.innerHTML = `
${innerHTML}
`; + + // Links aren't interactive in quicklook; drop href so WebKit treats them + // as selectable plain text. + previewPane.querySelectorAll('a[href]').forEach(anchor => { + anchor.removeAttribute('href'); + anchor.removeAttribute('target'); + }); + handlePostRender(() => {}); rendered = true; } catch (error) { diff --git a/styles/quicklook.css b/styles/quicklook.css index a045498..db8b411 100644 --- a/styles/quicklook.css +++ b/styles/quicklook.css @@ -15,9 +15,14 @@ body { /* Links are not interactive in quicklook */ .quicklook .markdown-body a, -.quicklook .markdown-body a:hover { +.quicklook .markdown-body a:hover, +.quicklook .markdown-body a:not([href]) { + color: var(--fgColor-accent); text-decoration: none; cursor: text; + user-select: text; + -webkit-user-select: text; + -webkit-touch-callout: none; } .quicklook .markdown-body.overlay {